From b92c106f1289650a4e9c5d55688dc9230c16d669 Mon Sep 17 00:00:00 2001 From: Tudor Simionescu Date: Wed, 23 Apr 2025 06:24:13 -0600 Subject: [PATCH 01/53] Pull request #22: Fix auto generated api wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from fix-auto-generated-api-wrapper to main Squashed commit of the following: commit 96c0dd7b3fc43816744e4f238a3fcfbe4a80c5ed Author: Tudor Simionescu Date: Wed Apr 23 15:14:00 2025 +0300 Fix missing rename of get_application_types commit f9241ae2182cc17d10dfbdcabd572b1a859a3a5c Author: Tudor Simionescu Date: Wed Apr 23 15:13:02 2025 +0300 Manually modify Config object to prevent pydantic issue What: - Make the 'validate' field of a Config have a different name in Python Why: - 'validate' is a method in BaseModel and the field name is shadowing it --- cyperf/api_client.py | 2 +- cyperf/models/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cyperf/api_client.py b/cyperf/api_client.py index 8d53be7..2434de8 100644 --- a/cyperf/api_client.py +++ b/cyperf/api_client.py @@ -155,7 +155,7 @@ def wait_for_controller_up(self, timeout_seconds=600): try: if not eula_accepted: eula_checker.check_eulas() - app_res_api.get_application_types(take=0) + app_res_api.get_resources_application_types(take=0) sessions_api.get_sessions(take=0) configs_api.get_configs(take=0) agents_api.get_agents(take=0) diff --git a/cyperf/models/config.py b/cyperf/models/config.py index 5f7a33d..3ad2d61 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -42,7 +42,7 @@ class Config(BaseModel): network_profiles: Optional[List[NetworkProfile]] = Field(default=None, alias="NetworkProfiles") traffic_profiles: Optional[List[ApplicationProfile]] = Field(default=None, alias="TrafficProfiles") links: Optional[List[APILink]] = None - validate: Optional[List[Union[StrictBytes, StrictStr]]] = None + validate_operations: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="validate") __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "TrafficProfiles", "links", "validate"] model_config = ConfigDict( From dac0d89987daa06b91ad50889df0fde5cfa242ea Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Tue, 13 May 2025 06:06:48 -0600 Subject: [PATCH 02/53] Pull request #24: renaming parameter fix Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34527-udp-sample-fix to main Squashed commit of the following: commit f7be4250a7c2115f78cf2d158089a858a5676158 Author: iustmitu Date: Tue May 13 14:48:06 2025 +0300 renaming parameter --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a8ee24e..175cb33 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ import cyperf config = cyperf.Configuration(host="https://my-controller", - user="admin", + username="admin", refresh_token="get a token from CyPerf UI > Gear > Offline Token") # if you don't have a valid HTTPS certificate for controller, uncomment this line # config.verify_ssl = False From cfb9e94a2a693b83008862d447ac480019233252 Mon Sep 17 00:00:00 2001 From: Tudor Simionescu Date: Wed, 14 May 2025 06:55:20 -0600 Subject: [PATCH 03/53] Pull request #26: ISGAPPSEC2-34547: use the proper argument name for create_sessions Merge in ISGAPPSEC/cyperf-api-wrapper from api-wrapper-fixes to main Squashed commit of the following: commit a20fbc276eeb8c1d552a31ac020c22f6b0be296c Author: Tudor Simionescu Date: Wed May 14 13:39:52 2025 +0300 ISGAPPSEC2-34547: use the proper argument name for create_sessions What: - Specify the intended argument names for the body parameters for all POST operations - re-generate api wrapper Why: - Default name is singular, even though these operations take a list of items --- cyperf/api/brokers_api.py | 32 ++++++++-------- cyperf/api/configurations_api.py | 32 ++++++++-------- cyperf/api/license_servers_api.py | 32 ++++++++-------- cyperf/api/sessions_api.py | 64 +++++++++++++++---------------- cyperf/api/statistics_api.py | 32 ++++++++-------- cyperf/models/config.py | 2 +- docs/BrokersApi.md | 8 ++-- docs/ConfigurationsApi.md | 8 ++-- docs/LicenseServersApi.md | 8 ++-- docs/SessionsApi.md | 16 ++++---- docs/StatisticsApi.md | 8 ++-- 11 files changed, 121 insertions(+), 121 deletions(-) diff --git a/cyperf/api/brokers_api.py b/cyperf/api/brokers_api.py index a0489e1..08483ec 100644 --- a/cyperf/api/brokers_api.py +++ b/cyperf/api/brokers_api.py @@ -45,7 +45,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_brokers( self, - broker: Optional[List[Broker]] = None, + brokers: Optional[List[Broker]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63,8 +63,8 @@ def create_brokers( Register an external broker. - :param broker: - :type broker: List[Broker] + :param brokers: + :type brokers: List[Broker] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88,7 +88,7 @@ def create_brokers( """ # noqa: E501 _param = self._create_brokers_serialize( - broker=broker, + brokers=brokers, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110,7 +110,7 @@ def create_brokers( @validate_call def create_brokers_with_http_info( self, - broker: Optional[List[Broker]] = None, + brokers: Optional[List[Broker]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -128,8 +128,8 @@ def create_brokers_with_http_info( Register an external broker. - :param broker: - :type broker: List[Broker] + :param brokers: + :type brokers: List[Broker] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -153,7 +153,7 @@ def create_brokers_with_http_info( """ # noqa: E501 _param = self._create_brokers_serialize( - broker=broker, + brokers=brokers, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -175,7 +175,7 @@ def create_brokers_with_http_info( @validate_call def create_brokers_without_preload_content( self, - broker: Optional[List[Broker]] = None, + brokers: Optional[List[Broker]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -193,8 +193,8 @@ def create_brokers_without_preload_content( Register an external broker. - :param broker: - :type broker: List[Broker] + :param brokers: + :type brokers: List[Broker] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -218,7 +218,7 @@ def create_brokers_without_preload_content( """ # noqa: E501 _param = self._create_brokers_serialize( - broker=broker, + brokers=brokers, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -239,7 +239,7 @@ def create_brokers_without_preload_content( def _create_brokers_serialize( self, - broker, + brokers, _request_auth, _content_type, _headers, @@ -249,7 +249,7 @@ def _create_brokers_serialize( _host = None _collection_formats: Dict[str, str] = { - 'Broker': '', + 'brokers': '', } _path_params: Dict[str, str] = {} @@ -264,8 +264,8 @@ def _create_brokers_serialize( # process the header parameters # process the form parameters # process the body parameter - if broker is not None: - _body_params = broker + if brokers is not None: + _body_params = brokers # set the HTTP header `Accept` diff --git a/cyperf/api/configurations_api.py b/cyperf/api/configurations_api.py index 9e67dd8..a353176 100644 --- a/cyperf/api/configurations_api.py +++ b/cyperf/api/configurations_api.py @@ -51,7 +51,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_configs( self, - config_metadata: Optional[List[ConfigMetadata]] = None, + configs: Optional[List[ConfigMetadata]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69,8 +69,8 @@ def create_configs( Save or import a new configuration. If the ConfigData field is not provided, this is implemented as a Save operation, only recording the metadata. - :param config_metadata: - :type config_metadata: List[ConfigMetadata] + :param configs: + :type configs: List[ConfigMetadata] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94,7 +94,7 @@ def create_configs( """ # noqa: E501 _param = self._create_configs_serialize( - config_metadata=config_metadata, + configs=configs, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116,7 +116,7 @@ def create_configs( @validate_call def create_configs_with_http_info( self, - config_metadata: Optional[List[ConfigMetadata]] = None, + configs: Optional[List[ConfigMetadata]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -134,8 +134,8 @@ def create_configs_with_http_info( Save or import a new configuration. If the ConfigData field is not provided, this is implemented as a Save operation, only recording the metadata. - :param config_metadata: - :type config_metadata: List[ConfigMetadata] + :param configs: + :type configs: List[ConfigMetadata] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -159,7 +159,7 @@ def create_configs_with_http_info( """ # noqa: E501 _param = self._create_configs_serialize( - config_metadata=config_metadata, + configs=configs, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -181,7 +181,7 @@ def create_configs_with_http_info( @validate_call def create_configs_without_preload_content( self, - config_metadata: Optional[List[ConfigMetadata]] = None, + configs: Optional[List[ConfigMetadata]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -199,8 +199,8 @@ def create_configs_without_preload_content( Save or import a new configuration. If the ConfigData field is not provided, this is implemented as a Save operation, only recording the metadata. - :param config_metadata: - :type config_metadata: List[ConfigMetadata] + :param configs: + :type configs: List[ConfigMetadata] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -224,7 +224,7 @@ def create_configs_without_preload_content( """ # noqa: E501 _param = self._create_configs_serialize( - config_metadata=config_metadata, + configs=configs, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -245,7 +245,7 @@ def create_configs_without_preload_content( def _create_configs_serialize( self, - config_metadata, + configs, _request_auth, _content_type, _headers, @@ -255,7 +255,7 @@ def _create_configs_serialize( _host = None _collection_formats: Dict[str, str] = { - 'ConfigMetadata': '', + 'configs': '', } _path_params: Dict[str, str] = {} @@ -270,8 +270,8 @@ def _create_configs_serialize( # process the header parameters # process the form parameters # process the body parameter - if config_metadata is not None: - _body_params = config_metadata + if configs is not None: + _body_params = configs # set the HTTP header `Accept` diff --git a/cyperf/api/license_servers_api.py b/cyperf/api/license_servers_api.py index e358266..1e10137 100644 --- a/cyperf/api/license_servers_api.py +++ b/cyperf/api/license_servers_api.py @@ -45,7 +45,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_license_servers( self, - license_server_metadata: Optional[List[LicenseServerMetadata]] = None, + license_servers: Optional[List[LicenseServerMetadata]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63,8 +63,8 @@ def create_license_servers( Register a license server. - :param license_server_metadata: - :type license_server_metadata: List[LicenseServerMetadata] + :param license_servers: + :type license_servers: List[LicenseServerMetadata] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88,7 +88,7 @@ def create_license_servers( """ # noqa: E501 _param = self._create_license_servers_serialize( - license_server_metadata=license_server_metadata, + license_servers=license_servers, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110,7 +110,7 @@ def create_license_servers( @validate_call def create_license_servers_with_http_info( self, - license_server_metadata: Optional[List[LicenseServerMetadata]] = None, + license_servers: Optional[List[LicenseServerMetadata]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -128,8 +128,8 @@ def create_license_servers_with_http_info( Register a license server. - :param license_server_metadata: - :type license_server_metadata: List[LicenseServerMetadata] + :param license_servers: + :type license_servers: List[LicenseServerMetadata] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -153,7 +153,7 @@ def create_license_servers_with_http_info( """ # noqa: E501 _param = self._create_license_servers_serialize( - license_server_metadata=license_server_metadata, + license_servers=license_servers, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -175,7 +175,7 @@ def create_license_servers_with_http_info( @validate_call def create_license_servers_without_preload_content( self, - license_server_metadata: Optional[List[LicenseServerMetadata]] = None, + license_servers: Optional[List[LicenseServerMetadata]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -193,8 +193,8 @@ def create_license_servers_without_preload_content( Register a license server. - :param license_server_metadata: - :type license_server_metadata: List[LicenseServerMetadata] + :param license_servers: + :type license_servers: List[LicenseServerMetadata] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -218,7 +218,7 @@ def create_license_servers_without_preload_content( """ # noqa: E501 _param = self._create_license_servers_serialize( - license_server_metadata=license_server_metadata, + license_servers=license_servers, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -239,7 +239,7 @@ def create_license_servers_without_preload_content( def _create_license_servers_serialize( self, - license_server_metadata, + license_servers, _request_auth, _content_type, _headers, @@ -249,7 +249,7 @@ def _create_license_servers_serialize( _host = None _collection_formats: Dict[str, str] = { - 'LicenseServerMetadata': '', + 'licenseServers': '', } _path_params: Dict[str, str] = {} @@ -264,8 +264,8 @@ def _create_license_servers_serialize( # process the header parameters # process the form parameters # process the body parameter - if license_server_metadata is not None: - _body_params = license_server_metadata + if license_servers is not None: + _body_params = license_servers # set the HTTP header `Accept` diff --git a/cyperf/api/sessions_api.py b/cyperf/api/sessions_api.py index d9d9203..17fed86 100644 --- a/cyperf/api/sessions_api.py +++ b/cyperf/api/sessions_api.py @@ -58,7 +58,7 @@ def __init__(self, api_client=None) -> None: def create_session_meta( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - pair: Optional[List[Pair]] = None, + session_metas: Optional[List[Pair]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78,8 +78,8 @@ def create_session_meta( :param session_id: The ID of the session. (required) :type session_id: str - :param pair: - :type pair: List[Pair] + :param session_metas: + :type session_metas: List[Pair] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -104,7 +104,7 @@ def create_session_meta( _param = self._create_session_meta_serialize( session_id=session_id, - pair=pair, + session_metas=session_metas, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -127,7 +127,7 @@ def create_session_meta( def create_session_meta_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - pair: Optional[List[Pair]] = None, + session_metas: Optional[List[Pair]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -147,8 +147,8 @@ def create_session_meta_with_http_info( :param session_id: The ID of the session. (required) :type session_id: str - :param pair: - :type pair: List[Pair] + :param session_metas: + :type session_metas: List[Pair] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -173,7 +173,7 @@ def create_session_meta_with_http_info( _param = self._create_session_meta_serialize( session_id=session_id, - pair=pair, + session_metas=session_metas, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -196,7 +196,7 @@ def create_session_meta_with_http_info( def create_session_meta_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - pair: Optional[List[Pair]] = None, + session_metas: Optional[List[Pair]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -216,8 +216,8 @@ def create_session_meta_without_preload_content( :param session_id: The ID of the session. (required) :type session_id: str - :param pair: - :type pair: List[Pair] + :param session_metas: + :type session_metas: List[Pair] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -242,7 +242,7 @@ def create_session_meta_without_preload_content( _param = self._create_session_meta_serialize( session_id=session_id, - pair=pair, + session_metas=session_metas, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -264,7 +264,7 @@ def create_session_meta_without_preload_content( def _create_session_meta_serialize( self, session_id, - pair, + session_metas, _request_auth, _content_type, _headers, @@ -274,7 +274,7 @@ def _create_session_meta_serialize( _host = None _collection_formats: Dict[str, str] = { - 'Pair': '', + 'sessionMetas': '', } _path_params: Dict[str, str] = {} @@ -291,8 +291,8 @@ def _create_session_meta_serialize( # process the header parameters # process the form parameters # process the body parameter - if pair is not None: - _body_params = pair + if session_metas is not None: + _body_params = session_metas # set the HTTP header `Accept` @@ -344,7 +344,7 @@ def _create_session_meta_serialize( @validate_call def create_sessions( self, - session: Optional[List[Session]] = None, + sessions: Optional[List[Session]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -362,8 +362,8 @@ def create_sessions( Create a new session by providing the URL of the configuration to be loaded. - :param session: - :type session: List[Session] + :param sessions: + :type sessions: List[Session] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -387,7 +387,7 @@ def create_sessions( """ # noqa: E501 _param = self._create_sessions_serialize( - session=session, + sessions=sessions, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -409,7 +409,7 @@ def create_sessions( @validate_call def create_sessions_with_http_info( self, - session: Optional[List[Session]] = None, + sessions: Optional[List[Session]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -427,8 +427,8 @@ def create_sessions_with_http_info( Create a new session by providing the URL of the configuration to be loaded. - :param session: - :type session: List[Session] + :param sessions: + :type sessions: List[Session] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -452,7 +452,7 @@ def create_sessions_with_http_info( """ # noqa: E501 _param = self._create_sessions_serialize( - session=session, + sessions=sessions, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -474,7 +474,7 @@ def create_sessions_with_http_info( @validate_call def create_sessions_without_preload_content( self, - session: Optional[List[Session]] = None, + sessions: Optional[List[Session]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -492,8 +492,8 @@ def create_sessions_without_preload_content( Create a new session by providing the URL of the configuration to be loaded. - :param session: - :type session: List[Session] + :param sessions: + :type sessions: List[Session] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -517,7 +517,7 @@ def create_sessions_without_preload_content( """ # noqa: E501 _param = self._create_sessions_serialize( - session=session, + sessions=sessions, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -538,7 +538,7 @@ def create_sessions_without_preload_content( def _create_sessions_serialize( self, - session, + sessions, _request_auth, _content_type, _headers, @@ -548,7 +548,7 @@ def _create_sessions_serialize( _host = None _collection_formats: Dict[str, str] = { - 'Session': '', + 'sessions': '', } _path_params: Dict[str, str] = {} @@ -563,8 +563,8 @@ def _create_sessions_serialize( # process the header parameters # process the form parameters # process the body parameter - if session is not None: - _body_params = session + if sessions is not None: + _body_params = sessions # set the HTTP header `Accept` diff --git a/cyperf/api/statistics_api.py b/cyperf/api/statistics_api.py index 71e8ae4..9146fad 100644 --- a/cyperf/api/statistics_api.py +++ b/cyperf/api/statistics_api.py @@ -49,7 +49,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_stats_plugins( self, - plugin: Optional[List[Plugin]] = None, + stats_plugins: Optional[List[Plugin]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67,8 +67,8 @@ def create_stats_plugins( Create new plugins. - :param plugin: - :type plugin: List[Plugin] + :param stats_plugins: + :type stats_plugins: List[Plugin] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92,7 +92,7 @@ def create_stats_plugins( """ # noqa: E501 _param = self._create_stats_plugins_serialize( - plugin=plugin, + stats_plugins=stats_plugins, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114,7 +114,7 @@ def create_stats_plugins( @validate_call def create_stats_plugins_with_http_info( self, - plugin: Optional[List[Plugin]] = None, + stats_plugins: Optional[List[Plugin]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -132,8 +132,8 @@ def create_stats_plugins_with_http_info( Create new plugins. - :param plugin: - :type plugin: List[Plugin] + :param stats_plugins: + :type stats_plugins: List[Plugin] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -157,7 +157,7 @@ def create_stats_plugins_with_http_info( """ # noqa: E501 _param = self._create_stats_plugins_serialize( - plugin=plugin, + stats_plugins=stats_plugins, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -179,7 +179,7 @@ def create_stats_plugins_with_http_info( @validate_call def create_stats_plugins_without_preload_content( self, - plugin: Optional[List[Plugin]] = None, + stats_plugins: Optional[List[Plugin]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -197,8 +197,8 @@ def create_stats_plugins_without_preload_content( Create new plugins. - :param plugin: - :type plugin: List[Plugin] + :param stats_plugins: + :type stats_plugins: List[Plugin] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -222,7 +222,7 @@ def create_stats_plugins_without_preload_content( """ # noqa: E501 _param = self._create_stats_plugins_serialize( - plugin=plugin, + stats_plugins=stats_plugins, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -243,7 +243,7 @@ def create_stats_plugins_without_preload_content( def _create_stats_plugins_serialize( self, - plugin, + stats_plugins, _request_auth, _content_type, _headers, @@ -253,7 +253,7 @@ def _create_stats_plugins_serialize( _host = None _collection_formats: Dict[str, str] = { - 'Plugin': '', + 'statsPlugins': '', } _path_params: Dict[str, str] = {} @@ -268,8 +268,8 @@ def _create_stats_plugins_serialize( # process the header parameters # process the form parameters # process the body parameter - if plugin is not None: - _body_params = plugin + if stats_plugins is not None: + _body_params = stats_plugins # set the HTTP header `Accept` diff --git a/cyperf/models/config.py b/cyperf/models/config.py index 3ad2d61..5f7a33d 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -42,7 +42,7 @@ class Config(BaseModel): network_profiles: Optional[List[NetworkProfile]] = Field(default=None, alias="NetworkProfiles") traffic_profiles: Optional[List[ApplicationProfile]] = Field(default=None, alias="TrafficProfiles") links: Optional[List[APILink]] = None - validate_operations: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="validate") + validate: Optional[List[Union[StrictBytes, StrictStr]]] = None __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "TrafficProfiles", "links", "validate"] model_config = ConfigDict( diff --git a/docs/BrokersApi.md b/docs/BrokersApi.md index 1b9d459..2069371 100644 --- a/docs/BrokersApi.md +++ b/docs/BrokersApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **create_brokers** -> List[Broker] create_brokers(broker=broker) +> List[Broker] create_brokers(brokers=brokers) @@ -48,10 +48,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.BrokersApi(api_client) - broker = [cyperf.Broker()] # List[Broker] | (optional) + brokers = [cyperf.Broker()] # List[Broker] | (optional) try: - api_response = api_instance.create_brokers(broker=broker) + api_response = api_instance.create_brokers(brokers=brokers) print("The response of BrokersApi->create_brokers:\n") pprint(api_response) except Exception as e: @@ -65,7 +65,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **broker** | [**List[Broker]**](Broker.md)| | [optional] + **brokers** | [**List[Broker]**](Broker.md)| | [optional] ### Return type diff --git a/docs/ConfigurationsApi.md b/docs/ConfigurationsApi.md index fe1cdcf..da5887d 100644 --- a/docs/ConfigurationsApi.md +++ b/docs/ConfigurationsApi.md @@ -23,7 +23,7 @@ Method | HTTP request | Description # **create_configs** -> List[ConfigMetadata] create_configs(config_metadata=config_metadata) +> List[ConfigMetadata] create_configs(configs=configs) @@ -59,10 +59,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ConfigurationsApi(api_client) - config_metadata = [cyperf.ConfigMetadata()] # List[ConfigMetadata] | (optional) + configs = [cyperf.ConfigMetadata()] # List[ConfigMetadata] | (optional) try: - api_response = api_instance.create_configs(config_metadata=config_metadata) + api_response = api_instance.create_configs(configs=configs) print("The response of ConfigurationsApi->create_configs:\n") pprint(api_response) except Exception as e: @@ -76,7 +76,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **config_metadata** | [**List[ConfigMetadata]**](ConfigMetadata.md)| | [optional] + **configs** | [**List[ConfigMetadata]**](ConfigMetadata.md)| | [optional] ### Return type diff --git a/docs/LicenseServersApi.md b/docs/LicenseServersApi.md index 1acd977..98e3177 100644 --- a/docs/LicenseServersApi.md +++ b/docs/LicenseServersApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **create_license_servers** -> List[LicenseServerMetadata] create_license_servers(license_server_metadata=license_server_metadata) +> List[LicenseServerMetadata] create_license_servers(license_servers=license_servers) @@ -48,10 +48,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.LicenseServersApi(api_client) - license_server_metadata = [cyperf.LicenseServerMetadata()] # List[LicenseServerMetadata] | (optional) + license_servers = [cyperf.LicenseServerMetadata()] # List[LicenseServerMetadata] | (optional) try: - api_response = api_instance.create_license_servers(license_server_metadata=license_server_metadata) + api_response = api_instance.create_license_servers(license_servers=license_servers) print("The response of LicenseServersApi->create_license_servers:\n") pprint(api_response) except Exception as e: @@ -65,7 +65,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **license_server_metadata** | [**List[LicenseServerMetadata]**](LicenseServerMetadata.md)| | [optional] + **license_servers** | [**List[LicenseServerMetadata]**](LicenseServerMetadata.md)| | [optional] ### Return type diff --git a/docs/SessionsApi.md b/docs/SessionsApi.md index d2bcbc1..1f1e0ee 100644 --- a/docs/SessionsApi.md +++ b/docs/SessionsApi.md @@ -46,7 +46,7 @@ Method | HTTP request | Description # **create_session_meta** -> List[Pair] create_session_meta(session_id, pair=pair) +> List[Pair] create_session_meta(session_id, session_metas=session_metas) @@ -83,10 +83,10 @@ with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.SessionsApi(api_client) session_id = 'session_id_example' # str | The ID of the session. - pair = [cyperf.Pair()] # List[Pair] | (optional) + session_metas = [cyperf.Pair()] # List[Pair] | (optional) try: - api_response = api_instance.create_session_meta(session_id, pair=pair) + api_response = api_instance.create_session_meta(session_id, session_metas=session_metas) print("The response of SessionsApi->create_session_meta:\n") pprint(api_response) except Exception as e: @@ -101,7 +101,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **session_id** | **str**| The ID of the session. | - **pair** | [**List[Pair]**](Pair.md)| | [optional] + **session_metas** | [**List[Pair]**](Pair.md)| | [optional] ### Return type @@ -127,7 +127,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_sessions** -> List[Session] create_sessions(session=session) +> List[Session] create_sessions(sessions=sessions) @@ -163,10 +163,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.SessionsApi(api_client) - session = [cyperf.Session()] # List[Session] | (optional) + sessions = [cyperf.Session()] # List[Session] | (optional) try: - api_response = api_instance.create_sessions(session=session) + api_response = api_instance.create_sessions(sessions=sessions) print("The response of SessionsApi->create_sessions:\n") pprint(api_response) except Exception as e: @@ -180,7 +180,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **session** | [**List[Session]**](Session.md)| | [optional] + **sessions** | [**List[Session]**](Session.md)| | [optional] ### Return type diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index 8078968..33fb993 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description # **create_stats_plugins** -> List[Plugin] create_stats_plugins(plugin=plugin) +> List[Plugin] create_stats_plugins(stats_plugins=stats_plugins) @@ -50,10 +50,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.StatisticsApi(api_client) - plugin = [cyperf.Plugin()] # List[Plugin] | (optional) + stats_plugins = [cyperf.Plugin()] # List[Plugin] | (optional) try: - api_response = api_instance.create_stats_plugins(plugin=plugin) + api_response = api_instance.create_stats_plugins(stats_plugins=stats_plugins) print("The response of StatisticsApi->create_stats_plugins:\n") pprint(api_response) except Exception as e: @@ -67,7 +67,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **plugin** | [**List[Plugin]**](Plugin.md)| | [optional] + **stats_plugins** | [**List[Plugin]**](Plugin.md)| | [optional] ### Return type From 05e4cef3aa62e2f4cefe7cccbc4b87885ab416dd Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Fri, 16 May 2025 01:46:15 -0600 Subject: [PATCH 04/53] Pull request #25: removed ui specific api calls Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34540-remove-ui-specific-api-calls-from-api-client-library to main Squashed commit of the following: commit 220266f0afcb93e57cf29feeb47f9faf03103f16 Author: iustmitu Date: Thu May 15 11:45:27 2025 +0300 accidentally ommited file from the commit commit ee3871930fb1657b9039701e5b32f835d6141db9 Author: iustmitu Date: Thu May 15 11:34:48 2025 +0300 regenerated werapper --- README.md | 1 - cyperf/api/sessions_api.py | 240 ------------------------------------- docs/SessionsApi.md | 74 ------------ test/test_sessions_api.py | 6 - 4 files changed, 321 deletions(-) diff --git a/README.md b/README.md index f8d33b6..3a1c89a 100644 --- a/README.md +++ b/README.md @@ -343,7 +343,6 @@ Class | Method | HTTP request | Description *SessionsApi* | [**create_sessions**](docs/SessionsApi.md#create_sessions) | **POST** /api/v2/sessions | *SessionsApi* | [**delete_session**](docs/SessionsApi.md#delete_session) | **DELETE** /api/v2/sessions/{sessionId} | *SessionsApi* | [**delete_session_meta**](docs/SessionsApi.md#delete_session_meta) | **DELETE** /api/v2/sessions/{sessionId}/meta/{metaId} | -*SessionsApi* | [**get_appsec_ui_metadata**](docs/SessionsApi.md#get_appsec_ui_metadata) | **GET** /api/v2/appsec-ui-metadata | *SessionsApi* | [**get_config_docs**](docs/SessionsApi.md#get_config_docs) | **GET** /api/v2/sessions/{sessionId}/config/$docs | *SessionsApi* | [**get_config_granular_stats**](docs/SessionsApi.md#get_config_granular_stats) | **GET** /api/v2/sessions/{sessionId}/config/granular-stats | *SessionsApi* | [**get_config_granular_stats_filters**](docs/SessionsApi.md#get_config_granular_stats_filters) | **GET** /api/v2/sessions/{sessionId}/config/granular-stats-filters | diff --git a/cyperf/api/sessions_api.py b/cyperf/api/sessions_api.py index 17fed86..d491ef8 100644 --- a/cyperf/api/sessions_api.py +++ b/cyperf/api/sessions_api.py @@ -1150,246 +1150,6 @@ def _delete_session_meta_serialize( - @validate_call - def get_appsec_ui_metadata( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """get_appsec_ui_metadata - - Get the UI metadata - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_appsec_ui_metadata_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_appsec_ui_metadata_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """get_appsec_ui_metadata - - Get the UI metadata - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_appsec_ui_metadata_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_appsec_ui_metadata_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """get_appsec_ui_metadata - - Get the UI metadata - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_appsec_ui_metadata_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_appsec_ui_metadata_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/appsec-ui-metadata', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def get_config_docs( self, diff --git a/docs/SessionsApi.md b/docs/SessionsApi.md index 1f1e0ee..65deca8 100644 --- a/docs/SessionsApi.md +++ b/docs/SessionsApi.md @@ -8,7 +8,6 @@ Method | HTTP request | Description [**create_sessions**](SessionsApi.md#create_sessions) | **POST** /api/v2/sessions | [**delete_session**](SessionsApi.md#delete_session) | **DELETE** /api/v2/sessions/{sessionId} | [**delete_session_meta**](SessionsApi.md#delete_session_meta) | **DELETE** /api/v2/sessions/{sessionId}/meta/{metaId} | -[**get_appsec_ui_metadata**](SessionsApi.md#get_appsec_ui_metadata) | **GET** /api/v2/appsec-ui-metadata | [**get_config_docs**](SessionsApi.md#get_config_docs) | **GET** /api/v2/sessions/{sessionId}/config/$docs | [**get_config_granular_stats**](SessionsApi.md#get_config_granular_stats) | **GET** /api/v2/sessions/{sessionId}/config/granular-stats | [**get_config_granular_stats_filters**](SessionsApi.md#get_config_granular_stats_filters) | **GET** /api/v2/sessions/{sessionId}/config/granular-stats-filters | @@ -361,79 +360,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_appsec_ui_metadata** -> object get_appsec_ui_metadata() - - - -Get the UI metadata - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - - try: - api_response = api_instance.get_appsec_ui_metadata() - print("The response of SessionsApi->get_appsec_ui_metadata:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->get_appsec_ui_metadata: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -**object** - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | The UI metadata | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_config_docs** > OpenAPIDefinitions get_config_docs(session_id) diff --git a/test/test_sessions_api.py b/test/test_sessions_api.py index e7738f9..f6c0d76 100644 --- a/test/test_sessions_api.py +++ b/test/test_sessions_api.py @@ -51,12 +51,6 @@ def test_delete_session_meta(self) -> None: """ pass - def test_get_appsec_ui_metadata(self) -> None: - """Test case for get_appsec_ui_metadata - - """ - pass - def test_get_config_docs(self) -> None: """Test case for get_config_docs From aa17d14ae84de09b138a01e4f39422e626a076dd Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Mon, 26 May 2025 02:01:39 -0600 Subject: [PATCH 05/53] Pull request #27: update function based on id Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34434-fix-update-function to main Squashed commit of the following: commit 9a3ded61b2726e0b255ccc5ee49a3ca85de112fc Author: iustmitu Date: Fri May 23 13:06:25 2025 +0300 commit after regenerate the wrapper commit 91110c1e966908ed71d194cf08f493f557321353 Author: iustmitu Date: Fri May 23 12:55:26 2025 +0300 sample tests fixed and update function commit bb87904e4e29413059dc9d256c28b72755149cee Author: iustmitu Date: Thu May 22 13:12:39 2025 +0300 remove hassatr() commit e838f0ed10fc089649b8c820f640c9b1b706d124 Author: iustmitu Date: Wed May 21 13:58:14 2025 +0300 fixed some issues commit c465e89fc2ab8a157a0fe2a801893542311a17a9 Author: iustmitu Date: Mon May 19 12:21:09 2025 +0300 fix update function commit 588ee3448f08c80d5c807d1457e00a55a758698e Author: iustmitu Date: Fri May 16 10:57:52 2025 +0300 update function based on id --- cyperf/dynamic_model_meta.py | 44 ++++++++++++++----- cyperf/utils.py | 5 ++- .../sample_create_save_and_export_config.py | 2 +- .../sample_load_and_run_precanned_config.py | 2 +- 4 files changed, 40 insertions(+), 13 deletions(-) diff --git a/cyperf/dynamic_model_meta.py b/cyperf/dynamic_model_meta.py index 97c2fc7..d63d655 100644 --- a/cyperf/dynamic_model_meta.py +++ b/cyperf/dynamic_model_meta.py @@ -128,18 +128,41 @@ def refresh(self): def update(self): lst = self.__get_base_data() - items_to_add = [item for item in self.data if item not in lst] - items_to_remove = [item for item in lst if item not in self.data] + + server_hrefs = { + link.href for item in lst + for link in getattr(item, "links", []) + if getattr(link, "type", None) == "self" + } + + local_hrefs = set() + href_to_item = {} + items_to_add = [] + + for item in self.dyn_data: + link = item.get_self_link() + if link is None or link.href is None: + items_to_add.append(item) + else: + local_hrefs.add(link.href) + href_to_item[link.href] = item + + items_to_add.extend( + href_to_item[href] for href in local_hrefs - server_hrefs + ) + items_to_remove = [ + item for item in lst + for link in getattr(item, "links", []) + if getattr(link, "type", None) == "self" and link.href not in local_hrefs + ] + if items_to_add: - try: + for item in items_to_add: DynamicModel.link_based_request(self, self.link.name, "POST", - body=items_to_add, href=self.link.href) - except ApiException: - for item in items_to_add: - DynamicModel.link_based_request(self, self.link.name, "POST", - body=item, href=self.link.href) + body=item, href=self.link.href) + remove_one_by_one = False - if len(items_to_remove) > 1 and "id" in dir(items_to_remove[0]): + if len(items_to_remove) > 1: try: op = DynamicModel.link_based_request(self, self.link.name, "POST", body=[{"id": item.id} for item in items_to_remove], @@ -151,9 +174,10 @@ def update(self): remove_one_by_one = True else: remove_one_by_one = True + if remove_one_by_one: for item in items_to_remove: - DynamicModel.link_based_request(self, self.link.name, "DELETE", + DynamicModel.link_based_request(self, self.link.name, "DELETE", href=next(link.href for link in item.links if link.rel == "self")) self.refresh() diff --git a/cyperf/utils.py b/cyperf/utils.py index 16e03db..d2f3f0f 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -198,8 +198,11 @@ def add_apps(self, session, appNames): if not session.config.config.traffic_profiles: session.config.config.traffic_profiles.append(cyperf.ApplicationProfile(name="Application Profile")) session.config.config.traffic_profiles.update() + app_profile = session.config.config.traffic_profiles[0] - app_profile.applications += app_info + for app in app_info: + app_profile.applications.append(app) + app_profile.applications.update() def add_app(self, session, appName): diff --git a/samples/sample_create_save_and_export_config.py b/samples/sample_create_save_and_export_config.py index e36799c..0fda71f 100644 --- a/samples/sample_create_save_and_export_config.py +++ b/samples/sample_create_save_and_export_config.py @@ -44,7 +44,7 @@ # Create a session session = None print("Creating empty session...") - api_session_response = api_session_instance.create_sessions(session=sessions) + api_session_response = api_session_instance.create_sessions(sessions=sessions) session = api_session_response[0] print("Session created.\n") diff --git a/samples/sample_load_and_run_precanned_config.py b/samples/sample_load_and_run_precanned_config.py index cf71dce..7e238a4 100644 --- a/samples/sample_load_and_run_precanned_config.py +++ b/samples/sample_load_and_run_precanned_config.py @@ -44,7 +44,7 @@ # Create a session session = None print("Creating session from config called 'Not Working From Home Traffic Mix' ...") - api_session_response = api_session_instance.create_sessions(session=sessions) + api_session_response = api_session_instance.create_sessions(sessions=sessions) session = api_session_response[0] print("Session created.\n") From b3ecd40d06b27bd08720b526a65b49b4b17b653c Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 2 Jul 2025 02:20:12 -0600 Subject: [PATCH 06/53] Pull request #29: generate methods for operation nodes Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-34728-add-support-for-operations-on-nodes to main Squashed commit of the following: commit d4308b4029b91f7e4cf49625985a0de107f9fc0e Author: iustmitu Date: Thu Jun 26 11:35:59 2025 +0300 sample test modified removed commit 71f513045d7f38c1b2508c8ea1ebc52644a0c2da Author: iustmitu Date: Wed Jun 25 17:16:09 2025 +0300 rename metadatas and regenerated wrapper commit d9acdfebae9cad90c0ddcce775b75509ae407c16 Author: iustmitu Date: Mon Jun 23 11:09:51 2025 +0300 async context commit 4a96b9c6781d1abab9d9c6f082233f5eee0ff15c Author: iustmitu Date: Fri Jun 20 13:43:25 2025 +0300 async op commit 2893456cc358f4083ae6251b685cbcc989b417a5 Author: iustmitu Date: Thu Jun 19 14:02:11 2025 +0300 regenerated wrapper commit 2301cf18e8f0f0d92b1ba10160a37e0614c5ff98 Author: iustmitu Date: Mon Jun 16 11:45:18 2025 +0300 List[byte] operations fix commit 6232a91457e44029e0598ef899c896a0d9816841 Author: iustmitu Date: Wed Jun 4 12:07:20 2025 +0300 deleted test script commit 89373f03af1ff148ebae5b5f9d0fff47a3ff19fc Author: iustmitu Date: Wed Jun 4 12:04:46 2025 +0300 support for operation nodes commit c05cacf2c4cecab60aedca5d8a9134f14a568709 Author: iustmitu Date: Mon Jun 2 13:11:04 2025 +0300 generate methods for operation nodes --- README.md | 17 +- cyperf/__init__.py | 6 +- cyperf/api/application_resources_api.py | 8860 +++++++++++------ cyperf/api/sessions_api.py | 47 +- cyperf/dynamic_model_meta.py | 136 +- cyperf/dynamic_models/__init__.py | 6 +- cyperf/models/__init__.py | 6 +- cyperf/models/action.py | 2 +- cyperf/models/action_base.py | 2 +- cyperf/models/action_input.py | 2 +- cyperf/models/action_input_find_param.py | 2 +- cyperf/models/action_metadata.py | 2 +- cyperf/models/activation_code_info.py | 2 +- cyperf/models/activation_code_list_request.py | 2 +- cyperf/models/activation_code_request.py | 2 +- cyperf/models/add_action_info.py | 99 + cyperf/models/add_input.py | 2 +- cyperf/models/advanced_settings.py | 2 +- cyperf/models/agent.py | 2 +- cyperf/models/agent_assignment_by_port.py | 2 +- cyperf/models/agent_assignment_details.py | 2 +- cyperf/models/agent_assignments.py | 2 +- cyperf/models/agent_cpu_info.py | 2 +- cyperf/models/agent_features.py | 2 +- cyperf/models/agent_release.py | 2 +- cyperf/models/agent_reservation.py | 2 +- cyperf/models/agent_to_be_rebooted.py | 2 +- cyperf/models/agents_group.py | 2 +- cyperf/models/api_link.py | 2 +- cyperf/models/app_exchange.py | 2 +- cyperf/models/app_flow.py | 2 +- cyperf/models/app_flow_desc.py | 2 +- cyperf/models/app_flow_input.py | 2 +- cyperf/models/app_flow_input_find_param.py | 2 +- cyperf/models/app_id.py | 2 +- cyperf/models/app_mode.py | 2 +- cyperf/models/application.py | 8 +- cyperf/models/application_profile.py | 6 +- cyperf/models/application_type.py | 6 +- cyperf/models/appsec_app.py | 2 +- cyperf/models/appsec_app_metadata.py | 2 +- cyperf/models/appsec_attack.py | 8 +- cyperf/models/appsec_config.py | 2 +- cyperf/models/archive_info.py | 2 +- cyperf/models/array_v2_element_metadata.py | 2 +- cyperf/models/async_context.py | 2 +- cyperf/models/async_operation_response.py | 2 +- cyperf/models/attack.py | 21 +- cyperf/models/attack_action.py | 2 +- cyperf/models/attack_metadata.py | 121 + .../models/attack_metadata_keywords_inner.py | 208 + .../models/attack_objectives_and_timeline.py | 2 +- cyperf/models/attack_profile.py | 6 +- cyperf/models/attack_timeline_segment.py | 2 +- cyperf/models/attack_track.py | 19 +- cyperf/models/auth_profile.py | 8 +- cyperf/models/auth_profile_metadata.py | 110 + cyperf/models/auth_settings.py | 2 +- cyperf/models/authenticate200_response.py | 2 +- cyperf/models/authentication_settings.py | 2 +- cyperf/models/broker.py | 2 +- cyperf/models/capture_input.py | 2 +- cyperf/models/capture_input_find_param.py | 2 +- cyperf/models/capture_settings.py | 2 +- cyperf/models/category.py | 2 +- cyperf/models/category_filter.py | 2 +- cyperf/models/category_value.py | 2 +- cyperf/models/cert_config.py | 4 +- cyperf/models/certificate.py | 2 +- cyperf/models/chassis_info.py | 2 +- cyperf/models/choice.py | 2 +- cyperf/models/cisco_any_connect_settings.py | 2 +- cyperf/models/cisco_encapsulation.py | 2 +- .../models/clear_ports_ownership_operation.py | 2 +- cyperf/models/command.py | 2 +- cyperf/models/compute_node.py | 2 +- cyperf/models/config.py | 3 +- cyperf/models/config_category.py | 2 +- cyperf/models/config_id.py | 2 +- cyperf/models/config_metadata.py | 12 +- cyperf/models/config_validation.py | 2 +- cyperf/models/conflict.py | 2 +- cyperf/models/connection.py | 2 +- cyperf/models/consumer.py | 2 +- cyperf/models/controller.py | 2 +- cyperf/models/counted_feature_consumer.py | 2 +- cyperf/models/counted_feature_stats.py | 2 +- cyperf/models/create_app_operation.py | 2 +- .../create_app_or_attack_operation_input.py | 108 + cyperf/models/custom_dashboards.py | 2 +- cyperf/models/custom_import_handler.py | 2 +- cyperf/models/custom_stat.py | 2 +- cyperf/models/dashboard.py | 2 +- cyperf/models/data_type.py | 2 +- cyperf/models/data_type_values_inner.py | 2 +- cyperf/models/definition.py | 2 +- cyperf/models/delete_input.py | 2 +- cyperf/models/diagnostic_component.py | 2 +- cyperf/models/diagnostic_component_context.py | 2 +- cyperf/models/diagnostic_options.py | 2 +- cyperf/models/disk_usage.py | 2 +- cyperf/models/dns_resolver.py | 2 +- cyperf/models/dns_server.py | 2 +- cyperf/models/dtls_settings.py | 2 +- cyperf/models/dut_network.py | 2 +- cyperf/models/edit_action_input.py | 2 +- cyperf/models/edit_app_operation.py | 2 +- cyperf/models/effective_ports.py | 2 +- cyperf/models/emulated_router.py | 2 +- cyperf/models/emulated_router_range.py | 2 +- cyperf/models/emulated_subnet_config.py | 2 +- cyperf/models/endpoint.py | 2 +- cyperf/models/entitlement_code_info.py | 2 +- cyperf/models/entitlement_code_request.py | 2 +- cyperf/models/enum.py | 2 +- cyperf/models/error_description.py | 2 +- cyperf/models/error_response.py | 2 +- cyperf/models/esp_over_udp_settings.py | 2 +- cyperf/models/eth_range.py | 2 +- cyperf/models/eula_details.py | 2 +- cyperf/models/eula_summary.py | 2 +- cyperf/models/exchange.py | 2 +- cyperf/models/exchange_order.py | 2 +- cyperf/models/exchange_payload.py | 2 +- cyperf/models/expected_disk_space.py | 2 +- cyperf/models/expected_disk_space_message.py | 2 +- .../models/expected_disk_space_pretty_size.py | 2 +- cyperf/models/expected_disk_space_size.py | 2 +- cyperf/models/export_all_operation.py | 2 +- cyperf/models/export_apps_operation_input.py | 2 +- cyperf/models/export_files_operation_input.py | 2 +- cyperf/models/export_files_request.py | 2 +- cyperf/models/export_package_operation.py | 2 +- cyperf/models/external_resource_info.py | 2 +- cyperf/models/f5_encapsulation.py | 2 +- cyperf/models/f5_settings.py | 2 +- cyperf/models/feature.py | 2 +- cyperf/models/feature_reservation.py | 2 +- cyperf/models/feature_reservation_reserve.py | 2 +- cyperf/models/file_metadata.py | 2 +- cyperf/models/file_value.py | 2 +- cyperf/models/filter.py | 2 +- cyperf/models/filtered_stat.py | 2 +- cyperf/models/find_param_matches_operation.py | 2 +- cyperf/models/fortinet_encapsulation.py | 2 +- cyperf/models/fortinet_settings.py | 2 +- cyperf/models/fulfillment_request.py | 2 +- cyperf/models/generate_all_operation.py | 2 +- .../models/generate_csv_reports_operation.py | 2 +- .../models/generate_pdf_report_operation.py | 2 +- cyperf/models/generic_file.py | 14 +- .../models/get_agents200_response_one_of.py | 2 +- .../get_agents_tags200_response_one_of.py | 2 +- cyperf/models/get_attacks_operation.py | 2 +- .../models/get_brokers200_response_one_of.py | 2 +- cyperf/models/get_categories_operation.py | 2 +- ...et_config_categories200_response_one_of.py | 2 +- .../models/get_configs200_response_one_of.py | 2 +- .../get_controllers200_response_one_of.py | 2 +- ...disk_usage_consumers200_response_one_of.py | 2 +- .../get_license_servers200_response_one_of.py | 2 +- .../get_notifications200_response_one_of.py | 2 +- ...es_application_types200_response_one_of.py | 2 +- .../get_resources_apps200_response_one_of.py | 2 +- ...et_resources_attacks200_response_one_of.py | 2 +- ...ources_auth_profiles200_response_one_of.py | 2 +- ...sources_certificates200_response_one_of.py | 2 +- ...om_import_operations200_response_one_of.py | 2 +- ...ources_http_profiles200_response_one_of.py | 2 +- .../get_result_files200_response_one_of.py | 2 +- .../get_result_stats200_response_one_of.py | 2 +- .../models/get_results200_response_one_of.py | 2 +- .../get_results_tags200_response_one_of.py | 2 +- .../get_session_meta200_response_one_of.py | 2 +- .../models/get_sessions200_response_one_of.py | 2 +- .../get_stats_plugins200_response_one_of.py | 2 +- cyperf/models/get_strikes_operation.py | 2 +- cyperf/models/health_check_config.py | 2 +- cyperf/models/health_issue.py | 2 +- cyperf/models/host_id.py | 2 +- cyperf/models/http_profile.py | 2 +- cyperf/models/http_req_meta.py | 2 +- cyperf/models/http_res_meta.py | 2 +- cyperf/models/import_all_operation.py | 2 +- .../models/import_offline_license_result.py | 2 +- cyperf/models/ingest_operation.py | 2 +- cyperf/models/inner_ip_range.py | 2 +- cyperf/models/interface.py | 2 +- cyperf/models/ip_mask.py | 2 +- cyperf/models/ip_network.py | 2 +- cyperf/models/ip_range.py | 2 +- cyperf/models/ip_sec_range.py | 2 +- cyperf/models/ip_sec_stack.py | 2 +- cyperf/models/license.py | 2 +- cyperf/models/license_receipt.py | 2 +- cyperf/models/license_server_metadata.py | 2 +- cyperf/models/link.py | 2 +- cyperf/models/load_config_operation.py | 2 +- cyperf/models/local_subnet_config.py | 2 +- cyperf/models/log_config.py | 2 +- cyperf/models/mac_dtls_stack.py | 2 +- cyperf/models/marked_as_deleted.py | 2 +- cyperf/models/media_file.py | 2 +- cyperf/models/media_track.py | 2 +- cyperf/models/metadata.py | 8 +- cyperf/models/name_server.py | 2 +- cyperf/models/network_mapping.py | 2 +- cyperf/models/network_meshing.py | 2 +- cyperf/models/network_profile.py | 2 +- cyperf/models/network_segment_base.py | 2 +- cyperf/models/nodes_by_controller.py | 2 +- cyperf/models/nodes_power_cycle_operation.py | 2 +- cyperf/models/notification.py | 2 +- cyperf/models/notification_counts.py | 2 +- cyperf/models/ntp_info.py | 2 +- cyperf/models/objective_value_entry.py | 2 +- cyperf/models/objectives_and_timeline.py | 2 +- cyperf/models/open_api_definitions.py | 8 +- cyperf/models/p1_config.py | 2 +- cyperf/models/p2_config.py | 2 +- cyperf/models/pair.py | 2 +- cyperf/models/pangp_encapsulation.py | 2 +- cyperf/models/pangp_settings.py | 2 +- cyperf/models/param_metadata.py | 2 +- cyperf/models/param_metadata_type_info.py | 2 +- .../param_metadata_type_info_array_v2.py | 2 +- ...adata_type_info_array_v2_elements_inner.py | 2 +- cyperf/models/param_metadata_type_info_int.py | 2 +- .../models/param_metadata_type_info_media.py | 2 +- .../models/param_metadata_type_info_string.py | 2 +- cyperf/models/parameter.py | 42 +- cyperf/models/parameter_match.py | 2 +- cyperf/models/parameter_metadata.py | 2 +- cyperf/models/params.py | 3 +- cyperf/models/params_enum.py | 2 +- cyperf/models/payload_meta.py | 2 +- cyperf/models/payload_metadata.py | 2 +- cyperf/models/pep_dut.py | 2 +- cyperf/models/plugin.py | 2 +- cyperf/models/plugin_stats.py | 8 +- cyperf/models/port.py | 2 +- cyperf/models/port_settings.py | 2 +- cyperf/models/ports_by_controller.py | 2 +- cyperf/models/ports_by_node.py | 2 +- cyperf/models/prepare_test_operation.py | 2 +- cyperf/models/prepared_test_options.py | 2 +- cyperf/models/protected_subnet_config.py | 2 +- cyperf/models/reboot_operation_input.py | 2 +- cyperf/models/reboot_ports_operation.py | 2 +- cyperf/models/reference.py | 2 +- cyperf/models/regex_match.py | 2 +- cyperf/models/release_operation_input.py | 2 +- cyperf/models/remote_access.py | 2 +- cyperf/models/remote_subnet_config.py | 2 +- cyperf/models/rename_input.py | 2 +- cyperf/models/reorder_action_input.py | 2 +- cyperf/models/reorder_exchanges_input.py | 2 +- cyperf/models/replay_capture.py | 2 +- cyperf/models/required_file_types.py | 2 +- cyperf/models/reserve_operation_input.py | 2 +- cyperf/models/result_file_metadata.py | 2 +- cyperf/models/result_metadata.py | 2 +- cyperf/models/results_group.py | 2 +- cyperf/models/rtp_profile.py | 2 +- cyperf/models/rtp_profile_meta.py | 2 +- cyperf/models/save_config_operation.py | 2 +- cyperf/models/scenario.py | 2 +- cyperf/models/secondary_objective.py | 2 +- cyperf/models/selected_env.py | 2 +- cyperf/models/session.py | 2 +- .../models/set_aggregation_mode_operation.py | 2 +- cyperf/models/set_app_operation.py | 2 +- .../models/set_dpdk_mode_operation_input.py | 2 +- cyperf/models/set_link_state_operation.py | 2 +- cyperf/models/set_ntp_operation_input.py | 2 +- cyperf/models/simulated_id_p.py | 2 +- cyperf/models/snapshot.py | 8 +- cyperf/models/sort_body_field.py | 2 +- cyperf/models/specific_objective.py | 2 +- ...start_agents_batch_delete_request_inner.py | 2 +- cyperf/models/stateless_stream.py | 2 +- cyperf/models/static_arp_entry.py | 2 +- cyperf/models/stats_result.py | 2 +- cyperf/models/steady_segment.py | 2 +- cyperf/models/step_segment.py | 2 +- cyperf/models/stream_profile.py | 2 +- cyperf/models/system_info.py | 2 +- cyperf/models/tcp_profile.py | 2 +- cyperf/models/test_info.py | 2 +- cyperf/models/test_state_changed_operation.py | 2 +- cyperf/models/time_value.py | 2 +- cyperf/models/timeline_segment.py | 2 +- cyperf/models/timeline_segment_base.py | 2 +- cyperf/models/timeline_segment_union.py | 2 +- cyperf/models/timers.py | 2 +- cyperf/models/tls_profile.py | 4 +- cyperf/models/track.py | 19 +- cyperf/models/traffic_agent_info.py | 2 +- cyperf/models/traffic_profile_base.py | 2 +- cyperf/models/traffic_settings.py | 2 +- cyperf/models/transport_profile.py | 2 +- cyperf/models/transport_profile_base.py | 2 +- cyperf/models/tunnel_range.py | 2 +- cyperf/models/tunnel_settings.py | 2 +- cyperf/models/tunnel_stack.py | 2 +- cyperf/models/type_array_v2_metadata.py | 2 +- cyperf/models/type_info_metadata.py | 2 +- cyperf/models/type_int_metadata.py | 2 +- cyperf/models/type_media_metadata.py | 2 +- cyperf/models/type_string_metadata.py | 2 +- cyperf/models/udp_profile.py | 2 +- cyperf/models/update_network_mapping.py | 2 +- cyperf/models/validation_message.py | 2 +- cyperf/models/version.py | 2 +- cyperf/models/vlan_range.py | 2 +- docs/AddActionInfo.md | 32 + docs/Application.md | 1 + docs/ApplicationResourcesApi.md | 1060 +- docs/ApplicationType.md | 1 + docs/AppsecAttack.md | 2 +- docs/Attack.md | 2 +- docs/AttackMetadata.md | 35 + docs/AttackMetadataKeywordsInner.md | 28 + docs/AttackTrack.md | 2 +- docs/AuthProfile.md | 2 +- docs/AuthProfileMetadata.md | 34 + docs/ConfigMetadata.md | 3 +- docs/CreateAppOrAttackOperationInput.md | 30 + docs/GenericFile.md | 3 +- docs/Metadata.md | 2 +- docs/OpenAPIDefinitions.md | 2 +- docs/Parameter.md | 11 +- docs/PluginStats.md | 2 +- docs/SessionsApi.md | 23 +- docs/Snapshot.md | 2 +- docs/Track.md | 2 +- .../sample_create_save_and_export_config.py | 1 - test/test_action_input.py | 88 +- test/test_action_metadata.py | 90 +- test/test_add_action_info.py | 59 + test/test_add_input.py | 88 +- test/test_app_exchange.py | 2 + test/test_app_flow.py | 2 + test/test_application.py | 11 +- test/test_application_resources_api.py | 54 + test/test_application_type.py | 153 +- test/test_appsec_app.py | 76 +- test/test_appsec_app_metadata.py | 158 +- test/test_appsec_attack.py | 22 +- test/test_attack.py | 20 +- test/test_attack_metadata.py | 66 + test/test_attack_metadata_keywords_inner.py | 51 + test/test_attack_track.py | 10 +- test/test_auth_profile.py | 136 +- test/test_auth_profile_metadata.py | 73 + test/test_command.py | 88 +- test/test_config_metadata.py | 1 + test/test_create_app_operation.py | 176 +- ...st_create_app_or_attack_operation_input.py | 66 + test/test_edit_action_input.py | 88 +- test/test_edit_app_operation.py | 264 +- test/test_generic_file.py | 1 + test/test_get_configs200_response.py | 1 + test/test_get_configs200_response_one_of.py | 1 + ...resources_application_types200_response.py | 51 +- ...es_application_types200_response_one_of.py | 51 +- test/test_get_resources_apps200_response.py | 76 +- ...t_get_resources_apps200_response_one_of.py | 76 +- .../test_get_resources_attacks200_response.py | 22 +- ...et_resources_attacks200_response_one_of.py | 22 +- ...get_resources_auth_profiles200_response.py | 71 +- ...ources_auth_profiles200_response_one_of.py | 71 +- ..._get_resources_certificates200_response.py | 1 + ...sources_certificates200_response_one_of.py | 1 + test/test_get_result_stats200_response.py | 88 +- ...est_get_result_stats200_response_one_of.py | 88 +- test/test_import_all_operation.py | 1 + test/test_parameter.py | 88 +- test/test_replay_capture.py | 2 + test/test_sessions_api.py | 8 +- test/test_stats_result.py | 88 +- test/test_track.py | 10 +- 382 files changed, 10142 insertions(+), 4303 deletions(-) create mode 100644 cyperf/models/add_action_info.py create mode 100644 cyperf/models/attack_metadata.py create mode 100644 cyperf/models/attack_metadata_keywords_inner.py create mode 100644 cyperf/models/auth_profile_metadata.py create mode 100644 cyperf/models/create_app_or_attack_operation_input.py create mode 100644 docs/AddActionInfo.md create mode 100644 docs/AttackMetadata.md create mode 100644 docs/AttackMetadataKeywordsInner.md create mode 100644 docs/AuthProfileMetadata.md create mode 100644 docs/CreateAppOrAttackOperationInput.md create mode 100644 test/test_add_action_info.py create mode 100644 test/test_attack_metadata.py create mode 100644 test/test_attack_metadata_keywords_inner.py create mode 100644 test/test_auth_profile_metadata.py create mode 100644 test/test_create_app_or_attack_operation_input.py diff --git a/README.md b/README.md index 3a1c89a..87c4c80 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ Class | Method | HTTP request | Description *AgentsApi* | [**start_controllers_set_port_link_state**](docs/AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | *ApplicationResourcesApi* | [**delete_resources_capture**](docs/ApplicationResourcesApi.md#delete_resources_capture) | **DELETE** /api/v2/resources/captures/{captureId} | *ApplicationResourcesApi* | [**delete_resources_certificate**](docs/ApplicationResourcesApi.md#delete_resources_certificate) | **DELETE** /api/v2/resources/certificates/{certificateId} | +*ApplicationResourcesApi* | [**delete_resources_custom_fuzzing_script**](docs/ApplicationResourcesApi.md#delete_resources_custom_fuzzing_script) | **DELETE** /api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId} | *ApplicationResourcesApi* | [**delete_resources_flow_library**](docs/ApplicationResourcesApi.md#delete_resources_flow_library) | **DELETE** /api/v2/resources/flow-library/{flowLibraryId} | *ApplicationResourcesApi* | [**delete_resources_global_playlist**](docs/ApplicationResourcesApi.md#delete_resources_global_playlist) | **DELETE** /api/v2/resources/global-playlists/{globalPlaylistId} | *ApplicationResourcesApi* | [**delete_resources_http_library**](docs/ApplicationResourcesApi.md#delete_resources_http_library) | **DELETE** /api/v2/resources/http-library/{httpLibraryId} | @@ -150,6 +151,10 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_certificate_content_file**](docs/ApplicationResourcesApi.md#get_resources_certificate_content_file) | **GET** /api/v2/resources/certificates/{certificateId}/contentFile | *ApplicationResourcesApi* | [**get_resources_certificates**](docs/ApplicationResourcesApi.md#get_resources_certificates) | **GET** /api/v2/resources/certificates | *ApplicationResourcesApi* | [**get_resources_certificates_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_certificates_upload_file_result) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId}/result | +*ApplicationResourcesApi* | [**get_resources_custom_fuzzing_script_by_id**](docs/ApplicationResourcesApi.md#get_resources_custom_fuzzing_script_by_id) | **GET** /api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId} | +*ApplicationResourcesApi* | [**get_resources_custom_fuzzing_script_content_file**](docs/ApplicationResourcesApi.md#get_resources_custom_fuzzing_script_content_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}/contentFile | +*ApplicationResourcesApi* | [**get_resources_custom_fuzzing_scripts**](docs/ApplicationResourcesApi.md#get_resources_custom_fuzzing_scripts) | **GET** /api/v2/resources/custom-fuzzing-scripts | +*ApplicationResourcesApi* | [**get_resources_custom_fuzzing_scripts_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_custom_fuzzing_scripts_upload_file_result) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_flow_library**](docs/ApplicationResourcesApi.md#get_resources_flow_library) | **GET** /api/v2/resources/flow-library | *ApplicationResourcesApi* | [**get_resources_flow_library_by_id**](docs/ApplicationResourcesApi.md#get_resources_flow_library_by_id) | **GET** /api/v2/resources/flow-library/{flowLibraryId} | *ApplicationResourcesApi* | [**get_resources_flow_library_content_file**](docs/ApplicationResourcesApi.md#get_resources_flow_library_content_file) | **GET** /api/v2/resources/flow-library/{flowLibraryId}/contentFile | @@ -218,7 +223,9 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**poll_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#poll_resources_captures_batch_delete) | **GET** /api/v2/resources/captures/operations/batch-delete/{id} | *ApplicationResourcesApi* | [**poll_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_captures_upload_file) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId} | *ApplicationResourcesApi* | [**poll_resources_certificates_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_certificates_upload_file) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} | +*ApplicationResourcesApi* | [**poll_resources_config_export_user_defined_apps**](docs/ApplicationResourcesApi.md#poll_resources_config_export_user_defined_apps) | **GET** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id} | *ApplicationResourcesApi* | [**poll_resources_create_app**](docs/ApplicationResourcesApi.md#poll_resources_create_app) | **GET** /api/v2/resources/operations/create-app/{id} | +*ApplicationResourcesApi* | [**poll_resources_custom_fuzzing_scripts_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_custom_fuzzing_scripts_upload_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId} | *ApplicationResourcesApi* | [**poll_resources_edit_app**](docs/ApplicationResourcesApi.md#poll_resources_edit_app) | **GET** /api/v2/resources/operations/edit-app/{id} | *ApplicationResourcesApi* | [**poll_resources_find_param_matches**](docs/ApplicationResourcesApi.md#poll_resources_find_param_matches) | **GET** /api/v2/resources/operations/find-param-matches/{id} | *ApplicationResourcesApi* | [**poll_resources_flow_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_flow_library_upload_file) | **GET** /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} | @@ -245,7 +252,9 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**start_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | *ApplicationResourcesApi* | [**start_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_certificates_upload_file**](docs/ApplicationResourcesApi.md#start_resources_certificates_upload_file) | **POST** /api/v2/resources/certificates/operations/uploadFile | +*ApplicationResourcesApi* | [**start_resources_config_export_user_defined_apps**](docs/ApplicationResourcesApi.md#start_resources_config_export_user_defined_apps) | **POST** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps | *ApplicationResourcesApi* | [**start_resources_create_app**](docs/ApplicationResourcesApi.md#start_resources_create_app) | **POST** /api/v2/resources/operations/create-app | +*ApplicationResourcesApi* | [**start_resources_custom_fuzzing_scripts_upload_file**](docs/ApplicationResourcesApi.md#start_resources_custom_fuzzing_scripts_upload_file) | **POST** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_edit_app**](docs/ApplicationResourcesApi.md#start_resources_edit_app) | **POST** /api/v2/resources/operations/edit-app | *ApplicationResourcesApi* | [**start_resources_find_param_matches**](docs/ApplicationResourcesApi.md#start_resources_find_param_matches) | **POST** /api/v2/resources/operations/find-param-matches | *ApplicationResourcesApi* | [**start_resources_flow_library_upload_file**](docs/ApplicationResourcesApi.md#start_resources_flow_library_upload_file) | **POST** /api/v2/resources/flow-library/operations/uploadFile | @@ -356,8 +365,8 @@ Class | Method | HTTP request | Description *SessionsApi* | [**patch_session_meta**](docs/SessionsApi.md#patch_session_meta) | **PATCH** /api/v2/sessions/{sessionId}/meta/{metaId} | *SessionsApi* | [**patch_session_test**](docs/SessionsApi.md#patch_session_test) | **PATCH** /api/v2/sessions/{sessionId}/test | *SessionsApi* | [**poll_config_add_applications**](docs/SessionsApi.md#poll_config_add_applications) | **GET** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id} | -*SessionsApi* | [**poll_config_save**](docs/SessionsApi.md#poll_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | *SessionsApi* | [**poll_session_config_granular_stats_default_dashboards**](docs/SessionsApi.md#poll_session_config_granular_stats_default_dashboards) | **GET** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} | +*SessionsApi* | [**poll_session_config_save**](docs/SessionsApi.md#poll_session_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | *SessionsApi* | [**poll_session_load_config**](docs/SessionsApi.md#poll_session_load_config) | **GET** /api/v2/sessions/{sessionId}/operations/loadConfig/{id} | *SessionsApi* | [**poll_session_prepare_test**](docs/SessionsApi.md#poll_session_prepare_test) | **GET** /api/v2/sessions/{sessionId}/operations/prepareTest/{id} | *SessionsApi* | [**poll_session_test_end**](docs/SessionsApi.md#poll_session_test_end) | **GET** /api/v2/sessions/{sessionId}/operations/testEnd/{id} | @@ -454,6 +463,7 @@ Class | Method | HTTP request | Description - [ActivationCodeInfo](docs/ActivationCodeInfo.md) - [ActivationCodeListRequest](docs/ActivationCodeListRequest.md) - [ActivationCodeRequest](docs/ActivationCodeRequest.md) + - [AddActionInfo](docs/AddActionInfo.md) - [AddInput](docs/AddInput.md) - [AdvancedSettings](docs/AdvancedSettings.md) - [Agent](docs/Agent.md) @@ -487,12 +497,15 @@ Class | Method | HTTP request | Description - [AsyncOperationResponse](docs/AsyncOperationResponse.md) - [Attack](docs/Attack.md) - [AttackAction](docs/AttackAction.md) + - [AttackMetadata](docs/AttackMetadata.md) + - [AttackMetadataKeywordsInner](docs/AttackMetadataKeywordsInner.md) - [AttackObjectivesAndTimeline](docs/AttackObjectivesAndTimeline.md) - [AttackProfile](docs/AttackProfile.md) - [AttackTimelineSegment](docs/AttackTimelineSegment.md) - [AttackTrack](docs/AttackTrack.md) - [AuthMethodType](docs/AuthMethodType.md) - [AuthProfile](docs/AuthProfile.md) + - [AuthProfileMetadata](docs/AuthProfileMetadata.md) - [AuthSettings](docs/AuthSettings.md) - [Authenticate200Response](docs/Authenticate200Response.md) - [AuthenticationSettings](docs/AuthenticationSettings.md) @@ -519,7 +532,6 @@ Class | Method | HTTP request | Description - [ConfigCategory](docs/ConfigCategory.md) - [ConfigId](docs/ConfigId.md) - [ConfigMetadata](docs/ConfigMetadata.md) - - [ConfigMetadataConfigDataValue](docs/ConfigMetadataConfigDataValue.md) - [ConfigValidation](docs/ConfigValidation.md) - [Conflict](docs/Conflict.md) - [Connection](docs/Connection.md) @@ -529,6 +541,7 @@ Class | Method | HTTP request | Description - [CountedFeatureConsumer](docs/CountedFeatureConsumer.md) - [CountedFeatureStats](docs/CountedFeatureStats.md) - [CreateAppOperation](docs/CreateAppOperation.md) + - [CreateAppOrAttackOperationInput](docs/CreateAppOrAttackOperationInput.md) - [CustomDashboards](docs/CustomDashboards.md) - [CustomImportHandler](docs/CustomImportHandler.md) - [CustomStat](docs/CustomStat.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 69a1061..ee40fe3 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -62,6 +62,7 @@ from cyperf.models.activation_code_info import ActivationCodeInfo from cyperf.models.activation_code_list_request import ActivationCodeListRequest from cyperf.models.activation_code_request import ActivationCodeRequest +from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent @@ -95,12 +96,15 @@ from cyperf.models.async_operation_response import AsyncOperationResponse from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction +from cyperf.models.attack_metadata import AttackMetadata +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.attack_profile import AttackProfile from cyperf.models.attack_timeline_segment import AttackTimelineSegment from cyperf.models.attack_track import AttackTrack from cyperf.models.auth_method_type import AuthMethodType from cyperf.models.auth_profile import AuthProfile +from cyperf.models.auth_profile_metadata import AuthProfileMetadata from cyperf.models.auth_settings import AuthSettings from cyperf.models.authenticate200_response import Authenticate200Response from cyperf.models.authentication_settings import AuthenticationSettings @@ -127,7 +131,6 @@ from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId from cyperf.models.config_metadata import ConfigMetadata -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue from cyperf.models.config_validation import ConfigValidation from cyperf.models.conflict import Conflict from cyperf.models.connection import Connection @@ -137,6 +140,7 @@ from cyperf.models.counted_feature_consumer import CountedFeatureConsumer from cyperf.models.counted_feature_stats import CountedFeatureStats from cyperf.models.create_app_operation import CreateAppOperation +from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.custom_import_handler import CustomImportHandler from cyperf.models.custom_stat import CustomStat diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index 65571ee..b415caa 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -575,9 +575,9 @@ def _delete_resources_certificate_serialize( @validate_call - def delete_resources_flow_library( + def delete_resources_custom_fuzzing_script( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -591,12 +591,12 @@ def delete_resources_flow_library( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """delete_resources_flow_library + """delete_resources_custom_fuzzing_script - Delete a particular flow library file. + Delete a particular custom fuzzing script. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -619,8 +619,8 @@ def delete_resources_flow_library( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_flow_library_serialize( - flow_library_id=flow_library_id, + _param = self._delete_resources_custom_fuzzing_script_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -640,9 +640,9 @@ def delete_resources_flow_library( @validate_call - def delete_resources_flow_library_with_http_info( + def delete_resources_custom_fuzzing_script_with_http_info( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -656,12 +656,12 @@ def delete_resources_flow_library_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """delete_resources_flow_library + """delete_resources_custom_fuzzing_script - Delete a particular flow library file. + Delete a particular custom fuzzing script. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -684,8 +684,8 @@ def delete_resources_flow_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_flow_library_serialize( - flow_library_id=flow_library_id, + _param = self._delete_resources_custom_fuzzing_script_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -705,9 +705,9 @@ def delete_resources_flow_library_with_http_info( @validate_call - def delete_resources_flow_library_without_preload_content( + def delete_resources_custom_fuzzing_script_without_preload_content( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -721,12 +721,12 @@ def delete_resources_flow_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_resources_flow_library + """delete_resources_custom_fuzzing_script - Delete a particular flow library file. + Delete a particular custom fuzzing script. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -749,8 +749,8 @@ def delete_resources_flow_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_flow_library_serialize( - flow_library_id=flow_library_id, + _param = self._delete_resources_custom_fuzzing_script_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -769,9 +769,9 @@ def delete_resources_flow_library_without_preload_content( ) - def _delete_resources_flow_library_serialize( + def _delete_resources_custom_fuzzing_script_serialize( self, - flow_library_id, + custom_fuzzing_script_id, _request_auth, _content_type, _headers, @@ -791,8 +791,8 @@ def _delete_resources_flow_library_serialize( _body_params: Optional[bytes] = None # process the path parameters - if flow_library_id is not None: - _path_params['flowLibraryId'] = flow_library_id + if custom_fuzzing_script_id is not None: + _path_params['customFuzzingScriptId'] = custom_fuzzing_script_id # process the query parameters # process the header parameters # process the form parameters @@ -816,7 +816,7 @@ def _delete_resources_flow_library_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/api/v2/resources/flow-library/{flowLibraryId}', + resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -833,9 +833,9 @@ def _delete_resources_flow_library_serialize( @validate_call - def delete_resources_global_playlist( + def delete_resources_flow_library( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -849,12 +849,12 @@ def delete_resources_global_playlist( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """delete_resources_global_playlist + """delete_resources_flow_library - Delete a particular global playlists file. + Delete a particular flow library file. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -877,8 +877,8 @@ def delete_resources_global_playlist( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_global_playlist_serialize( - global_playlist_id=global_playlist_id, + _param = self._delete_resources_flow_library_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -898,9 +898,9 @@ def delete_resources_global_playlist( @validate_call - def delete_resources_global_playlist_with_http_info( + def delete_resources_flow_library_with_http_info( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -914,12 +914,12 @@ def delete_resources_global_playlist_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """delete_resources_global_playlist + """delete_resources_flow_library - Delete a particular global playlists file. + Delete a particular flow library file. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -942,8 +942,8 @@ def delete_resources_global_playlist_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_global_playlist_serialize( - global_playlist_id=global_playlist_id, + _param = self._delete_resources_flow_library_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -963,9 +963,9 @@ def delete_resources_global_playlist_with_http_info( @validate_call - def delete_resources_global_playlist_without_preload_content( + def delete_resources_flow_library_without_preload_content( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -979,12 +979,12 @@ def delete_resources_global_playlist_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_resources_global_playlist + """delete_resources_flow_library - Delete a particular global playlists file. + Delete a particular flow library file. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1007,8 +1007,8 @@ def delete_resources_global_playlist_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_global_playlist_serialize( - global_playlist_id=global_playlist_id, + _param = self._delete_resources_flow_library_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1027,9 +1027,9 @@ def delete_resources_global_playlist_without_preload_content( ) - def _delete_resources_global_playlist_serialize( + def _delete_resources_flow_library_serialize( self, - global_playlist_id, + flow_library_id, _request_auth, _content_type, _headers, @@ -1049,8 +1049,8 @@ def _delete_resources_global_playlist_serialize( _body_params: Optional[bytes] = None # process the path parameters - if global_playlist_id is not None: - _path_params['globalPlaylistId'] = global_playlist_id + if flow_library_id is not None: + _path_params['flowLibraryId'] = flow_library_id # process the query parameters # process the header parameters # process the form parameters @@ -1074,7 +1074,7 @@ def _delete_resources_global_playlist_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}', + resource_path='/api/v2/resources/flow-library/{flowLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1091,9 +1091,9 @@ def _delete_resources_global_playlist_serialize( @validate_call - def delete_resources_http_library( + def delete_resources_global_playlist( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1107,12 +1107,12 @@ def delete_resources_http_library( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """delete_resources_http_library + """delete_resources_global_playlist - Delete a particular http library file. + Delete a particular global playlists file. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1135,8 +1135,8 @@ def delete_resources_http_library( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_http_library_serialize( - http_library_id=http_library_id, + _param = self._delete_resources_global_playlist_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1156,9 +1156,9 @@ def delete_resources_http_library( @validate_call - def delete_resources_http_library_with_http_info( + def delete_resources_global_playlist_with_http_info( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1172,12 +1172,12 @@ def delete_resources_http_library_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """delete_resources_http_library + """delete_resources_global_playlist - Delete a particular http library file. + Delete a particular global playlists file. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1200,8 +1200,8 @@ def delete_resources_http_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_http_library_serialize( - http_library_id=http_library_id, + _param = self._delete_resources_global_playlist_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1221,9 +1221,9 @@ def delete_resources_http_library_with_http_info( @validate_call - def delete_resources_http_library_without_preload_content( + def delete_resources_global_playlist_without_preload_content( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1237,12 +1237,12 @@ def delete_resources_http_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_resources_http_library + """delete_resources_global_playlist - Delete a particular http library file. + Delete a particular global playlists file. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1265,8 +1265,8 @@ def delete_resources_http_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_http_library_serialize( - http_library_id=http_library_id, + _param = self._delete_resources_global_playlist_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1285,9 +1285,9 @@ def delete_resources_http_library_without_preload_content( ) - def _delete_resources_http_library_serialize( + def _delete_resources_global_playlist_serialize( self, - http_library_id, + global_playlist_id, _request_auth, _content_type, _headers, @@ -1307,8 +1307,8 @@ def _delete_resources_http_library_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_library_id is not None: - _path_params['httpLibraryId'] = http_library_id + if global_playlist_id is not None: + _path_params['globalPlaylistId'] = global_playlist_id # process the query parameters # process the header parameters # process the form parameters @@ -1332,7 +1332,7 @@ def _delete_resources_http_library_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/api/v2/resources/http-library/{httpLibraryId}', + resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1349,9 +1349,9 @@ def _delete_resources_http_library_serialize( @validate_call - def delete_resources_media_file( + def delete_resources_http_library( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1365,12 +1365,12 @@ def delete_resources_media_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """delete_resources_media_file + """delete_resources_http_library - Delete a particular media file. + Delete a particular http library file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1393,8 +1393,8 @@ def delete_resources_media_file( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_media_file_serialize( - media_file_id=media_file_id, + _param = self._delete_resources_http_library_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1414,9 +1414,9 @@ def delete_resources_media_file( @validate_call - def delete_resources_media_file_with_http_info( + def delete_resources_http_library_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1430,12 +1430,12 @@ def delete_resources_media_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """delete_resources_media_file + """delete_resources_http_library - Delete a particular media file. + Delete a particular http library file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1458,8 +1458,8 @@ def delete_resources_media_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_media_file_serialize( - media_file_id=media_file_id, + _param = self._delete_resources_http_library_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1479,9 +1479,9 @@ def delete_resources_media_file_with_http_info( @validate_call - def delete_resources_media_file_without_preload_content( + def delete_resources_http_library_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1495,12 +1495,12 @@ def delete_resources_media_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_resources_media_file + """delete_resources_http_library - Delete a particular media file. + Delete a particular http library file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1523,8 +1523,8 @@ def delete_resources_media_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_media_file_serialize( - media_file_id=media_file_id, + _param = self._delete_resources_http_library_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1543,9 +1543,9 @@ def delete_resources_media_file_without_preload_content( ) - def _delete_resources_media_file_serialize( + def _delete_resources_http_library_serialize( self, - media_file_id, + http_library_id, _request_auth, _content_type, _headers, @@ -1565,8 +1565,8 @@ def _delete_resources_media_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_file_id is not None: - _path_params['mediaFileId'] = media_file_id + if http_library_id is not None: + _path_params['httpLibraryId'] = http_library_id # process the query parameters # process the header parameters # process the form parameters @@ -1590,7 +1590,7 @@ def _delete_resources_media_file_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/api/v2/resources/media-files/{mediaFileId}', + resource_path='/api/v2/resources/http-library/{httpLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1607,9 +1607,9 @@ def _delete_resources_media_file_serialize( @validate_call - def delete_resources_media_library( + def delete_resources_media_file( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1623,12 +1623,12 @@ def delete_resources_media_library( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """delete_resources_media_library + """delete_resources_media_file - Delete a particular media library file. + Delete a particular media file. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1651,8 +1651,8 @@ def delete_resources_media_library( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_media_library_serialize( - media_library_id=media_library_id, + _param = self._delete_resources_media_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1672,9 +1672,9 @@ def delete_resources_media_library( @validate_call - def delete_resources_media_library_with_http_info( + def delete_resources_media_file_with_http_info( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1688,12 +1688,12 @@ def delete_resources_media_library_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """delete_resources_media_library + """delete_resources_media_file - Delete a particular media library file. + Delete a particular media file. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1716,8 +1716,8 @@ def delete_resources_media_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_media_library_serialize( - media_library_id=media_library_id, + _param = self._delete_resources_media_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1737,9 +1737,9 @@ def delete_resources_media_library_with_http_info( @validate_call - def delete_resources_media_library_without_preload_content( + def delete_resources_media_file_without_preload_content( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1753,12 +1753,12 @@ def delete_resources_media_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_resources_media_library + """delete_resources_media_file - Delete a particular media library file. + Delete a particular media file. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1781,8 +1781,8 @@ def delete_resources_media_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_resources_media_library_serialize( - media_library_id=media_library_id, + _param = self._delete_resources_media_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1801,9 +1801,9 @@ def delete_resources_media_library_without_preload_content( ) - def _delete_resources_media_library_serialize( + def _delete_resources_media_file_serialize( self, - media_library_id, + media_file_id, _request_auth, _content_type, _headers, @@ -1823,8 +1823,266 @@ def _delete_resources_media_library_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_library_id is not None: - _path_params['mediaLibraryId'] = media_library_id + if media_file_id is not None: + _path_params['mediaFileId'] = media_file_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v2/resources/media-files/{mediaFileId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_resources_media_library( + self, + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """delete_resources_media_library + + Delete a particular media library file. + + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_resources_media_library_serialize( + media_library_id=media_library_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def delete_resources_media_library_with_http_info( + self, + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """delete_resources_media_library + + Delete a particular media library file. + + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_resources_media_library_serialize( + media_library_id=media_library_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def delete_resources_media_library_without_preload_content( + self, + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_resources_media_library + + Delete a particular media library file. + + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_resources_media_library_serialize( + media_library_id=media_library_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _delete_resources_media_library_serialize( + self, + media_library_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if media_library_id is not None: + _path_params['mediaLibraryId'] = media_library_id # process the query parameters # process the header parameters # process the form parameters @@ -4205,6 +4463,7 @@ def delete_resources_user_defined_app( ) -> None: """delete_resources_user_defined_app + Delete a CyPerf application that was created by the user. :param user_defined_app_id: The ID of the user defined app. (required) :type user_defined_app_id: str @@ -4240,6 +4499,9 @@ def delete_resources_user_defined_app( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4268,6 +4530,7 @@ def delete_resources_user_defined_app_with_http_info( ) -> ApiResponse[None]: """delete_resources_user_defined_app + Delete a CyPerf application that was created by the user. :param user_defined_app_id: The ID of the user defined app. (required) :type user_defined_app_id: str @@ -4303,6 +4566,9 @@ def delete_resources_user_defined_app_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4331,6 +4597,7 @@ def delete_resources_user_defined_app_without_preload_content( ) -> RESTResponseType: """delete_resources_user_defined_app + Delete a CyPerf application that was created by the user. :param user_defined_app_id: The ID of the user defined app. (required) :type user_defined_app_id: str @@ -4366,6 +4633,9 @@ def delete_resources_user_defined_app_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9432,10 +9702,9 @@ def _get_resources_certificates_upload_file_result_serialize( @validate_call - def get_resources_flow_library( + def get_resources_custom_fuzzing_script_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9448,15 +9717,13 @@ def get_resources_flow_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_flow_library + ) -> GenericFile: + """get_resources_custom_fuzzing_script_by_id - Get all the available flow library files. + Get a particular custom fuzzing script. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9479,9 +9746,8 @@ def get_resources_flow_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9489,8 +9755,9 @@ def get_resources_flow_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9501,10 +9768,9 @@ def get_resources_flow_library( @validate_call - def get_resources_flow_library_with_http_info( + def get_resources_custom_fuzzing_script_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9517,15 +9783,13 @@ def get_resources_flow_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_flow_library + ) -> ApiResponse[GenericFile]: + """get_resources_custom_fuzzing_script_by_id - Get all the available flow library files. + Get a particular custom fuzzing script. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9548,9 +9812,8 @@ def get_resources_flow_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9558,8 +9821,9 @@ def get_resources_flow_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9570,10 +9834,9 @@ def get_resources_flow_library_with_http_info( @validate_call - def get_resources_flow_library_without_preload_content( + def get_resources_custom_fuzzing_script_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9587,14 +9850,12 @@ def get_resources_flow_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library + """get_resources_custom_fuzzing_script_by_id - Get all the available flow library files. + Get a particular custom fuzzing script. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9617,9 +9878,8 @@ def get_resources_flow_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9627,8 +9887,9 @@ def get_resources_flow_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9638,10 +9899,9 @@ def get_resources_flow_library_without_preload_content( ) - def _get_resources_flow_library_serialize( + def _get_resources_custom_fuzzing_script_by_id_serialize( self, - take, - skip, + custom_fuzzing_script_id, _request_auth, _content_type, _headers, @@ -9661,15 +9921,9 @@ def _get_resources_flow_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if custom_fuzzing_script_id is not None: + _path_params['customFuzzingScriptId'] = custom_fuzzing_script_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -9692,7 +9946,7 @@ def _get_resources_flow_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library', + resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9709,9 +9963,9 @@ def _get_resources_flow_library_serialize( @validate_call - def get_resources_flow_library_by_id( + def get_resources_custom_fuzzing_script_content_file( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9724,13 +9978,13 @@ def get_resources_flow_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_flow_library_by_id + ) -> bytearray: + """get_resources_custom_fuzzing_script_content_file - Get a particular flow library file. + Get the content of a particular custom fuzzing script file. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9753,8 +10007,8 @@ def get_resources_flow_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9762,10 +10016,8 @@ def get_resources_flow_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9775,9 +10027,9 @@ def get_resources_flow_library_by_id( @validate_call - def get_resources_flow_library_by_id_with_http_info( + def get_resources_custom_fuzzing_script_content_file_with_http_info( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9790,13 +10042,13 @@ def get_resources_flow_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_flow_library_by_id + ) -> ApiResponse[bytearray]: + """get_resources_custom_fuzzing_script_content_file - Get a particular flow library file. + Get the content of a particular custom fuzzing script file. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9819,8 +10071,8 @@ def get_resources_flow_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9828,10 +10080,8 @@ def get_resources_flow_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9841,9 +10091,9 @@ def get_resources_flow_library_by_id_with_http_info( @validate_call - def get_resources_flow_library_by_id_without_preload_content( + def get_resources_custom_fuzzing_script_content_file_without_preload_content( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9857,12 +10107,12 @@ def get_resources_flow_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_by_id + """get_resources_custom_fuzzing_script_content_file - Get a particular flow library file. + Get the content of a particular custom fuzzing script file. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9885,8 +10135,8 @@ def get_resources_flow_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9894,10 +10144,8 @@ def get_resources_flow_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9906,9 +10154,9 @@ def get_resources_flow_library_by_id_without_preload_content( ) - def _get_resources_flow_library_by_id_serialize( + def _get_resources_custom_fuzzing_script_content_file_serialize( self, - flow_library_id, + custom_fuzzing_script_id, _request_auth, _content_type, _headers, @@ -9928,8 +10176,8 @@ def _get_resources_flow_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if flow_library_id is not None: - _path_params['flowLibraryId'] = flow_library_id + if custom_fuzzing_script_id is not None: + _path_params['customFuzzingScriptId'] = custom_fuzzing_script_id # process the query parameters # process the header parameters # process the form parameters @@ -9940,6 +10188,7 @@ def _get_resources_flow_library_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -9953,7 +10202,7 @@ def _get_resources_flow_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/{flowLibraryId}', + resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9970,9 +10219,10 @@ def _get_resources_flow_library_by_id_serialize( @validate_call - def get_resources_flow_library_content_file( + def get_resources_custom_fuzzing_scripts( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9985,13 +10235,15 @@ def get_resources_flow_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_flow_library_content_file + ) -> GetResourcesCertificates200Response: + """get_resources_custom_fuzzing_scripts - Get the content of a particular flow library file. + Get all the available custom fuzzing scripts. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10014,8 +10266,9 @@ def get_resources_flow_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10023,8 +10276,9 @@ def get_resources_flow_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10034,9 +10288,10 @@ def get_resources_flow_library_content_file( @validate_call - def get_resources_flow_library_content_file_with_http_info( + def get_resources_custom_fuzzing_scripts_with_http_info( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10049,13 +10304,15 @@ def get_resources_flow_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_flow_library_content_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_custom_fuzzing_scripts - Get the content of a particular flow library file. + Get all the available custom fuzzing scripts. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10078,8 +10335,9 @@ def get_resources_flow_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10087,8 +10345,9 @@ def get_resources_flow_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10098,9 +10357,10 @@ def get_resources_flow_library_content_file_with_http_info( @validate_call - def get_resources_flow_library_content_file_without_preload_content( + def get_resources_custom_fuzzing_scripts_without_preload_content( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10114,12 +10374,14 @@ def get_resources_flow_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_content_file + """get_resources_custom_fuzzing_scripts - Get the content of a particular flow library file. + Get all the available custom fuzzing scripts. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10142,8 +10404,9 @@ def get_resources_flow_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10151,8 +10414,9 @@ def get_resources_flow_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10161,9 +10425,10 @@ def get_resources_flow_library_content_file_without_preload_content( ) - def _get_resources_flow_library_content_file_serialize( + def _get_resources_custom_fuzzing_scripts_serialize( self, - flow_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -10183,9 +10448,15 @@ def _get_resources_flow_library_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if flow_library_id is not None: - _path_params['flowLibraryId'] = flow_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -10195,7 +10466,6 @@ def _get_resources_flow_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -10209,7 +10479,7 @@ def _get_resources_flow_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/{flowLibraryId}/contentFile', + resource_path='/api/v2/resources/custom-fuzzing-scripts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10226,7 +10496,7 @@ def _get_resources_flow_library_content_file_serialize( @validate_call - def get_resources_flow_library_upload_file_result( + def get_resources_custom_fuzzing_scripts_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -10242,7 +10512,7 @@ def get_resources_flow_library_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_flow_library_upload_file_result + """get_resources_custom_fuzzing_scripts_upload_file_result Get the result of the upload file operation. @@ -10270,7 +10540,7 @@ def get_resources_flow_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10291,7 +10561,7 @@ def get_resources_flow_library_upload_file_result( @validate_call - def get_resources_flow_library_upload_file_result_with_http_info( + def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -10307,7 +10577,7 @@ def get_resources_flow_library_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_flow_library_upload_file_result + """get_resources_custom_fuzzing_scripts_upload_file_result Get the result of the upload file operation. @@ -10335,7 +10605,7 @@ def get_resources_flow_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10356,7 +10626,7 @@ def get_resources_flow_library_upload_file_result_with_http_info( @validate_call - def get_resources_flow_library_upload_file_result_without_preload_content( + def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -10372,7 +10642,7 @@ def get_resources_flow_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_upload_file_result + """get_resources_custom_fuzzing_scripts_upload_file_result Get the result of the upload file operation. @@ -10400,7 +10670,7 @@ def get_resources_flow_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10420,7 +10690,7 @@ def get_resources_flow_library_upload_file_result_without_preload_content( ) - def _get_resources_flow_library_upload_file_result_serialize( + def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -10467,7 +10737,7 @@ def _get_resources_flow_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10484,9 +10754,10 @@ def _get_resources_flow_library_upload_file_result_serialize( @validate_call - def get_resources_global_playlist_by_id( + def get_resources_flow_library( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10499,13 +10770,15 @@ def get_resources_global_playlist_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_global_playlist_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_flow_library - Get a particular global playlists archive file. + Get all the available flow library files. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10528,8 +10801,9 @@ def get_resources_global_playlist_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10537,9 +10811,8 @@ def get_resources_global_playlist_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10550,9 +10823,10 @@ def get_resources_global_playlist_by_id( @validate_call - def get_resources_global_playlist_by_id_with_http_info( + def get_resources_flow_library_with_http_info( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10565,13 +10839,15 @@ def get_resources_global_playlist_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_global_playlist_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_flow_library - Get a particular global playlists archive file. + Get all the available flow library files. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10594,8 +10870,9 @@ def get_resources_global_playlist_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10603,9 +10880,8 @@ def get_resources_global_playlist_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10616,9 +10892,10 @@ def get_resources_global_playlist_by_id_with_http_info( @validate_call - def get_resources_global_playlist_by_id_without_preload_content( + def get_resources_flow_library_without_preload_content( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10632,12 +10909,14 @@ def get_resources_global_playlist_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlist_by_id + """get_resources_flow_library - Get a particular global playlists archive file. + Get all the available flow library files. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10660,8 +10939,9 @@ def get_resources_global_playlist_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10669,9 +10949,8 @@ def get_resources_global_playlist_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10681,9 +10960,10 @@ def get_resources_global_playlist_by_id_without_preload_content( ) - def _get_resources_global_playlist_by_id_serialize( + def _get_resources_flow_library_serialize( self, - global_playlist_id, + take, + skip, _request_auth, _content_type, _headers, @@ -10703,9 +10983,15 @@ def _get_resources_global_playlist_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if global_playlist_id is not None: - _path_params['globalPlaylistId'] = global_playlist_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -10728,7 +11014,7 @@ def _get_resources_global_playlist_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}', + resource_path='/api/v2/resources/flow-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10745,9 +11031,9 @@ def _get_resources_global_playlist_by_id_serialize( @validate_call - def get_resources_global_playlist_content_file( + def get_resources_flow_library_by_id( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10760,13 +11046,13 @@ def get_resources_global_playlist_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_global_playlist_content_file + ) -> GenericFile: + """get_resources_flow_library_by_id - Get the content of a particular global playlists archive file. + Get a particular flow library file. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10789,8 +11075,8 @@ def get_resources_global_playlist_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_by_id_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10798,8 +11084,10 @@ def get_resources_global_playlist_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10809,9 +11097,9 @@ def get_resources_global_playlist_content_file( @validate_call - def get_resources_global_playlist_content_file_with_http_info( + def get_resources_flow_library_by_id_with_http_info( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10824,13 +11112,13 @@ def get_resources_global_playlist_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_global_playlist_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_flow_library_by_id - Get the content of a particular global playlists archive file. + Get a particular flow library file. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10853,8 +11141,8 @@ def get_resources_global_playlist_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_by_id_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10862,8 +11150,10 @@ def get_resources_global_playlist_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10873,9 +11163,9 @@ def get_resources_global_playlist_content_file_with_http_info( @validate_call - def get_resources_global_playlist_content_file_without_preload_content( + def get_resources_flow_library_by_id_without_preload_content( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10889,12 +11179,12 @@ def get_resources_global_playlist_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlist_content_file + """get_resources_flow_library_by_id - Get the content of a particular global playlists archive file. + Get a particular flow library file. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10917,8 +11207,8 @@ def get_resources_global_playlist_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_by_id_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10926,8 +11216,10 @@ def get_resources_global_playlist_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10936,9 +11228,9 @@ def get_resources_global_playlist_content_file_without_preload_content( ) - def _get_resources_global_playlist_content_file_serialize( + def _get_resources_flow_library_by_id_serialize( self, - global_playlist_id, + flow_library_id, _request_auth, _content_type, _headers, @@ -10958,8 +11250,8 @@ def _get_resources_global_playlist_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if global_playlist_id is not None: - _path_params['globalPlaylistId'] = global_playlist_id + if flow_library_id is not None: + _path_params['flowLibraryId'] = flow_library_id # process the query parameters # process the header parameters # process the form parameters @@ -10970,7 +11262,6 @@ def _get_resources_global_playlist_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -10984,7 +11275,7 @@ def _get_resources_global_playlist_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}/contentFile', + resource_path='/api/v2/resources/flow-library/{flowLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11001,10 +11292,9 @@ def _get_resources_global_playlist_content_file_serialize( @validate_call - def get_resources_global_playlists( + def get_resources_flow_library_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11017,15 +11307,13 @@ def get_resources_global_playlists( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_global_playlists + ) -> bytearray: + """get_resources_flow_library_content_file - Get all the available global playlists files. + Get the content of a particular flow library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11048,9 +11336,8 @@ def get_resources_global_playlists( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11058,9 +11345,8 @@ def get_resources_global_playlists( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11070,10 +11356,9 @@ def get_resources_global_playlists( @validate_call - def get_resources_global_playlists_with_http_info( + def get_resources_flow_library_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11086,15 +11371,13 @@ def get_resources_global_playlists_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_global_playlists + ) -> ApiResponse[bytearray]: + """get_resources_flow_library_content_file - Get all the available global playlists files. + Get the content of a particular flow library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11117,9 +11400,8 @@ def get_resources_global_playlists_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11127,9 +11409,8 @@ def get_resources_global_playlists_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11139,10 +11420,9 @@ def get_resources_global_playlists_with_http_info( @validate_call - def get_resources_global_playlists_without_preload_content( + def get_resources_flow_library_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11156,14 +11436,12 @@ def get_resources_global_playlists_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlists + """get_resources_flow_library_content_file - Get all the available global playlists files. + Get the content of a particular flow library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11186,9 +11464,8 @@ def get_resources_global_playlists_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11196,9 +11473,8 @@ def get_resources_global_playlists_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11207,10 +11483,9 @@ def get_resources_global_playlists_without_preload_content( ) - def _get_resources_global_playlists_serialize( + def _get_resources_flow_library_content_file_serialize( self, - take, - skip, + flow_library_id, _request_auth, _content_type, _headers, @@ -11230,15 +11505,9 @@ def _get_resources_global_playlists_serialize( _body_params: Optional[bytes] = None # process the path parameters + if flow_library_id is not None: + _path_params['flowLibraryId'] = flow_library_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -11248,6 +11517,7 @@ def _get_resources_global_playlists_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -11261,7 +11531,7 @@ def _get_resources_global_playlists_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists', + resource_path='/api/v2/resources/flow-library/{flowLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11278,7 +11548,7 @@ def _get_resources_global_playlists_serialize( @validate_call - def get_resources_global_playlists_upload_file_result( + def get_resources_flow_library_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -11294,7 +11564,7 @@ def get_resources_global_playlists_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_global_playlists_upload_file_result + """get_resources_flow_library_upload_file_result Get the result of the upload file operation. @@ -11322,7 +11592,7 @@ def get_resources_global_playlists_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( + _param = self._get_resources_flow_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11343,7 +11613,7 @@ def get_resources_global_playlists_upload_file_result( @validate_call - def get_resources_global_playlists_upload_file_result_with_http_info( + def get_resources_flow_library_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -11359,7 +11629,7 @@ def get_resources_global_playlists_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_global_playlists_upload_file_result + """get_resources_flow_library_upload_file_result Get the result of the upload file operation. @@ -11387,7 +11657,7 @@ def get_resources_global_playlists_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( + _param = self._get_resources_flow_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11408,7 +11678,7 @@ def get_resources_global_playlists_upload_file_result_with_http_info( @validate_call - def get_resources_global_playlists_upload_file_result_without_preload_content( + def get_resources_flow_library_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -11424,7 +11694,7 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlists_upload_file_result + """get_resources_flow_library_upload_file_result Get the result of the upload file operation. @@ -11452,7 +11722,7 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( + _param = self._get_resources_flow_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11472,7 +11742,7 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( ) - def _get_resources_global_playlists_upload_file_result_serialize( + def _get_resources_flow_library_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -11519,7 +11789,7 @@ def _get_resources_global_playlists_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11536,10 +11806,9 @@ def _get_resources_global_playlists_upload_file_result_serialize( @validate_call - def get_resources_http_library( + def get_resources_global_playlist_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11552,15 +11821,13 @@ def get_resources_http_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_http_library + ) -> GenericFile: + """get_resources_global_playlist_by_id - Get all the available http library files. + Get a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11583,9 +11850,8 @@ def get_resources_http_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_by_id_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11593,8 +11859,9 @@ def get_resources_http_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11605,10 +11872,9 @@ def get_resources_http_library( @validate_call - def get_resources_http_library_with_http_info( + def get_resources_global_playlist_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11621,15 +11887,13 @@ def get_resources_http_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_http_library + ) -> ApiResponse[GenericFile]: + """get_resources_global_playlist_by_id - Get all the available http library files. + Get a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11652,9 +11916,8 @@ def get_resources_http_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_by_id_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11662,8 +11925,9 @@ def get_resources_http_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11674,10 +11938,9 @@ def get_resources_http_library_with_http_info( @validate_call - def get_resources_http_library_without_preload_content( + def get_resources_global_playlist_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11691,14 +11954,12 @@ def get_resources_http_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library + """get_resources_global_playlist_by_id - Get all the available http library files. + Get a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11721,9 +11982,8 @@ def get_resources_http_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_by_id_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11731,8 +11991,9 @@ def get_resources_http_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11742,10 +12003,9 @@ def get_resources_http_library_without_preload_content( ) - def _get_resources_http_library_serialize( + def _get_resources_global_playlist_by_id_serialize( self, - take, - skip, + global_playlist_id, _request_auth, _content_type, _headers, @@ -11765,15 +12025,9 @@ def _get_resources_http_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if global_playlist_id is not None: + _path_params['globalPlaylistId'] = global_playlist_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -11796,7 +12050,7 @@ def _get_resources_http_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library', + resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11813,9 +12067,9 @@ def _get_resources_http_library_serialize( @validate_call - def get_resources_http_library_by_id( + def get_resources_global_playlist_content_file( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11828,13 +12082,13 @@ def get_resources_http_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_http_library_by_id + ) -> bytearray: + """get_resources_global_playlist_content_file - Get a particular http library file. + Get the content of a particular global playlists archive file. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11857,8 +12111,8 @@ def get_resources_http_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11866,10 +12120,8 @@ def get_resources_http_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11879,9 +12131,9 @@ def get_resources_http_library_by_id( @validate_call - def get_resources_http_library_by_id_with_http_info( + def get_resources_global_playlist_content_file_with_http_info( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11894,13 +12146,13 @@ def get_resources_http_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_http_library_by_id + ) -> ApiResponse[bytearray]: + """get_resources_global_playlist_content_file - Get a particular http library file. + Get the content of a particular global playlists archive file. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11923,8 +12175,8 @@ def get_resources_http_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11932,10 +12184,8 @@ def get_resources_http_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11945,9 +12195,9 @@ def get_resources_http_library_by_id_with_http_info( @validate_call - def get_resources_http_library_by_id_without_preload_content( + def get_resources_global_playlist_content_file_without_preload_content( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11961,12 +12211,12 @@ def get_resources_http_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_by_id + """get_resources_global_playlist_content_file - Get a particular http library file. + Get the content of a particular global playlists archive file. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11989,8 +12239,8 @@ def get_resources_http_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11998,10 +12248,8 @@ def get_resources_http_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12010,9 +12258,9 @@ def get_resources_http_library_by_id_without_preload_content( ) - def _get_resources_http_library_by_id_serialize( + def _get_resources_global_playlist_content_file_serialize( self, - http_library_id, + global_playlist_id, _request_auth, _content_type, _headers, @@ -12032,8 +12280,8 @@ def _get_resources_http_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_library_id is not None: - _path_params['httpLibraryId'] = http_library_id + if global_playlist_id is not None: + _path_params['globalPlaylistId'] = global_playlist_id # process the query parameters # process the header parameters # process the form parameters @@ -12044,6 +12292,7 @@ def _get_resources_http_library_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -12057,7 +12306,7 @@ def _get_resources_http_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/{httpLibraryId}', + resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12074,9 +12323,10 @@ def _get_resources_http_library_by_id_serialize( @validate_call - def get_resources_http_library_content_file( + def get_resources_global_playlists( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12089,13 +12339,15 @@ def get_resources_http_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_http_library_content_file + ) -> GetResourcesCertificates200Response: + """get_resources_global_playlists - Get the content of a particular http library file. + Get all the available global playlists files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12118,8 +12370,9 @@ def get_resources_http_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( - http_library_id=http_library_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12127,8 +12380,9 @@ def get_resources_http_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12138,9 +12392,10 @@ def get_resources_http_library_content_file( @validate_call - def get_resources_http_library_content_file_with_http_info( + def get_resources_global_playlists_with_http_info( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12153,13 +12408,15 @@ def get_resources_http_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_http_library_content_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_global_playlists - Get the content of a particular http library file. + Get all the available global playlists files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12182,8 +12439,9 @@ def get_resources_http_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( - http_library_id=http_library_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12191,8 +12449,9 @@ def get_resources_http_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12202,9 +12461,10 @@ def get_resources_http_library_content_file_with_http_info( @validate_call - def get_resources_http_library_content_file_without_preload_content( + def get_resources_global_playlists_without_preload_content( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12218,12 +12478,14 @@ def get_resources_http_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_content_file + """get_resources_global_playlists - Get the content of a particular http library file. + Get all the available global playlists files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12246,8 +12508,9 @@ def get_resources_http_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( - http_library_id=http_library_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12255,8 +12518,9 @@ def get_resources_http_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12265,9 +12529,10 @@ def get_resources_http_library_content_file_without_preload_content( ) - def _get_resources_http_library_content_file_serialize( + def _get_resources_global_playlists_serialize( self, - http_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -12287,9 +12552,15 @@ def _get_resources_http_library_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_library_id is not None: - _path_params['httpLibraryId'] = http_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -12299,7 +12570,6 @@ def _get_resources_http_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -12313,7 +12583,7 @@ def _get_resources_http_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/{httpLibraryId}/contentFile', + resource_path='/api/v2/resources/global-playlists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12330,7 +12600,7 @@ def _get_resources_http_library_content_file_serialize( @validate_call - def get_resources_http_library_upload_file_result( + def get_resources_global_playlists_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -12346,7 +12616,7 @@ def get_resources_http_library_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_http_library_upload_file_result + """get_resources_global_playlists_upload_file_result Get the result of the upload file operation. @@ -12374,7 +12644,7 @@ def get_resources_http_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( + _param = self._get_resources_global_playlists_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12395,7 +12665,7 @@ def get_resources_http_library_upload_file_result( @validate_call - def get_resources_http_library_upload_file_result_with_http_info( + def get_resources_global_playlists_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -12411,7 +12681,7 @@ def get_resources_http_library_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_http_library_upload_file_result + """get_resources_global_playlists_upload_file_result Get the result of the upload file operation. @@ -12439,7 +12709,7 @@ def get_resources_http_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( + _param = self._get_resources_global_playlists_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12460,7 +12730,7 @@ def get_resources_http_library_upload_file_result_with_http_info( @validate_call - def get_resources_http_library_upload_file_result_without_preload_content( + def get_resources_global_playlists_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -12476,7 +12746,7 @@ def get_resources_http_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_upload_file_result + """get_resources_global_playlists_upload_file_result Get the result of the upload file operation. @@ -12504,7 +12774,7 @@ def get_resources_http_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( + _param = self._get_resources_global_playlists_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12524,7 +12794,7 @@ def get_resources_http_library_upload_file_result_without_preload_content( ) - def _get_resources_http_library_upload_file_result_serialize( + def _get_resources_global_playlists_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -12571,7 +12841,7 @@ def _get_resources_http_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12588,9 +12858,10 @@ def _get_resources_http_library_upload_file_result_serialize( @validate_call - def get_resources_http_profile_by_id( + def get_resources_http_library( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12603,13 +12874,15 @@ def get_resources_http_profile_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HTTPProfile: - """get_resources_http_profile_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_http_library - Get a particular HTTP profile. + Get all the available http library files. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12632,8 +12905,9 @@ def get_resources_http_profile_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12641,8 +12915,8 @@ def get_resources_http_profile_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12653,9 +12927,10 @@ def get_resources_http_profile_by_id( @validate_call - def get_resources_http_profile_by_id_with_http_info( + def get_resources_http_library_with_http_info( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12668,13 +12943,15 @@ def get_resources_http_profile_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HTTPProfile]: - """get_resources_http_profile_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_http_library - Get a particular HTTP profile. + Get all the available http library files. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12697,8 +12974,9 @@ def get_resources_http_profile_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12706,8 +12984,8 @@ def get_resources_http_profile_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12718,9 +12996,10 @@ def get_resources_http_profile_by_id_with_http_info( @validate_call - def get_resources_http_profile_by_id_without_preload_content( + def get_resources_http_library_without_preload_content( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12734,12 +13013,14 @@ def get_resources_http_profile_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_profile_by_id + """get_resources_http_library - Get a particular HTTP profile. + Get all the available http library files. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12762,8 +13043,9 @@ def get_resources_http_profile_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12771,8 +13053,8 @@ def get_resources_http_profile_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12782,9 +13064,10 @@ def get_resources_http_profile_by_id_without_preload_content( ) - def _get_resources_http_profile_by_id_serialize( + def _get_resources_http_library_serialize( self, - http_profile_id, + take, + skip, _request_auth, _content_type, _headers, @@ -12804,9 +13087,15 @@ def _get_resources_http_profile_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_profile_id is not None: - _path_params['httpProfileId'] = http_profile_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -12829,7 +13118,7 @@ def _get_resources_http_profile_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-profiles/{httpProfileId}', + resource_path='/api/v2/resources/http-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12846,10 +13135,9 @@ def _get_resources_http_profile_by_id_serialize( @validate_call - def get_resources_http_profiles( + def get_resources_http_library_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12862,15 +13150,13 @@ def get_resources_http_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesHttpProfiles200Response: - """get_resources_http_profiles + ) -> GenericFile: + """get_resources_http_library_by_id - Get all the available HTTP profiles. + Get a particular http library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12893,9 +13179,8 @@ def get_resources_http_profiles( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_library_by_id_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12903,7 +13188,9 @@ def get_resources_http_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12914,10 +13201,9 @@ def get_resources_http_profiles( @validate_call - def get_resources_http_profiles_with_http_info( + def get_resources_http_library_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12930,15 +13216,13 @@ def get_resources_http_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesHttpProfiles200Response]: - """get_resources_http_profiles + ) -> ApiResponse[GenericFile]: + """get_resources_http_library_by_id - Get all the available HTTP profiles. + Get a particular http library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12961,9 +13245,8 @@ def get_resources_http_profiles_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_library_by_id_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12971,7 +13254,9 @@ def get_resources_http_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12982,10 +13267,9 @@ def get_resources_http_profiles_with_http_info( @validate_call - def get_resources_http_profiles_without_preload_content( + def get_resources_http_library_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12999,14 +13283,12 @@ def get_resources_http_profiles_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_profiles + """get_resources_http_library_by_id - Get all the available HTTP profiles. + Get a particular http library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13029,9 +13311,8 @@ def get_resources_http_profiles_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_library_by_id_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13039,7 +13320,9 @@ def get_resources_http_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13049,10 +13332,9 @@ def get_resources_http_profiles_without_preload_content( ) - def _get_resources_http_profiles_serialize( + def _get_resources_http_library_by_id_serialize( self, - take, - skip, + http_library_id, _request_auth, _content_type, _headers, @@ -13072,15 +13354,9 @@ def _get_resources_http_profiles_serialize( _body_params: Optional[bytes] = None # process the path parameters + if http_library_id is not None: + _path_params['httpLibraryId'] = http_library_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -13103,7 +13379,7 @@ def _get_resources_http_profiles_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-profiles', + resource_path='/api/v2/resources/http-library/{httpLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13120,9 +13396,9 @@ def _get_resources_http_profiles_serialize( @validate_call - def get_resources_media_file_by_id( + def get_resources_http_library_content_file( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13135,13 +13411,13 @@ def get_resources_media_file_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_media_file_by_id + ) -> bytearray: + """get_resources_http_library_content_file - Get a particular media file. + Get the content of a particular http library file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13164,8 +13440,8 @@ def get_resources_media_file_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13173,10 +13449,8 @@ def get_resources_media_file_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13186,9 +13460,9 @@ def get_resources_media_file_by_id( @validate_call - def get_resources_media_file_by_id_with_http_info( + def get_resources_http_library_content_file_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13201,13 +13475,13 @@ def get_resources_media_file_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_media_file_by_id + ) -> ApiResponse[bytearray]: + """get_resources_http_library_content_file - Get a particular media file. + Get the content of a particular http library file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13230,8 +13504,8 @@ def get_resources_media_file_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13239,10 +13513,8 @@ def get_resources_media_file_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13252,9 +13524,9 @@ def get_resources_media_file_by_id_with_http_info( @validate_call - def get_resources_media_file_by_id_without_preload_content( + def get_resources_http_library_content_file_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13268,12 +13540,12 @@ def get_resources_media_file_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_file_by_id + """get_resources_http_library_content_file - Get a particular media file. + Get the content of a particular http library file. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13296,8 +13568,8 @@ def get_resources_media_file_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13305,10 +13577,8 @@ def get_resources_media_file_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13317,9 +13587,9 @@ def get_resources_media_file_by_id_without_preload_content( ) - def _get_resources_media_file_by_id_serialize( + def _get_resources_http_library_content_file_serialize( self, - media_file_id, + http_library_id, _request_auth, _content_type, _headers, @@ -13339,8 +13609,8 @@ def _get_resources_media_file_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_file_id is not None: - _path_params['mediaFileId'] = media_file_id + if http_library_id is not None: + _path_params['httpLibraryId'] = http_library_id # process the query parameters # process the header parameters # process the form parameters @@ -13351,6 +13621,7 @@ def _get_resources_media_file_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -13364,7 +13635,7 @@ def _get_resources_media_file_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/{mediaFileId}', + resource_path='/api/v2/resources/http-library/{httpLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13381,9 +13652,9 @@ def _get_resources_media_file_by_id_serialize( @validate_call - def get_resources_media_file_content_file( + def get_resources_http_library_upload_file_result( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13396,13 +13667,13 @@ def get_resources_media_file_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_media_file_content_file + ) -> None: + """get_resources_http_library_upload_file_result - Get the content of a particular media file. + Get the result of the upload file operation. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13425,8 +13696,8 @@ def get_resources_media_file_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13434,8 +13705,9 @@ def get_resources_media_file_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13445,9 +13717,9 @@ def get_resources_media_file_content_file( @validate_call - def get_resources_media_file_content_file_with_http_info( + def get_resources_http_library_upload_file_result_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13460,13 +13732,13 @@ def get_resources_media_file_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_media_file_content_file + ) -> ApiResponse[None]: + """get_resources_http_library_upload_file_result - Get the content of a particular media file. + Get the result of the upload file operation. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13489,8 +13761,8 @@ def get_resources_media_file_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13498,8 +13770,9 @@ def get_resources_media_file_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13509,9 +13782,9 @@ def get_resources_media_file_content_file_with_http_info( @validate_call - def get_resources_media_file_content_file_without_preload_content( + def get_resources_http_library_upload_file_result_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13525,12 +13798,12 @@ def get_resources_media_file_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_file_content_file + """get_resources_http_library_upload_file_result - Get the content of a particular media file. + Get the result of the upload file operation. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13553,8 +13826,8 @@ def get_resources_media_file_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13562,8 +13835,9 @@ def get_resources_media_file_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13572,9 +13846,9 @@ def get_resources_media_file_content_file_without_preload_content( ) - def _get_resources_media_file_content_file_serialize( + def _get_resources_http_library_upload_file_result_serialize( self, - media_file_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -13594,8 +13868,8 @@ def _get_resources_media_file_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_file_id is not None: - _path_params['mediaFileId'] = media_file_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -13606,7 +13880,6 @@ def _get_resources_media_file_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -13620,7 +13893,7 @@ def _get_resources_media_file_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/{mediaFileId}/contentFile', + resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13637,10 +13910,9 @@ def _get_resources_media_file_content_file_serialize( @validate_call - def get_resources_media_files( + def get_resources_http_profile_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13653,15 +13925,13 @@ def get_resources_media_files( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_media_files + ) -> HTTPProfile: + """get_resources_http_profile_by_id - Get all the available media files. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13684,9 +13954,8 @@ def get_resources_media_files( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13694,8 +13963,8 @@ def get_resources_media_files( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13706,10 +13975,9 @@ def get_resources_media_files( @validate_call - def get_resources_media_files_with_http_info( + def get_resources_http_profile_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13722,15 +13990,13 @@ def get_resources_media_files_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_media_files + ) -> ApiResponse[HTTPProfile]: + """get_resources_http_profile_by_id - Get all the available media files. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13753,9 +14019,8 @@ def get_resources_media_files_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13763,8 +14028,8 @@ def get_resources_media_files_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13775,10 +14040,9 @@ def get_resources_media_files_with_http_info( @validate_call - def get_resources_media_files_without_preload_content( + def get_resources_http_profile_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13792,14 +14056,12 @@ def get_resources_media_files_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_files + """get_resources_http_profile_by_id - Get all the available media files. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13822,9 +14084,8 @@ def get_resources_media_files_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13832,8 +14093,8 @@ def get_resources_media_files_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13843,10 +14104,9 @@ def get_resources_media_files_without_preload_content( ) - def _get_resources_media_files_serialize( + def _get_resources_http_profile_by_id_serialize( self, - take, - skip, + http_profile_id, _request_auth, _content_type, _headers, @@ -13866,15 +14126,9 @@ def _get_resources_media_files_serialize( _body_params: Optional[bytes] = None # process the path parameters + if http_profile_id is not None: + _path_params['httpProfileId'] = http_profile_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -13897,7 +14151,7 @@ def _get_resources_media_files_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files', + resource_path='/api/v2/resources/http-profiles/{httpProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13914,9 +14168,10 @@ def _get_resources_media_files_serialize( @validate_call - def get_resources_media_files_upload_file_result( + def get_resources_http_profiles( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13929,13 +14184,15 @@ def get_resources_media_files_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_media_files_upload_file_result + ) -> GetResourcesHttpProfiles200Response: + """get_resources_http_profiles - Get the result of the upload file operation. + Get all the available HTTP profiles. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13958,8 +14215,9 @@ def get_resources_media_files_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13967,8 +14225,7 @@ def get_resources_media_files_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13979,9 +14236,10 @@ def get_resources_media_files_upload_file_result( @validate_call - def get_resources_media_files_upload_file_result_with_http_info( + def get_resources_http_profiles_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13994,13 +14252,15 @@ def get_resources_media_files_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_media_files_upload_file_result + ) -> ApiResponse[GetResourcesHttpProfiles200Response]: + """get_resources_http_profiles - Get the result of the upload file operation. + Get all the available HTTP profiles. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14023,8 +14283,9 @@ def get_resources_media_files_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14032,8 +14293,7 @@ def get_resources_media_files_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14044,9 +14304,10 @@ def get_resources_media_files_upload_file_result_with_http_info( @validate_call - def get_resources_media_files_upload_file_result_without_preload_content( + def get_resources_http_profiles_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14060,12 +14321,14 @@ def get_resources_media_files_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_files_upload_file_result + """get_resources_http_profiles - Get the result of the upload file operation. + Get all the available HTTP profiles. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14088,8 +14351,9 @@ def get_resources_media_files_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14097,8 +14361,7 @@ def get_resources_media_files_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14108,9 +14371,10 @@ def get_resources_media_files_upload_file_result_without_preload_content( ) - def _get_resources_media_files_upload_file_result_serialize( + def _get_resources_http_profiles_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -14130,9 +14394,15 @@ def _get_resources_media_files_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -14155,7 +14425,7 @@ def _get_resources_media_files_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/http-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14172,10 +14442,9 @@ def _get_resources_media_files_upload_file_result_serialize( @validate_call - def get_resources_media_library( + def get_resources_media_file_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14188,15 +14457,13 @@ def get_resources_media_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_media_library + ) -> GenericFile: + """get_resources_media_file_by_id - Get all the available media library files. + Get a particular media file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14219,9 +14486,8 @@ def get_resources_media_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14229,8 +14495,9 @@ def get_resources_media_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14241,10 +14508,9 @@ def get_resources_media_library( @validate_call - def get_resources_media_library_with_http_info( + def get_resources_media_file_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14257,15 +14523,13 @@ def get_resources_media_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_media_library + ) -> ApiResponse[GenericFile]: + """get_resources_media_file_by_id - Get all the available media library files. + Get a particular media file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14288,9 +14552,8 @@ def get_resources_media_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14298,8 +14561,9 @@ def get_resources_media_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14310,10 +14574,9 @@ def get_resources_media_library_with_http_info( @validate_call - def get_resources_media_library_without_preload_content( + def get_resources_media_file_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14327,14 +14590,12 @@ def get_resources_media_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_library + """get_resources_media_file_by_id - Get all the available media library files. + Get a particular media file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14357,9 +14618,8 @@ def get_resources_media_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14367,8 +14627,9 @@ def get_resources_media_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14378,10 +14639,9 @@ def get_resources_media_library_without_preload_content( ) - def _get_resources_media_library_serialize( + def _get_resources_media_file_by_id_serialize( self, - take, - skip, + media_file_id, _request_auth, _content_type, _headers, @@ -14401,15 +14661,9 @@ def _get_resources_media_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if media_file_id is not None: + _path_params['mediaFileId'] = media_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -14432,7 +14686,7 @@ def _get_resources_media_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library', + resource_path='/api/v2/resources/media-files/{mediaFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14449,9 +14703,9 @@ def _get_resources_media_library_serialize( @validate_call - def get_resources_media_library_by_id( + def get_resources_media_file_content_file( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14464,13 +14718,13 @@ def get_resources_media_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_media_library_by_id + ) -> bytearray: + """get_resources_media_file_content_file - Get a particular media library file. + Get the content of a particular media file. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14493,8 +14747,8 @@ def get_resources_media_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_by_id_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14502,10 +14756,8 @@ def get_resources_media_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14515,9 +14767,9 @@ def get_resources_media_library_by_id( @validate_call - def get_resources_media_library_by_id_with_http_info( + def get_resources_media_file_content_file_with_http_info( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14530,13 +14782,13 @@ def get_resources_media_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_media_library_by_id + ) -> ApiResponse[bytearray]: + """get_resources_media_file_content_file - Get a particular media library file. + Get the content of a particular media file. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14559,8 +14811,8 @@ def get_resources_media_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_by_id_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14568,10 +14820,8 @@ def get_resources_media_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14581,9 +14831,9 @@ def get_resources_media_library_by_id_with_http_info( @validate_call - def get_resources_media_library_by_id_without_preload_content( + def get_resources_media_file_content_file_without_preload_content( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14597,12 +14847,12 @@ def get_resources_media_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_library_by_id + """get_resources_media_file_content_file - Get a particular media library file. + Get the content of a particular media file. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14625,8 +14875,8 @@ def get_resources_media_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_by_id_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14634,10 +14884,8 @@ def get_resources_media_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14646,9 +14894,9 @@ def get_resources_media_library_by_id_without_preload_content( ) - def _get_resources_media_library_by_id_serialize( + def _get_resources_media_file_content_file_serialize( self, - media_library_id, + media_file_id, _request_auth, _content_type, _headers, @@ -14668,8 +14916,8 @@ def _get_resources_media_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_library_id is not None: - _path_params['mediaLibraryId'] = media_library_id + if media_file_id is not None: + _path_params['mediaFileId'] = media_file_id # process the query parameters # process the header parameters # process the form parameters @@ -14680,6 +14928,7 @@ def _get_resources_media_library_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -14693,7 +14942,7 @@ def _get_resources_media_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library/{mediaLibraryId}', + resource_path='/api/v2/resources/media-files/{mediaFileId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14710,9 +14959,10 @@ def _get_resources_media_library_by_id_serialize( @validate_call - def get_resources_media_library_content_file( + def get_resources_media_files( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14725,13 +14975,15 @@ def get_resources_media_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_media_library_content_file + ) -> GetResourcesCertificates200Response: + """get_resources_media_files - Get the content of a particular media library file. + Get all the available media files. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14754,8 +15006,9 @@ def get_resources_media_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_content_file_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_files_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14763,8 +15016,9 @@ def get_resources_media_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14774,9 +15028,10 @@ def get_resources_media_library_content_file( @validate_call - def get_resources_media_library_content_file_with_http_info( + def get_resources_media_files_with_http_info( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14789,13 +15044,15 @@ def get_resources_media_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_media_library_content_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_media_files - Get the content of a particular media library file. + Get all the available media files. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14818,8 +15075,9 @@ def get_resources_media_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_content_file_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_files_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14827,8 +15085,9 @@ def get_resources_media_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14838,9 +15097,10 @@ def get_resources_media_library_content_file_with_http_info( @validate_call - def get_resources_media_library_content_file_without_preload_content( + def get_resources_media_files_without_preload_content( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14854,12 +15114,14 @@ def get_resources_media_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_library_content_file + """get_resources_media_files - Get the content of a particular media library file. + Get all the available media files. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14882,8 +15144,9 @@ def get_resources_media_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_content_file_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_files_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14891,8 +15154,9 @@ def get_resources_media_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14901,9 +15165,10 @@ def get_resources_media_library_content_file_without_preload_content( ) - def _get_resources_media_library_content_file_serialize( + def _get_resources_media_files_serialize( self, - media_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -14923,9 +15188,15 @@ def _get_resources_media_library_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_library_id is not None: - _path_params['mediaLibraryId'] = media_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -14935,7 +15206,6 @@ def _get_resources_media_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -14949,7 +15219,7 @@ def _get_resources_media_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library/{mediaLibraryId}/contentFile', + resource_path='/api/v2/resources/media-files', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14966,7 +15236,7 @@ def _get_resources_media_library_content_file_serialize( @validate_call - def get_resources_media_library_upload_file_result( + def get_resources_media_files_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -14982,7 +15252,7 @@ def get_resources_media_library_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_media_library_upload_file_result + """get_resources_media_files_upload_file_result Get the result of the upload file operation. @@ -15010,7 +15280,7 @@ def get_resources_media_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_upload_file_result_serialize( + _param = self._get_resources_media_files_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15031,7 +15301,7 @@ def get_resources_media_library_upload_file_result( @validate_call - def get_resources_media_library_upload_file_result_with_http_info( + def get_resources_media_files_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -15047,7 +15317,7 @@ def get_resources_media_library_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_media_library_upload_file_result + """get_resources_media_files_upload_file_result Get the result of the upload file operation. @@ -15075,7 +15345,7 @@ def get_resources_media_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_upload_file_result_serialize( + _param = self._get_resources_media_files_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15096,7 +15366,7 @@ def get_resources_media_library_upload_file_result_with_http_info( @validate_call - def get_resources_media_library_upload_file_result_without_preload_content( + def get_resources_media_files_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -15112,7 +15382,7 @@ def get_resources_media_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_library_upload_file_result + """get_resources_media_files_upload_file_result Get the result of the upload file operation. @@ -15140,7 +15410,7 @@ def get_resources_media_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_upload_file_result_serialize( + _param = self._get_resources_media_files_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15160,7 +15430,7 @@ def get_resources_media_library_upload_file_result_without_preload_content( ) - def _get_resources_media_library_upload_file_result_serialize( + def _get_resources_media_files_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -15207,7 +15477,7 @@ def _get_resources_media_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/media-files/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15224,7 +15494,7 @@ def _get_resources_media_library_upload_file_result_serialize( @validate_call - def get_resources_other_library( + def get_resources_media_library( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -15241,9 +15511,9 @@ def get_resources_other_library( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_other_library + """get_resources_media_library - Get all the available other library files. + Get all the available media library files. :param take: The number of search results to return :type take: int @@ -15271,7 +15541,7 @@ def get_resources_other_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_serialize( + _param = self._get_resources_media_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -15293,7 +15563,7 @@ def get_resources_other_library( @validate_call - def get_resources_other_library_with_http_info( + def get_resources_media_library_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -15310,9 +15580,9 @@ def get_resources_other_library_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_other_library + """get_resources_media_library - Get all the available other library files. + Get all the available media library files. :param take: The number of search results to return :type take: int @@ -15340,7 +15610,7 @@ def get_resources_other_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_serialize( + _param = self._get_resources_media_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -15362,7 +15632,7 @@ def get_resources_other_library_with_http_info( @validate_call - def get_resources_other_library_without_preload_content( + def get_resources_media_library_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -15379,9 +15649,9 @@ def get_resources_other_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library + """get_resources_media_library - Get all the available other library files. + Get all the available media library files. :param take: The number of search results to return :type take: int @@ -15409,7 +15679,7 @@ def get_resources_other_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_serialize( + _param = self._get_resources_media_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -15430,7 +15700,7 @@ def get_resources_other_library_without_preload_content( ) - def _get_resources_other_library_serialize( + def _get_resources_media_library_serialize( self, take, skip, @@ -15484,7 +15754,7 @@ def _get_resources_other_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library', + resource_path='/api/v2/resources/media-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15501,9 +15771,9 @@ def _get_resources_other_library_serialize( @validate_call - def get_resources_other_library_by_id( + def get_resources_media_library_by_id( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15517,12 +15787,12 @@ def get_resources_other_library_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_other_library_by_id + """get_resources_media_library_by_id - Get a particular other library file. + Get a particular media library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15545,8 +15815,8 @@ def get_resources_other_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_by_id_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15567,9 +15837,9 @@ def get_resources_other_library_by_id( @validate_call - def get_resources_other_library_by_id_with_http_info( + def get_resources_media_library_by_id_with_http_info( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15583,12 +15853,12 @@ def get_resources_other_library_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GenericFile]: - """get_resources_other_library_by_id + """get_resources_media_library_by_id - Get a particular other library file. + Get a particular media library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15611,8 +15881,8 @@ def get_resources_other_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_by_id_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15633,9 +15903,9 @@ def get_resources_other_library_by_id_with_http_info( @validate_call - def get_resources_other_library_by_id_without_preload_content( + def get_resources_media_library_by_id_without_preload_content( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15649,12 +15919,12 @@ def get_resources_other_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library_by_id + """get_resources_media_library_by_id - Get a particular other library file. + Get a particular media library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15677,8 +15947,8 @@ def get_resources_other_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_by_id_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15698,9 +15968,9 @@ def get_resources_other_library_by_id_without_preload_content( ) - def _get_resources_other_library_by_id_serialize( + def _get_resources_media_library_by_id_serialize( self, - other_library_id, + media_library_id, _request_auth, _content_type, _headers, @@ -15720,8 +15990,8 @@ def _get_resources_other_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if other_library_id is not None: - _path_params['otherLibraryId'] = other_library_id + if media_library_id is not None: + _path_params['mediaLibraryId'] = media_library_id # process the query parameters # process the header parameters # process the form parameters @@ -15745,7 +16015,7 @@ def _get_resources_other_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library/{otherLibraryId}', + resource_path='/api/v2/resources/media-library/{mediaLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15762,9 +16032,9 @@ def _get_resources_other_library_by_id_serialize( @validate_call - def get_resources_other_library_content_file( + def get_resources_media_library_content_file( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15778,12 +16048,12 @@ def get_resources_other_library_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_other_library_content_file + """get_resources_media_library_content_file - Get the content of a particular other library file. + Get the content of a particular media library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15806,8 +16076,8 @@ def get_resources_other_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_content_file_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15826,9 +16096,9 @@ def get_resources_other_library_content_file( @validate_call - def get_resources_other_library_content_file_with_http_info( + def get_resources_media_library_content_file_with_http_info( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15842,12 +16112,12 @@ def get_resources_other_library_content_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """get_resources_other_library_content_file + """get_resources_media_library_content_file - Get the content of a particular other library file. + Get the content of a particular media library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15870,8 +16140,8 @@ def get_resources_other_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_content_file_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15890,9 +16160,9 @@ def get_resources_other_library_content_file_with_http_info( @validate_call - def get_resources_other_library_content_file_without_preload_content( + def get_resources_media_library_content_file_without_preload_content( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15906,12 +16176,12 @@ def get_resources_other_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library_content_file + """get_resources_media_library_content_file - Get the content of a particular other library file. + Get the content of a particular media library file. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15934,8 +16204,8 @@ def get_resources_other_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_content_file_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15953,9 +16223,9 @@ def get_resources_other_library_content_file_without_preload_content( ) - def _get_resources_other_library_content_file_serialize( + def _get_resources_media_library_content_file_serialize( self, - other_library_id, + media_library_id, _request_auth, _content_type, _headers, @@ -15975,8 +16245,8 @@ def _get_resources_other_library_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if other_library_id is not None: - _path_params['otherLibraryId'] = other_library_id + if media_library_id is not None: + _path_params['mediaLibraryId'] = media_library_id # process the query parameters # process the header parameters # process the form parameters @@ -16001,7 +16271,7 @@ def _get_resources_other_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library/{otherLibraryId}/contentFile', + resource_path='/api/v2/resources/media-library/{mediaLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16018,7 +16288,7 @@ def _get_resources_other_library_content_file_serialize( @validate_call - def get_resources_other_library_upload_file_result( + def get_resources_media_library_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -16034,7 +16304,7 @@ def get_resources_other_library_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_other_library_upload_file_result + """get_resources_media_library_upload_file_result Get the result of the upload file operation. @@ -16062,7 +16332,7 @@ def get_resources_other_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( + _param = self._get_resources_media_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -16083,7 +16353,7 @@ def get_resources_other_library_upload_file_result( @validate_call - def get_resources_other_library_upload_file_result_with_http_info( + def get_resources_media_library_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -16099,7 +16369,7 @@ def get_resources_other_library_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_other_library_upload_file_result + """get_resources_media_library_upload_file_result Get the result of the upload file operation. @@ -16127,7 +16397,7 @@ def get_resources_other_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( + _param = self._get_resources_media_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -16148,7 +16418,7 @@ def get_resources_other_library_upload_file_result_with_http_info( @validate_call - def get_resources_other_library_upload_file_result_without_preload_content( + def get_resources_media_library_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -16164,7 +16434,7 @@ def get_resources_other_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library_upload_file_result + """get_resources_media_library_upload_file_result Get the result of the upload file operation. @@ -16192,7 +16462,7 @@ def get_resources_other_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( + _param = self._get_resources_media_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -16212,7 +16482,7 @@ def get_resources_other_library_upload_file_result_without_preload_content( ) - def _get_resources_other_library_upload_file_result_serialize( + def _get_resources_media_library_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -16259,7 +16529,7 @@ def _get_resources_other_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/media-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16276,9 +16546,10 @@ def _get_resources_other_library_upload_file_result_serialize( @validate_call - def get_resources_payload_by_id( + def get_resources_other_library( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16291,13 +16562,15 @@ def get_resources_payload_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_payload_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_other_library - Get a particular payload file. + Get all the available other library files. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16320,8 +16593,9 @@ def get_resources_payload_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16329,9 +16603,8 @@ def get_resources_payload_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -16342,9 +16615,10 @@ def get_resources_payload_by_id( @validate_call - def get_resources_payload_by_id_with_http_info( + def get_resources_other_library_with_http_info( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16357,13 +16631,15 @@ def get_resources_payload_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_payload_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_other_library - Get a particular payload file. + Get all the available other library files. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16386,8 +16662,9 @@ def get_resources_payload_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16395,9 +16672,8 @@ def get_resources_payload_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -16408,9 +16684,10 @@ def get_resources_payload_by_id_with_http_info( @validate_call - def get_resources_payload_by_id_without_preload_content( + def get_resources_other_library_without_preload_content( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16424,12 +16701,14 @@ def get_resources_payload_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payload_by_id + """get_resources_other_library - Get a particular payload file. + Get all the available other library files. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16452,8 +16731,9 @@ def get_resources_payload_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16461,9 +16741,8 @@ def get_resources_payload_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -16473,9 +16752,10 @@ def get_resources_payload_by_id_without_preload_content( ) - def _get_resources_payload_by_id_serialize( + def _get_resources_other_library_serialize( self, - payload_id, + take, + skip, _request_auth, _content_type, _headers, @@ -16495,9 +16775,15 @@ def _get_resources_payload_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if payload_id is not None: - _path_params['payloadId'] = payload_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -16520,7 +16806,7 @@ def _get_resources_payload_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads/{payloadId}', + resource_path='/api/v2/resources/other-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16537,9 +16823,9 @@ def _get_resources_payload_by_id_serialize( @validate_call - def get_resources_payload_content_file( + def get_resources_other_library_by_id( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16552,13 +16838,13 @@ def get_resources_payload_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_payload_content_file + ) -> GenericFile: + """get_resources_other_library_by_id - Get the content of a particular payload file. + Get a particular other library file. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16581,8 +16867,8 @@ def get_resources_payload_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_content_file_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16590,8 +16876,10 @@ def get_resources_payload_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16601,9 +16889,9 @@ def get_resources_payload_content_file( @validate_call - def get_resources_payload_content_file_with_http_info( + def get_resources_other_library_by_id_with_http_info( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16616,13 +16904,13 @@ def get_resources_payload_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_payload_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_other_library_by_id - Get the content of a particular payload file. + Get a particular other library file. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16645,8 +16933,8 @@ def get_resources_payload_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_content_file_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16654,8 +16942,10 @@ def get_resources_payload_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16665,9 +16955,9 @@ def get_resources_payload_content_file_with_http_info( @validate_call - def get_resources_payload_content_file_without_preload_content( + def get_resources_other_library_by_id_without_preload_content( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16681,12 +16971,12 @@ def get_resources_payload_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payload_content_file + """get_resources_other_library_by_id - Get the content of a particular payload file. + Get a particular other library file. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16709,8 +16999,8 @@ def get_resources_payload_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_content_file_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16718,8 +17008,10 @@ def get_resources_payload_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16728,9 +17020,9 @@ def get_resources_payload_content_file_without_preload_content( ) - def _get_resources_payload_content_file_serialize( + def _get_resources_other_library_by_id_serialize( self, - payload_id, + other_library_id, _request_auth, _content_type, _headers, @@ -16750,8 +17042,8 @@ def _get_resources_payload_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if payload_id is not None: - _path_params['payloadId'] = payload_id + if other_library_id is not None: + _path_params['otherLibraryId'] = other_library_id # process the query parameters # process the header parameters # process the form parameters @@ -16762,7 +17054,6 @@ def _get_resources_payload_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -16776,7 +17067,7 @@ def _get_resources_payload_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads/{payloadId}/contentFile', + resource_path='/api/v2/resources/other-library/{otherLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16793,10 +17084,9 @@ def _get_resources_payload_content_file_serialize( @validate_call - def get_resources_payloads( + def get_resources_other_library_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16809,15 +17099,13 @@ def get_resources_payloads( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_payloads + ) -> bytearray: + """get_resources_other_library_content_file - Get all the available payload files. + Get the content of a particular other library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16840,9 +17128,8 @@ def get_resources_payloads( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_serialize( - take=take, - skip=skip, + _param = self._get_resources_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16850,9 +17137,8 @@ def get_resources_payloads( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16862,10 +17148,9 @@ def get_resources_payloads( @validate_call - def get_resources_payloads_with_http_info( + def get_resources_other_library_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16878,15 +17163,13 @@ def get_resources_payloads_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_payloads + ) -> ApiResponse[bytearray]: + """get_resources_other_library_content_file - Get all the available payload files. + Get the content of a particular other library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16909,9 +17192,8 @@ def get_resources_payloads_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_serialize( - take=take, - skip=skip, + _param = self._get_resources_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16919,9 +17201,8 @@ def get_resources_payloads_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16931,10 +17212,9 @@ def get_resources_payloads_with_http_info( @validate_call - def get_resources_payloads_without_preload_content( + def get_resources_other_library_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16948,14 +17228,12 @@ def get_resources_payloads_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payloads + """get_resources_other_library_content_file - Get all the available payload files. + Get the content of a particular other library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16978,9 +17256,8 @@ def get_resources_payloads_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_serialize( - take=take, - skip=skip, + _param = self._get_resources_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16988,9 +17265,8 @@ def get_resources_payloads_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16999,10 +17275,9 @@ def get_resources_payloads_without_preload_content( ) - def _get_resources_payloads_serialize( + def _get_resources_other_library_content_file_serialize( self, - take, - skip, + other_library_id, _request_auth, _content_type, _headers, @@ -17022,15 +17297,9 @@ def _get_resources_payloads_serialize( _body_params: Optional[bytes] = None # process the path parameters + if other_library_id is not None: + _path_params['otherLibraryId'] = other_library_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -17040,6 +17309,7 @@ def _get_resources_payloads_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -17053,7 +17323,7 @@ def _get_resources_payloads_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads', + resource_path='/api/v2/resources/other-library/{otherLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17070,7 +17340,7 @@ def _get_resources_payloads_serialize( @validate_call - def get_resources_payloads_upload_file_result( + def get_resources_other_library_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -17086,7 +17356,7 @@ def get_resources_payloads_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_payloads_upload_file_result + """get_resources_other_library_upload_file_result Get the result of the upload file operation. @@ -17114,7 +17384,7 @@ def get_resources_payloads_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( + _param = self._get_resources_other_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -17135,7 +17405,7 @@ def get_resources_payloads_upload_file_result( @validate_call - def get_resources_payloads_upload_file_result_with_http_info( + def get_resources_other_library_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -17151,7 +17421,7 @@ def get_resources_payloads_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_payloads_upload_file_result + """get_resources_other_library_upload_file_result Get the result of the upload file operation. @@ -17179,7 +17449,7 @@ def get_resources_payloads_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( + _param = self._get_resources_other_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -17200,7 +17470,7 @@ def get_resources_payloads_upload_file_result_with_http_info( @validate_call - def get_resources_payloads_upload_file_result_without_preload_content( + def get_resources_other_library_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -17216,7 +17486,7 @@ def get_resources_payloads_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payloads_upload_file_result + """get_resources_other_library_upload_file_result Get the result of the upload file operation. @@ -17244,7 +17514,7 @@ def get_resources_payloads_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( + _param = self._get_resources_other_library_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -17264,7 +17534,7 @@ def get_resources_payloads_upload_file_result_without_preload_content( ) - def _get_resources_payloads_upload_file_result_serialize( + def _get_resources_other_library_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -17311,7 +17581,7 @@ def _get_resources_payloads_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/other-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17328,9 +17598,9 @@ def _get_resources_payloads_upload_file_result_serialize( @validate_call - def get_resources_pcap_by_id( + def get_resources_payload_by_id( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17344,12 +17614,12 @@ def get_resources_pcap_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_pcap_by_id + """get_resources_payload_by_id - Get a particular pcap file. + Get a particular payload file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17372,8 +17642,8 @@ def get_resources_pcap_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_by_id_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17394,9 +17664,9 @@ def get_resources_pcap_by_id( @validate_call - def get_resources_pcap_by_id_with_http_info( + def get_resources_payload_by_id_with_http_info( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17410,12 +17680,12 @@ def get_resources_pcap_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GenericFile]: - """get_resources_pcap_by_id + """get_resources_payload_by_id - Get a particular pcap file. + Get a particular payload file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17438,8 +17708,8 @@ def get_resources_pcap_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_by_id_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17460,9 +17730,9 @@ def get_resources_pcap_by_id_with_http_info( @validate_call - def get_resources_pcap_by_id_without_preload_content( + def get_resources_payload_by_id_without_preload_content( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17476,12 +17746,12 @@ def get_resources_pcap_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcap_by_id + """get_resources_payload_by_id - Get a particular pcap file. + Get a particular payload file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17504,8 +17774,8 @@ def get_resources_pcap_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_by_id_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17525,9 +17795,9 @@ def get_resources_pcap_by_id_without_preload_content( ) - def _get_resources_pcap_by_id_serialize( + def _get_resources_payload_by_id_serialize( self, - pcap_id, + payload_id, _request_auth, _content_type, _headers, @@ -17547,8 +17817,8 @@ def _get_resources_pcap_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if pcap_id is not None: - _path_params['pcapId'] = pcap_id + if payload_id is not None: + _path_params['payloadId'] = payload_id # process the query parameters # process the header parameters # process the form parameters @@ -17572,7 +17842,7 @@ def _get_resources_pcap_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps/{pcapId}', + resource_path='/api/v2/resources/payloads/{payloadId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17589,9 +17859,9 @@ def _get_resources_pcap_by_id_serialize( @validate_call - def get_resources_pcap_content_file( + def get_resources_payload_content_file( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17605,12 +17875,12 @@ def get_resources_pcap_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_pcap_content_file + """get_resources_payload_content_file - Get the content of a particular pcap file. + Get the content of a particular payload file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17633,8 +17903,8 @@ def get_resources_pcap_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_content_file_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17653,9 +17923,9 @@ def get_resources_pcap_content_file( @validate_call - def get_resources_pcap_content_file_with_http_info( + def get_resources_payload_content_file_with_http_info( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17669,12 +17939,12 @@ def get_resources_pcap_content_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """get_resources_pcap_content_file + """get_resources_payload_content_file - Get the content of a particular pcap file. + Get the content of a particular payload file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17697,8 +17967,8 @@ def get_resources_pcap_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_content_file_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17717,9 +17987,9 @@ def get_resources_pcap_content_file_with_http_info( @validate_call - def get_resources_pcap_content_file_without_preload_content( + def get_resources_payload_content_file_without_preload_content( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17733,12 +18003,12 @@ def get_resources_pcap_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcap_content_file + """get_resources_payload_content_file - Get the content of a particular pcap file. + Get the content of a particular payload file. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17761,8 +18031,8 @@ def get_resources_pcap_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_content_file_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17780,9 +18050,9 @@ def get_resources_pcap_content_file_without_preload_content( ) - def _get_resources_pcap_content_file_serialize( + def _get_resources_payload_content_file_serialize( self, - pcap_id, + payload_id, _request_auth, _content_type, _headers, @@ -17802,8 +18072,8 @@ def _get_resources_pcap_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if pcap_id is not None: - _path_params['pcapId'] = pcap_id + if payload_id is not None: + _path_params['payloadId'] = payload_id # process the query parameters # process the header parameters # process the form parameters @@ -17828,7 +18098,7 @@ def _get_resources_pcap_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps/{pcapId}/contentFile', + resource_path='/api/v2/resources/payloads/{payloadId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17845,7 +18115,7 @@ def _get_resources_pcap_content_file_serialize( @validate_call - def get_resources_pcaps( + def get_resources_payloads( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -17862,9 +18132,9 @@ def get_resources_pcaps( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_pcaps + """get_resources_payloads - Get all the available pcap files. + Get all the available payload files. :param take: The number of search results to return :type take: int @@ -17892,7 +18162,7 @@ def get_resources_pcaps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( + _param = self._get_resources_payloads_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -17914,7 +18184,7 @@ def get_resources_pcaps( @validate_call - def get_resources_pcaps_with_http_info( + def get_resources_payloads_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -17931,9 +18201,9 @@ def get_resources_pcaps_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_pcaps + """get_resources_payloads - Get all the available pcap files. + Get all the available payload files. :param take: The number of search results to return :type take: int @@ -17961,7 +18231,7 @@ def get_resources_pcaps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( + _param = self._get_resources_payloads_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -17983,7 +18253,7 @@ def get_resources_pcaps_with_http_info( @validate_call - def get_resources_pcaps_without_preload_content( + def get_resources_payloads_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -18000,9 +18270,9 @@ def get_resources_pcaps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcaps + """get_resources_payloads - Get all the available pcap files. + Get all the available payload files. :param take: The number of search results to return :type take: int @@ -18030,7 +18300,7 @@ def get_resources_pcaps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( + _param = self._get_resources_payloads_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -18051,7 +18321,7 @@ def get_resources_pcaps_without_preload_content( ) - def _get_resources_pcaps_serialize( + def _get_resources_payloads_serialize( self, take, skip, @@ -18105,7 +18375,7 @@ def _get_resources_pcaps_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps', + resource_path='/api/v2/resources/payloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18122,7 +18392,7 @@ def _get_resources_pcaps_serialize( @validate_call - def get_resources_pcaps_upload_file_result( + def get_resources_payloads_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -18138,7 +18408,7 @@ def get_resources_pcaps_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_pcaps_upload_file_result + """get_resources_payloads_upload_file_result Get the result of the upload file operation. @@ -18166,7 +18436,7 @@ def get_resources_pcaps_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( + _param = self._get_resources_payloads_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -18187,7 +18457,7 @@ def get_resources_pcaps_upload_file_result( @validate_call - def get_resources_pcaps_upload_file_result_with_http_info( + def get_resources_payloads_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -18203,7 +18473,7 @@ def get_resources_pcaps_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_pcaps_upload_file_result + """get_resources_payloads_upload_file_result Get the result of the upload file operation. @@ -18231,7 +18501,7 @@ def get_resources_pcaps_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( + _param = self._get_resources_payloads_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -18252,7 +18522,7 @@ def get_resources_pcaps_upload_file_result_with_http_info( @validate_call - def get_resources_pcaps_upload_file_result_without_preload_content( + def get_resources_payloads_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -18268,7 +18538,7 @@ def get_resources_pcaps_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcaps_upload_file_result + """get_resources_payloads_upload_file_result Get the result of the upload file operation. @@ -18296,7 +18566,7 @@ def get_resources_pcaps_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( + _param = self._get_resources_payloads_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -18316,7 +18586,7 @@ def get_resources_pcaps_upload_file_result_without_preload_content( ) - def _get_resources_pcaps_upload_file_result_serialize( + def _get_resources_payloads_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -18363,7 +18633,7 @@ def _get_resources_pcaps_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/payloads/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18380,9 +18650,9 @@ def _get_resources_pcaps_upload_file_result_serialize( @validate_call - def get_resources_playlist_by_id( + def get_resources_pcap_by_id( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18396,12 +18666,12 @@ def get_resources_playlist_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_playlist_by_id + """get_resources_pcap_by_id - Get a particular playlist file. + Get a particular pcap file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18424,8 +18694,8 @@ def get_resources_playlist_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18446,9 +18716,9 @@ def get_resources_playlist_by_id( @validate_call - def get_resources_playlist_by_id_with_http_info( + def get_resources_pcap_by_id_with_http_info( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18462,12 +18732,12 @@ def get_resources_playlist_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GenericFile]: - """get_resources_playlist_by_id + """get_resources_pcap_by_id - Get a particular playlist file. + Get a particular pcap file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18490,8 +18760,8 @@ def get_resources_playlist_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18512,9 +18782,9 @@ def get_resources_playlist_by_id_with_http_info( @validate_call - def get_resources_playlist_by_id_without_preload_content( + def get_resources_pcap_by_id_without_preload_content( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18528,12 +18798,12 @@ def get_resources_playlist_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlist_by_id + """get_resources_pcap_by_id - Get a particular playlist file. + Get a particular pcap file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18556,8 +18826,8 @@ def get_resources_playlist_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18577,9 +18847,9 @@ def get_resources_playlist_by_id_without_preload_content( ) - def _get_resources_playlist_by_id_serialize( + def _get_resources_pcap_by_id_serialize( self, - playlist_id, + pcap_id, _request_auth, _content_type, _headers, @@ -18599,8 +18869,8 @@ def _get_resources_playlist_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if playlist_id is not None: - _path_params['playlistId'] = playlist_id + if pcap_id is not None: + _path_params['pcapId'] = pcap_id # process the query parameters # process the header parameters # process the form parameters @@ -18624,7 +18894,7 @@ def _get_resources_playlist_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/{playlistId}', + resource_path='/api/v2/resources/pcaps/{pcapId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18641,9 +18911,9 @@ def _get_resources_playlist_by_id_serialize( @validate_call - def get_resources_playlist_content_file( + def get_resources_pcap_content_file( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18657,12 +18927,12 @@ def get_resources_playlist_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_playlist_content_file + """get_resources_pcap_content_file - Get the content of a particular playlist file. + Get the content of a particular pcap file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18685,8 +18955,8 @@ def get_resources_playlist_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_content_file_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18705,9 +18975,9 @@ def get_resources_playlist_content_file( @validate_call - def get_resources_playlist_content_file_with_http_info( + def get_resources_pcap_content_file_with_http_info( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18721,12 +18991,12 @@ def get_resources_playlist_content_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """get_resources_playlist_content_file + """get_resources_pcap_content_file - Get the content of a particular playlist file. + Get the content of a particular pcap file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18749,8 +19019,8 @@ def get_resources_playlist_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_content_file_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18769,9 +19039,9 @@ def get_resources_playlist_content_file_with_http_info( @validate_call - def get_resources_playlist_content_file_without_preload_content( + def get_resources_pcap_content_file_without_preload_content( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18785,12 +19055,12 @@ def get_resources_playlist_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlist_content_file + """get_resources_pcap_content_file - Get the content of a particular playlist file. + Get the content of a particular pcap file. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18813,8 +19083,8 @@ def get_resources_playlist_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_content_file_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18832,9 +19102,9 @@ def get_resources_playlist_content_file_without_preload_content( ) - def _get_resources_playlist_content_file_serialize( + def _get_resources_pcap_content_file_serialize( self, - playlist_id, + pcap_id, _request_auth, _content_type, _headers, @@ -18854,8 +19124,8 @@ def _get_resources_playlist_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if playlist_id is not None: - _path_params['playlistId'] = playlist_id + if pcap_id is not None: + _path_params['pcapId'] = pcap_id # process the query parameters # process the header parameters # process the form parameters @@ -18880,7 +19150,7 @@ def _get_resources_playlist_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/{playlistId}/contentFile', + resource_path='/api/v2/resources/pcaps/{pcapId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18897,10 +19167,10 @@ def _get_resources_playlist_content_file_serialize( @validate_call - def get_resources_playlist_values( + def get_resources_pcaps( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], - filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18913,15 +19183,15 @@ def get_resources_playlist_values( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_playlist_values + ) -> GetResourcesCertificates200Response: + """get_resources_pcaps - Get some specific values from a playlist file. + Get all the available pcap files. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18944,9 +19214,9 @@ def get_resources_playlist_values( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_values_serialize( - playlist_id=playlist_id, - filter=filter, + _param = self._get_resources_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18954,8 +19224,8 @@ def get_resources_playlist_values( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18966,10 +19236,10 @@ def get_resources_playlist_values( @validate_call - def get_resources_playlist_values_with_http_info( + def get_resources_pcaps_with_http_info( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], - filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18982,15 +19252,15 @@ def get_resources_playlist_values_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_playlist_values + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_pcaps - Get some specific values from a playlist file. + Get all the available pcap files. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19013,9 +19283,9 @@ def get_resources_playlist_values_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_values_serialize( - playlist_id=playlist_id, - filter=filter, + _param = self._get_resources_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19023,8 +19293,8 @@ def get_resources_playlist_values_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19035,10 +19305,10 @@ def get_resources_playlist_values_with_http_info( @validate_call - def get_resources_playlist_values_without_preload_content( + def get_resources_pcaps_without_preload_content( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], - filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19052,14 +19322,14 @@ def get_resources_playlist_values_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlist_values + """get_resources_pcaps - Get some specific values from a playlist file. + Get all the available pcap files. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19082,9 +19352,9 @@ def get_resources_playlist_values_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_values_serialize( - playlist_id=playlist_id, - filter=filter, + _param = self._get_resources_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19092,8 +19362,8 @@ def get_resources_playlist_values_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19103,10 +19373,10 @@ def get_resources_playlist_values_without_preload_content( ) - def _get_resources_playlist_values_serialize( + def _get_resources_pcaps_serialize( self, - playlist_id, - filter, + take, + skip, _request_auth, _content_type, _headers, @@ -19126,12 +19396,14 @@ def _get_resources_playlist_values_serialize( _body_params: Optional[bytes] = None # process the path parameters - if playlist_id is not None: - _path_params['playlistId'] = playlist_id # process the query parameters - if filter is not None: + if take is not None: - _query_params.append(('filter', filter)) + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) # process the header parameters # process the form parameters @@ -19155,7 +19427,7 @@ def _get_resources_playlist_values_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/{playlistId}/values', + resource_path='/api/v2/resources/pcaps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19172,10 +19444,9 @@ def _get_resources_playlist_values_serialize( @validate_call - def get_resources_playlists( + def get_resources_pcaps_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19188,15 +19459,13 @@ def get_resources_playlists( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_playlists + ) -> None: + """get_resources_pcaps_upload_file_result - Get all the available playlist files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19219,9 +19488,8 @@ def get_resources_playlists( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19229,8 +19497,8 @@ def get_resources_playlists( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19241,10 +19509,9 @@ def get_resources_playlists( @validate_call - def get_resources_playlists_with_http_info( + def get_resources_pcaps_upload_file_result_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19257,15 +19524,13 @@ def get_resources_playlists_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_playlists + ) -> ApiResponse[None]: + """get_resources_pcaps_upload_file_result - Get all the available playlist files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19288,9 +19553,8 @@ def get_resources_playlists_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19298,8 +19562,8 @@ def get_resources_playlists_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19310,10 +19574,9 @@ def get_resources_playlists_with_http_info( @validate_call - def get_resources_playlists_without_preload_content( + def get_resources_pcaps_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19327,14 +19590,12 @@ def get_resources_playlists_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlists + """get_resources_pcaps_upload_file_result - Get all the available playlist files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19357,9 +19618,8 @@ def get_resources_playlists_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19367,8 +19627,8 @@ def get_resources_playlists_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19378,10 +19638,9 @@ def get_resources_playlists_without_preload_content( ) - def _get_resources_playlists_serialize( + def _get_resources_pcaps_upload_file_result_serialize( self, - take, - skip, + upload_file_id, _request_auth, _content_type, _headers, @@ -19401,15 +19660,9 @@ def _get_resources_playlists_serialize( _body_params: Optional[bytes] = None # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -19432,7 +19685,7 @@ def _get_resources_playlists_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists', + resource_path='/api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19449,9 +19702,9 @@ def _get_resources_playlists_serialize( @validate_call - def get_resources_playlists_upload_file_result( + def get_resources_playlist_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19464,13 +19717,13 @@ def get_resources_playlists_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_playlists_upload_file_result + ) -> GenericFile: + """get_resources_playlist_by_id - Get the result of the upload file operation. + Get a particular playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19493,8 +19746,8 @@ def get_resources_playlists_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_playlist_by_id_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19502,8 +19755,9 @@ def get_resources_playlists_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19514,9 +19768,9 @@ def get_resources_playlists_upload_file_result( @validate_call - def get_resources_playlists_upload_file_result_with_http_info( + def get_resources_playlist_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19529,13 +19783,13 @@ def get_resources_playlists_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_playlists_upload_file_result + ) -> ApiResponse[GenericFile]: + """get_resources_playlist_by_id - Get the result of the upload file operation. + Get a particular playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19558,8 +19812,8 @@ def get_resources_playlists_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_playlist_by_id_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19567,8 +19821,9 @@ def get_resources_playlists_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19579,9 +19834,9 @@ def get_resources_playlists_upload_file_result_with_http_info( @validate_call - def get_resources_playlists_upload_file_result_without_preload_content( + def get_resources_playlist_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19595,12 +19850,12 @@ def get_resources_playlists_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlists_upload_file_result + """get_resources_playlist_by_id - Get the result of the upload file operation. + Get a particular playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19623,8 +19878,8 @@ def get_resources_playlists_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_playlist_by_id_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19632,8 +19887,9 @@ def get_resources_playlists_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19643,9 +19899,9 @@ def get_resources_playlists_upload_file_result_without_preload_content( ) - def _get_resources_playlists_upload_file_result_serialize( + def _get_resources_playlist_by_id_serialize( self, - upload_file_id, + playlist_id, _request_auth, _content_type, _headers, @@ -19665,8 +19921,8 @@ def _get_resources_playlists_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if playlist_id is not None: + _path_params['playlistId'] = playlist_id # process the query parameters # process the header parameters # process the form parameters @@ -19690,7 +19946,7 @@ def _get_resources_playlists_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/playlists/{playlistId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19707,10 +19963,9 @@ def _get_resources_playlists_upload_file_result_serialize( @validate_call - def get_resources_sip_library( + def get_resources_playlist_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19723,15 +19978,13 @@ def get_resources_sip_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_sip_library + ) -> bytearray: + """get_resources_playlist_content_file - Get all the available sip library files. + Get the content of a particular playlist file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19754,9 +20007,8 @@ def get_resources_sip_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19764,9 +20016,8 @@ def get_resources_sip_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19776,10 +20027,9 @@ def get_resources_sip_library( @validate_call - def get_resources_sip_library_with_http_info( + def get_resources_playlist_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19792,15 +20042,13 @@ def get_resources_sip_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_sip_library + ) -> ApiResponse[bytearray]: + """get_resources_playlist_content_file - Get all the available sip library files. + Get the content of a particular playlist file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19823,9 +20071,8 @@ def get_resources_sip_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19833,9 +20080,8 @@ def get_resources_sip_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19845,10 +20091,9 @@ def get_resources_sip_library_with_http_info( @validate_call - def get_resources_sip_library_without_preload_content( + def get_resources_playlist_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19862,14 +20107,12 @@ def get_resources_sip_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library + """get_resources_playlist_content_file - Get all the available sip library files. + Get the content of a particular playlist file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19892,9 +20135,8 @@ def get_resources_sip_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19902,9 +20144,8 @@ def get_resources_sip_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19913,10 +20154,9 @@ def get_resources_sip_library_without_preload_content( ) - def _get_resources_sip_library_serialize( + def _get_resources_playlist_content_file_serialize( self, - take, - skip, + playlist_id, _request_auth, _content_type, _headers, @@ -19936,15 +20176,9 @@ def _get_resources_sip_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if playlist_id is not None: + _path_params['playlistId'] = playlist_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -19954,6 +20188,7 @@ def _get_resources_sip_library_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -19967,7 +20202,7 @@ def _get_resources_sip_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library', + resource_path='/api/v2/resources/playlists/{playlistId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19984,9 +20219,10 @@ def _get_resources_sip_library_serialize( @validate_call - def get_resources_sip_library_by_id( + def get_resources_playlist_values( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19999,13 +20235,15 @@ def get_resources_sip_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_sip_library_by_id + ) -> None: + """get_resources_playlist_values - Get a particular sip library file. + Get some specific values from a playlist file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20028,8 +20266,9 @@ def get_resources_sip_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20037,8 +20276,7 @@ def get_resources_sip_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': None, '404': "ErrorResponse", '500': "ErrorResponse", } @@ -20050,9 +20288,10 @@ def get_resources_sip_library_by_id( @validate_call - def get_resources_sip_library_by_id_with_http_info( + def get_resources_playlist_values_with_http_info( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20065,13 +20304,15 @@ def get_resources_sip_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_sip_library_by_id + ) -> ApiResponse[None]: + """get_resources_playlist_values - Get a particular sip library file. + Get some specific values from a playlist file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20094,8 +20335,9 @@ def get_resources_sip_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20103,8 +20345,7 @@ def get_resources_sip_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': None, '404': "ErrorResponse", '500': "ErrorResponse", } @@ -20116,9 +20357,10 @@ def get_resources_sip_library_by_id_with_http_info( @validate_call - def get_resources_sip_library_by_id_without_preload_content( + def get_resources_playlist_values_without_preload_content( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20132,12 +20374,14 @@ def get_resources_sip_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library_by_id + """get_resources_playlist_values - Get a particular sip library file. + Get some specific values from a playlist file. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20160,8 +20404,9 @@ def get_resources_sip_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20169,8 +20414,7 @@ def get_resources_sip_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': None, '404': "ErrorResponse", '500': "ErrorResponse", } @@ -20181,9 +20425,10 @@ def get_resources_sip_library_by_id_without_preload_content( ) - def _get_resources_sip_library_by_id_serialize( + def _get_resources_playlist_values_serialize( self, - sip_library_id, + playlist_id, + filter, _request_auth, _content_type, _headers, @@ -20203,9 +20448,13 @@ def _get_resources_sip_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if sip_library_id is not None: - _path_params['sipLibraryId'] = sip_library_id + if playlist_id is not None: + _path_params['playlistId'] = playlist_id # process the query parameters + if filter is not None: + + _query_params.append(('filter', filter)) + # process the header parameters # process the form parameters # process the body parameter @@ -20228,7 +20477,7 @@ def _get_resources_sip_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library/{sipLibraryId}', + resource_path='/api/v2/resources/playlists/{playlistId}/values', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20245,9 +20494,10 @@ def _get_resources_sip_library_by_id_serialize( @validate_call - def get_resources_sip_library_content_file( + def get_resources_playlists( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20260,13 +20510,15 @@ def get_resources_sip_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_sip_library_content_file + ) -> GetResourcesCertificates200Response: + """get_resources_playlists - Get the content of a particular sip library file. + Get all the available playlist files. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20289,8 +20541,9 @@ def get_resources_sip_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_content_file_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20298,8 +20551,9 @@ def get_resources_sip_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20309,9 +20563,10 @@ def get_resources_sip_library_content_file( @validate_call - def get_resources_sip_library_content_file_with_http_info( + def get_resources_playlists_with_http_info( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20324,13 +20579,15 @@ def get_resources_sip_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_sip_library_content_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_playlists - Get the content of a particular sip library file. + Get all the available playlist files. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20353,8 +20610,9 @@ def get_resources_sip_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_content_file_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20362,8 +20620,9 @@ def get_resources_sip_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20373,9 +20632,10 @@ def get_resources_sip_library_content_file_with_http_info( @validate_call - def get_resources_sip_library_content_file_without_preload_content( + def get_resources_playlists_without_preload_content( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20389,12 +20649,14 @@ def get_resources_sip_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library_content_file + """get_resources_playlists - Get the content of a particular sip library file. + Get all the available playlist files. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20417,8 +20679,9 @@ def get_resources_sip_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_content_file_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20426,8 +20689,9 @@ def get_resources_sip_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20436,9 +20700,10 @@ def get_resources_sip_library_content_file_without_preload_content( ) - def _get_resources_sip_library_content_file_serialize( + def _get_resources_playlists_serialize( self, - sip_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -20458,9 +20723,15 @@ def _get_resources_sip_library_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if sip_library_id is not None: - _path_params['sipLibraryId'] = sip_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -20470,7 +20741,6 @@ def _get_resources_sip_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -20484,7 +20754,7 @@ def _get_resources_sip_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library/{sipLibraryId}/contentFile', + resource_path='/api/v2/resources/playlists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20501,7 +20771,7 @@ def _get_resources_sip_library_content_file_serialize( @validate_call - def get_resources_sip_library_upload_file_result( + def get_resources_playlists_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -20517,7 +20787,7 @@ def get_resources_sip_library_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_sip_library_upload_file_result + """get_resources_playlists_upload_file_result Get the result of the upload file operation. @@ -20545,7 +20815,7 @@ def get_resources_sip_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_upload_file_result_serialize( + _param = self._get_resources_playlists_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -20566,7 +20836,7 @@ def get_resources_sip_library_upload_file_result( @validate_call - def get_resources_sip_library_upload_file_result_with_http_info( + def get_resources_playlists_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -20582,7 +20852,7 @@ def get_resources_sip_library_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_sip_library_upload_file_result + """get_resources_playlists_upload_file_result Get the result of the upload file operation. @@ -20610,7 +20880,7 @@ def get_resources_sip_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_upload_file_result_serialize( + _param = self._get_resources_playlists_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -20631,7 +20901,7 @@ def get_resources_sip_library_upload_file_result_with_http_info( @validate_call - def get_resources_sip_library_upload_file_result_without_preload_content( + def get_resources_playlists_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -20647,7 +20917,7 @@ def get_resources_sip_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library_upload_file_result + """get_resources_playlists_upload_file_result Get the result of the upload file operation. @@ -20675,7 +20945,7 @@ def get_resources_sip_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_upload_file_result_serialize( + _param = self._get_resources_playlists_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -20695,7 +20965,7 @@ def get_resources_sip_library_upload_file_result_without_preload_content( ) - def _get_resources_sip_library_upload_file_result_serialize( + def _get_resources_playlists_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -20742,7 +21012,7 @@ def _get_resources_sip_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/playlists/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20759,7 +21029,7 @@ def _get_resources_sip_library_upload_file_result_serialize( @validate_call - def get_resources_stats_profile( + def get_resources_sip_library( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -20776,9 +21046,9 @@ def get_resources_stats_profile( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_stats_profile + """get_resources_sip_library - Get all the available stats profile files. + Get all the available sip library files. :param take: The number of search results to return :type take: int @@ -20806,7 +21076,7 @@ def get_resources_stats_profile( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_serialize( + _param = self._get_resources_sip_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -20828,7 +21098,7 @@ def get_resources_stats_profile( @validate_call - def get_resources_stats_profile_with_http_info( + def get_resources_sip_library_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -20845,9 +21115,9 @@ def get_resources_stats_profile_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_stats_profile + """get_resources_sip_library - Get all the available stats profile files. + Get all the available sip library files. :param take: The number of search results to return :type take: int @@ -20875,7 +21145,7 @@ def get_resources_stats_profile_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_serialize( + _param = self._get_resources_sip_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -20897,7 +21167,7 @@ def get_resources_stats_profile_with_http_info( @validate_call - def get_resources_stats_profile_without_preload_content( + def get_resources_sip_library_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -20914,9 +21184,9 @@ def get_resources_stats_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_stats_profile + """get_resources_sip_library - Get all the available stats profile files. + Get all the available sip library files. :param take: The number of search results to return :type take: int @@ -20944,7 +21214,7 @@ def get_resources_stats_profile_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_serialize( + _param = self._get_resources_sip_library_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -20965,7 +21235,7 @@ def get_resources_stats_profile_without_preload_content( ) - def _get_resources_stats_profile_serialize( + def _get_resources_sip_library_serialize( self, take, skip, @@ -21019,7 +21289,7 @@ def _get_resources_stats_profile_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile', + resource_path='/api/v2/resources/sip-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21036,9 +21306,9 @@ def _get_resources_stats_profile_serialize( @validate_call - def get_resources_stats_profile_by_id( + def get_resources_sip_library_by_id( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21052,12 +21322,12 @@ def get_resources_stats_profile_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_stats_profile_by_id + """get_resources_sip_library_by_id - Get a particular stats profile file. + Get a particular sip library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21080,8 +21350,8 @@ def get_resources_stats_profile_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_by_id_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21102,9 +21372,9 @@ def get_resources_stats_profile_by_id( @validate_call - def get_resources_stats_profile_by_id_with_http_info( + def get_resources_sip_library_by_id_with_http_info( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21118,12 +21388,12 @@ def get_resources_stats_profile_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GenericFile]: - """get_resources_stats_profile_by_id + """get_resources_sip_library_by_id - Get a particular stats profile file. + Get a particular sip library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21146,8 +21416,8 @@ def get_resources_stats_profile_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_by_id_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21168,9 +21438,9 @@ def get_resources_stats_profile_by_id_with_http_info( @validate_call - def get_resources_stats_profile_by_id_without_preload_content( + def get_resources_sip_library_by_id_without_preload_content( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21184,12 +21454,12 @@ def get_resources_stats_profile_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_stats_profile_by_id + """get_resources_sip_library_by_id - Get a particular stats profile file. + Get a particular sip library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21212,8 +21482,8 @@ def get_resources_stats_profile_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_by_id_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21233,9 +21503,9 @@ def get_resources_stats_profile_by_id_without_preload_content( ) - def _get_resources_stats_profile_by_id_serialize( + def _get_resources_sip_library_by_id_serialize( self, - stats_profile_id, + sip_library_id, _request_auth, _content_type, _headers, @@ -21255,8 +21525,8 @@ def _get_resources_stats_profile_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if stats_profile_id is not None: - _path_params['statsProfileId'] = stats_profile_id + if sip_library_id is not None: + _path_params['sipLibraryId'] = sip_library_id # process the query parameters # process the header parameters # process the form parameters @@ -21280,7 +21550,7 @@ def _get_resources_stats_profile_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile/{statsProfileId}', + resource_path='/api/v2/resources/sip-library/{sipLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21297,9 +21567,9 @@ def _get_resources_stats_profile_by_id_serialize( @validate_call - def get_resources_stats_profile_content_file( + def get_resources_sip_library_content_file( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21313,12 +21583,12 @@ def get_resources_stats_profile_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_stats_profile_content_file + """get_resources_sip_library_content_file - Get the content of a particular stats profile file. + Get the content of a particular sip library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21341,8 +21611,8 @@ def get_resources_stats_profile_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_content_file_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21361,9 +21631,9 @@ def get_resources_stats_profile_content_file( @validate_call - def get_resources_stats_profile_content_file_with_http_info( + def get_resources_sip_library_content_file_with_http_info( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21377,12 +21647,12 @@ def get_resources_stats_profile_content_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """get_resources_stats_profile_content_file + """get_resources_sip_library_content_file - Get the content of a particular stats profile file. + Get the content of a particular sip library file. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21405,8 +21675,8 @@ def get_resources_stats_profile_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_content_file_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21425,9 +21695,9 @@ def get_resources_stats_profile_content_file_with_http_info( @validate_call - def get_resources_stats_profile_content_file_without_preload_content( + def get_resources_sip_library_content_file_without_preload_content( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21441,140 +21711,12 @@ def get_resources_stats_profile_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_stats_profile_content_file - - Get the content of a particular stats profile file. - - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_resources_stats_profile_content_file_serialize( - stats_profile_id=stats_profile_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_resources_stats_profile_content_file_serialize( - self, - stats_profile_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if stats_profile_id is not None: - _path_params['statsProfileId'] = stats_profile_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/octet-stream', - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/stats-profile/{statsProfileId}/contentFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_resources_stats_profile_upload_file_result( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_stats_profile_upload_file_result + """get_resources_sip_library_content_file - Get the result of the upload file operation. + Get the content of a particular sip library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21597,138 +21739,8 @@ def get_resources_stats_profile_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_upload_file_result_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_stats_profile_upload_file_result_with_http_info( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_stats_profile_upload_file_result - - Get the result of the upload file operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_resources_stats_profile_upload_file_result_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_resources_stats_profile_upload_file_result_without_preload_content( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """get_resources_stats_profile_upload_file_result - - Get the result of the upload file operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_resources_stats_profile_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21736,9 +21748,8 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -21747,9 +21758,9 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( ) - def _get_resources_stats_profile_upload_file_result_serialize( + def _get_resources_sip_library_content_file_serialize( self, - upload_file_id, + sip_library_id, _request_auth, _content_type, _headers, @@ -21769,8 +21780,8 @@ def _get_resources_stats_profile_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if sip_library_id is not None: + _path_params['sipLibraryId'] = sip_library_id # process the query parameters # process the header parameters # process the form parameters @@ -21781,6 +21792,7 @@ def _get_resources_stats_profile_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -21794,7 +21806,7 @@ def _get_resources_stats_profile_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/sip-library/{sipLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21811,9 +21823,9 @@ def _get_resources_stats_profile_upload_file_result_serialize( @validate_call - def get_resources_strike_by_id( + def get_resources_sip_library_upload_file_result( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21826,13 +21838,13 @@ def get_resources_strike_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApplicationType: - """get_resources_strike_by_id + ) -> None: + """get_resources_sip_library_upload_file_result - Get a particular strike. + Get the result of the upload file operation. - :param strike_id: The ID of the strike. (required) - :type strike_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21855,8 +21867,8 @@ def get_resources_strike_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_by_id_serialize( - strike_id=strike_id, + _param = self._get_resources_sip_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21864,7 +21876,8 @@ def get_resources_strike_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -21875,9 +21888,9 @@ def get_resources_strike_by_id( @validate_call - def get_resources_strike_by_id_with_http_info( + def get_resources_sip_library_upload_file_result_with_http_info( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21890,13 +21903,13 @@ def get_resources_strike_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ApplicationType]: - """get_resources_strike_by_id + ) -> ApiResponse[None]: + """get_resources_sip_library_upload_file_result - Get a particular strike. + Get the result of the upload file operation. - :param strike_id: The ID of the strike. (required) - :type strike_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21919,8 +21932,8 @@ def get_resources_strike_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_by_id_serialize( - strike_id=strike_id, + _param = self._get_resources_sip_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21928,7 +21941,8 @@ def get_resources_strike_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -21939,9 +21953,9 @@ def get_resources_strike_by_id_with_http_info( @validate_call - def get_resources_strike_by_id_without_preload_content( + def get_resources_sip_library_upload_file_result_without_preload_content( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21955,12 +21969,12 @@ def get_resources_strike_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_strike_by_id + """get_resources_sip_library_upload_file_result - Get a particular strike. + Get the result of the upload file operation. - :param strike_id: The ID of the strike. (required) - :type strike_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21983,8 +21997,8 @@ def get_resources_strike_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_by_id_serialize( - strike_id=strike_id, + _param = self._get_resources_sip_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21992,7 +22006,8 @@ def get_resources_strike_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22002,9 +22017,9 @@ def get_resources_strike_by_id_without_preload_content( ) - def _get_resources_strike_by_id_serialize( + def _get_resources_sip_library_upload_file_result_serialize( self, - strike_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -22024,8 +22039,8 @@ def _get_resources_strike_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if strike_id is not None: - _path_params['strikeId'] = strike_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -22049,7 +22064,7 @@ def _get_resources_strike_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/strikes/{strikeId}', + resource_path='/api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22066,7 +22081,7 @@ def _get_resources_strike_by_id_serialize( @validate_call - def get_resources_strike_categories( + def get_resources_stats_profile( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -22082,9 +22097,10 @@ def get_resources_strike_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Category]: - """get_resources_strike_categories + ) -> GetResourcesCertificates200Response: + """get_resources_stats_profile + Get all the available stats profile files. :param take: The number of search results to return :type take: int @@ -22112,7 +22128,7 @@ def get_resources_strike_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( + _param = self._get_resources_stats_profile_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -22122,7 +22138,8 @@ def get_resources_strike_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22133,7 +22150,7 @@ def get_resources_strike_categories( @validate_call - def get_resources_strike_categories_with_http_info( + def get_resources_stats_profile_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -22149,9 +22166,10 @@ def get_resources_strike_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Category]]: - """get_resources_strike_categories + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_stats_profile + Get all the available stats profile files. :param take: The number of search results to return :type take: int @@ -22179,7 +22197,7 @@ def get_resources_strike_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( + _param = self._get_resources_stats_profile_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -22189,7 +22207,8 @@ def get_resources_strike_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22200,7 +22219,7 @@ def get_resources_strike_categories_with_http_info( @validate_call - def get_resources_strike_categories_without_preload_content( + def get_resources_stats_profile_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -22217,8 +22236,9 @@ def get_resources_strike_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_strike_categories + """get_resources_stats_profile + Get all the available stats profile files. :param take: The number of search results to return :type take: int @@ -22246,7 +22266,7 @@ def get_resources_strike_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( + _param = self._get_resources_stats_profile_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -22256,7 +22276,8 @@ def get_resources_strike_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22266,7 +22287,7 @@ def get_resources_strike_categories_without_preload_content( ) - def _get_resources_strike_categories_serialize( + def _get_resources_stats_profile_serialize( self, take, skip, @@ -22320,7 +22341,7 @@ def _get_resources_strike_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/strike-categories', + resource_path='/api/v2/resources/stats-profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22337,16 +22358,9 @@ def _get_resources_strike_categories_serialize( @validate_call - def get_resources_strikes( + def get_resources_stats_profile_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22359,27 +22373,13 @@ def get_resources_strikes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApplicationTypes200Response: - """get_resources_strikes + ) -> GenericFile: + """get_resources_stats_profile_by_id - Get all the available strikes. + Get a particular stats profile file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22402,15 +22402,8 @@ def get_resources_strikes( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22418,8 +22411,9 @@ def get_resources_strikes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22430,16 +22424,9 @@ def get_resources_strikes( @validate_call - def get_resources_strikes_with_http_info( + def get_resources_stats_profile_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22452,27 +22439,13 @@ def get_resources_strikes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApplicationTypes200Response]: - """get_resources_strikes + ) -> ApiResponse[GenericFile]: + """get_resources_stats_profile_by_id - Get all the available strikes. + Get a particular stats profile file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22495,15 +22468,8 @@ def get_resources_strikes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22511,8 +22477,9 @@ def get_resources_strikes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22523,16 +22490,9 @@ def get_resources_strikes_with_http_info( @validate_call - def get_resources_strikes_without_preload_content( + def get_resources_stats_profile_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22546,26 +22506,12 @@ def get_resources_strikes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_strikes + """get_resources_stats_profile_by_id - Get all the available strikes. + Get a particular stats profile file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22588,15 +22534,8 @@ def get_resources_strikes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22604,8 +22543,9 @@ def get_resources_strikes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22615,16 +22555,9 @@ def get_resources_strikes_without_preload_content( ) - def _get_resources_strikes_serialize( + def _get_resources_stats_profile_by_id_serialize( self, - take, - skip, - search_col, - search_val, - filter_mode, - sort, - compatible_with, - categories, + stats_profile_id, _request_auth, _content_type, _headers, @@ -22644,39 +22577,9 @@ def _get_resources_strikes_serialize( _body_params: Optional[bytes] = None # process the path parameters + if stats_profile_id is not None: + _path_params['statsProfileId'] = stats_profile_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - - if compatible_with is not None: - - _query_params.append(('compatibleWith', compatible_with)) - - if categories is not None: - - _query_params.append(('categories', categories)) - # process the header parameters # process the form parameters # process the body parameter @@ -22699,7 +22602,7 @@ def _get_resources_strikes_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/strikes', + resource_path='/api/v2/resources/stats-profile/{statsProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22716,9 +22619,9 @@ def _get_resources_strikes_serialize( @validate_call - def get_resources_tls_certificate_by_id( + def get_resources_stats_profile_content_file( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22731,13 +22634,13 @@ def get_resources_tls_certificate_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_tls_certificate_by_id + ) -> bytearray: + """get_resources_stats_profile_content_file - Get a particular TLS certificate file. + Get the content of a particular stats profile file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22760,8 +22663,8 @@ def get_resources_tls_certificate_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22769,10 +22672,8 @@ def get_resources_tls_certificate_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22782,9 +22683,9 @@ def get_resources_tls_certificate_by_id( @validate_call - def get_resources_tls_certificate_by_id_with_http_info( + def get_resources_stats_profile_content_file_with_http_info( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22797,13 +22698,13 @@ def get_resources_tls_certificate_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_tls_certificate_by_id + ) -> ApiResponse[bytearray]: + """get_resources_stats_profile_content_file - Get a particular TLS certificate file. + Get the content of a particular stats profile file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22826,8 +22727,8 @@ def get_resources_tls_certificate_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22835,10 +22736,8 @@ def get_resources_tls_certificate_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22848,9 +22747,9 @@ def get_resources_tls_certificate_by_id_with_http_info( @validate_call - def get_resources_tls_certificate_by_id_without_preload_content( + def get_resources_stats_profile_content_file_without_preload_content( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22864,12 +22763,12 @@ def get_resources_tls_certificate_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificate_by_id + """get_resources_stats_profile_content_file - Get a particular TLS certificate file. + Get the content of a particular stats profile file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22892,8 +22791,8 @@ def get_resources_tls_certificate_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22901,10 +22800,8 @@ def get_resources_tls_certificate_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22913,9 +22810,9 @@ def get_resources_tls_certificate_by_id_without_preload_content( ) - def _get_resources_tls_certificate_by_id_serialize( + def _get_resources_stats_profile_content_file_serialize( self, - tls_certificate_id, + stats_profile_id, _request_auth, _content_type, _headers, @@ -22935,8 +22832,8 @@ def _get_resources_tls_certificate_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_certificate_id is not None: - _path_params['tlsCertificateId'] = tls_certificate_id + if stats_profile_id is not None: + _path_params['statsProfileId'] = stats_profile_id # process the query parameters # process the header parameters # process the form parameters @@ -22947,6 +22844,7 @@ def _get_resources_tls_certificate_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -22960,7 +22858,7 @@ def _get_resources_tls_certificate_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}', + resource_path='/api/v2/resources/stats-profile/{statsProfileId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22977,9 +22875,9 @@ def _get_resources_tls_certificate_by_id_serialize( @validate_call - def get_resources_tls_certificate_content_file( + def get_resources_stats_profile_upload_file_result( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22992,13 +22890,13 @@ def get_resources_tls_certificate_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_tls_certificate_content_file + ) -> None: + """get_resources_stats_profile_upload_file_result - Get the content of a particular TLS certificate file. + Get the result of the upload file operation. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23021,8 +22919,8 @@ def get_resources_tls_certificate_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_stats_profile_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23030,8 +22928,9 @@ def get_resources_tls_certificate_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23041,9 +22940,9 @@ def get_resources_tls_certificate_content_file( @validate_call - def get_resources_tls_certificate_content_file_with_http_info( + def get_resources_stats_profile_upload_file_result_with_http_info( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23056,13 +22955,13 @@ def get_resources_tls_certificate_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_tls_certificate_content_file + ) -> ApiResponse[None]: + """get_resources_stats_profile_upload_file_result - Get the content of a particular TLS certificate file. + Get the result of the upload file operation. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23085,8 +22984,8 @@ def get_resources_tls_certificate_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_stats_profile_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23094,8 +22993,9 @@ def get_resources_tls_certificate_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23105,9 +23005,9 @@ def get_resources_tls_certificate_content_file_with_http_info( @validate_call - def get_resources_tls_certificate_content_file_without_preload_content( + def get_resources_stats_profile_upload_file_result_without_preload_content( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23121,12 +23021,12 @@ def get_resources_tls_certificate_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificate_content_file + """get_resources_stats_profile_upload_file_result - Get the content of a particular TLS certificate file. + Get the result of the upload file operation. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23149,8 +23049,8 @@ def get_resources_tls_certificate_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_stats_profile_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23158,8 +23058,9 @@ def get_resources_tls_certificate_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23168,9 +23069,9 @@ def get_resources_tls_certificate_content_file_without_preload_content( ) - def _get_resources_tls_certificate_content_file_serialize( + def _get_resources_stats_profile_upload_file_result_serialize( self, - tls_certificate_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -23190,8 +23091,8 @@ def _get_resources_tls_certificate_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_certificate_id is not None: - _path_params['tlsCertificateId'] = tls_certificate_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -23202,7 +23103,6 @@ def _get_resources_tls_certificate_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -23216,7 +23116,7 @@ def _get_resources_tls_certificate_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}/contentFile', + resource_path='/api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23233,7 +23133,262 @@ def _get_resources_tls_certificate_content_file_serialize( @validate_call - def get_resources_tls_certificates( + def get_resources_strike_by_id( + self, + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApplicationType: + """get_resources_strike_by_id + + Get a particular strike. + + :param strike_id: The ID of the strike. (required) + :type strike_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_by_id_with_http_info( + self, + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ApplicationType]: + """get_resources_strike_by_id + + Get a particular strike. + + :param strike_id: The ID of the strike. (required) + :type strike_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_by_id_without_preload_content( + self, + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_strike_by_id + + Get a particular strike. + + :param strike_id: The ID of the strike. (required) + :type strike_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_strike_by_id_serialize( + self, + strike_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if strike_id is not None: + _path_params['strikeId'] = strike_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/strikes/{strikeId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_strike_categories( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -23249,10 +23404,9 @@ def get_resources_tls_certificates( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_tls_certificates + ) -> List[Category]: + """get_resources_strike_categories - Get all the available TLS certificate files :param take: The number of search results to return :type take: int @@ -23280,7 +23434,7 @@ def get_resources_tls_certificates( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_strike_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -23290,8 +23444,7 @@ def get_resources_tls_certificates( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23302,7 +23455,7 @@ def get_resources_tls_certificates( @validate_call - def get_resources_tls_certificates_with_http_info( + def get_resources_strike_categories_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -23318,10 +23471,9 @@ def get_resources_tls_certificates_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_certificates + ) -> ApiResponse[List[Category]]: + """get_resources_strike_categories - Get all the available TLS certificate files :param take: The number of search results to return :type take: int @@ -23349,7 +23501,7 @@ def get_resources_tls_certificates_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_strike_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -23359,8 +23511,7 @@ def get_resources_tls_certificates_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23371,7 +23522,7 @@ def get_resources_tls_certificates_with_http_info( @validate_call - def get_resources_tls_certificates_without_preload_content( + def get_resources_strike_categories_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -23388,9 +23539,8 @@ def get_resources_tls_certificates_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificates + """get_resources_strike_categories - Get all the available TLS certificate files :param take: The number of search results to return :type take: int @@ -23418,7 +23568,7 @@ def get_resources_tls_certificates_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_strike_categories_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -23428,8 +23578,7 @@ def get_resources_tls_certificates_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23439,7 +23588,7 @@ def get_resources_tls_certificates_without_preload_content( ) - def _get_resources_tls_certificates_serialize( + def _get_resources_strike_categories_serialize( self, take, skip, @@ -23493,7 +23642,7 @@ def _get_resources_tls_certificates_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates', + resource_path='/api/v2/resources/strike-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23510,9 +23659,16 @@ def _get_resources_tls_certificates_serialize( @validate_call - def get_resources_tls_certificates_upload_file_result( + def get_resources_strikes( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23525,13 +23681,1698 @@ def get_resources_tls_certificates_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_tls_certificates_upload_file_result + ) -> GetResourcesApplicationTypes200Response: + """get_resources_strikes - Get the result of the upload file operation. + Get all the available strikes. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strikes_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetResourcesApplicationTypes200Response]: + """get_resources_strikes + + Get all the available strikes. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strikes_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_strikes + + Get all the available strikes. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_strikes_serialize( + self, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + compatible_with, + categories, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if compatible_with is not None: + + _query_params.append(('compatibleWith', compatible_with)) + + if categories is not None: + + _query_params.append(('categories', categories)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/strikes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificate_by_id( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GenericFile: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_by_id_with_http_info( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GenericFile]: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_by_id_without_preload_content( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_tls_certificate_by_id_serialize( + self, + tls_certificate_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tls_certificate_id is not None: + _path_params['tlsCertificateId'] = tls_certificate_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificate_content_file( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bytearray: + """get_resources_tls_certificate_content_file + + Get the content of a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_content_file_with_http_info( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bytearray]: + """get_resources_tls_certificate_content_file + + Get the content of a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_content_file_without_preload_content( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_certificate_content_file + + Get the content of a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_tls_certificate_content_file_serialize( + self, + tls_certificate_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tls_certificate_id is not None: + _path_params['tlsCertificateId'] = tls_certificate_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/octet-stream', + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}/contentFile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificates( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetResourcesCertificates200Response: + """get_resources_tls_certificates + + Get all the available TLS certificate files + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificates_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_tls_certificates + + Get all the available TLS certificate files + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificates_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_certificates + + Get all the available TLS certificate files + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_tls_certificates_serialize( + self, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/tls-certificates', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificates_upload_file_result( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """get_resources_tls_certificates_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificates_upload_file_result_with_http_info( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """get_resources_tls_certificates_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificates_upload_file_result_without_preload_content( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_certificates_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_tls_certificates_upload_file_result_serialize( + self, + upload_file_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}/result', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_dh_by_id( + self, + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GenericFile: + """get_resources_tls_dh_by_id + + Get a particular TLS DH file. + + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_dh_by_id_with_http_info( + self, + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GenericFile]: + """get_resources_tls_dh_by_id + + Get a particular TLS DH file. + + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_dh_by_id_without_preload_content( + self, + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_dh_by_id + + Get a particular TLS DH file. + + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_tls_dh_by_id_serialize( + self, + tls_dh_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tls_dh_id is not None: + _path_params['tlsDhId'] = tls_dh_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/tls-dhs/{tlsDhId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_dh_content_file( + self, + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bytearray: + """get_resources_tls_dh_content_file + + Get the content of a particular TLS DH file. + + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23554,8 +25395,8 @@ def get_resources_tls_certificates_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23563,9 +25404,8 @@ def get_resources_tls_certificates_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23575,9 +25415,9 @@ def get_resources_tls_certificates_upload_file_result( @validate_call - def get_resources_tls_certificates_upload_file_result_with_http_info( + def get_resources_tls_dh_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23590,13 +25430,13 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_tls_certificates_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_tls_dh_content_file - Get the result of the upload file operation. + Get the content of a particular TLS DH file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23619,8 +25459,8 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23628,9 +25468,8 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23640,9 +25479,9 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( @validate_call - def get_resources_tls_certificates_upload_file_result_without_preload_content( + def get_resources_tls_dh_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23656,12 +25495,12 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificates_upload_file_result + """get_resources_tls_dh_content_file - Get the result of the upload file operation. + Get the content of a particular TLS DH file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23684,8 +25523,8 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23693,9 +25532,8 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23704,9 +25542,9 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( ) - def _get_resources_tls_certificates_upload_file_result_serialize( + def _get_resources_tls_dh_content_file_serialize( self, - upload_file_id, + tls_dh_id, _request_auth, _content_type, _headers, @@ -23726,8 +25564,8 @@ def _get_resources_tls_certificates_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if tls_dh_id is not None: + _path_params['tlsDhId'] = tls_dh_id # process the query parameters # process the header parameters # process the form parameters @@ -23738,6 +25576,7 @@ def _get_resources_tls_certificates_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -23751,7 +25590,7 @@ def _get_resources_tls_certificates_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/tls-dhs/{tlsDhId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23768,9 +25607,10 @@ def _get_resources_tls_certificates_upload_file_result_serialize( @validate_call - def get_resources_tls_dh_by_id( + def get_resources_tls_dhs( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23783,13 +25623,15 @@ def get_resources_tls_dh_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_tls_dh_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_tls_dhs - Get a particular TLS DH file. + Get all the available TLS DH files. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23812,8 +25654,9 @@ def get_resources_tls_dh_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_dhs_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23821,9 +25664,8 @@ def get_resources_tls_dh_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23834,9 +25676,10 @@ def get_resources_tls_dh_by_id( @validate_call - def get_resources_tls_dh_by_id_with_http_info( + def get_resources_tls_dhs_with_http_info( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23849,13 +25692,15 @@ def get_resources_tls_dh_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_tls_dh_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_tls_dhs - Get a particular TLS DH file. + Get all the available TLS DH files. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23878,8 +25723,9 @@ def get_resources_tls_dh_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_dhs_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23887,9 +25733,8 @@ def get_resources_tls_dh_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23900,9 +25745,10 @@ def get_resources_tls_dh_by_id_with_http_info( @validate_call - def get_resources_tls_dh_by_id_without_preload_content( + def get_resources_tls_dhs_without_preload_content( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23916,12 +25762,14 @@ def get_resources_tls_dh_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dh_by_id + """get_resources_tls_dhs - Get a particular TLS DH file. + Get all the available TLS DH files. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23944,8 +25792,9 @@ def get_resources_tls_dh_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_dhs_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23953,9 +25802,8 @@ def get_resources_tls_dh_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23965,9 +25813,10 @@ def get_resources_tls_dh_by_id_without_preload_content( ) - def _get_resources_tls_dh_by_id_serialize( + def _get_resources_tls_dhs_serialize( self, - tls_dh_id, + take, + skip, _request_auth, _content_type, _headers, @@ -23987,9 +25836,15 @@ def _get_resources_tls_dh_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_dh_id is not None: - _path_params['tlsDhId'] = tls_dh_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -24012,7 +25867,7 @@ def _get_resources_tls_dh_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/{tlsDhId}', + resource_path='/api/v2/resources/tls-dhs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24029,9 +25884,9 @@ def _get_resources_tls_dh_by_id_serialize( @validate_call - def get_resources_tls_dh_content_file( + def get_resources_tls_dhs_upload_file_result( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24044,13 +25899,13 @@ def get_resources_tls_dh_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_tls_dh_content_file + ) -> None: + """get_resources_tls_dhs_upload_file_result - Get the content of a particular TLS DH file. + Get the result of the upload file operation. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24073,8 +25928,8 @@ def get_resources_tls_dh_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_dhs_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24082,8 +25937,9 @@ def get_resources_tls_dh_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -24093,9 +25949,9 @@ def get_resources_tls_dh_content_file( @validate_call - def get_resources_tls_dh_content_file_with_http_info( + def get_resources_tls_dhs_upload_file_result_with_http_info( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24108,13 +25964,13 @@ def get_resources_tls_dh_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_tls_dh_content_file + ) -> ApiResponse[None]: + """get_resources_tls_dhs_upload_file_result - Get the content of a particular TLS DH file. + Get the result of the upload file operation. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24137,8 +25993,8 @@ def get_resources_tls_dh_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_dhs_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24146,8 +26002,9 @@ def get_resources_tls_dh_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -24157,9 +26014,9 @@ def get_resources_tls_dh_content_file_with_http_info( @validate_call - def get_resources_tls_dh_content_file_without_preload_content( + def get_resources_tls_dhs_upload_file_result_without_preload_content( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24173,12 +26030,12 @@ def get_resources_tls_dh_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dh_content_file + """get_resources_tls_dhs_upload_file_result - Get the content of a particular TLS DH file. + Get the result of the upload file operation. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24201,8 +26058,8 @@ def get_resources_tls_dh_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_dhs_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24210,8 +26067,9 @@ def get_resources_tls_dh_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -24220,9 +26078,9 @@ def get_resources_tls_dh_content_file_without_preload_content( ) - def _get_resources_tls_dh_content_file_serialize( + def _get_resources_tls_dhs_upload_file_result_serialize( self, - tls_dh_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -24242,8 +26100,8 @@ def _get_resources_tls_dh_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_dh_id is not None: - _path_params['tlsDhId'] = tls_dh_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -24254,7 +26112,6 @@ def _get_resources_tls_dh_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -24268,7 +26125,7 @@ def _get_resources_tls_dh_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/{tlsDhId}/contentFile', + resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24285,10 +26142,9 @@ def _get_resources_tls_dh_content_file_serialize( @validate_call - def get_resources_tls_dhs( + def get_resources_tls_key_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24301,15 +26157,13 @@ def get_resources_tls_dhs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_tls_dhs + ) -> GenericFile: + """get_resources_tls_key_by_id - Get all the available TLS DH files. + Get a particular TLS key file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24332,9 +26186,8 @@ def get_resources_tls_dhs( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( - take=take, - skip=skip, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24342,8 +26195,9 @@ def get_resources_tls_dhs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24354,10 +26208,9 @@ def get_resources_tls_dhs( @validate_call - def get_resources_tls_dhs_with_http_info( + def get_resources_tls_key_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24370,15 +26223,13 @@ def get_resources_tls_dhs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_dhs + ) -> ApiResponse[GenericFile]: + """get_resources_tls_key_by_id - Get all the available TLS DH files. + Get a particular TLS key file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24401,9 +26252,8 @@ def get_resources_tls_dhs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( - take=take, - skip=skip, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24411,8 +26261,9 @@ def get_resources_tls_dhs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24423,10 +26274,9 @@ def get_resources_tls_dhs_with_http_info( @validate_call - def get_resources_tls_dhs_without_preload_content( + def get_resources_tls_key_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24440,14 +26290,12 @@ def get_resources_tls_dhs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dhs + """get_resources_tls_key_by_id - Get all the available TLS DH files. + Get a particular TLS key file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24470,9 +26318,8 @@ def get_resources_tls_dhs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( - take=take, - skip=skip, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24480,8 +26327,9 @@ def get_resources_tls_dhs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24491,10 +26339,9 @@ def get_resources_tls_dhs_without_preload_content( ) - def _get_resources_tls_dhs_serialize( + def _get_resources_tls_key_by_id_serialize( self, - take, - skip, + tls_key_id, _request_auth, _content_type, _headers, @@ -24514,15 +26361,9 @@ def _get_resources_tls_dhs_serialize( _body_params: Optional[bytes] = None # process the path parameters + if tls_key_id is not None: + _path_params['tlsKeyId'] = tls_key_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -24545,7 +26386,7 @@ def _get_resources_tls_dhs_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs', + resource_path='/api/v2/resources/tls-keys/{tlsKeyId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24562,9 +26403,9 @@ def _get_resources_tls_dhs_serialize( @validate_call - def get_resources_tls_dhs_upload_file_result( + def get_resources_tls_key_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24577,13 +26418,13 @@ def get_resources_tls_dhs_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_tls_dhs_upload_file_result + ) -> bytearray: + """get_resources_tls_key_content_file - Get the result of the upload file operation. + Get the content of a particular TLS key file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24606,8 +26447,8 @@ def get_resources_tls_dhs_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24615,9 +26456,8 @@ def get_resources_tls_dhs_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -24627,9 +26467,9 @@ def get_resources_tls_dhs_upload_file_result( @validate_call - def get_resources_tls_dhs_upload_file_result_with_http_info( + def get_resources_tls_key_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24642,13 +26482,13 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_tls_dhs_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_tls_key_content_file - Get the result of the upload file operation. + Get the content of a particular TLS key file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24671,8 +26511,8 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24680,9 +26520,8 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -24692,9 +26531,9 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( @validate_call - def get_resources_tls_dhs_upload_file_result_without_preload_content( + def get_resources_tls_key_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24708,12 +26547,12 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dhs_upload_file_result + """get_resources_tls_key_content_file - Get the result of the upload file operation. + Get the content of a particular TLS key file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24736,8 +26575,8 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24745,9 +26584,8 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -24756,9 +26594,9 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( ) - def _get_resources_tls_dhs_upload_file_result_serialize( + def _get_resources_tls_key_content_file_serialize( self, - upload_file_id, + tls_key_id, _request_auth, _content_type, _headers, @@ -24778,8 +26616,8 @@ def _get_resources_tls_dhs_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if tls_key_id is not None: + _path_params['tlsKeyId'] = tls_key_id # process the query parameters # process the header parameters # process the form parameters @@ -24790,6 +26628,7 @@ def _get_resources_tls_dhs_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -24803,7 +26642,7 @@ def _get_resources_tls_dhs_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/tls-keys/{tlsKeyId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24820,9 +26659,10 @@ def _get_resources_tls_dhs_upload_file_result_serialize( @validate_call - def get_resources_tls_key_by_id( + def get_resources_tls_keys( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24835,13 +26675,15 @@ def get_resources_tls_key_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_tls_key_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_tls_keys - Get a particular TLS key file. + Get all the available TLS key files. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24864,8 +26706,9 @@ def get_resources_tls_key_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_tls_keys_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24873,9 +26716,8 @@ def get_resources_tls_key_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24886,9 +26728,10 @@ def get_resources_tls_key_by_id( @validate_call - def get_resources_tls_key_by_id_with_http_info( + def get_resources_tls_keys_with_http_info( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24901,13 +26744,15 @@ def get_resources_tls_key_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_tls_key_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_tls_keys - Get a particular TLS key file. + Get all the available TLS key files. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24930,8 +26775,9 @@ def get_resources_tls_key_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_tls_keys_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24939,9 +26785,8 @@ def get_resources_tls_key_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24952,9 +26797,10 @@ def get_resources_tls_key_by_id_with_http_info( @validate_call - def get_resources_tls_key_by_id_without_preload_content( + def get_resources_tls_keys_without_preload_content( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24968,12 +26814,14 @@ def get_resources_tls_key_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_key_by_id + """get_resources_tls_keys - Get a particular TLS key file. + Get all the available TLS key files. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24996,8 +26844,9 @@ def get_resources_tls_key_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_tls_keys_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25005,9 +26854,8 @@ def get_resources_tls_key_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25017,9 +26865,10 @@ def get_resources_tls_key_by_id_without_preload_content( ) - def _get_resources_tls_key_by_id_serialize( + def _get_resources_tls_keys_serialize( self, - tls_key_id, + take, + skip, _request_auth, _content_type, _headers, @@ -25039,9 +26888,15 @@ def _get_resources_tls_key_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_key_id is not None: - _path_params['tlsKeyId'] = tls_key_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -25064,7 +26919,7 @@ def _get_resources_tls_key_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/{tlsKeyId}', + resource_path='/api/v2/resources/tls-keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25081,9 +26936,9 @@ def _get_resources_tls_key_by_id_serialize( @validate_call - def get_resources_tls_key_content_file( + def get_resources_tls_keys_upload_file_result( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25096,13 +26951,13 @@ def get_resources_tls_key_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_tls_key_content_file + ) -> None: + """get_resources_tls_keys_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25125,8 +26980,8 @@ def get_resources_tls_key_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_tls_keys_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25134,8 +26989,9 @@ def get_resources_tls_key_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -25145,9 +27001,9 @@ def get_resources_tls_key_content_file( @validate_call - def get_resources_tls_key_content_file_with_http_info( + def get_resources_tls_keys_upload_file_result_with_http_info( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25160,13 +27016,13 @@ def get_resources_tls_key_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_tls_key_content_file + ) -> ApiResponse[None]: + """get_resources_tls_keys_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25189,8 +27045,8 @@ def get_resources_tls_key_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_tls_keys_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25198,8 +27054,9 @@ def get_resources_tls_key_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -25209,9 +27066,9 @@ def get_resources_tls_key_content_file_with_http_info( @validate_call - def get_resources_tls_key_content_file_without_preload_content( + def get_resources_tls_keys_upload_file_result_without_preload_content( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25225,12 +27082,12 @@ def get_resources_tls_key_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_key_content_file + """get_resources_tls_keys_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25253,8 +27110,8 @@ def get_resources_tls_key_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_tls_keys_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25262,8 +27119,9 @@ def get_resources_tls_key_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -25272,9 +27130,9 @@ def get_resources_tls_key_content_file_without_preload_content( ) - def _get_resources_tls_key_content_file_serialize( + def _get_resources_tls_keys_upload_file_result_serialize( self, - tls_key_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -25294,8 +27152,8 @@ def _get_resources_tls_key_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_key_id is not None: - _path_params['tlsKeyId'] = tls_key_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -25306,7 +27164,6 @@ def _get_resources_tls_key_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -25320,7 +27177,7 @@ def _get_resources_tls_key_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/{tlsKeyId}/contentFile', + resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25337,7 +27194,7 @@ def _get_resources_tls_key_content_file_serialize( @validate_call - def get_resources_tls_keys( + def get_resources_user_defined_apps( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25353,10 +27210,9 @@ def get_resources_tls_keys( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_tls_keys + ) -> List[AppsecApp]: + """get_resources_user_defined_apps - Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -25384,7 +27240,7 @@ def get_resources_tls_keys( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( + _param = self._get_resources_user_defined_apps_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25394,8 +27250,7 @@ def get_resources_tls_keys( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25406,7 +27261,7 @@ def get_resources_tls_keys( @validate_call - def get_resources_tls_keys_with_http_info( + def get_resources_user_defined_apps_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25422,10 +27277,9 @@ def get_resources_tls_keys_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_keys + ) -> ApiResponse[List[AppsecApp]]: + """get_resources_user_defined_apps - Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -25453,7 +27307,7 @@ def get_resources_tls_keys_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( + _param = self._get_resources_user_defined_apps_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25463,8 +27317,7 @@ def get_resources_tls_keys_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25475,7 +27328,7 @@ def get_resources_tls_keys_with_http_info( @validate_call - def get_resources_tls_keys_without_preload_content( + def get_resources_user_defined_apps_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25492,9 +27345,8 @@ def get_resources_tls_keys_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_keys + """get_resources_user_defined_apps - Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -25522,7 +27374,7 @@ def get_resources_tls_keys_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( + _param = self._get_resources_user_defined_apps_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25532,8 +27384,7 @@ def get_resources_tls_keys_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -25543,7 +27394,7 @@ def get_resources_tls_keys_without_preload_content( ) - def _get_resources_tls_keys_serialize( + def _get_resources_user_defined_apps_serialize( self, take, skip, @@ -25597,7 +27448,7 @@ def _get_resources_tls_keys_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys', + resource_path='/api/v2/resources/user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25614,7 +27465,7 @@ def _get_resources_tls_keys_serialize( @validate_call - def get_resources_tls_keys_upload_file_result( + def get_resources_user_defined_apps_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25630,7 +27481,7 @@ def get_resources_tls_keys_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_tls_keys_upload_file_result + """get_resources_user_defined_apps_upload_file_result Get the result of the upload file operation. @@ -25658,7 +27509,7 @@ def get_resources_tls_keys_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25679,7 +27530,7 @@ def get_resources_tls_keys_upload_file_result( @validate_call - def get_resources_tls_keys_upload_file_result_with_http_info( + def get_resources_user_defined_apps_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25695,7 +27546,7 @@ def get_resources_tls_keys_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_tls_keys_upload_file_result + """get_resources_user_defined_apps_upload_file_result Get the result of the upload file operation. @@ -25723,7 +27574,7 @@ def get_resources_tls_keys_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25744,7 +27595,7 @@ def get_resources_tls_keys_upload_file_result_with_http_info( @validate_call - def get_resources_tls_keys_upload_file_result_without_preload_content( + def get_resources_user_defined_apps_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25760,7 +27611,7 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_keys_upload_file_result + """get_resources_user_defined_apps_upload_file_result Get the result of the upload file operation. @@ -25788,7 +27639,7 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25808,7 +27659,7 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( ) - def _get_resources_tls_keys_upload_file_result_serialize( + def _get_resources_user_defined_apps_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -25855,7 +27706,7 @@ def _get_resources_tls_keys_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25872,10 +27723,9 @@ def _get_resources_tls_keys_upload_file_result_serialize( @validate_call - def get_resources_user_defined_apps( + def poll_resources_apps_export_all( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25888,14 +27738,13 @@ def get_resources_user_defined_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[AppsecApp]: - """get_resources_user_defined_apps + ) -> AsyncContext: + """poll_resources_apps_export_all + Get the state of an ongoing operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25918,9 +27767,8 @@ def get_resources_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( - take=take, - skip=skip, + _param = self._poll_resources_apps_export_all_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25928,8 +27776,8 @@ def get_resources_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", - '500': "ErrorResponse", + '200': "AsyncContext", + '400': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -25939,10 +27787,9 @@ def get_resources_user_defined_apps( @validate_call - def get_resources_user_defined_apps_with_http_info( + def poll_resources_apps_export_all_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25955,14 +27802,13 @@ def get_resources_user_defined_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[AppsecApp]]: - """get_resources_user_defined_apps + ) -> ApiResponse[AsyncContext]: + """poll_resources_apps_export_all + Get the state of an ongoing operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25985,9 +27831,8 @@ def get_resources_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( - take=take, - skip=skip, + _param = self._poll_resources_apps_export_all_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25995,8 +27840,8 @@ def get_resources_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", - '500': "ErrorResponse", + '200': "AsyncContext", + '400': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26006,10 +27851,9 @@ def get_resources_user_defined_apps_with_http_info( @validate_call - def get_resources_user_defined_apps_without_preload_content( + def poll_resources_apps_export_all_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26023,13 +27867,12 @@ def get_resources_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_user_defined_apps + """poll_resources_apps_export_all + Get the state of an ongoing operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26052,9 +27895,8 @@ def get_resources_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( - take=take, - skip=skip, + _param = self._poll_resources_apps_export_all_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26062,8 +27904,8 @@ def get_resources_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", - '500': "ErrorResponse", + '200': "AsyncContext", + '400': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26072,10 +27914,9 @@ def get_resources_user_defined_apps_without_preload_content( ) - def _get_resources_user_defined_apps_serialize( + def _poll_resources_apps_export_all_serialize( self, - take, - skip, + id, _request_auth, _content_type, _headers, @@ -26095,15 +27936,9 @@ def _get_resources_user_defined_apps_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -26126,7 +27961,7 @@ def _get_resources_user_defined_apps_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/user-defined-apps', + resource_path='/api/v2/resources/apps/operations/export-all/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26143,9 +27978,9 @@ def _get_resources_user_defined_apps_serialize( @validate_call - def get_resources_user_defined_apps_upload_file_result( + def poll_resources_captures_batch_delete( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26158,13 +27993,13 @@ def get_resources_user_defined_apps_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_user_defined_apps_upload_file_result + ) -> AsyncContext: + """poll_resources_captures_batch_delete - Get the result of the upload file operation. + Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26187,8 +28022,8 @@ def get_resources_user_defined_apps_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_captures_batch_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26196,9 +28031,8 @@ def get_resources_user_defined_apps_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26208,9 +28042,9 @@ def get_resources_user_defined_apps_upload_file_result( @validate_call - def get_resources_user_defined_apps_upload_file_result_with_http_info( + def poll_resources_captures_batch_delete_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26223,13 +28057,13 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_user_defined_apps_upload_file_result + ) -> ApiResponse[AsyncContext]: + """poll_resources_captures_batch_delete - Get the result of the upload file operation. + Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26252,8 +28086,8 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_captures_batch_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26261,9 +28095,8 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26273,9 +28106,9 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( @validate_call - def get_resources_user_defined_apps_upload_file_result_without_preload_content( + def poll_resources_captures_batch_delete_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26289,12 +28122,12 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_user_defined_apps_upload_file_result + """poll_resources_captures_batch_delete - Get the result of the upload file operation. + Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26317,8 +28150,8 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_captures_batch_delete_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26326,9 +28159,8 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26337,9 +28169,9 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( ) - def _get_resources_user_defined_apps_upload_file_result_serialize( + def _poll_resources_captures_batch_delete_serialize( self, - upload_file_id, + id, _request_auth, _content_type, _headers, @@ -26359,8 +28191,8 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -26384,7 +28216,7 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/captures/operations/batch-delete/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26401,9 +28233,9 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( @validate_call - def poll_resources_apps_export_all( + def poll_resources_captures_upload_file( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26417,12 +28249,12 @@ def poll_resources_apps_export_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_apps_export_all + """poll_resources_captures_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26445,8 +28277,8 @@ def poll_resources_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._poll_resources_captures_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26456,6 +28288,7 @@ def poll_resources_apps_export_all( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26465,9 +28298,9 @@ def poll_resources_apps_export_all( @validate_call - def poll_resources_apps_export_all_with_http_info( + def poll_resources_captures_upload_file_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26481,12 +28314,12 @@ def poll_resources_apps_export_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_apps_export_all + """poll_resources_captures_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26509,8 +28342,8 @@ def poll_resources_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._poll_resources_captures_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26520,6 +28353,7 @@ def poll_resources_apps_export_all_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26529,9 +28363,9 @@ def poll_resources_apps_export_all_with_http_info( @validate_call - def poll_resources_apps_export_all_without_preload_content( + def poll_resources_captures_upload_file_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26545,12 +28379,12 @@ def poll_resources_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_apps_export_all + """poll_resources_captures_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26573,8 +28407,8 @@ def poll_resources_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._poll_resources_captures_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26584,6 +28418,7 @@ def poll_resources_apps_export_all_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26592,9 +28427,9 @@ def poll_resources_apps_export_all_without_preload_content( ) - def _poll_resources_apps_export_all_serialize( + def _poll_resources_captures_upload_file_serialize( self, - id, + upload_file_id, _request_auth, _content_type, _headers, @@ -26614,8 +28449,8 @@ def _poll_resources_apps_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -26639,7 +28474,7 @@ def _poll_resources_apps_export_all_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/apps/operations/export-all/{id}', + resource_path='/api/v2/resources/captures/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26656,9 +28491,9 @@ def _poll_resources_apps_export_all_serialize( @validate_call - def poll_resources_captures_batch_delete( + def poll_resources_certificates_upload_file( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26671,13 +28506,13 @@ def poll_resources_captures_batch_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_captures_batch_delete + ) -> None: + """poll_resources_certificates_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26700,8 +28535,8 @@ def poll_resources_captures_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._poll_resources_certificates_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26709,8 +28544,9 @@ def poll_resources_captures_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '200': None, '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26720,9 +28556,9 @@ def poll_resources_captures_batch_delete( @validate_call - def poll_resources_captures_batch_delete_with_http_info( + def poll_resources_certificates_upload_file_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26735,13 +28571,13 @@ def poll_resources_captures_batch_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_captures_batch_delete + ) -> ApiResponse[None]: + """poll_resources_certificates_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26764,8 +28600,8 @@ def poll_resources_captures_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._poll_resources_certificates_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26773,8 +28609,9 @@ def poll_resources_captures_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '200': None, '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26784,9 +28621,9 @@ def poll_resources_captures_batch_delete_with_http_info( @validate_call - def poll_resources_captures_batch_delete_without_preload_content( + def poll_resources_certificates_upload_file_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26800,12 +28637,12 @@ def poll_resources_captures_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_captures_batch_delete + """poll_resources_certificates_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26828,8 +28665,8 @@ def poll_resources_captures_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._poll_resources_certificates_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26837,8 +28674,9 @@ def poll_resources_captures_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '200': None, '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26847,9 +28685,9 @@ def poll_resources_captures_batch_delete_without_preload_content( ) - def _poll_resources_captures_batch_delete_serialize( + def _poll_resources_certificates_upload_file_serialize( self, - id, + upload_file_id, _request_auth, _content_type, _headers, @@ -26869,8 +28707,8 @@ def _poll_resources_captures_batch_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -26894,7 +28732,7 @@ def _poll_resources_captures_batch_delete_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/operations/batch-delete/{id}', + resource_path='/api/v2/resources/certificates/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26911,9 +28749,10 @@ def _poll_resources_captures_batch_delete_serialize( @validate_call - def poll_resources_captures_upload_file( + def poll_resources_config_export_user_defined_apps( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26927,12 +28766,14 @@ def poll_resources_captures_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_captures_upload_file + """poll_resources_config_export_user_defined_apps Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param config_id: The ID of the config. (required) + :type config_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26955,8 +28796,9 @@ def poll_resources_captures_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_config_export_user_defined_apps_serialize( + config_id=config_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26966,7 +28808,6 @@ def poll_resources_captures_upload_file( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -26976,9 +28817,10 @@ def poll_resources_captures_upload_file( @validate_call - def poll_resources_captures_upload_file_with_http_info( + def poll_resources_config_export_user_defined_apps_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26992,12 +28834,14 @@ def poll_resources_captures_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_captures_upload_file + """poll_resources_config_export_user_defined_apps Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param config_id: The ID of the config. (required) + :type config_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27020,8 +28864,9 @@ def poll_resources_captures_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_config_export_user_defined_apps_serialize( + config_id=config_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27031,7 +28876,6 @@ def poll_resources_captures_upload_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27041,9 +28885,10 @@ def poll_resources_captures_upload_file_with_http_info( @validate_call - def poll_resources_captures_upload_file_without_preload_content( + def poll_resources_config_export_user_defined_apps_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27057,12 +28902,14 @@ def poll_resources_captures_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_captures_upload_file + """poll_resources_config_export_user_defined_apps Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param config_id: The ID of the config. (required) + :type config_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27085,8 +28932,9 @@ def poll_resources_captures_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_config_export_user_defined_apps_serialize( + config_id=config_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27096,7 +28944,6 @@ def poll_resources_captures_upload_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27105,9 +28952,10 @@ def poll_resources_captures_upload_file_without_preload_content( ) - def _poll_resources_captures_upload_file_serialize( + def _poll_resources_config_export_user_defined_apps_serialize( self, - upload_file_id, + config_id, + id, _request_auth, _content_type, _headers, @@ -27127,8 +28975,10 @@ def _poll_resources_captures_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if config_id is not None: + _path_params['configId'] = config_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -27152,7 +29002,7 @@ def _poll_resources_captures_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27169,9 +29019,9 @@ def _poll_resources_captures_upload_file_serialize( @validate_call - def poll_resources_certificates_upload_file( + def poll_resources_create_app( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27184,13 +29034,13 @@ def poll_resources_certificates_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_certificates_upload_file + ) -> AsyncContext: + """poll_resources_create_app Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27213,8 +29063,8 @@ def poll_resources_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_create_app_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27222,9 +29072,8 @@ def poll_resources_certificates_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27234,9 +29083,9 @@ def poll_resources_certificates_upload_file( @validate_call - def poll_resources_certificates_upload_file_with_http_info( + def poll_resources_create_app_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27249,13 +29098,13 @@ def poll_resources_certificates_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_certificates_upload_file + ) -> ApiResponse[AsyncContext]: + """poll_resources_create_app Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27278,8 +29127,8 @@ def poll_resources_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_create_app_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27287,9 +29136,8 @@ def poll_resources_certificates_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27299,9 +29147,9 @@ def poll_resources_certificates_upload_file_with_http_info( @validate_call - def poll_resources_certificates_upload_file_without_preload_content( + def poll_resources_create_app_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27315,12 +29163,12 @@ def poll_resources_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_certificates_upload_file + """poll_resources_create_app Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27343,8 +29191,8 @@ def poll_resources_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_create_app_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27352,9 +29200,8 @@ def poll_resources_certificates_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27363,9 +29210,9 @@ def poll_resources_certificates_upload_file_without_preload_content( ) - def _poll_resources_certificates_upload_file_serialize( + def _poll_resources_create_app_serialize( self, - upload_file_id, + id, _request_auth, _content_type, _headers, @@ -27385,8 +29232,8 @@ def _poll_resources_certificates_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -27410,7 +29257,7 @@ def _poll_resources_certificates_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/operations/create-app/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27427,9 +29274,9 @@ def _poll_resources_certificates_upload_file_serialize( @validate_call - def poll_resources_create_app( + def poll_resources_custom_fuzzing_scripts_upload_file( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27442,13 +29289,13 @@ def poll_resources_create_app( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_create_app + ) -> None: + """poll_resources_custom_fuzzing_scripts_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27471,8 +29318,8 @@ def poll_resources_create_app( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27480,8 +29327,9 @@ def poll_resources_create_app( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '200': None, '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27491,9 +29339,9 @@ def poll_resources_create_app( @validate_call - def poll_resources_create_app_with_http_info( + def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27506,13 +29354,13 @@ def poll_resources_create_app_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_create_app + ) -> ApiResponse[None]: + """poll_resources_custom_fuzzing_scripts_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27535,8 +29383,8 @@ def poll_resources_create_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27544,8 +29392,9 @@ def poll_resources_create_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '200': None, '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27555,9 +29404,9 @@ def poll_resources_create_app_with_http_info( @validate_call - def poll_resources_create_app_without_preload_content( + def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27571,12 +29420,12 @@ def poll_resources_create_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_create_app + """poll_resources_custom_fuzzing_scripts_upload_file Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27599,8 +29448,8 @@ def poll_resources_create_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27608,8 +29457,9 @@ def poll_resources_create_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '200': None, '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27618,9 +29468,9 @@ def poll_resources_create_app_without_preload_content( ) - def _poll_resources_create_app_serialize( + def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( self, - id, + upload_file_id, _request_auth, _content_type, _headers, @@ -27640,8 +29490,8 @@ def _poll_resources_create_app_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -27665,7 +29515,7 @@ def _poll_resources_create_app_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/operations/create-app/{id}', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29387,8 +31237,265 @@ def poll_resources_get_strikes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strikes_serialize( - id=id, + _param = self._poll_resources_get_strikes_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AsyncContext", + '400': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _poll_resources_get_strikes_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/operations/get-strikes/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def poll_resources_global_playlists_upload_file( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """poll_resources_global_playlists_upload_file + + Get the state of an ongoing operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._poll_resources_global_playlists_upload_file_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def poll_resources_global_playlists_upload_file_with_http_info( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """poll_resources_global_playlists_upload_file + + Get the state of an ongoing operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._poll_resources_global_playlists_upload_file_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def poll_resources_global_playlists_upload_file_without_preload_content( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """poll_resources_global_playlists_upload_file + + Get the state of an ongoing operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._poll_resources_global_playlists_upload_file_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29396,8 +31503,9 @@ def poll_resources_get_strikes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '200': None, '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29406,9 +31514,9 @@ def poll_resources_get_strikes_without_preload_content( ) - def _poll_resources_get_strikes_serialize( + def _poll_resources_global_playlists_upload_file_serialize( self, - id, + upload_file_id, _request_auth, _content_type, _headers, @@ -29428,8 +31536,8 @@ def _poll_resources_get_strikes_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -29453,7 +31561,7 @@ def _poll_resources_get_strikes_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/operations/get-strikes/{id}', + resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29470,7 +31578,7 @@ def _poll_resources_get_strikes_serialize( @validate_call - def poll_resources_global_playlists_upload_file( + def poll_resources_http_library_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -29486,7 +31594,7 @@ def poll_resources_global_playlists_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_global_playlists_upload_file + """poll_resources_http_library_upload_file Get the state of an ongoing operation. @@ -29514,7 +31622,7 @@ def poll_resources_global_playlists_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( + _param = self._poll_resources_http_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -29535,7 +31643,7 @@ def poll_resources_global_playlists_upload_file( @validate_call - def poll_resources_global_playlists_upload_file_with_http_info( + def poll_resources_http_library_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -29551,7 +31659,7 @@ def poll_resources_global_playlists_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_global_playlists_upload_file + """poll_resources_http_library_upload_file Get the state of an ongoing operation. @@ -29579,7 +31687,7 @@ def poll_resources_global_playlists_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( + _param = self._poll_resources_http_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -29600,7 +31708,7 @@ def poll_resources_global_playlists_upload_file_with_http_info( @validate_call - def poll_resources_global_playlists_upload_file_without_preload_content( + def poll_resources_http_library_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -29616,7 +31724,7 @@ def poll_resources_global_playlists_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_global_playlists_upload_file + """poll_resources_http_library_upload_file Get the state of an ongoing operation. @@ -29644,7 +31752,7 @@ def poll_resources_global_playlists_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( + _param = self._poll_resources_http_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -29664,7 +31772,7 @@ def poll_resources_global_playlists_upload_file_without_preload_content( ) - def _poll_resources_global_playlists_upload_file_serialize( + def _poll_resources_http_library_upload_file_serialize( self, upload_file_id, _request_auth, @@ -29711,7 +31819,7 @@ def _poll_resources_global_playlists_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29728,7 +31836,7 @@ def _poll_resources_global_playlists_upload_file_serialize( @validate_call - def poll_resources_http_library_upload_file( + def poll_resources_media_files_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -29744,7 +31852,7 @@ def poll_resources_http_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_http_library_upload_file + """poll_resources_media_files_upload_file Get the state of an ongoing operation. @@ -29772,7 +31880,7 @@ def poll_resources_http_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( + _param = self._poll_resources_media_files_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -29793,7 +31901,7 @@ def poll_resources_http_library_upload_file( @validate_call - def poll_resources_http_library_upload_file_with_http_info( + def poll_resources_media_files_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -29809,7 +31917,7 @@ def poll_resources_http_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_http_library_upload_file + """poll_resources_media_files_upload_file Get the state of an ongoing operation. @@ -29837,7 +31945,7 @@ def poll_resources_http_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( + _param = self._poll_resources_media_files_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -29858,7 +31966,7 @@ def poll_resources_http_library_upload_file_with_http_info( @validate_call - def poll_resources_http_library_upload_file_without_preload_content( + def poll_resources_media_files_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -29874,7 +31982,7 @@ def poll_resources_http_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_http_library_upload_file + """poll_resources_media_files_upload_file Get the state of an ongoing operation. @@ -29902,7 +32010,7 @@ def poll_resources_http_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( + _param = self._poll_resources_media_files_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -29922,7 +32030,7 @@ def poll_resources_http_library_upload_file_without_preload_content( ) - def _poll_resources_http_library_upload_file_serialize( + def _poll_resources_media_files_upload_file_serialize( self, upload_file_id, _request_auth, @@ -29969,7 +32077,7 @@ def _poll_resources_http_library_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/media-files/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29986,7 +32094,7 @@ def _poll_resources_http_library_upload_file_serialize( @validate_call - def poll_resources_media_files_upload_file( + def poll_resources_media_library_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30002,7 +32110,7 @@ def poll_resources_media_files_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_media_files_upload_file + """poll_resources_media_library_upload_file Get the state of an ongoing operation. @@ -30030,7 +32138,7 @@ def poll_resources_media_files_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( + _param = self._poll_resources_media_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30051,7 +32159,7 @@ def poll_resources_media_files_upload_file( @validate_call - def poll_resources_media_files_upload_file_with_http_info( + def poll_resources_media_library_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30067,7 +32175,7 @@ def poll_resources_media_files_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_media_files_upload_file + """poll_resources_media_library_upload_file Get the state of an ongoing operation. @@ -30095,7 +32203,7 @@ def poll_resources_media_files_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( + _param = self._poll_resources_media_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30116,7 +32224,7 @@ def poll_resources_media_files_upload_file_with_http_info( @validate_call - def poll_resources_media_files_upload_file_without_preload_content( + def poll_resources_media_library_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30132,7 +32240,7 @@ def poll_resources_media_files_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_media_files_upload_file + """poll_resources_media_library_upload_file Get the state of an ongoing operation. @@ -30160,7 +32268,7 @@ def poll_resources_media_files_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( + _param = self._poll_resources_media_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30180,7 +32288,7 @@ def poll_resources_media_files_upload_file_without_preload_content( ) - def _poll_resources_media_files_upload_file_serialize( + def _poll_resources_media_library_upload_file_serialize( self, upload_file_id, _request_auth, @@ -30227,7 +32335,7 @@ def _poll_resources_media_files_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/media-library/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30244,7 +32352,7 @@ def _poll_resources_media_files_upload_file_serialize( @validate_call - def poll_resources_media_library_upload_file( + def poll_resources_other_library_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30260,7 +32368,7 @@ def poll_resources_media_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_media_library_upload_file + """poll_resources_other_library_upload_file Get the state of an ongoing operation. @@ -30288,7 +32396,7 @@ def poll_resources_media_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( + _param = self._poll_resources_other_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30309,7 +32417,7 @@ def poll_resources_media_library_upload_file( @validate_call - def poll_resources_media_library_upload_file_with_http_info( + def poll_resources_other_library_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30325,7 +32433,7 @@ def poll_resources_media_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_media_library_upload_file + """poll_resources_other_library_upload_file Get the state of an ongoing operation. @@ -30353,7 +32461,7 @@ def poll_resources_media_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( + _param = self._poll_resources_other_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30374,7 +32482,7 @@ def poll_resources_media_library_upload_file_with_http_info( @validate_call - def poll_resources_media_library_upload_file_without_preload_content( + def poll_resources_other_library_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30390,7 +32498,7 @@ def poll_resources_media_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_media_library_upload_file + """poll_resources_other_library_upload_file Get the state of an ongoing operation. @@ -30418,7 +32526,7 @@ def poll_resources_media_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( + _param = self._poll_resources_other_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30438,7 +32546,7 @@ def poll_resources_media_library_upload_file_without_preload_content( ) - def _poll_resources_media_library_upload_file_serialize( + def _poll_resources_other_library_upload_file_serialize( self, upload_file_id, _request_auth, @@ -30485,7 +32593,7 @@ def _poll_resources_media_library_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/other-library/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30502,7 +32610,7 @@ def _poll_resources_media_library_upload_file_serialize( @validate_call - def poll_resources_other_library_upload_file( + def poll_resources_payloads_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30518,7 +32626,7 @@ def poll_resources_other_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_other_library_upload_file + """poll_resources_payloads_upload_file Get the state of an ongoing operation. @@ -30546,7 +32654,7 @@ def poll_resources_other_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( + _param = self._poll_resources_payloads_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30567,7 +32675,7 @@ def poll_resources_other_library_upload_file( @validate_call - def poll_resources_other_library_upload_file_with_http_info( + def poll_resources_payloads_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30583,7 +32691,7 @@ def poll_resources_other_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_other_library_upload_file + """poll_resources_payloads_upload_file Get the state of an ongoing operation. @@ -30611,7 +32719,7 @@ def poll_resources_other_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( + _param = self._poll_resources_payloads_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30632,7 +32740,7 @@ def poll_resources_other_library_upload_file_with_http_info( @validate_call - def poll_resources_other_library_upload_file_without_preload_content( + def poll_resources_payloads_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30648,7 +32756,7 @@ def poll_resources_other_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_other_library_upload_file + """poll_resources_payloads_upload_file Get the state of an ongoing operation. @@ -30676,7 +32784,7 @@ def poll_resources_other_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( + _param = self._poll_resources_payloads_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30696,7 +32804,7 @@ def poll_resources_other_library_upload_file_without_preload_content( ) - def _poll_resources_other_library_upload_file_serialize( + def _poll_resources_payloads_upload_file_serialize( self, upload_file_id, _request_auth, @@ -30743,7 +32851,7 @@ def _poll_resources_other_library_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/payloads/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30760,7 +32868,7 @@ def _poll_resources_other_library_upload_file_serialize( @validate_call - def poll_resources_payloads_upload_file( + def poll_resources_pcaps_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30776,7 +32884,137 @@ def poll_resources_payloads_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_payloads_upload_file + """poll_resources_pcaps_upload_file + + Get the state of an ongoing operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._poll_resources_pcaps_upload_file_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def poll_resources_pcaps_upload_file_with_http_info( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """poll_resources_pcaps_upload_file + + Get the state of an ongoing operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._poll_resources_pcaps_upload_file_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def poll_resources_pcaps_upload_file_without_preload_content( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """poll_resources_pcaps_upload_file Get the state of an ongoing operation. @@ -30804,7 +33042,135 @@ def poll_resources_payloads_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( + _param = self._poll_resources_pcaps_upload_file_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _poll_resources_pcaps_upload_file_serialize( + self, + upload_file_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def poll_resources_playlists_upload_file( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """poll_resources_playlists_upload_file + + Get the state of an ongoing operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._poll_resources_playlists_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30825,7 +33191,7 @@ def poll_resources_payloads_upload_file( @validate_call - def poll_resources_payloads_upload_file_with_http_info( + def poll_resources_playlists_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30841,7 +33207,7 @@ def poll_resources_payloads_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_payloads_upload_file + """poll_resources_playlists_upload_file Get the state of an ongoing operation. @@ -30869,7 +33235,7 @@ def poll_resources_payloads_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( + _param = self._poll_resources_playlists_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30890,7 +33256,7 @@ def poll_resources_payloads_upload_file_with_http_info( @validate_call - def poll_resources_payloads_upload_file_without_preload_content( + def poll_resources_playlists_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -30906,7 +33272,7 @@ def poll_resources_payloads_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_payloads_upload_file + """poll_resources_playlists_upload_file Get the state of an ongoing operation. @@ -30934,7 +33300,7 @@ def poll_resources_payloads_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( + _param = self._poll_resources_playlists_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -30954,7 +33320,7 @@ def poll_resources_payloads_upload_file_without_preload_content( ) - def _poll_resources_payloads_upload_file_serialize( + def _poll_resources_playlists_upload_file_serialize( self, upload_file_id, _request_auth, @@ -31001,7 +33367,7 @@ def _poll_resources_payloads_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/playlists/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31018,7 +33384,7 @@ def _poll_resources_payloads_upload_file_serialize( @validate_call - def poll_resources_pcaps_upload_file( + def poll_resources_sip_library_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31034,7 +33400,7 @@ def poll_resources_pcaps_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_pcaps_upload_file + """poll_resources_sip_library_upload_file Get the state of an ongoing operation. @@ -31062,7 +33428,7 @@ def poll_resources_pcaps_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( + _param = self._poll_resources_sip_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31083,7 +33449,7 @@ def poll_resources_pcaps_upload_file( @validate_call - def poll_resources_pcaps_upload_file_with_http_info( + def poll_resources_sip_library_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31099,7 +33465,7 @@ def poll_resources_pcaps_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_pcaps_upload_file + """poll_resources_sip_library_upload_file Get the state of an ongoing operation. @@ -31127,7 +33493,7 @@ def poll_resources_pcaps_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( + _param = self._poll_resources_sip_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31148,7 +33514,7 @@ def poll_resources_pcaps_upload_file_with_http_info( @validate_call - def poll_resources_pcaps_upload_file_without_preload_content( + def poll_resources_sip_library_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31164,7 +33530,7 @@ def poll_resources_pcaps_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_pcaps_upload_file + """poll_resources_sip_library_upload_file Get the state of an ongoing operation. @@ -31192,7 +33558,7 @@ def poll_resources_pcaps_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( + _param = self._poll_resources_sip_library_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31212,7 +33578,7 @@ def poll_resources_pcaps_upload_file_without_preload_content( ) - def _poll_resources_pcaps_upload_file_serialize( + def _poll_resources_sip_library_upload_file_serialize( self, upload_file_id, _request_auth, @@ -31259,7 +33625,7 @@ def _poll_resources_pcaps_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31276,7 +33642,7 @@ def _poll_resources_pcaps_upload_file_serialize( @validate_call - def poll_resources_playlists_upload_file( + def poll_resources_stats_profile_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31292,7 +33658,7 @@ def poll_resources_playlists_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_playlists_upload_file + """poll_resources_stats_profile_upload_file Get the state of an ongoing operation. @@ -31320,7 +33686,7 @@ def poll_resources_playlists_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( + _param = self._poll_resources_stats_profile_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31341,7 +33707,7 @@ def poll_resources_playlists_upload_file( @validate_call - def poll_resources_playlists_upload_file_with_http_info( + def poll_resources_stats_profile_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31357,7 +33723,7 @@ def poll_resources_playlists_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_playlists_upload_file + """poll_resources_stats_profile_upload_file Get the state of an ongoing operation. @@ -31385,7 +33751,7 @@ def poll_resources_playlists_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( + _param = self._poll_resources_stats_profile_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31406,7 +33772,7 @@ def poll_resources_playlists_upload_file_with_http_info( @validate_call - def poll_resources_playlists_upload_file_without_preload_content( + def poll_resources_stats_profile_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31422,7 +33788,7 @@ def poll_resources_playlists_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_playlists_upload_file + """poll_resources_stats_profile_upload_file Get the state of an ongoing operation. @@ -31450,7 +33816,7 @@ def poll_resources_playlists_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( + _param = self._poll_resources_stats_profile_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31470,7 +33836,7 @@ def poll_resources_playlists_upload_file_without_preload_content( ) - def _poll_resources_playlists_upload_file_serialize( + def _poll_resources_stats_profile_upload_file_serialize( self, upload_file_id, _request_auth, @@ -31517,7 +33883,7 @@ def _poll_resources_playlists_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31534,7 +33900,7 @@ def _poll_resources_playlists_upload_file_serialize( @validate_call - def poll_resources_sip_library_upload_file( + def poll_resources_tls_certificates_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31550,7 +33916,7 @@ def poll_resources_sip_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_sip_library_upload_file + """poll_resources_tls_certificates_upload_file Get the state of an ongoing operation. @@ -31578,7 +33944,7 @@ def poll_resources_sip_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( + _param = self._poll_resources_tls_certificates_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31599,7 +33965,7 @@ def poll_resources_sip_library_upload_file( @validate_call - def poll_resources_sip_library_upload_file_with_http_info( + def poll_resources_tls_certificates_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31615,7 +33981,7 @@ def poll_resources_sip_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_sip_library_upload_file + """poll_resources_tls_certificates_upload_file Get the state of an ongoing operation. @@ -31643,7 +34009,7 @@ def poll_resources_sip_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( + _param = self._poll_resources_tls_certificates_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31664,7 +34030,7 @@ def poll_resources_sip_library_upload_file_with_http_info( @validate_call - def poll_resources_sip_library_upload_file_without_preload_content( + def poll_resources_tls_certificates_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31680,7 +34046,7 @@ def poll_resources_sip_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_sip_library_upload_file + """poll_resources_tls_certificates_upload_file Get the state of an ongoing operation. @@ -31708,7 +34074,7 @@ def poll_resources_sip_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( + _param = self._poll_resources_tls_certificates_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31728,7 +34094,7 @@ def poll_resources_sip_library_upload_file_without_preload_content( ) - def _poll_resources_sip_library_upload_file_serialize( + def _poll_resources_tls_certificates_upload_file_serialize( self, upload_file_id, _request_auth, @@ -31775,7 +34141,7 @@ def _poll_resources_sip_library_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31792,7 +34158,7 @@ def _poll_resources_sip_library_upload_file_serialize( @validate_call - def poll_resources_stats_profile_upload_file( + def poll_resources_tls_dhs_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31808,7 +34174,7 @@ def poll_resources_stats_profile_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_stats_profile_upload_file + """poll_resources_tls_dhs_upload_file Get the state of an ongoing operation. @@ -31836,7 +34202,7 @@ def poll_resources_stats_profile_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( + _param = self._poll_resources_tls_dhs_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31857,7 +34223,7 @@ def poll_resources_stats_profile_upload_file( @validate_call - def poll_resources_stats_profile_upload_file_with_http_info( + def poll_resources_tls_dhs_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31873,7 +34239,7 @@ def poll_resources_stats_profile_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_stats_profile_upload_file + """poll_resources_tls_dhs_upload_file Get the state of an ongoing operation. @@ -31901,7 +34267,7 @@ def poll_resources_stats_profile_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( + _param = self._poll_resources_tls_dhs_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31922,7 +34288,7 @@ def poll_resources_stats_profile_upload_file_with_http_info( @validate_call - def poll_resources_stats_profile_upload_file_without_preload_content( + def poll_resources_tls_dhs_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -31938,7 +34304,7 @@ def poll_resources_stats_profile_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_stats_profile_upload_file + """poll_resources_tls_dhs_upload_file Get the state of an ongoing operation. @@ -31966,7 +34332,7 @@ def poll_resources_stats_profile_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( + _param = self._poll_resources_tls_dhs_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -31986,7 +34352,7 @@ def poll_resources_stats_profile_upload_file_without_preload_content( ) - def _poll_resources_stats_profile_upload_file_serialize( + def _poll_resources_tls_dhs_upload_file_serialize( self, upload_file_id, _request_auth, @@ -32033,7 +34399,7 @@ def _poll_resources_stats_profile_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32050,7 +34416,7 @@ def _poll_resources_stats_profile_upload_file_serialize( @validate_call - def poll_resources_tls_certificates_upload_file( + def poll_resources_tls_keys_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32066,7 +34432,7 @@ def poll_resources_tls_certificates_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_tls_certificates_upload_file + """poll_resources_tls_keys_upload_file Get the state of an ongoing operation. @@ -32094,7 +34460,7 @@ def poll_resources_tls_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( + _param = self._poll_resources_tls_keys_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32115,7 +34481,7 @@ def poll_resources_tls_certificates_upload_file( @validate_call - def poll_resources_tls_certificates_upload_file_with_http_info( + def poll_resources_tls_keys_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32131,7 +34497,7 @@ def poll_resources_tls_certificates_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_tls_certificates_upload_file + """poll_resources_tls_keys_upload_file Get the state of an ongoing operation. @@ -32159,7 +34525,7 @@ def poll_resources_tls_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( + _param = self._poll_resources_tls_keys_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32180,7 +34546,7 @@ def poll_resources_tls_certificates_upload_file_with_http_info( @validate_call - def poll_resources_tls_certificates_upload_file_without_preload_content( + def poll_resources_tls_keys_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32196,7 +34562,7 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_certificates_upload_file + """poll_resources_tls_keys_upload_file Get the state of an ongoing operation. @@ -32224,7 +34590,7 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( + _param = self._poll_resources_tls_keys_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32244,7 +34610,7 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( ) - def _poll_resources_tls_certificates_upload_file_serialize( + def _poll_resources_tls_keys_upload_file_serialize( self, upload_file_id, _request_auth, @@ -32291,7 +34657,7 @@ def _poll_resources_tls_certificates_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32308,9 +34674,9 @@ def _poll_resources_tls_certificates_upload_file_serialize( @validate_call - def poll_resources_tls_dhs_upload_file( + def poll_resources_user_defined_apps_export_all( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32323,13 +34689,13 @@ def poll_resources_tls_dhs_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_tls_dhs_upload_file + ) -> AsyncContext: + """poll_resources_user_defined_apps_export_all Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32352,8 +34718,8 @@ def poll_resources_tls_dhs_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_user_defined_apps_export_all_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32361,9 +34727,8 @@ def poll_resources_tls_dhs_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -32373,9 +34738,9 @@ def poll_resources_tls_dhs_upload_file( @validate_call - def poll_resources_tls_dhs_upload_file_with_http_info( + def poll_resources_user_defined_apps_export_all_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32388,13 +34753,13 @@ def poll_resources_tls_dhs_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_tls_dhs_upload_file + ) -> ApiResponse[AsyncContext]: + """poll_resources_user_defined_apps_export_all Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32417,8 +34782,8 @@ def poll_resources_tls_dhs_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_user_defined_apps_export_all_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32426,9 +34791,8 @@ def poll_resources_tls_dhs_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -32438,9 +34802,9 @@ def poll_resources_tls_dhs_upload_file_with_http_info( @validate_call - def poll_resources_tls_dhs_upload_file_without_preload_content( + def poll_resources_user_defined_apps_export_all_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32454,12 +34818,12 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_dhs_upload_file + """poll_resources_user_defined_apps_export_all Get the state of an ongoing operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param id: The ID of the async operation. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32482,8 +34846,8 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._poll_resources_user_defined_apps_export_all_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32491,9 +34855,8 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "AsyncContext", '400': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -32502,9 +34865,9 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( ) - def _poll_resources_tls_dhs_upload_file_serialize( + def _poll_resources_user_defined_apps_export_all_serialize( self, - upload_file_id, + id, _request_auth, _content_type, _headers, @@ -32524,8 +34887,8 @@ def _poll_resources_tls_dhs_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -32549,7 +34912,7 @@ def _poll_resources_tls_dhs_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/user-defined-apps/operations/export-all/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32566,7 +34929,7 @@ def _poll_resources_tls_dhs_upload_file_serialize( @validate_call - def poll_resources_tls_keys_upload_file( + def poll_resources_user_defined_apps_upload_file( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32582,7 +34945,7 @@ def poll_resources_tls_keys_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_tls_keys_upload_file + """poll_resources_user_defined_apps_upload_file Get the state of an ongoing operation. @@ -32610,7 +34973,7 @@ def poll_resources_tls_keys_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( + _param = self._poll_resources_user_defined_apps_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32631,7 +34994,7 @@ def poll_resources_tls_keys_upload_file( @validate_call - def poll_resources_tls_keys_upload_file_with_http_info( + def poll_resources_user_defined_apps_upload_file_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32647,7 +35010,7 @@ def poll_resources_tls_keys_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_tls_keys_upload_file + """poll_resources_user_defined_apps_upload_file Get the state of an ongoing operation. @@ -32675,7 +35038,7 @@ def poll_resources_tls_keys_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( + _param = self._poll_resources_user_defined_apps_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32696,7 +35059,7 @@ def poll_resources_tls_keys_upload_file_with_http_info( @validate_call - def poll_resources_tls_keys_upload_file_without_preload_content( + def poll_resources_user_defined_apps_upload_file_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -32712,7 +35075,7 @@ def poll_resources_tls_keys_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_keys_upload_file + """poll_resources_user_defined_apps_upload_file Get the state of an ongoing operation. @@ -32740,7 +35103,7 @@ def poll_resources_tls_keys_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( + _param = self._poll_resources_user_defined_apps_upload_file_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -32760,7 +35123,7 @@ def poll_resources_tls_keys_upload_file_without_preload_content( ) - def _poll_resources_tls_keys_upload_file_serialize( + def _poll_resources_user_defined_apps_upload_file_serialize( self, upload_file_id, _request_auth, @@ -32807,7 +35170,7 @@ def _poll_resources_tls_keys_upload_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}', + resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32824,9 +35187,9 @@ def _poll_resources_tls_keys_upload_file_serialize( @validate_call - def poll_resources_user_defined_apps_export_all( + def start_resources_apps_export_all( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32840,12 +35203,12 @@ def poll_resources_user_defined_apps_export_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_user_defined_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32868,8 +35231,8 @@ def poll_resources_user_defined_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32877,8 +35240,7 @@ def poll_resources_user_defined_apps_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -32888,9 +35250,9 @@ def poll_resources_user_defined_apps_export_all( @validate_call - def poll_resources_user_defined_apps_export_all_with_http_info( + def start_resources_apps_export_all_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32904,12 +35266,12 @@ def poll_resources_user_defined_apps_export_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_user_defined_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32932,8 +35294,8 @@ def poll_resources_user_defined_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32941,8 +35303,7 @@ def poll_resources_user_defined_apps_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -32952,9 +35313,9 @@ def poll_resources_user_defined_apps_export_all_with_http_info( @validate_call - def poll_resources_user_defined_apps_export_all_without_preload_content( + def start_resources_apps_export_all_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32968,12 +35329,12 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_user_defined_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32996,8 +35357,8 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33005,8 +35366,7 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -33015,9 +35375,9 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( ) - def _poll_resources_user_defined_apps_export_all_serialize( + def _start_resources_apps_export_all_serialize( self, - id, + export_apps_operation_input, _request_auth, _content_type, _headers, @@ -33037,12 +35397,12 @@ def _poll_resources_user_defined_apps_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if export_apps_operation_input is not None: + _body_params = export_apps_operation_input # set the HTTP header `Accept` @@ -33053,6 +35413,19 @@ def _poll_resources_user_defined_apps_export_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33061,8 +35434,8 @@ def _poll_resources_user_defined_apps_export_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/export-all/{id}', + method='POST', + resource_path='/api/v2/resources/apps/operations/export-all', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33079,9 +35452,8 @@ def _poll_resources_user_defined_apps_export_all_serialize( @validate_call - def poll_resources_user_defined_apps_upload_file( + def start_resources_captures_batch_delete( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33094,13 +35466,11 @@ def poll_resources_user_defined_apps_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_user_defined_apps_upload_file + ) -> AsyncContext: + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33123,8 +35493,7 @@ def poll_resources_user_defined_apps_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33132,9 +35501,7 @@ def poll_resources_user_defined_apps_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -33144,9 +35511,8 @@ def poll_resources_user_defined_apps_upload_file( @validate_call - def poll_resources_user_defined_apps_upload_file_with_http_info( + def start_resources_captures_batch_delete_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33159,13 +35525,11 @@ def poll_resources_user_defined_apps_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_user_defined_apps_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33188,8 +35552,7 @@ def poll_resources_user_defined_apps_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33197,9 +35560,7 @@ def poll_resources_user_defined_apps_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -33209,9 +35570,8 @@ def poll_resources_user_defined_apps_upload_file_with_http_info( @validate_call - def poll_resources_user_defined_apps_upload_file_without_preload_content( + def start_resources_captures_batch_delete_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33225,12 +35585,10 @@ def poll_resources_user_defined_apps_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_user_defined_apps_upload_file + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33253,8 +35611,7 @@ def poll_resources_user_defined_apps_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33262,9 +35619,7 @@ def poll_resources_user_defined_apps_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -33273,9 +35628,8 @@ def poll_resources_user_defined_apps_upload_file_without_preload_content( ) - def _poll_resources_user_defined_apps_upload_file_serialize( + def _start_resources_captures_batch_delete_serialize( self, - upload_file_id, _request_auth, _content_type, _headers, @@ -33295,8 +35649,6 @@ def _poll_resources_user_defined_apps_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -33319,8 +35671,8 @@ def _poll_resources_user_defined_apps_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/captures/operations/batch-delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33337,9 +35689,9 @@ def _poll_resources_user_defined_apps_upload_file_serialize( @validate_call - def start_resources_apps_export_all( + def start_resources_captures_upload_file( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33353,12 +35705,12 @@ def start_resources_apps_export_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_apps_export_all + """start_resources_captures_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33381,8 +35733,8 @@ def start_resources_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33391,6 +35743,7 @@ def start_resources_apps_export_all( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -33400,9 +35753,9 @@ def start_resources_apps_export_all( @validate_call - def start_resources_apps_export_all_with_http_info( + def start_resources_captures_upload_file_with_http_info( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33416,12 +35769,12 @@ def start_resources_apps_export_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_apps_export_all + """start_resources_captures_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33444,8 +35797,8 @@ def start_resources_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33454,6 +35807,7 @@ def start_resources_apps_export_all_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -33463,9 +35817,9 @@ def start_resources_apps_export_all_with_http_info( @validate_call - def start_resources_apps_export_all_without_preload_content( + def start_resources_captures_upload_file_without_preload_content( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33479,12 +35833,12 @@ def start_resources_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_apps_export_all + """start_resources_captures_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33507,8 +35861,8 @@ def start_resources_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33517,6 +35871,7 @@ def start_resources_apps_export_all_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -33525,9 +35880,9 @@ def start_resources_apps_export_all_without_preload_content( ) - def _start_resources_apps_export_all_serialize( + def _start_resources_captures_upload_file_serialize( self, - export_apps_operation_input, + file, _request_auth, _content_type, _headers, @@ -33550,9 +35905,9 @@ def _start_resources_apps_export_all_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter - if export_apps_operation_input is not None: - _body_params = export_apps_operation_input # set the HTTP header `Accept` @@ -33570,7 +35925,7 @@ def _start_resources_apps_export_all_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'multipart/form-data' ] ) ) @@ -33585,7 +35940,7 @@ def _start_resources_apps_export_all_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/apps/operations/export-all', + resource_path='/api/v2/resources/captures/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33602,8 +35957,9 @@ def _start_resources_apps_export_all_serialize( @validate_call - def start_resources_captures_batch_delete( + def start_resources_certificates_upload_file( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33616,11 +35972,13 @@ def start_resources_captures_batch_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_captures_batch_delete + ) -> None: + """start_resources_certificates_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33643,7 +36001,8 @@ def start_resources_captures_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33651,7 +36010,8 @@ def start_resources_captures_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -33661,8 +36021,9 @@ def start_resources_captures_batch_delete( @validate_call - def start_resources_captures_batch_delete_with_http_info( + def start_resources_certificates_upload_file_with_http_info( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33675,11 +36036,13 @@ def start_resources_captures_batch_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_captures_batch_delete + ) -> ApiResponse[None]: + """start_resources_certificates_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33702,7 +36065,8 @@ def start_resources_captures_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33710,7 +36074,8 @@ def start_resources_captures_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -33720,8 +36085,9 @@ def start_resources_captures_batch_delete_with_http_info( @validate_call - def start_resources_captures_batch_delete_without_preload_content( + def start_resources_certificates_upload_file_without_preload_content( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33735,10 +36101,12 @@ def start_resources_captures_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_captures_batch_delete + """start_resources_certificates_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33761,7 +36129,8 @@ def start_resources_captures_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33769,7 +36138,8 @@ def start_resources_captures_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -33778,8 +36148,9 @@ def start_resources_captures_batch_delete_without_preload_content( ) - def _start_resources_captures_batch_delete_serialize( + def _start_resources_certificates_upload_file_serialize( self, + file, _request_auth, _content_type, _headers, @@ -33802,6 +36173,8 @@ def _start_resources_captures_batch_delete_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33813,6 +36186,19 @@ def _start_resources_captures_batch_delete_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33822,7 +36208,7 @@ def _start_resources_captures_batch_delete_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/captures/operations/batch-delete', + resource_path='/api/v2/resources/certificates/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33839,9 +36225,9 @@ def _start_resources_captures_batch_delete_serialize( @validate_call - def start_resources_captures_upload_file( + def start_resources_config_export_user_defined_apps( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33855,12 +36241,12 @@ def start_resources_captures_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33883,8 +36269,8 @@ def start_resources_captures_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33893,7 +36279,6 @@ def start_resources_captures_upload_file( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -33903,9 +36288,9 @@ def start_resources_captures_upload_file( @validate_call - def start_resources_captures_upload_file_with_http_info( + def start_resources_config_export_user_defined_apps_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33919,12 +36304,12 @@ def start_resources_captures_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33947,8 +36332,8 @@ def start_resources_captures_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33957,7 +36342,6 @@ def start_resources_captures_upload_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -33967,9 +36351,9 @@ def start_resources_captures_upload_file_with_http_info( @validate_call - def start_resources_captures_upload_file_without_preload_content( + def start_resources_config_export_user_defined_apps_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33983,12 +36367,12 @@ def start_resources_captures_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34011,8 +36395,8 @@ def start_resources_captures_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34021,7 +36405,6 @@ def start_resources_captures_upload_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -34030,9 +36413,9 @@ def start_resources_captures_upload_file_without_preload_content( ) - def _start_resources_captures_upload_file_serialize( + def _start_resources_config_export_user_defined_apps_serialize( self, - file, + config_id, _request_auth, _content_type, _headers, @@ -34052,11 +36435,11 @@ def _start_resources_captures_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters + if config_id is not None: + _path_params['configId'] = config_id # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter @@ -34068,19 +36451,6 @@ def _start_resources_captures_upload_file_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34090,7 +36460,7 @@ def _start_resources_captures_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/captures/operations/uploadFile', + resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34107,9 +36477,9 @@ def _start_resources_captures_upload_file_serialize( @validate_call - def start_resources_certificates_upload_file( + def start_resources_create_app( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34122,13 +36492,13 @@ def start_resources_certificates_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_certificates_upload_file + ) -> AsyncContext: + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34151,8 +36521,8 @@ def start_resources_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34160,8 +36530,7 @@ def start_resources_certificates_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -34171,9 +36540,9 @@ def start_resources_certificates_upload_file( @validate_call - def start_resources_certificates_upload_file_with_http_info( + def start_resources_create_app_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34186,13 +36555,13 @@ def start_resources_certificates_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_certificates_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34215,8 +36584,8 @@ def start_resources_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34224,8 +36593,7 @@ def start_resources_certificates_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -34235,9 +36603,9 @@ def start_resources_certificates_upload_file_with_http_info( @validate_call - def start_resources_certificates_upload_file_without_preload_content( + def start_resources_create_app_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34251,12 +36619,12 @@ def start_resources_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_certificates_upload_file + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34279,8 +36647,8 @@ def start_resources_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34288,8 +36656,7 @@ def start_resources_certificates_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -34298,9 +36665,9 @@ def start_resources_certificates_upload_file_without_preload_content( ) - def _start_resources_certificates_upload_file_serialize( + def _start_resources_create_app_serialize( self, - file, + create_app_operation, _request_auth, _content_type, _headers, @@ -34323,9 +36690,9 @@ def _start_resources_certificates_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if create_app_operation is not None: + _body_params = create_app_operation # set the HTTP header `Accept` @@ -34343,7 +36710,7 @@ def _start_resources_certificates_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -34358,7 +36725,7 @@ def _start_resources_certificates_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/certificates/operations/uploadFile', + resource_path='/api/v2/resources/operations/create-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34375,9 +36742,9 @@ def _start_resources_certificates_upload_file_serialize( @validate_call - def start_resources_create_app( + def start_resources_custom_fuzzing_scripts_upload_file( self, - create_app_operation: Optional[CreateAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34390,13 +36757,13 @@ def start_resources_create_app( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_create_app + ) -> None: + """start_resources_custom_fuzzing_scripts_upload_file - Create an app from captures + Upload a file. - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34419,8 +36786,8 @@ def start_resources_create_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34428,7 +36795,8 @@ def start_resources_create_app( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -34438,9 +36806,9 @@ def start_resources_create_app( @validate_call - def start_resources_create_app_with_http_info( + def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( self, - create_app_operation: Optional[CreateAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34453,13 +36821,13 @@ def start_resources_create_app_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_create_app + ) -> ApiResponse[None]: + """start_resources_custom_fuzzing_scripts_upload_file - Create an app from captures + Upload a file. - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34482,8 +36850,8 @@ def start_resources_create_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34491,7 +36859,8 @@ def start_resources_create_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -34501,9 +36870,9 @@ def start_resources_create_app_with_http_info( @validate_call - def start_resources_create_app_without_preload_content( + def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( self, - create_app_operation: Optional[CreateAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34517,12 +36886,12 @@ def start_resources_create_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_create_app + """start_resources_custom_fuzzing_scripts_upload_file - Create an app from captures + Upload a file. - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34545,8 +36914,8 @@ def start_resources_create_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34554,7 +36923,8 @@ def start_resources_create_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -34563,9 +36933,9 @@ def start_resources_create_app_without_preload_content( ) - def _start_resources_create_app_serialize( + def _start_resources_custom_fuzzing_scripts_upload_file_serialize( self, - create_app_operation, + file, _request_auth, _content_type, _headers, @@ -34588,9 +36958,9 @@ def _start_resources_create_app_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter - if create_app_operation is not None: - _body_params = create_app_operation # set the HTTP header `Accept` @@ -34608,7 +36978,7 @@ def _start_resources_create_app_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'multipart/form-data' ] ) ) @@ -34623,7 +36993,7 @@ def _start_resources_create_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/create-app', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cyperf/api/sessions_api.py b/cyperf/api/sessions_api.py index d491ef8..05fc432 100644 --- a/cyperf/api/sessions_api.py +++ b/cyperf/api/sessions_api.py @@ -4776,7 +4776,7 @@ def _poll_config_add_applications_serialize( @validate_call - def poll_config_save( + def poll_session_config_granular_stats_default_dashboards( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], id: Annotated[StrictInt, Field(description="The ID of the async operation.")], @@ -4793,7 +4793,7 @@ def poll_config_save( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_config_save + """poll_session_config_granular_stats_default_dashboards Get the state of an ongoing operation. @@ -4823,7 +4823,7 @@ def poll_config_save( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_save_serialize( + _param = self._poll_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, id=id, _request_auth=_request_auth, @@ -4834,6 +4834,7 @@ def poll_config_save( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", + '400': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -4843,7 +4844,7 @@ def poll_config_save( @validate_call - def poll_config_save_with_http_info( + def poll_session_config_granular_stats_default_dashboards_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], id: Annotated[StrictInt, Field(description="The ID of the async operation.")], @@ -4860,7 +4861,7 @@ def poll_config_save_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_config_save + """poll_session_config_granular_stats_default_dashboards Get the state of an ongoing operation. @@ -4890,7 +4891,7 @@ def poll_config_save_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_save_serialize( + _param = self._poll_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, id=id, _request_auth=_request_auth, @@ -4901,6 +4902,7 @@ def poll_config_save_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", + '400': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -4910,7 +4912,7 @@ def poll_config_save_with_http_info( @validate_call - def poll_config_save_without_preload_content( + def poll_session_config_granular_stats_default_dashboards_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], id: Annotated[StrictInt, Field(description="The ID of the async operation.")], @@ -4927,7 +4929,7 @@ def poll_config_save_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_config_save + """poll_session_config_granular_stats_default_dashboards Get the state of an ongoing operation. @@ -4957,7 +4959,7 @@ def poll_config_save_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_save_serialize( + _param = self._poll_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, id=id, _request_auth=_request_auth, @@ -4968,6 +4970,7 @@ def poll_config_save_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "AsyncContext", + '400': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -4976,7 +4979,7 @@ def poll_config_save_without_preload_content( ) - def _poll_config_save_serialize( + def _poll_session_config_granular_stats_default_dashboards_serialize( self, session_id, id, @@ -5026,7 +5029,7 @@ def _poll_config_save_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/operations/save/{id}', + resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5043,7 +5046,7 @@ def _poll_config_save_serialize( @validate_call - def poll_session_config_granular_stats_default_dashboards( + def poll_session_config_save( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], id: Annotated[StrictInt, Field(description="The ID of the async operation.")], @@ -5060,7 +5063,7 @@ def poll_session_config_granular_stats_default_dashboards( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_config_granular_stats_default_dashboards + """poll_session_config_save Get the state of an ongoing operation. @@ -5090,7 +5093,7 @@ def poll_session_config_granular_stats_default_dashboards( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._poll_session_config_save_serialize( session_id=session_id, id=id, _request_auth=_request_auth, @@ -5111,7 +5114,7 @@ def poll_session_config_granular_stats_default_dashboards( @validate_call - def poll_session_config_granular_stats_default_dashboards_with_http_info( + def poll_session_config_save_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], id: Annotated[StrictInt, Field(description="The ID of the async operation.")], @@ -5128,7 +5131,7 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_config_granular_stats_default_dashboards + """poll_session_config_save Get the state of an ongoing operation. @@ -5158,7 +5161,7 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._poll_session_config_save_serialize( session_id=session_id, id=id, _request_auth=_request_auth, @@ -5179,7 +5182,7 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( @validate_call - def poll_session_config_granular_stats_default_dashboards_without_preload_content( + def poll_session_config_save_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], id: Annotated[StrictInt, Field(description="The ID of the async operation.")], @@ -5196,7 +5199,7 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_session_config_granular_stats_default_dashboards + """poll_session_config_save Get the state of an ongoing operation. @@ -5226,7 +5229,7 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._poll_session_config_save_serialize( session_id=session_id, id=id, _request_auth=_request_auth, @@ -5246,7 +5249,7 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten ) - def _poll_session_config_granular_stats_default_dashboards_serialize( + def _poll_session_config_save_serialize( self, session_id, id, @@ -5296,7 +5299,7 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id}', + resource_path='/api/v2/sessions/{sessionId}/config/operations/save/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cyperf/dynamic_model_meta.py b/cyperf/dynamic_model_meta.py index d63d655..5dd3e69 100644 --- a/cyperf/dynamic_model_meta.py +++ b/cyperf/dynamic_model_meta.py @@ -230,32 +230,70 @@ def base_model(self): class DynamicModel(type): def __new__(cls, name, bases, dct): - try: - inner_model = getattr(cyperf, name) - except AttributeError: - raise Exception(f"Couldn't find model class {name}") + fields, private_attrs = cls.get_inner_model(name) + local_fields = {} - fields = [] - try: - fields = inner_model.__fields__ - except AttributeError as e: - pass - for key in fields: - dct[key] = property(fget=partial(cls.get_by_link, key), fset=partial(cls.set_base_attr, key)) + ignored_types = {"String", "Union", "Bytes", "APILink", "StrictInt", "StrictStr", "StrictBool", "Any", "str", "int", "bool", "object"} + + for key, field in fields.items(): + field_str = str(field) + + not_method = True + alias_match = re.search(r"alias='([^']+)'", field_str) + if alias_match: + alias = alias_match.group(1) + if not re.search(r'[A-Z]', alias) or '-' in alias: + not_method = False + + list_fields = [] + if not_method: + list_match = re.search(r"List\[(\w+)\]", field_str) + if list_match: + inner_type = list_match.group(1) + if inner_type not in ignored_types: + list_fields.append([inner_type, field.alias]) + + for child_name, child_alias in list_fields: + child_fields, child_private_attrs = cls.get_inner_model(child_name) + + for child_key, _ in child_fields.items(): + parts = cls.extract_x_operation(child_key, child_private_attrs) + + if parts: + if len(parts) == 1 or (len(parts) == 2 and parts[1].strip() == "-"): + child_method_name = child_key + "_" + child_name.lower() + dct[child_method_name] = cls.generate_method(child_key, 'POST', True, child_alias) + + parts = cls.extract_x_operation(key, private_attrs) + if parts: + if len(parts) == 2 and parts[0].strip() == "-": + method_name = key + link_name = field.alias or key + dct[method_name] = cls.generate_method(link_name, 'POST') + continue + + dct[key] = property( + fget=partial(cls.get_by_link, key), + fset=partial(cls.set_base_attr, key) + ) local_fields[key] = None + dct['_model_fields'] = local_fields dct['__init__'] = lambda self, base_model: cls.init(self, base_model) dct['__str__'] = lambda self: cls.to_str(self) dct['__repr__'] = lambda self: cls.repr(self) + if name == "AsyncContext": - dct['await_completion'] = lambda self, get_final_result = True, poll_time = 1: cls.poll(self, get_final_result=get_final_result, poll_time=poll_time) - c = super().__new__(cls, name, bases, dct) + dct['await_completion'] = lambda self, get_final_result=True, poll_time=1: cls.poll(self, get_final_result, poll_time) + + c = super().__new__(cls, name, bases, dct) c.update = lambda self: cls.update(self) c.delete = lambda self: cls.delete(self) c.refresh = lambda self: cls.refresh(self) c.get_link = lambda self, link_name: cls.get_link(self, link_name) c.get_self_link = lambda self: cls.get_link(self, "self") - c.link_based_request = lambda self, link_name, method, return_type = None, body = None, query=[]: cls.link_based_request(self, link_name, method, return_type, body, query) + c.link_based_request = lambda self, link_name, method, return_type=None, body=None, query=[]: cls.link_based_request(self, link_name, method, return_type, body, query) + return c def __call__(cls, *args, **kwargs): @@ -462,10 +500,78 @@ def link_based_request(cls, self, link_name, method, response = self.api_client.call_api( *_param, _response_types_map={ - '200': return_type + '200': return_type, + '202': return_type } ) is_dynamic = isinstance(response.__class__, DynamicModel) is_dynamic |= isinstance(response, DynamicList) is_dynamic |= isinstance(response, DynamicDict) return response.base_model if is_dynamic else response + + @classmethod + def get_inner_model(cls, name): + try: + inner_model = getattr(cyperf, name) + except AttributeError: + raise Exception(f"Couldn't find model class {name}") + + fields = getattr(inner_model, '__fields__', {}) + private_attrs = getattr(inner_model, '__private_attributes__', {}) + + return (fields, private_attrs) + + @classmethod + def extract_x_operation(cls, key, private_attrs): + extra_attr_name = f"_{key}_json_schema_extra" + extra = {} + + if extra_attr_name in private_attrs: + private_attr_obj = private_attrs[extra_attr_name] + if hasattr(private_attr_obj, 'default'): + extra = private_attr_obj.default or {} + + operation_raw = extra.get("x-operation") + if operation_raw: + parts = operation_raw.split(",") + return parts + + return None + + @classmethod + def generate_method(cls, link_name, method, is_list_function=False, child_inner_model=None): + def operation(self, *args, **kwargs): + self_link = self.get_self_link() + derived_href = "" + if is_list_function: + derived_href = self_link.href.rstrip("/") + f"/{child_inner_model}" f"/operations/{link_name.replace('_', '-')}" + else: + derived_href = self_link.href.rstrip("/") + f"/operations/{link_name.replace('_', '-')}" + + link_class = type(self.links[0]) if self.links else type(self_link) + new_link = link_class( + href=derived_href, + method=method, + rel="child", + type="operation", + name=link_name + ) + self.links.append(new_link) + + if len(args) == 1 and not kwargs: + body = args[0] + elif args or kwargs: + body = list(args) if args else kwargs + else: + body = None + + response = cls.link_based_request( + self, link_name, method, + body=body, + return_type=cyperf.AsyncContext, + href=derived_href + ) + + response = DynamicModel.dynamic_wrapper(response, self.api_client) + return response + return operation diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 6e745f6..cf80f4f 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -28,6 +28,7 @@ ActivationCodeInfo = DynamicModel('ActivationCodeInfo', (), {} ) ActivationCodeListRequest = DynamicModel('ActivationCodeListRequest', (), {} ) ActivationCodeRequest = DynamicModel('ActivationCodeRequest', (), {} ) +AddActionInfo = DynamicModel('AddActionInfo', (), {} ) AddInput = DynamicModel('AddInput', (), {} ) AdvancedSettings = DynamicModel('AdvancedSettings', (), {} ) Agent = DynamicModel('Agent', (), {} ) @@ -61,12 +62,15 @@ AsyncOperationResponse = DynamicModel('AsyncOperationResponse', (), {} ) Attack = DynamicModel('Attack', (), {} ) AttackAction = DynamicModel('AttackAction', (), {} ) +AttackMetadata = DynamicModel('AttackMetadata', (), {} ) +AttackMetadataKeywordsInner = DynamicModel('AttackMetadataKeywordsInner', (), {} ) AttackObjectivesAndTimeline = DynamicModel('AttackObjectivesAndTimeline', (), {} ) AttackProfile = DynamicModel('AttackProfile', (), {} ) AttackTimelineSegment = DynamicModel('AttackTimelineSegment', (), {} ) AttackTrack = DynamicModel('AttackTrack', (), {} ) AuthMethodType = DynamicModel('AuthMethodType', (), {} ) AuthProfile = DynamicModel('AuthProfile', (), {} ) +AuthProfileMetadata = DynamicModel('AuthProfileMetadata', (), {} ) AuthSettings = DynamicModel('AuthSettings', (), {} ) Authenticate200Response = DynamicModel('Authenticate200Response', (), {} ) AuthenticationSettings = DynamicModel('AuthenticationSettings', (), {} ) @@ -93,7 +97,6 @@ ConfigCategory = DynamicModel('ConfigCategory', (), {} ) ConfigId = DynamicModel('ConfigId', (), {} ) ConfigMetadata = DynamicModel('ConfigMetadata', (), {} ) -ConfigMetadataConfigDataValue = DynamicModel('ConfigMetadataConfigDataValue', (), {} ) ConfigValidation = DynamicModel('ConfigValidation', (), {} ) Conflict = DynamicModel('Conflict', (), {} ) Connection = DynamicModel('Connection', (), {} ) @@ -103,6 +106,7 @@ CountedFeatureConsumer = DynamicModel('CountedFeatureConsumer', (), {} ) CountedFeatureStats = DynamicModel('CountedFeatureStats', (), {} ) CreateAppOperation = DynamicModel('CreateAppOperation', (), {} ) +CreateAppOrAttackOperationInput = DynamicModel('CreateAppOrAttackOperationInput', (), {} ) CustomDashboards = DynamicModel('CustomDashboards', (), {} ) CustomImportHandler = DynamicModel('CustomImportHandler', (), {} ) CustomStat = DynamicModel('CustomStat', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 71a7b43..b2c27b9 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -28,6 +28,7 @@ class LinkNameException(Exception): from cyperf.models.activation_code_info import ActivationCodeInfo from cyperf.models.activation_code_list_request import ActivationCodeListRequest from cyperf.models.activation_code_request import ActivationCodeRequest +from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent @@ -61,12 +62,15 @@ class LinkNameException(Exception): from cyperf.models.async_operation_response import AsyncOperationResponse from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction +from cyperf.models.attack_metadata import AttackMetadata +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.attack_profile import AttackProfile from cyperf.models.attack_timeline_segment import AttackTimelineSegment from cyperf.models.attack_track import AttackTrack from cyperf.models.auth_method_type import AuthMethodType from cyperf.models.auth_profile import AuthProfile +from cyperf.models.auth_profile_metadata import AuthProfileMetadata from cyperf.models.auth_settings import AuthSettings from cyperf.models.authenticate200_response import Authenticate200Response from cyperf.models.authentication_settings import AuthenticationSettings @@ -93,7 +97,6 @@ class LinkNameException(Exception): from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId from cyperf.models.config_metadata import ConfigMetadata -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue from cyperf.models.config_validation import ConfigValidation from cyperf.models.conflict import Conflict from cyperf.models.connection import Connection @@ -103,6 +106,7 @@ class LinkNameException(Exception): from cyperf.models.counted_feature_consumer import CountedFeatureConsumer from cyperf.models.counted_feature_stats import CountedFeatureStats from cyperf.models.create_app_operation import CreateAppOperation +from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.custom_import_handler import CustomImportHandler from cyperf.models.custom_stat import CustomStat diff --git a/cyperf/models/action.py b/cyperf/models/action.py index 2a64014..af6770c 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -26,7 +26,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Action(BaseModel): """ diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index 5d90ba2..fae4a52 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -26,7 +26,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ActionBase(BaseModel): """ diff --git a/cyperf/models/action_input.py b/cyperf/models/action_input.py index 4fbcd72..70c9016 100644 --- a/cyperf/models/action_input.py +++ b/cyperf/models/action_input.py @@ -24,7 +24,7 @@ from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ActionInput(BaseModel): """ diff --git a/cyperf/models/action_input_find_param.py b/cyperf/models/action_input_find_param.py index 883f20d..60a9993 100644 --- a/cyperf/models/action_input_find_param.py +++ b/cyperf/models/action_input_find_param.py @@ -23,7 +23,7 @@ from cyperf.models.capture_input_find_param import CaptureInputFindParam from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ActionInputFindParam(BaseModel): """ diff --git a/cyperf/models/action_metadata.py b/cyperf/models/action_metadata.py index 90b95d9..ea4cb22 100644 --- a/cyperf/models/action_metadata.py +++ b/cyperf/models/action_metadata.py @@ -24,7 +24,7 @@ from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ActionMetadata(BaseModel): """ diff --git a/cyperf/models/activation_code_info.py b/cyperf/models/activation_code_info.py index ba5c86b..e53937e 100644 --- a/cyperf/models/activation_code_info.py +++ b/cyperf/models/activation_code_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ActivationCodeInfo(BaseModel): """ diff --git a/cyperf/models/activation_code_list_request.py b/cyperf/models/activation_code_list_request.py index eb23275..2a5c851 100644 --- a/cyperf/models/activation_code_list_request.py +++ b/cyperf/models/activation_code_list_request.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ActivationCodeListRequest(BaseModel): """ diff --git a/cyperf/models/activation_code_request.py b/cyperf/models/activation_code_request.py index c433300..2d51be6 100644 --- a/cyperf/models/activation_code_request.py +++ b/cyperf/models/activation_code_request.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ActivationCodeRequest(BaseModel): """ diff --git a/cyperf/models/add_action_info.py b/cyperf/models/add_action_info.py new file mode 100644 index 0000000..4b14aed --- /dev/null +++ b/cyperf/models/add_action_info.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class AddActionInfo(BaseModel): + """ + AddActionInfo + """ # noqa: E501 + action_id: StrictStr = Field(alias="ActionID") + insert_at_index: StrictInt = Field(alias="InsertAtIndex") + is_strike: StrictBool = Field(alias="IsStrike") + protocol_id: StrictStr = Field(alias="ProtocolID") + __properties: ClassVar[List[str]] = ["ActionID", "InsertAtIndex", "IsStrike", "ProtocolID"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddActionInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddActionInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "ActionID": obj.get("ActionID"), + "InsertAtIndex": obj.get("InsertAtIndex"), + "IsStrike": obj.get("IsStrike"), + "ProtocolID": obj.get("ProtocolID") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/add_input.py b/cyperf/models/add_input.py index acb93b2..d70090e 100644 --- a/cyperf/models/add_input.py +++ b/cyperf/models/add_input.py @@ -24,7 +24,7 @@ from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AddInput(BaseModel): """ diff --git a/cyperf/models/advanced_settings.py b/cyperf/models/advanced_settings.py index 3f145d2..accfae2 100644 --- a/cyperf/models/advanced_settings.py +++ b/cyperf/models/advanced_settings.py @@ -23,7 +23,7 @@ from cyperf.models.agent_optimization_mode import AgentOptimizationMode from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AdvancedSettings(BaseModel): """ diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 3a514c8..71644ed 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -29,7 +29,7 @@ from cyperf.models.system_info import SystemInfo from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Agent(BaseModel): """ diff --git a/cyperf/models/agent_assignment_by_port.py b/cyperf/models/agent_assignment_by_port.py index c9ab82c..073676d 100644 --- a/cyperf/models/agent_assignment_by_port.py +++ b/cyperf/models/agent_assignment_by_port.py @@ -24,7 +24,7 @@ from cyperf.models.capture_settings import CaptureSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentAssignmentByPort(BaseModel): """ diff --git a/cyperf/models/agent_assignment_details.py b/cyperf/models/agent_assignment_details.py index a92f01c..266612e 100644 --- a/cyperf/models/agent_assignment_details.py +++ b/cyperf/models/agent_assignment_details.py @@ -24,7 +24,7 @@ from cyperf.models.capture_settings import CaptureSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentAssignmentDetails(BaseModel): """ diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index ee24db8..bdf1416 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -25,7 +25,7 @@ from cyperf.models.api_link import APILink from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentAssignments(BaseModel): """ diff --git a/cyperf/models/agent_cpu_info.py b/cyperf/models/agent_cpu_info.py index 0a93b33..c7ead39 100644 --- a/cyperf/models/agent_cpu_info.py +++ b/cyperf/models/agent_cpu_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentCPUInfo(BaseModel): """ diff --git a/cyperf/models/agent_features.py b/cyperf/models/agent_features.py index 4b7df63..f553129 100644 --- a/cyperf/models/agent_features.py +++ b/cyperf/models/agent_features.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentFeatures(BaseModel): """ diff --git a/cyperf/models/agent_release.py b/cyperf/models/agent_release.py index 25b79fb..e845e16 100644 --- a/cyperf/models/agent_release.py +++ b/cyperf/models/agent_release.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentRelease(BaseModel): """ diff --git a/cyperf/models/agent_reservation.py b/cyperf/models/agent_reservation.py index 66d5829..fef07a9 100644 --- a/cyperf/models/agent_reservation.py +++ b/cyperf/models/agent_reservation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentReservation(BaseModel): """ diff --git a/cyperf/models/agent_to_be_rebooted.py b/cyperf/models/agent_to_be_rebooted.py index fb3dda9..04a8bdb 100644 --- a/cyperf/models/agent_to_be_rebooted.py +++ b/cyperf/models/agent_to_be_rebooted.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentToBeRebooted(BaseModel): """ diff --git a/cyperf/models/agents_group.py b/cyperf/models/agents_group.py index 0d13b57..32c2f4d 100644 --- a/cyperf/models/agents_group.py +++ b/cyperf/models/agents_group.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AgentsGroup(BaseModel): """ diff --git a/cyperf/models/api_link.py b/cyperf/models/api_link.py index 9af7dbb..21e0956 100644 --- a/cyperf/models/api_link.py +++ b/cyperf/models/api_link.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class APILink(BaseModel): """ diff --git a/cyperf/models/app_exchange.py b/cyperf/models/app_exchange.py index 6ac2aa7..9b876fb 100644 --- a/cyperf/models/app_exchange.py +++ b/cyperf/models/app_exchange.py @@ -26,7 +26,7 @@ from cyperf.models.http_res_meta import HTTPResMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppExchange(BaseModel): """ diff --git a/cyperf/models/app_flow.py b/cyperf/models/app_flow.py index f2a7cd0..0fa6de8 100644 --- a/cyperf/models/app_flow.py +++ b/cyperf/models/app_flow.py @@ -24,7 +24,7 @@ from cyperf.models.app_exchange import AppExchange from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppFlow(BaseModel): """ diff --git a/cyperf/models/app_flow_desc.py b/cyperf/models/app_flow_desc.py index 0a5af9b..3f39e41 100644 --- a/cyperf/models/app_flow_desc.py +++ b/cyperf/models/app_flow_desc.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppFlowDesc(BaseModel): """ diff --git a/cyperf/models/app_flow_input.py b/cyperf/models/app_flow_input.py index 1f62fff..2b69e23 100644 --- a/cyperf/models/app_flow_input.py +++ b/cyperf/models/app_flow_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppFlowInput(BaseModel): """ diff --git a/cyperf/models/app_flow_input_find_param.py b/cyperf/models/app_flow_input_find_param.py index 4d3320a..ca656b5 100644 --- a/cyperf/models/app_flow_input_find_param.py +++ b/cyperf/models/app_flow_input_find_param.py @@ -23,7 +23,7 @@ from cyperf.models.app_flow_desc import AppFlowDesc from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppFlowInputFindParam(BaseModel): """ diff --git a/cyperf/models/app_id.py b/cyperf/models/app_id.py index 1adb121..42cc397 100644 --- a/cyperf/models/app_id.py +++ b/cyperf/models/app_id.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppId(BaseModel): """ diff --git a/cyperf/models/app_mode.py b/cyperf/models/app_mode.py index 2a98508..8939e0e 100644 --- a/cyperf/models/app_mode.py +++ b/cyperf/models/app_mode.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppMode(BaseModel): """ diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 2daf150..4e13108 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -35,7 +35,7 @@ from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Application(BaseModel): """ @@ -75,6 +75,7 @@ class Application(BaseModel): inherit_tls: Optional[StrictBool] = Field(default=None, alias="InheritTLS") is_stateless_stream: Optional[StrictBool] = Field(default=None, alias="IsStatelessStream") objective_weight: StrictInt = Field(description="The objective weight of the application.", alias="ObjectiveWeight") + protocol_found: Optional[StrictBool] = Field(default=None, alias="ProtocolFound") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") stateless_stream: Optional[StatelessStream] = Field(default=None, alias="StatelessStream") static: Optional[StrictBool] = Field(default=None, alias="Static") @@ -84,8 +85,10 @@ class Application(BaseModel): supports_tls: Optional[StrictBool] = Field(default=None, alias="SupportsTLS") tracks: Optional[List[Track]] = Field(default=None, alias="Tracks") modify_excluded_dut_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-excluded-dut-recursively") + _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "ObjectiveWeight", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] + _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -258,6 +261,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "InheritTLS": obj.get("InheritTLS"), "IsStatelessStream": obj.get("IsStatelessStream"), "ObjectiveWeight": obj.get("ObjectiveWeight"), + "ProtocolFound": obj.get("ProtocolFound"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "StatelessStream": StatelessStream.from_dict(obj["StatelessStream"]) if obj.get("StatelessStream") is not None else None, "Static": obj.get("Static"), diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index f0014aa..b1b5222 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -29,7 +29,7 @@ from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ApplicationProfile(BaseModel): """ @@ -44,9 +44,13 @@ class ApplicationProfile(BaseModel): name: StrictStr = Field(alias="Name") objectives_and_timeline: Optional[ObjectivesAndTimeline] = Field(default=None, alias="ObjectivesAndTimeline") add_applications: Optional[List[ExternalResourceInfo]] = Field(default=None, alias="add-applications") + _add_applications_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,AddApps" }) modify_excluded_dut_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-excluded-dut-recursively") + _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateTrafficProfileNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") + _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateTrafficProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") + _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetTrafficProfileNetworkMapping" }) __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( diff --git a/cyperf/models/application_type.py b/cyperf/models/application_type.py index 70c8065..553ebf3 100644 --- a/cyperf/models/application_type.py +++ b/cyperf/models/application_type.py @@ -31,7 +31,7 @@ from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ApplicationType(BaseModel): """ @@ -51,6 +51,7 @@ class ApplicationType(BaseModel): metadata: Optional[Metadata] = Field(default=None, alias="Metadata") name: Optional[StrictStr] = Field(default=None, description="The display name of the application", alias="Name") parameters: Optional[List[Parameter]] = Field(default=None, description="The parameters of the application", alias="Parameters") + protocol_found: Optional[StrictBool] = Field(default=None, description="Indicates if the application protocol has been found.", alias="ProtocolFound") strikes: Optional[List[Command]] = Field(default=None, description="The commands and strikes included in the flow", alias="Strikes") supports_calibration: Optional[StrictBool] = Field(default=None, description="Indicates if the best configuration can be computed automatically", alias="SupportsCalibration") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the application uses Client HTTP profiles.", alias="SupportsClientHTTPProfile") @@ -60,7 +61,7 @@ class ApplicationType(BaseModel): supports_tls: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports TLS protocol.", alias="SupportsTLS") id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the flow") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Commands", "Connections", "CustomStats", "DataTypes", "Definition", "Description", "Endpoints", "FileName", "HasBannerCommand", "Md5Content", "Md5Metadata", "Metadata", "Name", "Parameters", "Strikes", "SupportsCalibration", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "SupportsStrikes", "SupportsTLS", "id", "links"] + __properties: ClassVar[List[str]] = ["Commands", "Connections", "CustomStats", "DataTypes", "Definition", "Description", "Endpoints", "FileName", "HasBannerCommand", "Md5Content", "Md5Metadata", "Metadata", "Name", "Parameters", "ProtocolFound", "Strikes", "SupportsCalibration", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "SupportsStrikes", "SupportsTLS", "id", "links"] model_config = ConfigDict( populate_by_name=True, @@ -199,6 +200,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "ProtocolFound": obj.get("ProtocolFound"), "Strikes": [Command.from_dict(_item) for _item in obj["Strikes"]] if obj.get("Strikes") is not None else None, "SupportsCalibration": obj.get("SupportsCalibration"), "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), diff --git a/cyperf/models/appsec_app.py b/cyperf/models/appsec_app.py index 95e698b..c123c4b 100644 --- a/cyperf/models/appsec_app.py +++ b/cyperf/models/appsec_app.py @@ -25,7 +25,7 @@ from cyperf.models.appsec_app_metadata import AppsecAppMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppsecApp(BaseModel): """ diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index f862f6c..ac589a0 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -24,7 +24,7 @@ from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppsecAppMetadata(BaseModel): """ diff --git a/cyperf/models/appsec_attack.py b/cyperf/models/appsec_attack.py index 9f93cd4..1ed4013 100644 --- a/cyperf/models/appsec_attack.py +++ b/cyperf/models/appsec_attack.py @@ -22,10 +22,10 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.attack import Attack -from cyperf.models.metadata import Metadata +from cyperf.models.attack_metadata import AttackMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppsecAttack(BaseModel): """ @@ -33,7 +33,7 @@ class AppsecAttack(BaseModel): """ # noqa: E501 attack: Optional[Attack] = Field(default=None, alias="Attack") description: Optional[StrictStr] = Field(default=None, description="The description of the attack", alias="Description") - metadata: Optional[Metadata] = Field(default=None, alias="Metadata") + metadata: Optional[AttackMetadata] = Field(default=None, alias="Metadata") name: Optional[StrictStr] = Field(default=None, description="The user friendly name of the attack", alias="Name") id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the attack") links: Optional[List[APILink]] = None @@ -115,7 +115,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Attack": Attack.from_dict(obj["Attack"]) if obj.get("Attack") is not None else None, "Description": obj.get("Description"), - "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, + "Metadata": AttackMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, diff --git a/cyperf/models/appsec_config.py b/cyperf/models/appsec_config.py index e1930d8..131598d 100644 --- a/cyperf/models/appsec_config.py +++ b/cyperf/models/appsec_config.py @@ -24,7 +24,7 @@ from cyperf.models.config import Config from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AppsecConfig(BaseModel): """ diff --git a/cyperf/models/archive_info.py b/cyperf/models/archive_info.py index c2dfa78..002b559 100644 --- a/cyperf/models/archive_info.py +++ b/cyperf/models/archive_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ArchiveInfo(BaseModel): """ diff --git a/cyperf/models/array_v2_element_metadata.py b/cyperf/models/array_v2_element_metadata.py index ff81fa5..a34f226 100644 --- a/cyperf/models/array_v2_element_metadata.py +++ b/cyperf/models/array_v2_element_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ArrayV2ElementMetadata(BaseModel): """ diff --git a/cyperf/models/async_context.py b/cyperf/models/async_context.py index 0c72b2c..8f5d63a 100644 --- a/cyperf/models/async_context.py +++ b/cyperf/models/async_context.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AsyncContext(BaseModel): """ diff --git a/cyperf/models/async_operation_response.py b/cyperf/models/async_operation_response.py index 44c581c..4167394 100644 --- a/cyperf/models/async_operation_response.py +++ b/cyperf/models/async_operation_response.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AsyncOperationResponse(BaseModel): """ diff --git a/cyperf/models/attack.py b/cyperf/models/attack.py index bbfb954..a2922f0 100644 --- a/cyperf/models/attack.py +++ b/cyperf/models/attack.py @@ -18,12 +18,13 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.attack_track import AttackTrack from cyperf.models.connection import Connection +from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.endpoint import Endpoint from cyperf.models.http_profile import HTTPProfile from cyperf.models.ip_preference import IpPreference @@ -33,7 +34,7 @@ from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Attack(BaseModel): """ @@ -73,9 +74,12 @@ class Attack(BaseModel): server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") supports_tls: Optional[StrictBool] = Field(default=None, alias="SupportsTLS") tracks: Optional[List[AttackTrack]] = Field(default=None, alias="Tracks") - create: Optional[List[Union[StrictBytes, StrictStr]]] = None + create: Optional[List[CreateAppOrAttackOperationInput]] = None + _create_json_schema_extra: dict = PrivateAttr(default={"x-operation": "CreateAttack" }) modify_excluded_dut_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-excluded-dut-recursively") + _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") + _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritTLS", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') @@ -177,6 +181,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['Tracks'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in create (list) + _items = [] + if self.create: + for _item in self.create: + if _item: + _items.append(_item.to_dict()) + _dict['create'] = _items # override the default output from pydantic by calling `to_dict()` of each item in modify_excluded_dut_recursively (list) _items = [] if self.modify_excluded_dut_recursively: @@ -239,7 +250,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "SupportsTLS": obj.get("SupportsTLS"), "Tracks": [AttackTrack.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, - "create": obj.get("create"), + "create": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["create"]] if obj.get("create") is not None else None, "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None , diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 470a10a..2f104f1 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -26,7 +26,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AttackAction(BaseModel): """ diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py new file mode 100644 index 0000000..4b2728b --- /dev/null +++ b/cyperf/models/attack_metadata.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.reference import Reference +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class AttackMetadata(BaseModel): + """ + AttackMetadata + """ # noqa: E501 + cve_count: Optional[StrictInt] = Field(default=None, description="The number of CVE references associated with the attack", alias="CveCount") + direction: Optional[StrictStr] = Field(default=None, description="The aggregated direction of the strike included in the attack", alias="Direction") + keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the attack", alias="Keywords") + legacy_names: Optional[List[StrictStr]] = Field(default=None, alias="LegacyNames") + references: Optional[List[Reference]] = Field(default=None, description="The aggregated references of the attack", alias="References") + severity: Optional[StrictStr] = Field(default=None, description="The aggregated severity of the strike included in the attack", alias="Severity") + strikes_count: Optional[StrictInt] = Field(default=None, description="The number of strikes associated with the attack", alias="StrikesCount") + __properties: ClassVar[List[str]] = ["CveCount", "Direction", "Keywords", "LegacyNames", "References", "Severity", "StrikesCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AttackMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in keywords (list) + _items = [] + if self.keywords: + for _item in self.keywords: + if _item: + _items.append(_item.to_dict()) + _dict['Keywords'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in references (list) + _items = [] + if self.references: + for _item in self.references: + if _item: + _items.append(_item.to_dict()) + _dict['References'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AttackMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "CveCount": obj.get("CveCount"), + "Direction": obj.get("Direction"), + "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "LegacyNames": obj.get("LegacyNames"), + "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "Severity": obj.get("Severity"), + "StrikesCount": obj.get("StrikesCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/attack_metadata_keywords_inner.py b/cyperf/models/attack_metadata_keywords_inner.py new file mode 100644 index 0000000..43082b2 --- /dev/null +++ b/cyperf/models/attack_metadata_keywords_inner.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, Dict, List, Optional, Union +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +ATTACKMETADATAKEYWORDSINNER_ANY_OF_SCHEMAS = ["List[object]", "bool", "float", "int", "object", "str"] + +class AttackMetadataKeywordsInner(BaseModel): + """ + AttackMetadataKeywordsInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_3_validator: Optional[StrictInt] = None + # data type: bool + anyof_schema_4_validator: Optional[StrictBool] = None + # data type: List[object] + anyof_schema_5_validator: Optional[List[Any]] = None + # data type: object + anyof_schema_6_validator: Optional[Dict[str, Any]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[List[object], bool, float, int, object, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "List[object]", "bool", "float", "int", "object", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = AttackMetadataKeywordsInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[object] + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: object + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in AttackMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into object + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into AttackMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], List[object], bool, float, int, object, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/attack_objectives_and_timeline.py b/cyperf/models/attack_objectives_and_timeline.py index dd6712d..d273ff4 100644 --- a/cyperf/models/attack_objectives_and_timeline.py +++ b/cyperf/models/attack_objectives_and_timeline.py @@ -24,7 +24,7 @@ from cyperf.models.attack_timeline_segment import AttackTimelineSegment from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AttackObjectivesAndTimeline(BaseModel): """ diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index bd00007..c5085d6 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -29,7 +29,7 @@ from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AttackProfile(BaseModel): """ @@ -44,9 +44,13 @@ class AttackProfile(BaseModel): name: StrictStr = Field(alias="Name") objectives_and_timeline: Optional[AttackObjectivesAndTimeline] = Field(default=None, alias="ObjectivesAndTimeline") add_attacks: Optional[List[ExternalResourceInfo]] = Field(default=None, alias="add-attacks") + _add_attacks_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,AddAttacks" }) modify_excluded_dut_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-excluded-dut-recursively") + _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackProfileNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") + _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") + _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetAttackProfileNetworkMapping" }) __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( diff --git a/cyperf/models/attack_timeline_segment.py b/cyperf/models/attack_timeline_segment.py index 4b7d9c9..5959878 100644 --- a/cyperf/models/attack_timeline_segment.py +++ b/cyperf/models/attack_timeline_segment.py @@ -23,7 +23,7 @@ from cyperf.models.segment_type import SegmentType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AttackTimelineSegment(BaseModel): """ diff --git a/cyperf/models/attack_track.py b/cyperf/models/attack_track.py index f0eedb4..f7aca53 100644 --- a/cyperf/models/attack_track.py +++ b/cyperf/models/attack_track.py @@ -18,20 +18,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.attack_action import AttackAction +from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AttackTrack(BaseModel): """ AttackTrack """ # noqa: E501 actions: Optional[List[AttackAction]] = Field(default=None, alias="Actions") - add_actions: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="add-actions") + add_actions: Optional[List[CreateAppOrAttackOperationInput]] = Field(default=None, alias="add-actions") + _add_actions_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,CreateAttackAction" }) id: StrictStr links: Optional[List[APILink]] = None __properties: ClassVar[List[str]] = ["Actions", "add-actions", "id", "links"] @@ -82,6 +84,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['Actions'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in add_actions (list) + _items = [] + if self.add_actions: + for _item in self.add_actions: + if _item: + _items.append(_item.to_dict()) + _dict['add-actions'] = _items # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -104,7 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Actions": [AttackAction.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, - "add-actions": obj.get("add-actions"), + "add-actions": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["add-actions"]] if obj.get("add-actions") is not None else None, "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , diff --git a/cyperf/models/auth_profile.py b/cyperf/models/auth_profile.py index 9268324..b7f1d20 100644 --- a/cyperf/models/auth_profile.py +++ b/cyperf/models/auth_profile.py @@ -21,14 +21,14 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink +from cyperf.models.auth_profile_metadata import AuthProfileMetadata from cyperf.models.connection import Connection from cyperf.models.data_type import DataType from cyperf.models.endpoint import Endpoint -from cyperf.models.metadata import Metadata from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AuthProfile(BaseModel): """ @@ -38,7 +38,7 @@ class AuthProfile(BaseModel): data_types: Optional[List[DataType]] = Field(default=None, description="The data types definition of the parameters", alias="DataTypes") endpoints: Optional[List[Endpoint]] = Field(default=None, description="The list of endpoints used by the authentication profile", alias="Endpoints") file_name: Optional[StrictStr] = Field(default=None, description="The name of the XML file that contains the authentication profile definition", alias="FileName") - metadata: Optional[Metadata] = Field(default=None, alias="Metadata") + metadata: Optional[AuthProfileMetadata] = Field(default=None, alias="Metadata") parameters: Optional[List[Parameter]] = Field(default=None, description="The parameters of the authentication profile", alias="Parameters") description: Optional[StrictStr] = Field(default=None, description="The user friendly description of the Auth Profile") id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the profile") @@ -153,7 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, "FileName": obj.get("FileName"), - "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, + "Metadata": AuthProfileMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, "description": obj.get("description"), "id": obj.get("id"), diff --git a/cyperf/models/auth_profile_metadata.py b/cyperf/models/auth_profile_metadata.py new file mode 100644 index 0000000..11783cb --- /dev/null +++ b/cyperf/models/auth_profile_metadata.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.enum import Enum +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class AuthProfileMetadata(BaseModel): + """ + AuthProfileMetadata + """ # noqa: E501 + auth_method: Optional[Enum] = Field(default=None, alias="AuthMethod") + explicit_proxy: Optional[StrictBool] = Field(default=None, description="This is an authentication profile used along with an explicit proxy", alias="ExplicitProxy") + idp_type: Optional[Enum] = Field(default=None, alias="IDPType") + sgw_name: Optional[StrictStr] = Field(default=None, description="The name of the secure gateway", alias="SGWName") + sgw_type: Optional[StrictStr] = Field(default=None, description="The type of the secure gateway", alias="SGWType") + sgw_type_value: Optional[StrictStr] = Field(default=None, description="The agent secure gateway type value of the secure gateway type", alias="SGWTypeValue") + __properties: ClassVar[List[str]] = ["AuthMethod", "ExplicitProxy", "IDPType", "SGWName", "SGWType", "SGWTypeValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AuthProfileMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of auth_method + if self.auth_method: + _dict['AuthMethod'] = self.auth_method.to_dict() + # override the default output from pydantic by calling `to_dict()` of idp_type + if self.idp_type: + _dict['IDPType'] = self.idp_type.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuthProfileMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "AuthMethod": Enum.from_dict(obj["AuthMethod"]) if obj.get("AuthMethod") is not None else None, + "ExplicitProxy": obj.get("ExplicitProxy"), + "IDPType": Enum.from_dict(obj["IDPType"]) if obj.get("IDPType") is not None else None, + "SGWName": obj.get("SGWName"), + "SGWType": obj.get("SGWType"), + "SGWTypeValue": obj.get("SGWTypeValue") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index f68e003..8786c9b 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -25,7 +25,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AuthSettings(BaseModel): """ diff --git a/cyperf/models/authenticate200_response.py b/cyperf/models/authenticate200_response.py index cd97d1f..d400a3f 100644 --- a/cyperf/models/authenticate200_response.py +++ b/cyperf/models/authenticate200_response.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Authenticate200Response(BaseModel): """ diff --git a/cyperf/models/authentication_settings.py b/cyperf/models/authentication_settings.py index 05b767a..239b404 100644 --- a/cyperf/models/authentication_settings.py +++ b/cyperf/models/authentication_settings.py @@ -24,7 +24,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class AuthenticationSettings(BaseModel): """ diff --git a/cyperf/models/broker.py b/cyperf/models/broker.py index abe2159..c25ab71 100644 --- a/cyperf/models/broker.py +++ b/cyperf/models/broker.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Broker(BaseModel): """ diff --git a/cyperf/models/capture_input.py b/cyperf/models/capture_input.py index 6f88382..4bffce1 100644 --- a/cyperf/models/capture_input.py +++ b/cyperf/models/capture_input.py @@ -23,7 +23,7 @@ from cyperf.models.app_flow_input import AppFlowInput from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CaptureInput(BaseModel): """ diff --git a/cyperf/models/capture_input_find_param.py b/cyperf/models/capture_input_find_param.py index dbb17a2..3a17447 100644 --- a/cyperf/models/capture_input_find_param.py +++ b/cyperf/models/capture_input_find_param.py @@ -23,7 +23,7 @@ from cyperf.models.app_flow_input_find_param import AppFlowInputFindParam from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CaptureInputFindParam(BaseModel): """ diff --git a/cyperf/models/capture_settings.py b/cyperf/models/capture_settings.py index e8df261..abdc979 100644 --- a/cyperf/models/capture_settings.py +++ b/cyperf/models/capture_settings.py @@ -23,7 +23,7 @@ from cyperf.models.log_level import LogLevel from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CaptureSettings(BaseModel): """ diff --git a/cyperf/models/category.py b/cyperf/models/category.py index c864655..9d820fd 100644 --- a/cyperf/models/category.py +++ b/cyperf/models/category.py @@ -23,7 +23,7 @@ from cyperf.models.category_value import CategoryValue from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Category(BaseModel): """ diff --git a/cyperf/models/category_filter.py b/cyperf/models/category_filter.py index d480678..0ceddcf 100644 --- a/cyperf/models/category_filter.py +++ b/cyperf/models/category_filter.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CategoryFilter(BaseModel): """ diff --git a/cyperf/models/category_value.py b/cyperf/models/category_value.py index 8ad1461..890be0f 100644 --- a/cyperf/models/category_value.py +++ b/cyperf/models/category_value.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CategoryValue(BaseModel): """ diff --git a/cyperf/models/cert_config.py b/cyperf/models/cert_config.py index 5ca5510..30bd180 100644 --- a/cyperf/models/cert_config.py +++ b/cyperf/models/cert_config.py @@ -25,7 +25,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CertConfig(BaseModel): """ @@ -34,6 +34,7 @@ class CertConfig(BaseModel): certificate_file: Optional[Params] = Field(default=None, description="The certificate file of the TLS profile.", alias="certificateFile") dh_file: Optional[Params] = Field(default=None, alias="dhFile") get_sni_conflicts: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="get-sni-conflicts") + _get_sni_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,GetSNICertConflicts" }) id: StrictStr is_playlist: Optional[StrictBool] = Field(default=None, alias="isPlaylist") key_file: Optional[Params] = Field(default=None, description="The key file of the TLS profile.", alias="keyFile") @@ -42,6 +43,7 @@ class CertConfig(BaseModel): playlist_column_name: Optional[StrictStr] = Field(default=None, alias="playlistColumnName") playlist_filename: Optional[StrictStr] = Field(default=None, alias="playlistFilename") resolve_sni_conflicts: Optional[List[Conflict]] = Field(default=None, alias="resolve-sni-conflicts") + _resolve_sni_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResolveSNIConflicts" }) sni_hostname: StrictStr = Field(description="The SNI hostname associated with the certificate. (default: generic.keysight.io).", alias="sniHostname") __properties: ClassVar[List[str]] = ["certificateFile", "dhFile", "get-sni-conflicts", "id", "isPlaylist", "keyFile", "keyFilePassword", "links", "playlistColumnName", "playlistFilename", "resolve-sni-conflicts", "sniHostname"] diff --git a/cyperf/models/certificate.py b/cyperf/models/certificate.py index fff4893..9d85bf4 100644 --- a/cyperf/models/certificate.py +++ b/cyperf/models/certificate.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Certificate(BaseModel): """ diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index 82f9f6b..f500f9c 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ChassisInfo(BaseModel): """ diff --git a/cyperf/models/choice.py b/cyperf/models/choice.py index 3f2bf32..dfca643 100644 --- a/cyperf/models/choice.py +++ b/cyperf/models/choice.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Choice(BaseModel): """ diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index f6638d2..034b51c 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -28,7 +28,7 @@ from cyperf.models.tls_profile import TLSProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CiscoAnyConnectSettings(BaseModel): """ diff --git a/cyperf/models/cisco_encapsulation.py b/cyperf/models/cisco_encapsulation.py index 7adfebd..79800b9 100644 --- a/cyperf/models/cisco_encapsulation.py +++ b/cyperf/models/cisco_encapsulation.py @@ -24,7 +24,7 @@ from cyperf.models.dtls_settings import DTLSSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CiscoEncapsulation(BaseModel): """ diff --git a/cyperf/models/clear_ports_ownership_operation.py b/cyperf/models/clear_ports_ownership_operation.py index ab5e0f1..2feb535 100644 --- a/cyperf/models/clear_ports_ownership_operation.py +++ b/cyperf/models/clear_ports_ownership_operation.py @@ -23,7 +23,7 @@ from cyperf.models.ports_by_controller import PortsByController from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ClearPortsOwnershipOperation(BaseModel): """ diff --git a/cyperf/models/command.py b/cyperf/models/command.py index 0d189ff..0fdca2e 100644 --- a/cyperf/models/command.py +++ b/cyperf/models/command.py @@ -26,7 +26,7 @@ from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Command(BaseModel): """ diff --git a/cyperf/models/compute_node.py b/cyperf/models/compute_node.py index 9f46670..461be34 100644 --- a/cyperf/models/compute_node.py +++ b/cyperf/models/compute_node.py @@ -26,7 +26,7 @@ from cyperf.models.port import Port from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ComputeNode(BaseModel): """ diff --git a/cyperf/models/config.py b/cyperf/models/config.py index 5f7a33d..da542a7 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -29,7 +29,7 @@ from cyperf.models.network_profile import NetworkProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Config(BaseModel): """ @@ -43,6 +43,7 @@ class Config(BaseModel): traffic_profiles: Optional[List[ApplicationProfile]] = Field(default=None, alias="TrafficProfiles") links: Optional[List[APILink]] = None validate: Optional[List[Union[StrictBytes, StrictStr]]] = None + _validate_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ValidateConfig" }) __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "TrafficProfiles", "links", "validate"] model_config = ConfigDict( diff --git a/cyperf/models/config_category.py b/cyperf/models/config_category.py index 5fe1c8f..52cfb25 100644 --- a/cyperf/models/config_category.py +++ b/cyperf/models/config_category.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ConfigCategory(BaseModel): """ diff --git a/cyperf/models/config_id.py b/cyperf/models/config_id.py index 193819f..c4c7d3d 100644 --- a/cyperf/models/config_id.py +++ b/cyperf/models/config_id.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ConfigId(BaseModel): """ diff --git a/cyperf/models/config_metadata.py b/cyperf/models/config_metadata.py index f8345a2..3676749 100644 --- a/cyperf/models/config_metadata.py +++ b/cyperf/models/config_metadata.py @@ -21,23 +21,24 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.version import Version from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ConfigMetadata(BaseModel): """ ConfigMetadata """ # noqa: E501 application: Optional[StrictStr] = None - config_data: Optional[Dict[str, ConfigMetadataConfigDataValue]] = Field(default=None, description="The actual configuration object", alias="configData") + config_data: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The actual configuration object", alias="configData") config_url: Optional[StrictStr] = Field(default=None, description="The backend URL of the saved config data", alias="configUrl") created_on: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when config was created", alias="createdOn") display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration", alias="displayName") encoded_files: Optional[StrictBool] = Field(default=None, alias="encodedFiles") id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the configuration") + is_public: Optional[StrictBool] = Field(default=None, description="Indicates if the configuration is accessible by all users.", alias="isPublic") last_accessed: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when config was last opened or modified", alias="lastAccessed") last_modified: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when config was last modified", alias="lastModified") linked_resources: Optional[List[APILink]] = Field(default=None, alias="linkedResources") @@ -47,7 +48,7 @@ class ConfigMetadata(BaseModel): tags: Optional[Dict[str, StrictStr]] = Field(default=None, description="Tags used for categorizing configs") type: Optional[StrictStr] = Field(default=None, description="The type of config") version: Optional[Version] = None - __properties: ClassVar[List[str]] = ["application", "configData", "configUrl", "createdOn", "displayName", "encodedFiles", "id", "lastAccessed", "lastModified", "linkedResources", "owner", "ownerId", "readonly", "tags", "type", "version"] + __properties: ClassVar[List[str]] = ["application", "configData", "configUrl", "createdOn", "displayName", "encodedFiles", "id", "isPublic", "lastAccessed", "lastModified", "linkedResources", "owner", "ownerId", "readonly", "tags", "type", "version"] model_config = ConfigDict( populate_by_name=True, @@ -135,7 +136,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "application": obj.get("application"), "configData": dict( - (_k, ConfigMetadataConfigDataValue.from_dict(_v)) + (_k, AttackMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["configData"].items() ) if obj.get("configData") is not None @@ -145,6 +146,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "displayName": obj.get("displayName"), "encodedFiles": obj.get("encodedFiles"), "id": obj.get("id"), + "isPublic": obj.get("isPublic"), "lastAccessed": obj.get("lastAccessed"), "lastModified": obj.get("lastModified"), "linkedResources": [APILink.from_dict(_item) for _item in obj["linkedResources"]] if obj.get("linkedResources") is not None else None, diff --git a/cyperf/models/config_validation.py b/cyperf/models/config_validation.py index e61f96d..7f80b77 100644 --- a/cyperf/models/config_validation.py +++ b/cyperf/models/config_validation.py @@ -24,7 +24,7 @@ from cyperf.models.validation_message import ValidationMessage from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ConfigValidation(BaseModel): """ diff --git a/cyperf/models/conflict.py b/cyperf/models/conflict.py index 5a2d40b..d9b17ea 100644 --- a/cyperf/models/conflict.py +++ b/cyperf/models/conflict.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Conflict(BaseModel): """ diff --git a/cyperf/models/connection.py b/cyperf/models/connection.py index 931c8c1..681d812 100644 --- a/cyperf/models/connection.py +++ b/cyperf/models/connection.py @@ -25,7 +25,7 @@ from cyperf.models.port_settings import PortSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Connection(BaseModel): """ diff --git a/cyperf/models/consumer.py b/cyperf/models/consumer.py index c842aa6..d25b871 100644 --- a/cyperf/models/consumer.py +++ b/cyperf/models/consumer.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Consumer(BaseModel): """ diff --git a/cyperf/models/controller.py b/cyperf/models/controller.py index 2c6e331..5280471 100644 --- a/cyperf/models/controller.py +++ b/cyperf/models/controller.py @@ -25,7 +25,7 @@ from cyperf.models.health_issue import HealthIssue from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Controller(BaseModel): """ diff --git a/cyperf/models/counted_feature_consumer.py b/cyperf/models/counted_feature_consumer.py index 47f2c75..b838daa 100644 --- a/cyperf/models/counted_feature_consumer.py +++ b/cyperf/models/counted_feature_consumer.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CountedFeatureConsumer(BaseModel): """ diff --git a/cyperf/models/counted_feature_stats.py b/cyperf/models/counted_feature_stats.py index 0aad7d2..21a6cf3 100644 --- a/cyperf/models/counted_feature_stats.py +++ b/cyperf/models/counted_feature_stats.py @@ -23,7 +23,7 @@ from cyperf.models.counted_feature_consumer import CountedFeatureConsumer from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CountedFeatureStats(BaseModel): """ diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index 54d7173..5125401 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -24,7 +24,7 @@ from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CreateAppOperation(BaseModel): """ diff --git a/cyperf/models/create_app_or_attack_operation_input.py b/cyperf/models/create_app_or_attack_operation_input.py new file mode 100644 index 0000000..68d03c4 --- /dev/null +++ b/cyperf/models/create_app_or_attack_operation_input.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.add_action_info import AddActionInfo +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class CreateAppOrAttackOperationInput(BaseModel): + """ + CreateAppOrAttackOperationInput + """ # noqa: E501 + actions: List[AddActionInfo] = Field(alias="Actions") + resource_url: Optional[StrictStr] = Field(default=None, alias="ResourceURL") + __properties: ClassVar[List[str]] = ["Actions", "ResourceURL"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateAppOrAttackOperationInput from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in actions (list) + _items = [] + if self.actions: + for _item in self.actions: + if _item: + _items.append(_item.to_dict()) + _dict['Actions'] = _items + # set to None if resource_url (nullable) is None + # and model_fields_set contains the field + if self.resource_url is None and "resource_url" in self.model_fields_set: + _dict['ResourceURL'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateAppOrAttackOperationInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Actions": [AddActionInfo.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "ResourceURL": obj.get("ResourceURL") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/custom_dashboards.py b/cyperf/models/custom_dashboards.py index 587a43d..0946761 100644 --- a/cyperf/models/custom_dashboards.py +++ b/cyperf/models/custom_dashboards.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CustomDashboards(BaseModel): """ diff --git a/cyperf/models/custom_import_handler.py b/cyperf/models/custom_import_handler.py index eee5151..8f22ecc 100644 --- a/cyperf/models/custom_import_handler.py +++ b/cyperf/models/custom_import_handler.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CustomImportHandler(BaseModel): """ diff --git a/cyperf/models/custom_stat.py b/cyperf/models/custom_stat.py index ecd65e6..66a33d6 100644 --- a/cyperf/models/custom_stat.py +++ b/cyperf/models/custom_stat.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class CustomStat(BaseModel): """ diff --git a/cyperf/models/dashboard.py b/cyperf/models/dashboard.py index 8a244e8..d201ef0 100644 --- a/cyperf/models/dashboard.py +++ b/cyperf/models/dashboard.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Dashboard(BaseModel): """ diff --git a/cyperf/models/data_type.py b/cyperf/models/data_type.py index a58535f..7ad320a 100644 --- a/cyperf/models/data_type.py +++ b/cyperf/models/data_type.py @@ -23,7 +23,7 @@ from cyperf.models.data_type_values_inner import DataTypeValuesInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DataType(BaseModel): """ diff --git a/cyperf/models/data_type_values_inner.py b/cyperf/models/data_type_values_inner.py index 7c96ca9..9621755 100644 --- a/cyperf/models/data_type_values_inner.py +++ b/cyperf/models/data_type_values_inner.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DataTypeValuesInner(BaseModel): """ diff --git a/cyperf/models/definition.py b/cyperf/models/definition.py index 9db7c8b..02d5c05 100644 --- a/cyperf/models/definition.py +++ b/cyperf/models/definition.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Definition(BaseModel): """ diff --git a/cyperf/models/delete_input.py b/cyperf/models/delete_input.py index 7e751a2..8aad0a8 100644 --- a/cyperf/models/delete_input.py +++ b/cyperf/models/delete_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DeleteInput(BaseModel): """ diff --git a/cyperf/models/diagnostic_component.py b/cyperf/models/diagnostic_component.py index a9e441b..1963d40 100644 --- a/cyperf/models/diagnostic_component.py +++ b/cyperf/models/diagnostic_component.py @@ -23,7 +23,7 @@ from cyperf.models.diagnostic_options import DiagnosticOptions from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DiagnosticComponent(BaseModel): """ diff --git a/cyperf/models/diagnostic_component_context.py b/cyperf/models/diagnostic_component_context.py index abaddc9..06406a3 100644 --- a/cyperf/models/diagnostic_component_context.py +++ b/cyperf/models/diagnostic_component_context.py @@ -24,7 +24,7 @@ from cyperf.models.diagnostic_options import DiagnosticOptions from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DiagnosticComponentContext(BaseModel): """ diff --git a/cyperf/models/diagnostic_options.py b/cyperf/models/diagnostic_options.py index 4d5370d..d32efef 100644 --- a/cyperf/models/diagnostic_options.py +++ b/cyperf/models/diagnostic_options.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DiagnosticOptions(BaseModel): """ diff --git a/cyperf/models/disk_usage.py b/cyperf/models/disk_usage.py index d153d5d..1c72b18 100644 --- a/cyperf/models/disk_usage.py +++ b/cyperf/models/disk_usage.py @@ -24,7 +24,7 @@ from cyperf.models.consumer import Consumer from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DiskUsage(BaseModel): """ diff --git a/cyperf/models/dns_resolver.py b/cyperf/models/dns_resolver.py index 209e77d..3bd3840 100644 --- a/cyperf/models/dns_resolver.py +++ b/cyperf/models/dns_resolver.py @@ -24,7 +24,7 @@ from cyperf.models.name_server import NameServer from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DNSResolver(BaseModel): """ diff --git a/cyperf/models/dns_server.py b/cyperf/models/dns_server.py index 1fdb9aa..aeaee64 100644 --- a/cyperf/models/dns_server.py +++ b/cyperf/models/dns_server.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DNSServer(BaseModel): """ diff --git a/cyperf/models/dtls_settings.py b/cyperf/models/dtls_settings.py index 226c2a7..f60a139 100644 --- a/cyperf/models/dtls_settings.py +++ b/cyperf/models/dtls_settings.py @@ -25,7 +25,7 @@ from cyperf.models.udp_profile import UdpProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DTLSSettings(BaseModel): """ diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index ef7067b..8fd419e 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -27,7 +27,7 @@ from cyperf.models.pep_dut import PepDUT from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class DUTNetwork(BaseModel): """ diff --git a/cyperf/models/edit_action_input.py b/cyperf/models/edit_action_input.py index 749b769..2366de1 100644 --- a/cyperf/models/edit_action_input.py +++ b/cyperf/models/edit_action_input.py @@ -23,7 +23,7 @@ from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EditActionInput(BaseModel): """ diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 4fef8d0..99f63fe 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -29,7 +29,7 @@ from cyperf.models.reorder_exchanges_input import ReorderExchangesInput from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EditAppOperation(BaseModel): """ diff --git a/cyperf/models/effective_ports.py b/cyperf/models/effective_ports.py index 59e7fbf..ff7da4f 100644 --- a/cyperf/models/effective_ports.py +++ b/cyperf/models/effective_ports.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EffectivePorts(BaseModel): """ diff --git a/cyperf/models/emulated_router.py b/cyperf/models/emulated_router.py index 33a4650..f7ca59f 100644 --- a/cyperf/models/emulated_router.py +++ b/cyperf/models/emulated_router.py @@ -24,7 +24,7 @@ from cyperf.models.emulated_router_range import EmulatedRouterRange from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EmulatedRouter(BaseModel): """ diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index e2b5c8e..17f0dd9 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -27,7 +27,7 @@ from cyperf.models.vlan_range import VLANRange from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EmulatedRouterRange(BaseModel): """ diff --git a/cyperf/models/emulated_subnet_config.py b/cyperf/models/emulated_subnet_config.py index 0100084..99fa280 100644 --- a/cyperf/models/emulated_subnet_config.py +++ b/cyperf/models/emulated_subnet_config.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EmulatedSubnetConfig(BaseModel): """ diff --git a/cyperf/models/endpoint.py b/cyperf/models/endpoint.py index a72e183..d308c8b 100644 --- a/cyperf/models/endpoint.py +++ b/cyperf/models/endpoint.py @@ -24,7 +24,7 @@ from cyperf.models.network_mapping import NetworkMapping from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Endpoint(BaseModel): """ diff --git a/cyperf/models/entitlement_code_info.py b/cyperf/models/entitlement_code_info.py index 3b81fb2..c86bc1e 100644 --- a/cyperf/models/entitlement_code_info.py +++ b/cyperf/models/entitlement_code_info.py @@ -23,7 +23,7 @@ from cyperf.models.activation_code_info import ActivationCodeInfo from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EntitlementCodeInfo(BaseModel): """ diff --git a/cyperf/models/entitlement_code_request.py b/cyperf/models/entitlement_code_request.py index 0a9d81d..385bd32 100644 --- a/cyperf/models/entitlement_code_request.py +++ b/cyperf/models/entitlement_code_request.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EntitlementCodeRequest(BaseModel): """ diff --git a/cyperf/models/enum.py b/cyperf/models/enum.py index a1b597a..c14401a 100644 --- a/cyperf/models/enum.py +++ b/cyperf/models/enum.py @@ -23,7 +23,7 @@ from cyperf.models.choice import Choice from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Enum(BaseModel): """ diff --git a/cyperf/models/error_description.py b/cyperf/models/error_description.py index d216118..f6c936d 100644 --- a/cyperf/models/error_description.py +++ b/cyperf/models/error_description.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ErrorDescription(BaseModel): """ diff --git a/cyperf/models/error_response.py b/cyperf/models/error_response.py index 3f9e226..65c4f2a 100644 --- a/cyperf/models/error_response.py +++ b/cyperf/models/error_response.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ErrorResponse(BaseModel): """ diff --git a/cyperf/models/esp_over_udp_settings.py b/cyperf/models/esp_over_udp_settings.py index e1117f1..171a14d 100644 --- a/cyperf/models/esp_over_udp_settings.py +++ b/cyperf/models/esp_over_udp_settings.py @@ -24,7 +24,7 @@ from cyperf.models.udp_profile import UdpProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ESPOverUDPSettings(BaseModel): """ diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index 0fe9701..c8573d1 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -25,7 +25,7 @@ from cyperf.models.static_arp_entry import StaticARPEntry from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EthRange(BaseModel): """ diff --git a/cyperf/models/eula_details.py b/cyperf/models/eula_details.py index fd6fb9f..acf5afb 100644 --- a/cyperf/models/eula_details.py +++ b/cyperf/models/eula_details.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EulaDetails(BaseModel): """ diff --git a/cyperf/models/eula_summary.py b/cyperf/models/eula_summary.py index f2f562b..f217a69 100644 --- a/cyperf/models/eula_summary.py +++ b/cyperf/models/eula_summary.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class EulaSummary(BaseModel): """ diff --git a/cyperf/models/exchange.py b/cyperf/models/exchange.py index c885324..f4d8666 100644 --- a/cyperf/models/exchange.py +++ b/cyperf/models/exchange.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Exchange(BaseModel): """ diff --git a/cyperf/models/exchange_order.py b/cyperf/models/exchange_order.py index 9e3edfa..9d10b96 100644 --- a/cyperf/models/exchange_order.py +++ b/cyperf/models/exchange_order.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExchangeOrder(BaseModel): """ diff --git a/cyperf/models/exchange_payload.py b/cyperf/models/exchange_payload.py index 7eb94a1..3b9acaa 100644 --- a/cyperf/models/exchange_payload.py +++ b/cyperf/models/exchange_payload.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExchangePayload(BaseModel): """ diff --git a/cyperf/models/expected_disk_space.py b/cyperf/models/expected_disk_space.py index 5dccd5b..88075fa 100644 --- a/cyperf/models/expected_disk_space.py +++ b/cyperf/models/expected_disk_space.py @@ -25,7 +25,7 @@ from cyperf.models.expected_disk_space_size import ExpectedDiskSpaceSize from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExpectedDiskSpace(BaseModel): """ diff --git a/cyperf/models/expected_disk_space_message.py b/cyperf/models/expected_disk_space_message.py index 3b9ce37..69c90c3 100644 --- a/cyperf/models/expected_disk_space_message.py +++ b/cyperf/models/expected_disk_space_message.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExpectedDiskSpaceMessage(BaseModel): """ diff --git a/cyperf/models/expected_disk_space_pretty_size.py b/cyperf/models/expected_disk_space_pretty_size.py index 4ed7c0d..17c689a 100644 --- a/cyperf/models/expected_disk_space_pretty_size.py +++ b/cyperf/models/expected_disk_space_pretty_size.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExpectedDiskSpacePrettySize(BaseModel): """ diff --git a/cyperf/models/expected_disk_space_size.py b/cyperf/models/expected_disk_space_size.py index a20bb16..c840dfd 100644 --- a/cyperf/models/expected_disk_space_size.py +++ b/cyperf/models/expected_disk_space_size.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExpectedDiskSpaceSize(BaseModel): """ diff --git a/cyperf/models/export_all_operation.py b/cyperf/models/export_all_operation.py index fb1ec87..80d08f2 100644 --- a/cyperf/models/export_all_operation.py +++ b/cyperf/models/export_all_operation.py @@ -23,7 +23,7 @@ from cyperf.models.config_id import ConfigId from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExportAllOperation(BaseModel): """ diff --git a/cyperf/models/export_apps_operation_input.py b/cyperf/models/export_apps_operation_input.py index ad32018..1c58259 100644 --- a/cyperf/models/export_apps_operation_input.py +++ b/cyperf/models/export_apps_operation_input.py @@ -23,7 +23,7 @@ from cyperf.models.app_id import AppId from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExportAppsOperationInput(BaseModel): """ diff --git a/cyperf/models/export_files_operation_input.py b/cyperf/models/export_files_operation_input.py index b2f2782..7f7de67 100644 --- a/cyperf/models/export_files_operation_input.py +++ b/cyperf/models/export_files_operation_input.py @@ -23,7 +23,7 @@ from cyperf.models.export_files_request import ExportFilesRequest from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExportFilesOperationInput(BaseModel): """ diff --git a/cyperf/models/export_files_request.py b/cyperf/models/export_files_request.py index f648f5a..eec9792 100644 --- a/cyperf/models/export_files_request.py +++ b/cyperf/models/export_files_request.py @@ -23,7 +23,7 @@ from cyperf.models.required_file_types import RequiredFileTypes from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExportFilesRequest(BaseModel): """ diff --git a/cyperf/models/export_package_operation.py b/cyperf/models/export_package_operation.py index b1f0160..cd8660e 100644 --- a/cyperf/models/export_package_operation.py +++ b/cyperf/models/export_package_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExportPackageOperation(BaseModel): """ diff --git a/cyperf/models/external_resource_info.py b/cyperf/models/external_resource_info.py index 44f24b0..1878fa6 100644 --- a/cyperf/models/external_resource_info.py +++ b/cyperf/models/external_resource_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ExternalResourceInfo(BaseModel): """ diff --git a/cyperf/models/f5_encapsulation.py b/cyperf/models/f5_encapsulation.py index 7545392..7ed8f2c 100644 --- a/cyperf/models/f5_encapsulation.py +++ b/cyperf/models/f5_encapsulation.py @@ -24,7 +24,7 @@ from cyperf.models.dtls_settings import DTLSSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class F5Encapsulation(BaseModel): """ diff --git a/cyperf/models/f5_settings.py b/cyperf/models/f5_settings.py index c4724c9..4d9d8f7 100644 --- a/cyperf/models/f5_settings.py +++ b/cyperf/models/f5_settings.py @@ -28,7 +28,7 @@ from cyperf.models.tls_profile import TLSProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class F5Settings(BaseModel): """ diff --git a/cyperf/models/feature.py b/cyperf/models/feature.py index f358f50..9af1a44 100644 --- a/cyperf/models/feature.py +++ b/cyperf/models/feature.py @@ -23,7 +23,7 @@ from cyperf.models.feature_reservation import FeatureReservation from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Feature(BaseModel): """ diff --git a/cyperf/models/feature_reservation.py b/cyperf/models/feature_reservation.py index 5870523..7869617 100644 --- a/cyperf/models/feature_reservation.py +++ b/cyperf/models/feature_reservation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FeatureReservation(BaseModel): """ diff --git a/cyperf/models/feature_reservation_reserve.py b/cyperf/models/feature_reservation_reserve.py index b4221c9..bd1699c 100644 --- a/cyperf/models/feature_reservation_reserve.py +++ b/cyperf/models/feature_reservation_reserve.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FeatureReservationReserve(BaseModel): """ diff --git a/cyperf/models/file_metadata.py b/cyperf/models/file_metadata.py index c663699..e27a93d 100644 --- a/cyperf/models/file_metadata.py +++ b/cyperf/models/file_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FileMetadata(BaseModel): """ diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index b930947..62c7a57 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FileValue(BaseModel): """ diff --git a/cyperf/models/filter.py b/cyperf/models/filter.py index c30143c..037e1db 100644 --- a/cyperf/models/filter.py +++ b/cyperf/models/filter.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Filter(BaseModel): """ diff --git a/cyperf/models/filtered_stat.py b/cyperf/models/filtered_stat.py index 9e67eae..74800d5 100644 --- a/cyperf/models/filtered_stat.py +++ b/cyperf/models/filtered_stat.py @@ -23,7 +23,7 @@ from cyperf.models.filter import Filter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FilteredStat(BaseModel): """ diff --git a/cyperf/models/find_param_matches_operation.py b/cyperf/models/find_param_matches_operation.py index 4d308af..645d93a 100644 --- a/cyperf/models/find_param_matches_operation.py +++ b/cyperf/models/find_param_matches_operation.py @@ -23,7 +23,7 @@ from cyperf.models.action_input_find_param import ActionInputFindParam from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FindParamMatchesOperation(BaseModel): """ diff --git a/cyperf/models/fortinet_encapsulation.py b/cyperf/models/fortinet_encapsulation.py index 43f595c..e1526ba 100644 --- a/cyperf/models/fortinet_encapsulation.py +++ b/cyperf/models/fortinet_encapsulation.py @@ -24,7 +24,7 @@ from cyperf.models.dtls_settings import DTLSSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FortinetEncapsulation(BaseModel): """ diff --git a/cyperf/models/fortinet_settings.py b/cyperf/models/fortinet_settings.py index 3ce31b6..a772066 100644 --- a/cyperf/models/fortinet_settings.py +++ b/cyperf/models/fortinet_settings.py @@ -28,7 +28,7 @@ from cyperf.models.tls_profile import TLSProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FortinetSettings(BaseModel): """ diff --git a/cyperf/models/fulfillment_request.py b/cyperf/models/fulfillment_request.py index c611084..f4c7704 100644 --- a/cyperf/models/fulfillment_request.py +++ b/cyperf/models/fulfillment_request.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class FulfillmentRequest(BaseModel): """ diff --git a/cyperf/models/generate_all_operation.py b/cyperf/models/generate_all_operation.py index d517e0f..b29e15f 100644 --- a/cyperf/models/generate_all_operation.py +++ b/cyperf/models/generate_all_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GenerateAllOperation(BaseModel): """ diff --git a/cyperf/models/generate_csv_reports_operation.py b/cyperf/models/generate_csv_reports_operation.py index 18689a7..55de009 100644 --- a/cyperf/models/generate_csv_reports_operation.py +++ b/cyperf/models/generate_csv_reports_operation.py @@ -23,7 +23,7 @@ from cyperf.models.filtered_stat import FilteredStat from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GenerateCSVReportsOperation(BaseModel): """ diff --git a/cyperf/models/generate_pdf_report_operation.py b/cyperf/models/generate_pdf_report_operation.py index 4c36f9d..beaf775 100644 --- a/cyperf/models/generate_pdf_report_operation.py +++ b/cyperf/models/generate_pdf_report_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GeneratePDFReportOperation(BaseModel): """ diff --git a/cyperf/models/generic_file.py b/cyperf/models/generic_file.py index 3cc66df..b9e3aaa 100644 --- a/cyperf/models/generic_file.py +++ b/cyperf/models/generic_file.py @@ -18,13 +18,13 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.file_metadata import FileMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GenericFile(BaseModel): """ @@ -32,16 +32,17 @@ class GenericFile(BaseModel): """ # noqa: E501 content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, description="The content of the file") id: Optional[StrictStr] = Field(default=None, description="The unique identifier for the file") + is_public: Optional[StrictBool] = Field(default=None, description="Indicates if the resource is accessible by all users.", alias="isPublic") md5: Optional[StrictStr] = Field(default=None, description="The md5 value of the file") metadata: Optional[FileMetadata] = None name: Optional[StrictStr] = Field(default=None, description="The name of the file") - options: Optional[Dict[str, ConfigMetadataConfigDataValue]] = Field(default=None, description="The characteristics of the file") + options: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The characteristics of the file") owner: Optional[StrictStr] = Field(default=None, description="The user-visible name of the file's owner") owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the file's owner", alias="ownerId") reference_links: Optional[Dict[str, StrictInt]] = Field(default=None, alias="referenceLinks") size: Optional[StrictInt] = Field(default=None, description="The size of the file") type: Optional[StrictStr] = Field(default=None, description="The type of file") - __properties: ClassVar[List[str]] = ["content", "id", "md5", "metadata", "name", "options", "owner", "ownerId", "referenceLinks", "size", "type"] + __properties: ClassVar[List[str]] = ["content", "id", "isPublic", "md5", "metadata", "name", "options", "owner", "ownerId", "referenceLinks", "size", "type"] model_config = ConfigDict( populate_by_name=True, @@ -116,11 +117,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "content": obj.get("content"), "id": obj.get("id"), + "isPublic": obj.get("isPublic"), "md5": obj.get("md5"), "metadata": FileMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, "name": obj.get("name"), "options": dict( - (_k, ConfigMetadataConfigDataValue.from_dict(_v)) + (_k, AttackMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["options"].items() ) if obj.get("options") is not None diff --git a/cyperf/models/get_agents200_response_one_of.py b/cyperf/models/get_agents200_response_one_of.py index 7c850ce..a235b13 100644 --- a/cyperf/models/get_agents200_response_one_of.py +++ b/cyperf/models/get_agents200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.agent import Agent from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetAgents200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_agents_tags200_response_one_of.py b/cyperf/models/get_agents_tags200_response_one_of.py index 9038e44..e753852 100644 --- a/cyperf/models/get_agents_tags200_response_one_of.py +++ b/cyperf/models/get_agents_tags200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.agents_group import AgentsGroup from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetAgentsTags200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_attacks_operation.py b/cyperf/models/get_attacks_operation.py index 9e07c23..5404d64 100644 --- a/cyperf/models/get_attacks_operation.py +++ b/cyperf/models/get_attacks_operation.py @@ -24,7 +24,7 @@ from cyperf.models.sort_body_field import SortBodyField from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetAttacksOperation(BaseModel): """ diff --git a/cyperf/models/get_brokers200_response_one_of.py b/cyperf/models/get_brokers200_response_one_of.py index 94215c8..8af1ac1 100644 --- a/cyperf/models/get_brokers200_response_one_of.py +++ b/cyperf/models/get_brokers200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.broker import Broker from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetBrokers200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_categories_operation.py b/cyperf/models/get_categories_operation.py index 86ca22f..ca4f360 100644 --- a/cyperf/models/get_categories_operation.py +++ b/cyperf/models/get_categories_operation.py @@ -23,7 +23,7 @@ from cyperf.models.category_filter import CategoryFilter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetCategoriesOperation(BaseModel): """ diff --git a/cyperf/models/get_config_categories200_response_one_of.py b/cyperf/models/get_config_categories200_response_one_of.py index 73dc9bb..dacddb4 100644 --- a/cyperf/models/get_config_categories200_response_one_of.py +++ b/cyperf/models/get_config_categories200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.config_category import ConfigCategory from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetConfigCategories200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_configs200_response_one_of.py b/cyperf/models/get_configs200_response_one_of.py index 8c12c48..f755da5 100644 --- a/cyperf/models/get_configs200_response_one_of.py +++ b/cyperf/models/get_configs200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.config_metadata import ConfigMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetConfigs200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_controllers200_response_one_of.py b/cyperf/models/get_controllers200_response_one_of.py index e1482a1..d879394 100644 --- a/cyperf/models/get_controllers200_response_one_of.py +++ b/cyperf/models/get_controllers200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.controller import Controller from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetControllers200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_disk_usage_consumers200_response_one_of.py b/cyperf/models/get_disk_usage_consumers200_response_one_of.py index f587095..ff92ced 100644 --- a/cyperf/models/get_disk_usage_consumers200_response_one_of.py +++ b/cyperf/models/get_disk_usage_consumers200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.consumer import Consumer from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetDiskUsageConsumers200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_license_servers200_response_one_of.py b/cyperf/models/get_license_servers200_response_one_of.py index cd1cbca..99a5271 100644 --- a/cyperf/models/get_license_servers200_response_one_of.py +++ b/cyperf/models/get_license_servers200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.license_server_metadata import LicenseServerMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetLicenseServers200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_notifications200_response_one_of.py b/cyperf/models/get_notifications200_response_one_of.py index a0e1239..8b51284 100644 --- a/cyperf/models/get_notifications200_response_one_of.py +++ b/cyperf/models/get_notifications200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.notification import Notification from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetNotifications200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_resources_application_types200_response_one_of.py b/cyperf/models/get_resources_application_types200_response_one_of.py index 0f9ece7..ed7388b 100644 --- a/cyperf/models/get_resources_application_types200_response_one_of.py +++ b/cyperf/models/get_resources_application_types200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.application_type import ApplicationType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResourcesApplicationTypes200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_resources_apps200_response_one_of.py b/cyperf/models/get_resources_apps200_response_one_of.py index 7c1eb9a..5894e72 100644 --- a/cyperf/models/get_resources_apps200_response_one_of.py +++ b/cyperf/models/get_resources_apps200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.appsec_app import AppsecApp from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResourcesApps200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_resources_attacks200_response_one_of.py b/cyperf/models/get_resources_attacks200_response_one_of.py index 00fcaa5..25dcb6e 100644 --- a/cyperf/models/get_resources_attacks200_response_one_of.py +++ b/cyperf/models/get_resources_attacks200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.appsec_attack import AppsecAttack from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResourcesAttacks200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_resources_auth_profiles200_response_one_of.py b/cyperf/models/get_resources_auth_profiles200_response_one_of.py index 55a369c..d872515 100644 --- a/cyperf/models/get_resources_auth_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_auth_profiles200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.auth_profile import AuthProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResourcesAuthProfiles200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_resources_certificates200_response_one_of.py b/cyperf/models/get_resources_certificates200_response_one_of.py index 73e98ed..f92e9ec 100644 --- a/cyperf/models/get_resources_certificates200_response_one_of.py +++ b/cyperf/models/get_resources_certificates200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.generic_file import GenericFile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResourcesCertificates200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py index 4bfdb7a..08c1f03 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py +++ b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.custom_import_handler import CustomImportHandler from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResourcesCustomImportOperations200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_resources_http_profiles200_response_one_of.py b/cyperf/models/get_resources_http_profiles200_response_one_of.py index 681e933..c5f8ed4 100644 --- a/cyperf/models/get_resources_http_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_http_profiles200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.http_profile import HTTPProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResourcesHttpProfiles200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_result_files200_response_one_of.py b/cyperf/models/get_result_files200_response_one_of.py index d46b814..57d475a 100644 --- a/cyperf/models/get_result_files200_response_one_of.py +++ b/cyperf/models/get_result_files200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.result_file_metadata import ResultFileMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResultFiles200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_result_stats200_response_one_of.py b/cyperf/models/get_result_stats200_response_one_of.py index 4c01e25..901f7ec 100644 --- a/cyperf/models/get_result_stats200_response_one_of.py +++ b/cyperf/models/get_result_stats200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.stats_result import StatsResult from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResultStats200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_results200_response_one_of.py b/cyperf/models/get_results200_response_one_of.py index 6843c04..ab6a681 100644 --- a/cyperf/models/get_results200_response_one_of.py +++ b/cyperf/models/get_results200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.result_metadata import ResultMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResults200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_results_tags200_response_one_of.py b/cyperf/models/get_results_tags200_response_one_of.py index 8cdaab7..0d4b261 100644 --- a/cyperf/models/get_results_tags200_response_one_of.py +++ b/cyperf/models/get_results_tags200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.results_group import ResultsGroup from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetResultsTags200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_session_meta200_response_one_of.py b/cyperf/models/get_session_meta200_response_one_of.py index aa974b5..1b600dd 100644 --- a/cyperf/models/get_session_meta200_response_one_of.py +++ b/cyperf/models/get_session_meta200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.pair import Pair from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetSessionMeta200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_sessions200_response_one_of.py b/cyperf/models/get_sessions200_response_one_of.py index 2a730dc..63ea875 100644 --- a/cyperf/models/get_sessions200_response_one_of.py +++ b/cyperf/models/get_sessions200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.session import Session from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetSessions200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_stats_plugins200_response_one_of.py b/cyperf/models/get_stats_plugins200_response_one_of.py index a36ab39..8debc22 100644 --- a/cyperf/models/get_stats_plugins200_response_one_of.py +++ b/cyperf/models/get_stats_plugins200_response_one_of.py @@ -23,7 +23,7 @@ from cyperf.models.plugin import Plugin from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetStatsPlugins200ResponseOneOf(BaseModel): """ diff --git a/cyperf/models/get_strikes_operation.py b/cyperf/models/get_strikes_operation.py index 3883e13..700f372 100644 --- a/cyperf/models/get_strikes_operation.py +++ b/cyperf/models/get_strikes_operation.py @@ -24,7 +24,7 @@ from cyperf.models.sort_body_field import SortBodyField from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class GetStrikesOperation(BaseModel): """ diff --git a/cyperf/models/health_check_config.py b/cyperf/models/health_check_config.py index 26fddff..d05e835 100644 --- a/cyperf/models/health_check_config.py +++ b/cyperf/models/health_check_config.py @@ -24,7 +24,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class HealthCheckConfig(BaseModel): """ diff --git a/cyperf/models/health_issue.py b/cyperf/models/health_issue.py index 06db0a1..c36096a 100644 --- a/cyperf/models/health_issue.py +++ b/cyperf/models/health_issue.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class HealthIssue(BaseModel): """ diff --git a/cyperf/models/host_id.py b/cyperf/models/host_id.py index 9c7da3a..875af1f 100644 --- a/cyperf/models/host_id.py +++ b/cyperf/models/host_id.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class HostID(BaseModel): """ diff --git a/cyperf/models/http_profile.py b/cyperf/models/http_profile.py index a0e5120..0166330 100644 --- a/cyperf/models/http_profile.py +++ b/cyperf/models/http_profile.py @@ -26,7 +26,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class HTTPProfile(BaseModel): """ diff --git a/cyperf/models/http_req_meta.py b/cyperf/models/http_req_meta.py index db8a5c8..11e78c2 100644 --- a/cyperf/models/http_req_meta.py +++ b/cyperf/models/http_req_meta.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class HTTPReqMeta(BaseModel): """ diff --git a/cyperf/models/http_res_meta.py b/cyperf/models/http_res_meta.py index 58ce16d..7f74507 100644 --- a/cyperf/models/http_res_meta.py +++ b/cyperf/models/http_res_meta.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class HTTPResMeta(BaseModel): """ diff --git a/cyperf/models/import_all_operation.py b/cyperf/models/import_all_operation.py index d57113a..934b807 100644 --- a/cyperf/models/import_all_operation.py +++ b/cyperf/models/import_all_operation.py @@ -23,7 +23,7 @@ from cyperf.models.config_metadata import ConfigMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ImportAllOperation(BaseModel): """ diff --git a/cyperf/models/import_offline_license_result.py b/cyperf/models/import_offline_license_result.py index 43ce063..9944c8f 100644 --- a/cyperf/models/import_offline_license_result.py +++ b/cyperf/models/import_offline_license_result.py @@ -23,7 +23,7 @@ from cyperf.models.license_receipt import LicenseReceipt from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ImportOfflineLicenseResult(BaseModel): """ diff --git a/cyperf/models/ingest_operation.py b/cyperf/models/ingest_operation.py index b5cede7..217ee6b 100644 --- a/cyperf/models/ingest_operation.py +++ b/cyperf/models/ingest_operation.py @@ -23,7 +23,7 @@ from cyperf.models.plugin_stats import PluginStats from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class IngestOperation(BaseModel): """ diff --git a/cyperf/models/inner_ip_range.py b/cyperf/models/inner_ip_range.py index 2a040e2..8a6dd42 100644 --- a/cyperf/models/inner_ip_range.py +++ b/cyperf/models/inner_ip_range.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class InnerIPRange(BaseModel): """ diff --git a/cyperf/models/interface.py b/cyperf/models/interface.py index 769ab26..c3c8f96 100644 --- a/cyperf/models/interface.py +++ b/cyperf/models/interface.py @@ -23,7 +23,7 @@ from cyperf.models.ip_mask import IpMask from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Interface(BaseModel): """ diff --git a/cyperf/models/ip_mask.py b/cyperf/models/ip_mask.py index 48de52b..dbe7219 100644 --- a/cyperf/models/ip_mask.py +++ b/cyperf/models/ip_mask.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class IpMask(BaseModel): """ diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 34389ab..6c0865e 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -31,7 +31,7 @@ from cyperf.models.tunnel_stack import TunnelStack from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class IPNetwork(BaseModel): """ diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index 94157f3..c9c5c1b 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -27,7 +27,7 @@ from cyperf.models.vlan_range import VLANRange from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class IPRange(BaseModel): """ diff --git a/cyperf/models/ip_sec_range.py b/cyperf/models/ip_sec_range.py index e663d2d..a326b61 100644 --- a/cyperf/models/ip_sec_range.py +++ b/cyperf/models/ip_sec_range.py @@ -31,7 +31,7 @@ from cyperf.models.timers import Timers from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class IPSecRange(BaseModel): """ diff --git a/cyperf/models/ip_sec_stack.py b/cyperf/models/ip_sec_stack.py index 432858a..915e264 100644 --- a/cyperf/models/ip_sec_stack.py +++ b/cyperf/models/ip_sec_stack.py @@ -29,7 +29,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class IPSecStack(BaseModel): """ diff --git a/cyperf/models/license.py b/cyperf/models/license.py index 97a0e6f..c413e13 100644 --- a/cyperf/models/license.py +++ b/cyperf/models/license.py @@ -24,7 +24,7 @@ from cyperf.models.link import Link from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class License(BaseModel): """ diff --git a/cyperf/models/license_receipt.py b/cyperf/models/license_receipt.py index 5cd1454..6e57004 100644 --- a/cyperf/models/license_receipt.py +++ b/cyperf/models/license_receipt.py @@ -23,7 +23,7 @@ from cyperf.models.license import License from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class LicenseReceipt(BaseModel): """ diff --git a/cyperf/models/license_server_metadata.py b/cyperf/models/license_server_metadata.py index d963f51..b7a46ac 100644 --- a/cyperf/models/license_server_metadata.py +++ b/cyperf/models/license_server_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class LicenseServerMetadata(BaseModel): """ diff --git a/cyperf/models/link.py b/cyperf/models/link.py index fdf72e0..599cb8a 100644 --- a/cyperf/models/link.py +++ b/cyperf/models/link.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Link(BaseModel): """ diff --git a/cyperf/models/load_config_operation.py b/cyperf/models/load_config_operation.py index f3d8842..68b7ae2 100644 --- a/cyperf/models/load_config_operation.py +++ b/cyperf/models/load_config_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class LoadConfigOperation(BaseModel): """ diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index e3b869b..92769b7 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class LocalSubnetConfig(BaseModel): """ diff --git a/cyperf/models/log_config.py b/cyperf/models/log_config.py index 5516d66..6793d2e 100644 --- a/cyperf/models/log_config.py +++ b/cyperf/models/log_config.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class LogConfig(BaseModel): """ diff --git a/cyperf/models/mac_dtls_stack.py b/cyperf/models/mac_dtls_stack.py index 095e453..1b873e2 100644 --- a/cyperf/models/mac_dtls_stack.py +++ b/cyperf/models/mac_dtls_stack.py @@ -27,7 +27,7 @@ from cyperf.models.vlan_range import VLANRange from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class MacDtlsStack(BaseModel): """ diff --git a/cyperf/models/marked_as_deleted.py b/cyperf/models/marked_as_deleted.py index a8237f4..2e3f99d 100644 --- a/cyperf/models/marked_as_deleted.py +++ b/cyperf/models/marked_as_deleted.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class MarkedAsDeleted(BaseModel): """ diff --git a/cyperf/models/media_file.py b/cyperf/models/media_file.py index 323cb48..3aaedfd 100644 --- a/cyperf/models/media_file.py +++ b/cyperf/models/media_file.py @@ -25,7 +25,7 @@ from cyperf.models.media_track import MediaTrack from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class MediaFile(BaseModel): """ diff --git a/cyperf/models/media_track.py b/cyperf/models/media_track.py index 77de5bd..4f57608 100644 --- a/cyperf/models/media_track.py +++ b/cyperf/models/media_track.py @@ -23,7 +23,7 @@ from cyperf.models.track_type import TrackType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class MediaTrack(BaseModel): """ diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 86d0fcb..3600451 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -20,12 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.reference import Reference from cyperf.models.rtp_profile_meta import RTPProfileMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Metadata(BaseModel): """ @@ -33,7 +33,7 @@ class Metadata(BaseModel): """ # noqa: E501 direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") - keywords: Optional[List[ConfigMetadataConfigDataValue]] = Field(default=None, description="The keywords of the strike", alias="Keywords") + keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") rtp_profile_meta: Optional[RTPProfileMeta] = Field(default=None, alias="RTPProfileMeta") @@ -119,7 +119,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), - "Keywords": [ConfigMetadataConfigDataValue.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, "LegacyNames": obj.get("LegacyNames"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, diff --git a/cyperf/models/name_server.py b/cyperf/models/name_server.py index a97548f..e10cd2e 100644 --- a/cyperf/models/name_server.py +++ b/cyperf/models/name_server.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NameServer(BaseModel): """ diff --git a/cyperf/models/network_mapping.py b/cyperf/models/network_mapping.py index 5e92c1f..9fcba81 100644 --- a/cyperf/models/network_mapping.py +++ b/cyperf/models/network_mapping.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NetworkMapping(BaseModel): """ diff --git a/cyperf/models/network_meshing.py b/cyperf/models/network_meshing.py index f7af49c..a16c2fd 100644 --- a/cyperf/models/network_meshing.py +++ b/cyperf/models/network_meshing.py @@ -23,7 +23,7 @@ from cyperf.models.mapping_type import MappingType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NetworkMeshing(BaseModel): """ diff --git a/cyperf/models/network_profile.py b/cyperf/models/network_profile.py index 33e9a6e..a0c5937 100644 --- a/cyperf/models/network_profile.py +++ b/cyperf/models/network_profile.py @@ -25,7 +25,7 @@ from cyperf.models.ip_network import IPNetwork from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NetworkProfile(BaseModel): """ diff --git a/cyperf/models/network_segment_base.py b/cyperf/models/network_segment_base.py index 65c6f0c..58253ab 100644 --- a/cyperf/models/network_segment_base.py +++ b/cyperf/models/network_segment_base.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NetworkSegmentBase(BaseModel): """ diff --git a/cyperf/models/nodes_by_controller.py b/cyperf/models/nodes_by_controller.py index d14a261..4137294 100644 --- a/cyperf/models/nodes_by_controller.py +++ b/cyperf/models/nodes_by_controller.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NodesByController(BaseModel): """ diff --git a/cyperf/models/nodes_power_cycle_operation.py b/cyperf/models/nodes_power_cycle_operation.py index 8644f26..6e8c327 100644 --- a/cyperf/models/nodes_power_cycle_operation.py +++ b/cyperf/models/nodes_power_cycle_operation.py @@ -23,7 +23,7 @@ from cyperf.models.nodes_by_controller import NodesByController from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NodesPowerCycleOperation(BaseModel): """ diff --git a/cyperf/models/notification.py b/cyperf/models/notification.py index e97ea39..1593324 100644 --- a/cyperf/models/notification.py +++ b/cyperf/models/notification.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Notification(BaseModel): """ diff --git a/cyperf/models/notification_counts.py b/cyperf/models/notification_counts.py index 7424588..33e4e02 100644 --- a/cyperf/models/notification_counts.py +++ b/cyperf/models/notification_counts.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NotificationCounts(BaseModel): """ diff --git a/cyperf/models/ntp_info.py b/cyperf/models/ntp_info.py index b2e471b..dc716ae 100644 --- a/cyperf/models/ntp_info.py +++ b/cyperf/models/ntp_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class NtpInfo(BaseModel): """ diff --git a/cyperf/models/objective_value_entry.py b/cyperf/models/objective_value_entry.py index afd1ace..6e964a7 100644 --- a/cyperf/models/objective_value_entry.py +++ b/cyperf/models/objective_value_entry.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ObjectiveValueEntry(BaseModel): """ diff --git a/cyperf/models/objectives_and_timeline.py b/cyperf/models/objectives_and_timeline.py index aa61d97..196a690 100644 --- a/cyperf/models/objectives_and_timeline.py +++ b/cyperf/models/objectives_and_timeline.py @@ -27,7 +27,7 @@ from cyperf.models.timeline_segment import TimelineSegment from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ObjectivesAndTimeline(BaseModel): """ diff --git a/cyperf/models/open_api_definitions.py b/cyperf/models/open_api_definitions.py index e06fdaa..2299499 100644 --- a/cyperf/models/open_api_definitions.py +++ b/cyperf/models/open_api_definitions.py @@ -20,16 +20,16 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class OpenAPIDefinitions(BaseModel): """ OpenAPIDefinitions """ # noqa: E501 - open_api_definitions: Optional[Dict[str, ConfigMetadataConfigDataValue]] = Field(default=None, description="The OpenAPI definitions for CyPerf data model", alias="openApiDefinitions") + open_api_definitions: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The OpenAPI definitions for CyPerf data model", alias="openApiDefinitions") __properties: ClassVar[List[str]] = ["openApiDefinitions"] model_config = ConfigDict( @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "openApiDefinitions": dict( - (_k, ConfigMetadataConfigDataValue.from_dict(_v)) + (_k, AttackMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["openApiDefinitions"].items() ) if obj.get("openApiDefinitions") is not None diff --git a/cyperf/models/p1_config.py b/cyperf/models/p1_config.py index 0765cc4..794c68e 100644 --- a/cyperf/models/p1_config.py +++ b/cyperf/models/p1_config.py @@ -26,7 +26,7 @@ from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class P1Config(BaseModel): """ diff --git a/cyperf/models/p2_config.py b/cyperf/models/p2_config.py index 9293bfb..992e8b1 100644 --- a/cyperf/models/p2_config.py +++ b/cyperf/models/p2_config.py @@ -25,7 +25,7 @@ from cyperf.models.pfs_p2_group import PfsP2Group from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class P2Config(BaseModel): """ diff --git a/cyperf/models/pair.py b/cyperf/models/pair.py index 1c69037..fbe2857 100644 --- a/cyperf/models/pair.py +++ b/cyperf/models/pair.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Pair(BaseModel): """ diff --git a/cyperf/models/pangp_encapsulation.py b/cyperf/models/pangp_encapsulation.py index 7ea3ab2..cb1b4cc 100644 --- a/cyperf/models/pangp_encapsulation.py +++ b/cyperf/models/pangp_encapsulation.py @@ -24,7 +24,7 @@ from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PANGPEncapsulation(BaseModel): """ diff --git a/cyperf/models/pangp_settings.py b/cyperf/models/pangp_settings.py index fe92db4..25915ae 100644 --- a/cyperf/models/pangp_settings.py +++ b/cyperf/models/pangp_settings.py @@ -28,7 +28,7 @@ from cyperf.models.tls_profile import TLSProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PANGPSettings(BaseModel): """ diff --git a/cyperf/models/param_metadata.py b/cyperf/models/param_metadata.py index ea0e2f7..8fbe62d 100644 --- a/cyperf/models/param_metadata.py +++ b/cyperf/models/param_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParamMetadata(BaseModel): """ diff --git a/cyperf/models/param_metadata_type_info.py b/cyperf/models/param_metadata_type_info.py index e5f90c6..0526790 100644 --- a/cyperf/models/param_metadata_type_info.py +++ b/cyperf/models/param_metadata_type_info.py @@ -26,7 +26,7 @@ from cyperf.models.param_metadata_type_info_string import ParamMetadataTypeInfoString from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParamMetadataTypeInfo(BaseModel): """ diff --git a/cyperf/models/param_metadata_type_info_array_v2.py b/cyperf/models/param_metadata_type_info_array_v2.py index 73d8beb..059cf09 100644 --- a/cyperf/models/param_metadata_type_info_array_v2.py +++ b/cyperf/models/param_metadata_type_info_array_v2.py @@ -23,7 +23,7 @@ from cyperf.models.param_metadata_type_info_array_v2_elements_inner import ParamMetadataTypeInfoArrayV2ElementsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParamMetadataTypeInfoArrayV2(BaseModel): """ diff --git a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py index 7964ec2..5ec94f6 100644 --- a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py +++ b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParamMetadataTypeInfoArrayV2ElementsInner(BaseModel): """ diff --git a/cyperf/models/param_metadata_type_info_int.py b/cyperf/models/param_metadata_type_info_int.py index 3fe2c84..d12e3ff 100644 --- a/cyperf/models/param_metadata_type_info_int.py +++ b/cyperf/models/param_metadata_type_info_int.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParamMetadataTypeInfoInt(BaseModel): """ diff --git a/cyperf/models/param_metadata_type_info_media.py b/cyperf/models/param_metadata_type_info_media.py index 6709cef..b484347 100644 --- a/cyperf/models/param_metadata_type_info_media.py +++ b/cyperf/models/param_metadata_type_info_media.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParamMetadataTypeInfoMedia(BaseModel): """ diff --git a/cyperf/models/param_metadata_type_info_string.py b/cyperf/models/param_metadata_type_info_string.py index 0149174..bed3618 100644 --- a/cyperf/models/param_metadata_type_info_string.py +++ b/cyperf/models/param_metadata_type_info_string.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParamMetadataTypeInfoString(BaseModel): """ diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index 64bd927..a30f21b 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -20,21 +20,29 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.api_link import APILink +from cyperf.models.parameter_metadata import ParameterMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Parameter(BaseModel): """ Parameter """ # noqa: E501 - matches: Optional[List[ParameterMatch]] = Field(default=None, alias="Matches") - name: Optional[StrictStr] = Field(default=None, alias="Name") + default_array_elements: Optional[List[Dict[str, StrictStr]]] = Field(default=None, description="The default values of the parameter", alias="DefaultArrayElements") + default_source: Optional[StrictStr] = Field(default=None, description="The default source of the parameter", alias="DefaultSource") + default_value: Optional[StrictStr] = Field(default=None, description="The default value of the parameter", alias="DefaultValue") + element_type: Optional[StrictStr] = Field(default=None, description="The type of elements in the values array", alias="ElementType") + metadata: Optional[ParameterMetadata] = Field(default=None, alias="Metadata") + sources: Optional[List[StrictStr]] = Field(default=None, description="The sources of the parameter", alias="Sources") + type: Optional[StrictStr] = Field(default=None, description="The type of the parameter", alias="Type") var_field: Optional[StrictStr] = Field(default=None, description="The name of the ES document field", alias="field") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the parameter") + links: Optional[List[APILink]] = None operator: Optional[StrictStr] = Field(default=None, description="The operator that the parameter supports") query_param: Optional[StrictStr] = Field(default=None, description="The corresponding query param", alias="queryParam") - __properties: ClassVar[List[str]] = ["Matches", "Name", "field", "operator", "queryParam"] + __properties: ClassVar[List[str]] = ["DefaultArrayElements", "DefaultSource", "DefaultValue", "ElementType", "Metadata", "Sources", "Type", "field", "id", "links", "operator", "queryParam"] model_config = ConfigDict( populate_by_name=True, @@ -66,8 +74,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "id", ]) _dict = self.model_dump( @@ -75,13 +85,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['Metadata'] = self.metadata.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] - if self.matches: - for _item in self.matches: + if self.links: + for _item in self.links: if _item: _items.append(_item.to_dict()) - _dict['Matches'] = _items + _dict['links'] = _items return _dict @classmethod @@ -96,9 +109,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, - "Name": obj.get("Name"), + "DefaultArrayElements": obj.get("DefaultArrayElements"), + "DefaultSource": obj.get("DefaultSource"), + "DefaultValue": obj.get("DefaultValue"), + "ElementType": obj.get("ElementType"), + "Metadata": ParameterMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, + "Sources": obj.get("Sources"), + "Type": obj.get("Type"), "field": obj.get("field"), + "id": obj.get("id"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "operator": obj.get("operator"), "queryParam": obj.get("queryParam") , diff --git a/cyperf/models/parameter_match.py b/cyperf/models/parameter_match.py index d2a08c3..308356e 100644 --- a/cyperf/models/parameter_match.py +++ b/cyperf/models/parameter_match.py @@ -23,7 +23,7 @@ from cyperf.models.regex_match import RegexMatch from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParameterMatch(BaseModel): """ diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index 840e74e..b8d259f 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -26,7 +26,7 @@ from cyperf.models.type_info_metadata import TypeInfoMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParameterMetadata(BaseModel): """ diff --git a/cyperf/models/params.py b/cyperf/models/params.py index f0445a5..24d4305 100644 --- a/cyperf/models/params.py +++ b/cyperf/models/params.py @@ -27,7 +27,7 @@ from cyperf.models.params_enum import ParamsEnum from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Params(BaseModel): """ @@ -55,6 +55,7 @@ class Params(BaseModel): type: Optional[StrictStr] = Field(default=None, description="The type of the parameter.", alias="Type") value: Optional[StrictStr] = Field(default=None, description="The value of the parameter.", alias="Value") file_upload: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="file-upload") + _file_upload_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UploadFile" }) id: StrictStr links: Optional[List[APILink]] = None supports_dynamic_payload: Optional[StrictBool] = Field(default=None, description="A value that indicates if the parameter can have dynamic payload.", alias="supportsDynamicPayload") diff --git a/cyperf/models/params_enum.py b/cyperf/models/params_enum.py index 0cfffde..74c603e 100644 --- a/cyperf/models/params_enum.py +++ b/cyperf/models/params_enum.py @@ -23,7 +23,7 @@ from cyperf.models.choice import Choice from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ParamsEnum(BaseModel): """ diff --git a/cyperf/models/payload_meta.py b/cyperf/models/payload_meta.py index 149fe8c..82e20b2 100644 --- a/cyperf/models/payload_meta.py +++ b/cyperf/models/payload_meta.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PayloadMeta(BaseModel): """ diff --git a/cyperf/models/payload_metadata.py b/cyperf/models/payload_metadata.py index 6e1253c..86da169 100644 --- a/cyperf/models/payload_metadata.py +++ b/cyperf/models/payload_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PayloadMetadata(BaseModel): """ diff --git a/cyperf/models/pep_dut.py b/cyperf/models/pep_dut.py index 1cb5bae..e43b9d3 100644 --- a/cyperf/models/pep_dut.py +++ b/cyperf/models/pep_dut.py @@ -26,7 +26,7 @@ from cyperf.models.simulated_id_p import SimulatedIdP from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PepDUT(BaseModel): """ diff --git a/cyperf/models/plugin.py b/cyperf/models/plugin.py index a344455..8d0013f 100644 --- a/cyperf/models/plugin.py +++ b/cyperf/models/plugin.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Plugin(BaseModel): """ diff --git a/cyperf/models/plugin_stats.py b/cyperf/models/plugin_stats.py index e525185..3514522 100644 --- a/cyperf/models/plugin_stats.py +++ b/cyperf/models/plugin_stats.py @@ -20,17 +20,17 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PluginStats(BaseModel): """ PluginStats """ # noqa: E501 plugin: Optional[StrictStr] = Field(default=None, description="The name of the plugin") - stats: Optional[List[Dict[str, ConfigMetadataConfigDataValue]]] = Field(default=None, description="The statistics to be ingested") + stats: Optional[List[Dict[str, AttackMetadataKeywordsInner]]] = Field(default=None, description="The statistics to be ingested") version: Optional[StrictStr] = Field(default=None, description="The version of the plugin") __properties: ClassVar[List[str]] = ["plugin", "stats", "version"] @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "plugin": obj.get("plugin"), - "stats": [Dict[str, ConfigMetadataConfigDataValue].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": [Dict[str, AttackMetadataKeywordsInner].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, "version": obj.get("version") , "links": obj.get("links") diff --git a/cyperf/models/port.py b/cyperf/models/port.py index 18512e4..a1e9c61 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Port(BaseModel): """ diff --git a/cyperf/models/port_settings.py b/cyperf/models/port_settings.py index 4386138..7c85a4d 100644 --- a/cyperf/models/port_settings.py +++ b/cyperf/models/port_settings.py @@ -24,7 +24,7 @@ from cyperf.models.effective_ports import EffectivePorts from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PortSettings(BaseModel): """ diff --git a/cyperf/models/ports_by_controller.py b/cyperf/models/ports_by_controller.py index 0478ff7..d994704 100644 --- a/cyperf/models/ports_by_controller.py +++ b/cyperf/models/ports_by_controller.py @@ -23,7 +23,7 @@ from cyperf.models.ports_by_node import PortsByNode from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PortsByController(BaseModel): """ diff --git a/cyperf/models/ports_by_node.py b/cyperf/models/ports_by_node.py index c6f2c6b..e8c8d69 100644 --- a/cyperf/models/ports_by_node.py +++ b/cyperf/models/ports_by_node.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PortsByNode(BaseModel): """ diff --git a/cyperf/models/prepare_test_operation.py b/cyperf/models/prepare_test_operation.py index f55adb2..0a6045c 100644 --- a/cyperf/models/prepare_test_operation.py +++ b/cyperf/models/prepare_test_operation.py @@ -23,7 +23,7 @@ from cyperf.models.prepared_test_options import PreparedTestOptions from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PrepareTestOperation(BaseModel): """ diff --git a/cyperf/models/prepared_test_options.py b/cyperf/models/prepared_test_options.py index 0b5af30..e170377 100644 --- a/cyperf/models/prepared_test_options.py +++ b/cyperf/models/prepared_test_options.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class PreparedTestOptions(BaseModel): """ diff --git a/cyperf/models/protected_subnet_config.py b/cyperf/models/protected_subnet_config.py index 0d7ac12..f6b542a 100644 --- a/cyperf/models/protected_subnet_config.py +++ b/cyperf/models/protected_subnet_config.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ProtectedSubnetConfig(BaseModel): """ diff --git a/cyperf/models/reboot_operation_input.py b/cyperf/models/reboot_operation_input.py index e436e10..850474f 100644 --- a/cyperf/models/reboot_operation_input.py +++ b/cyperf/models/reboot_operation_input.py @@ -23,7 +23,7 @@ from cyperf.models.agent_to_be_rebooted import AgentToBeRebooted from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RebootOperationInput(BaseModel): """ diff --git a/cyperf/models/reboot_ports_operation.py b/cyperf/models/reboot_ports_operation.py index 2c7770e..7f870ae 100644 --- a/cyperf/models/reboot_ports_operation.py +++ b/cyperf/models/reboot_ports_operation.py @@ -23,7 +23,7 @@ from cyperf.models.ports_by_controller import PortsByController from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RebootPortsOperation(BaseModel): """ diff --git a/cyperf/models/reference.py b/cyperf/models/reference.py index 161a0e5..bd63783 100644 --- a/cyperf/models/reference.py +++ b/cyperf/models/reference.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Reference(BaseModel): """ diff --git a/cyperf/models/regex_match.py b/cyperf/models/regex_match.py index 37bd540..f84aa53 100644 --- a/cyperf/models/regex_match.py +++ b/cyperf/models/regex_match.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RegexMatch(BaseModel): """ diff --git a/cyperf/models/release_operation_input.py b/cyperf/models/release_operation_input.py index 3a885d7..f1c8d74 100644 --- a/cyperf/models/release_operation_input.py +++ b/cyperf/models/release_operation_input.py @@ -23,7 +23,7 @@ from cyperf.models.agent_release import AgentRelease from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ReleaseOperationInput(BaseModel): """ diff --git a/cyperf/models/remote_access.py b/cyperf/models/remote_access.py index b7407e9..0f5f405 100644 --- a/cyperf/models/remote_access.py +++ b/cyperf/models/remote_access.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RemoteAccess(BaseModel): """ diff --git a/cyperf/models/remote_subnet_config.py b/cyperf/models/remote_subnet_config.py index 50da0b0..93eb250 100644 --- a/cyperf/models/remote_subnet_config.py +++ b/cyperf/models/remote_subnet_config.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RemoteSubnetConfig(BaseModel): """ diff --git a/cyperf/models/rename_input.py b/cyperf/models/rename_input.py index 6898e66..f74da1b 100644 --- a/cyperf/models/rename_input.py +++ b/cyperf/models/rename_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RenameInput(BaseModel): """ diff --git a/cyperf/models/reorder_action_input.py b/cyperf/models/reorder_action_input.py index 2b717e5..256897b 100644 --- a/cyperf/models/reorder_action_input.py +++ b/cyperf/models/reorder_action_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ReorderActionInput(BaseModel): """ diff --git a/cyperf/models/reorder_exchanges_input.py b/cyperf/models/reorder_exchanges_input.py index 1d7a955..c01037e 100644 --- a/cyperf/models/reorder_exchanges_input.py +++ b/cyperf/models/reorder_exchanges_input.py @@ -23,7 +23,7 @@ from cyperf.models.exchange_order import ExchangeOrder from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ReorderExchangesInput(BaseModel): """ diff --git a/cyperf/models/replay_capture.py b/cyperf/models/replay_capture.py index e529f22..70e2c80 100644 --- a/cyperf/models/replay_capture.py +++ b/cyperf/models/replay_capture.py @@ -24,7 +24,7 @@ from cyperf.models.app_flow import AppFlow from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ReplayCapture(BaseModel): """ diff --git a/cyperf/models/required_file_types.py b/cyperf/models/required_file_types.py index aa83bfd..5ff6c0f 100644 --- a/cyperf/models/required_file_types.py +++ b/cyperf/models/required_file_types.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RequiredFileTypes(BaseModel): """ diff --git a/cyperf/models/reserve_operation_input.py b/cyperf/models/reserve_operation_input.py index 06057da..95f4ce7 100644 --- a/cyperf/models/reserve_operation_input.py +++ b/cyperf/models/reserve_operation_input.py @@ -24,7 +24,7 @@ from cyperf.models.payload_meta import PayloadMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ReserveOperationInput(BaseModel): """ diff --git a/cyperf/models/result_file_metadata.py b/cyperf/models/result_file_metadata.py index 43ab539..453f525 100644 --- a/cyperf/models/result_file_metadata.py +++ b/cyperf/models/result_file_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ResultFileMetadata(BaseModel): """ diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index f4a5430..2de2c91 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -25,7 +25,7 @@ from cyperf.models.result_file_metadata import ResultFileMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ResultMetadata(BaseModel): """ diff --git a/cyperf/models/results_group.py b/cyperf/models/results_group.py index 8790557..f7c8e0d 100644 --- a/cyperf/models/results_group.py +++ b/cyperf/models/results_group.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ResultsGroup(BaseModel): """ diff --git a/cyperf/models/rtp_profile.py b/cyperf/models/rtp_profile.py index 0fa5270..8a9fbb2 100644 --- a/cyperf/models/rtp_profile.py +++ b/cyperf/models/rtp_profile.py @@ -24,7 +24,7 @@ from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RTPProfile(BaseModel): """ diff --git a/cyperf/models/rtp_profile_meta.py b/cyperf/models/rtp_profile_meta.py index 4b17cbf..27c910b 100644 --- a/cyperf/models/rtp_profile_meta.py +++ b/cyperf/models/rtp_profile_meta.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class RTPProfileMeta(BaseModel): """ diff --git a/cyperf/models/save_config_operation.py b/cyperf/models/save_config_operation.py index b21051c..30e7f8d 100644 --- a/cyperf/models/save_config_operation.py +++ b/cyperf/models/save_config_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SaveConfigOperation(BaseModel): """ diff --git a/cyperf/models/scenario.py b/cyperf/models/scenario.py index 2ab849b..91ff912 100644 --- a/cyperf/models/scenario.py +++ b/cyperf/models/scenario.py @@ -30,7 +30,7 @@ from cyperf.models.params import Params from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Scenario(BaseModel): """ diff --git a/cyperf/models/secondary_objective.py b/cyperf/models/secondary_objective.py index aa9b1a4..3a939fe 100644 --- a/cyperf/models/secondary_objective.py +++ b/cyperf/models/secondary_objective.py @@ -24,7 +24,7 @@ from cyperf.models.objective_type import ObjectiveType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SecondaryObjective(BaseModel): """ diff --git a/cyperf/models/selected_env.py b/cyperf/models/selected_env.py index deb268b..c6fc348 100644 --- a/cyperf/models/selected_env.py +++ b/cyperf/models/selected_env.py @@ -23,7 +23,7 @@ from cyperf.models.interface import Interface from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SelectedEnv(BaseModel): """ diff --git a/cyperf/models/session.py b/cyperf/models/session.py index a8f270e..cf10b1d 100644 --- a/cyperf/models/session.py +++ b/cyperf/models/session.py @@ -26,7 +26,7 @@ from cyperf.models.test_info import TestInfo from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Session(BaseModel): """ diff --git a/cyperf/models/set_aggregation_mode_operation.py b/cyperf/models/set_aggregation_mode_operation.py index 6d9d90b..b657002 100644 --- a/cyperf/models/set_aggregation_mode_operation.py +++ b/cyperf/models/set_aggregation_mode_operation.py @@ -23,7 +23,7 @@ from cyperf.models.nodes_by_controller import NodesByController from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SetAggregationModeOperation(BaseModel): """ diff --git a/cyperf/models/set_app_operation.py b/cyperf/models/set_app_operation.py index 0f1abb5..bc1a977 100644 --- a/cyperf/models/set_app_operation.py +++ b/cyperf/models/set_app_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SetAppOperation(BaseModel): """ diff --git a/cyperf/models/set_dpdk_mode_operation_input.py b/cyperf/models/set_dpdk_mode_operation_input.py index e089e7c..3ad8656 100644 --- a/cyperf/models/set_dpdk_mode_operation_input.py +++ b/cyperf/models/set_dpdk_mode_operation_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SetDpdkModeOperationInput(BaseModel): """ diff --git a/cyperf/models/set_link_state_operation.py b/cyperf/models/set_link_state_operation.py index f856334..e989533 100644 --- a/cyperf/models/set_link_state_operation.py +++ b/cyperf/models/set_link_state_operation.py @@ -24,7 +24,7 @@ from cyperf.models.ports_by_controller import PortsByController from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SetLinkStateOperation(BaseModel): """ diff --git a/cyperf/models/set_ntp_operation_input.py b/cyperf/models/set_ntp_operation_input.py index 6d4a7ff..ad99574 100644 --- a/cyperf/models/set_ntp_operation_input.py +++ b/cyperf/models/set_ntp_operation_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SetNtpOperationInput(BaseModel): """ diff --git a/cyperf/models/simulated_id_p.py b/cyperf/models/simulated_id_p.py index 02fcacb..ca05860 100644 --- a/cyperf/models/simulated_id_p.py +++ b/cyperf/models/simulated_id_p.py @@ -26,7 +26,7 @@ from cyperf.models.name_id_format import NameIdFormat from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SimulatedIdP(BaseModel): """ diff --git a/cyperf/models/snapshot.py b/cyperf/models/snapshot.py index c95e2a6..34a4c6f 100644 --- a/cyperf/models/snapshot.py +++ b/cyperf/models/snapshot.py @@ -20,17 +20,17 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Snapshot(BaseModel): """ Snapshot """ # noqa: E501 timestamp: Optional[StrictInt] = Field(default=None, description="The Unix timestamp in milliseconds at which the snapshot was taken") - values: Optional[List[List[ConfigMetadataConfigDataValue]]] = Field(default=None, description="The values of the snapshot. The order of the values corresponds to the order of columns in result.") + values: Optional[List[List[AttackMetadataKeywordsInner]]] = Field(default=None, description="The values of the snapshot. The order of the values corresponds to the order of columns in result.") __properties: ClassVar[List[str]] = ["timestamp", "values"] model_config = ConfigDict( @@ -97,7 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "timestamp": obj.get("timestamp"), "values": [ - [ConfigMetadataConfigDataValue.from_dict(_inner_item) for _inner_item in _item] + [AttackMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] for _item in obj["values"] ] if obj.get("values") is not None else None , diff --git a/cyperf/models/sort_body_field.py b/cyperf/models/sort_body_field.py index 381008b..56844a6 100644 --- a/cyperf/models/sort_body_field.py +++ b/cyperf/models/sort_body_field.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SortBodyField(BaseModel): """ diff --git a/cyperf/models/specific_objective.py b/cyperf/models/specific_objective.py index 98bf071..d9f246a 100644 --- a/cyperf/models/specific_objective.py +++ b/cyperf/models/specific_objective.py @@ -27,7 +27,7 @@ from cyperf.models.timeline_segment_union import TimelineSegmentUnion from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SpecificObjective(BaseModel): """ diff --git a/cyperf/models/start_agents_batch_delete_request_inner.py b/cyperf/models/start_agents_batch_delete_request_inner.py index 57c6844..112c5b1 100644 --- a/cyperf/models/start_agents_batch_delete_request_inner.py +++ b/cyperf/models/start_agents_batch_delete_request_inner.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class StartAgentsBatchDeleteRequestInner(BaseModel): """ diff --git a/cyperf/models/stateless_stream.py b/cyperf/models/stateless_stream.py index 15562e3..9fc4be7 100644 --- a/cyperf/models/stateless_stream.py +++ b/cyperf/models/stateless_stream.py @@ -25,7 +25,7 @@ from cyperf.models.stream_profile import StreamProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class StatelessStream(BaseModel): """ diff --git a/cyperf/models/static_arp_entry.py b/cyperf/models/static_arp_entry.py index c9b7b1f..880abf0 100644 --- a/cyperf/models/static_arp_entry.py +++ b/cyperf/models/static_arp_entry.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class StaticARPEntry(BaseModel): """ diff --git a/cyperf/models/stats_result.py b/cyperf/models/stats_result.py index f9cad3b..4afb232 100644 --- a/cyperf/models/stats_result.py +++ b/cyperf/models/stats_result.py @@ -24,7 +24,7 @@ from cyperf.models.snapshot import Snapshot from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class StatsResult(BaseModel): """ diff --git a/cyperf/models/steady_segment.py b/cyperf/models/steady_segment.py index ba82c01..93010f6 100644 --- a/cyperf/models/steady_segment.py +++ b/cyperf/models/steady_segment.py @@ -23,7 +23,7 @@ from cyperf.models.segment_type import SegmentType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SteadySegment(BaseModel): """ diff --git a/cyperf/models/step_segment.py b/cyperf/models/step_segment.py index 10acbae..5146582 100644 --- a/cyperf/models/step_segment.py +++ b/cyperf/models/step_segment.py @@ -23,7 +23,7 @@ from cyperf.models.segment_type import SegmentType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class StepSegment(BaseModel): """ diff --git a/cyperf/models/stream_profile.py b/cyperf/models/stream_profile.py index e4161f9..77b29e9 100644 --- a/cyperf/models/stream_profile.py +++ b/cyperf/models/stream_profile.py @@ -23,7 +23,7 @@ from cyperf.models.stream_payload_type import StreamPayloadType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class StreamProfile(BaseModel): """ diff --git a/cyperf/models/system_info.py b/cyperf/models/system_info.py index 79203b8..a1d31c5 100644 --- a/cyperf/models/system_info.py +++ b/cyperf/models/system_info.py @@ -24,7 +24,7 @@ from cyperf.models.traffic_agent_info import TrafficAgentInfo from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class SystemInfo(BaseModel): """ diff --git a/cyperf/models/tcp_profile.py b/cyperf/models/tcp_profile.py index ede1b2c..7ae9833 100644 --- a/cyperf/models/tcp_profile.py +++ b/cyperf/models/tcp_profile.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TcpProfile(BaseModel): """ diff --git a/cyperf/models/test_info.py b/cyperf/models/test_info.py index 70e9510..da340ed 100644 --- a/cyperf/models/test_info.py +++ b/cyperf/models/test_info.py @@ -23,7 +23,7 @@ from cyperf.models.dashboard import Dashboard from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TestInfo(BaseModel): """ diff --git a/cyperf/models/test_state_changed_operation.py b/cyperf/models/test_state_changed_operation.py index 536ee7f..2c683c8 100644 --- a/cyperf/models/test_state_changed_operation.py +++ b/cyperf/models/test_state_changed_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TestStateChangedOperation(BaseModel): """ diff --git a/cyperf/models/time_value.py b/cyperf/models/time_value.py index dbbf7a5..deb09c8 100644 --- a/cyperf/models/time_value.py +++ b/cyperf/models/time_value.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TimeValue(BaseModel): """ diff --git a/cyperf/models/timeline_segment.py b/cyperf/models/timeline_segment.py index d7c7f2d..eb11b37 100644 --- a/cyperf/models/timeline_segment.py +++ b/cyperf/models/timeline_segment.py @@ -25,7 +25,7 @@ from cyperf.models.segment_type import SegmentType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TimelineSegment(BaseModel): """ diff --git a/cyperf/models/timeline_segment_base.py b/cyperf/models/timeline_segment_base.py index bd836eb..060969c 100644 --- a/cyperf/models/timeline_segment_base.py +++ b/cyperf/models/timeline_segment_base.py @@ -23,7 +23,7 @@ from cyperf.models.segment_type import SegmentType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TimelineSegmentBase(BaseModel): """ diff --git a/cyperf/models/timeline_segment_union.py b/cyperf/models/timeline_segment_union.py index 5c26686..a5dd4ca 100644 --- a/cyperf/models/timeline_segment_union.py +++ b/cyperf/models/timeline_segment_union.py @@ -23,7 +23,7 @@ from cyperf.models.segment_type import SegmentType from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TimelineSegmentUnion(BaseModel): """ diff --git a/cyperf/models/timers.py b/cyperf/models/timers.py index 02269dc..9f34980 100644 --- a/cyperf/models/timers.py +++ b/cyperf/models/timers.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Timers(BaseModel): """ diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index d7dfd05..e0db31a 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -31,7 +31,7 @@ from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TLSProfile(BaseModel): """ @@ -45,6 +45,7 @@ class TLSProfile(BaseModel): ciphers13: Optional[List[CipherTLS13]] = None dh_file: Optional[Params] = Field(default=None, alias="dhFile") get_tls_conflicts: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="get-tls-conflicts") + _get_tls_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,GetTLSConflicts" }) immediate_close: Optional[StrictBool] = Field(default=None, description="The immediate FIN after close notify", alias="immediateClose") key_file: Optional[Params] = Field(default=None, description="The key file of the TLS profile.", alias="keyFile") key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS profile.", alias="keyFilePassword") @@ -52,6 +53,7 @@ class TLSProfile(BaseModel): middle_box_enabled: Optional[StrictBool] = Field(default=None, description="If true, the middle box compatibility will be enabled", alias="middleBoxEnabled") profile_id: StrictStr = Field(description="The ID of the TLS profile (default: TLSProfile).", alias="profileId") resolve_tls_conflicts: Optional[List[Conflict]] = Field(default=None, alias="resolve-tls-conflicts") + _resolve_tls_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResolveTLSConflicts" }) send_close_notify: Optional[StrictBool] = Field(default=None, description="If true, a TLS close-notify alert will be sent while closing the TLS session", alias="sendCloseNotify") session_reuse_count: Optional[StrictInt] = Field(default=None, alias="sessionReuseCount") session_reuse_method: Optional[SessionReuseMethodTLS12] = Field(default=None, alias="sessionReuseMethod") diff --git a/cyperf/models/track.py b/cyperf/models/track.py index cafec92..1bc61b6 100644 --- a/cyperf/models/track.py +++ b/cyperf/models/track.py @@ -18,20 +18,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action import Action from cyperf.models.api_link import APILink +from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Track(BaseModel): """ Track """ # noqa: E501 actions: Optional[List[Action]] = Field(default=None, alias="Actions") - add_actions: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="add-actions") + add_actions: Optional[List[CreateAppOrAttackOperationInput]] = Field(default=None, alias="add-actions") + _add_actions_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,CreateAction" }) id: StrictStr links: Optional[List[APILink]] = None __properties: ClassVar[List[str]] = ["Actions", "add-actions", "id", "links"] @@ -82,6 +84,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['Actions'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in add_actions (list) + _items = [] + if self.add_actions: + for _item in self.add_actions: + if _item: + _items.append(_item.to_dict()) + _dict['add-actions'] = _items # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -104,7 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Actions": [Action.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, - "add-actions": obj.get("add-actions"), + "add-actions": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["add-actions"]] if obj.get("add-actions") is not None else None, "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , diff --git a/cyperf/models/traffic_agent_info.py b/cyperf/models/traffic_agent_info.py index 47f68b4..b2b774f 100644 --- a/cyperf/models/traffic_agent_info.py +++ b/cyperf/models/traffic_agent_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TrafficAgentInfo(BaseModel): """ diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index 50ec6dc..d3a0ed7 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -24,7 +24,7 @@ from cyperf.models.traffic_settings import TrafficSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TrafficProfileBase(BaseModel): """ diff --git a/cyperf/models/traffic_settings.py b/cyperf/models/traffic_settings.py index df26ff8..4761640 100644 --- a/cyperf/models/traffic_settings.py +++ b/cyperf/models/traffic_settings.py @@ -24,7 +24,7 @@ from cyperf.models.transport_profile import TransportProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TrafficSettings(BaseModel): """ diff --git a/cyperf/models/transport_profile.py b/cyperf/models/transport_profile.py index cf52646..5b14cb0 100644 --- a/cyperf/models/transport_profile.py +++ b/cyperf/models/transport_profile.py @@ -28,7 +28,7 @@ from cyperf.models.udp_profile import UdpProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TransportProfile(BaseModel): """ diff --git a/cyperf/models/transport_profile_base.py b/cyperf/models/transport_profile_base.py index 0610132..0a608e7 100644 --- a/cyperf/models/transport_profile_base.py +++ b/cyperf/models/transport_profile_base.py @@ -28,7 +28,7 @@ from cyperf.models.udp_profile import UdpProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TransportProfileBase(BaseModel): """ diff --git a/cyperf/models/tunnel_range.py b/cyperf/models/tunnel_range.py index 9b3de90..26360c1 100644 --- a/cyperf/models/tunnel_range.py +++ b/cyperf/models/tunnel_range.py @@ -28,7 +28,7 @@ from cyperf.models.pangp_settings import PANGPSettings from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TunnelRange(BaseModel): """ diff --git a/cyperf/models/tunnel_settings.py b/cyperf/models/tunnel_settings.py index f6ed796..75bd551 100644 --- a/cyperf/models/tunnel_settings.py +++ b/cyperf/models/tunnel_settings.py @@ -25,7 +25,7 @@ from cyperf.models.tcp_profile import TcpProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TunnelSettings(BaseModel): """ diff --git a/cyperf/models/tunnel_stack.py b/cyperf/models/tunnel_stack.py index 524d111..e08391a 100644 --- a/cyperf/models/tunnel_stack.py +++ b/cyperf/models/tunnel_stack.py @@ -27,7 +27,7 @@ from cyperf.models.tunnel_range import TunnelRange from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TunnelStack(BaseModel): """ diff --git a/cyperf/models/type_array_v2_metadata.py b/cyperf/models/type_array_v2_metadata.py index 2b1798b..e3179aa 100644 --- a/cyperf/models/type_array_v2_metadata.py +++ b/cyperf/models/type_array_v2_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TypeArrayV2Metadata(BaseModel): """ diff --git a/cyperf/models/type_info_metadata.py b/cyperf/models/type_info_metadata.py index 459d29a..21e79ad 100644 --- a/cyperf/models/type_info_metadata.py +++ b/cyperf/models/type_info_metadata.py @@ -26,7 +26,7 @@ from cyperf.models.type_string_metadata import TypeStringMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TypeInfoMetadata(BaseModel): """ diff --git a/cyperf/models/type_int_metadata.py b/cyperf/models/type_int_metadata.py index 25b82e2..12a2709 100644 --- a/cyperf/models/type_int_metadata.py +++ b/cyperf/models/type_int_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TypeIntMetadata(BaseModel): """ diff --git a/cyperf/models/type_media_metadata.py b/cyperf/models/type_media_metadata.py index 09b8b06..1271999 100644 --- a/cyperf/models/type_media_metadata.py +++ b/cyperf/models/type_media_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TypeMediaMetadata(BaseModel): """ diff --git a/cyperf/models/type_string_metadata.py b/cyperf/models/type_string_metadata.py index 5502bd5..fa73de4 100644 --- a/cyperf/models/type_string_metadata.py +++ b/cyperf/models/type_string_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class TypeStringMetadata(BaseModel): """ diff --git a/cyperf/models/udp_profile.py b/cyperf/models/udp_profile.py index f2f1f6b..abd41fa 100644 --- a/cyperf/models/udp_profile.py +++ b/cyperf/models/udp_profile.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class UdpProfile(BaseModel): """ diff --git a/cyperf/models/update_network_mapping.py b/cyperf/models/update_network_mapping.py index 306d3f0..f1a03f6 100644 --- a/cyperf/models/update_network_mapping.py +++ b/cyperf/models/update_network_mapping.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class UpdateNetworkMapping(BaseModel): """ diff --git a/cyperf/models/validation_message.py b/cyperf/models/validation_message.py index bef27f6..68f231d 100644 --- a/cyperf/models/validation_message.py +++ b/cyperf/models/validation_message.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class ValidationMessage(BaseModel): """ diff --git a/cyperf/models/version.py b/cyperf/models/version.py index b79ca42..9da2dd5 100644 --- a/cyperf/models/version.py +++ b/cyperf/models/version.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class Version(BaseModel): """ diff --git a/cyperf/models/vlan_range.py b/cyperf/models/vlan_range.py index a330a84..4cc4201 100644 --- a/cyperf/models/vlan_range.py +++ b/cyperf/models/vlan_range.py @@ -24,7 +24,7 @@ from cyperf.models.static_arp_entry import StaticARPEntry from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr class VLANRange(BaseModel): """ diff --git a/docs/AddActionInfo.md b/docs/AddActionInfo.md new file mode 100644 index 0000000..9534dde --- /dev/null +++ b/docs/AddActionInfo.md @@ -0,0 +1,32 @@ +# AddActionInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_id** | **str** | | +**insert_at_index** | **int** | | +**is_strike** | **bool** | | +**protocol_id** | **str** | | + +## Example + +```python +from cyperf.models.add_action_info import AddActionInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of AddActionInfo from a JSON string +add_action_info_instance = AddActionInfo.from_json(json) +# print the JSON string representation of the object +print(AddActionInfo.to_json()) + +# convert the object into a dict +add_action_info_dict = add_action_info_instance.to_dict() +# create an instance of AddActionInfo from a dict +add_action_info_from_dict = AddActionInfo.from_dict(add_action_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Application.md b/docs/Application.md index f6e0bd4..589625c 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -39,6 +39,7 @@ Name | Type | Description | Notes **inherit_tls** | **bool** | | [optional] **is_stateless_stream** | **bool** | | [optional] **objective_weight** | **int** | The objective weight of the application. | +**protocol_found** | **bool** | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **stateless_stream** | [**StatelessStream**](StatelessStream.md) | | [optional] **static** | **bool** | | [optional] diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index 32d1d07..c49b33f 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**delete_resources_capture**](ApplicationResourcesApi.md#delete_resources_capture) | **DELETE** /api/v2/resources/captures/{captureId} | [**delete_resources_certificate**](ApplicationResourcesApi.md#delete_resources_certificate) | **DELETE** /api/v2/resources/certificates/{certificateId} | +[**delete_resources_custom_fuzzing_script**](ApplicationResourcesApi.md#delete_resources_custom_fuzzing_script) | **DELETE** /api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId} | [**delete_resources_flow_library**](ApplicationResourcesApi.md#delete_resources_flow_library) | **DELETE** /api/v2/resources/flow-library/{flowLibraryId} | [**delete_resources_global_playlist**](ApplicationResourcesApi.md#delete_resources_global_playlist) | **DELETE** /api/v2/resources/global-playlists/{globalPlaylistId} | [**delete_resources_http_library**](ApplicationResourcesApi.md#delete_resources_http_library) | **DELETE** /api/v2/resources/http-library/{httpLibraryId} | @@ -39,6 +40,10 @@ Method | HTTP request | Description [**get_resources_certificate_content_file**](ApplicationResourcesApi.md#get_resources_certificate_content_file) | **GET** /api/v2/resources/certificates/{certificateId}/contentFile | [**get_resources_certificates**](ApplicationResourcesApi.md#get_resources_certificates) | **GET** /api/v2/resources/certificates | [**get_resources_certificates_upload_file_result**](ApplicationResourcesApi.md#get_resources_certificates_upload_file_result) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId}/result | +[**get_resources_custom_fuzzing_script_by_id**](ApplicationResourcesApi.md#get_resources_custom_fuzzing_script_by_id) | **GET** /api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId} | +[**get_resources_custom_fuzzing_script_content_file**](ApplicationResourcesApi.md#get_resources_custom_fuzzing_script_content_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}/contentFile | +[**get_resources_custom_fuzzing_scripts**](ApplicationResourcesApi.md#get_resources_custom_fuzzing_scripts) | **GET** /api/v2/resources/custom-fuzzing-scripts | +[**get_resources_custom_fuzzing_scripts_upload_file_result**](ApplicationResourcesApi.md#get_resources_custom_fuzzing_scripts_upload_file_result) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}/result | [**get_resources_flow_library**](ApplicationResourcesApi.md#get_resources_flow_library) | **GET** /api/v2/resources/flow-library | [**get_resources_flow_library_by_id**](ApplicationResourcesApi.md#get_resources_flow_library_by_id) | **GET** /api/v2/resources/flow-library/{flowLibraryId} | [**get_resources_flow_library_content_file**](ApplicationResourcesApi.md#get_resources_flow_library_content_file) | **GET** /api/v2/resources/flow-library/{flowLibraryId}/contentFile | @@ -107,7 +112,9 @@ Method | HTTP request | Description [**poll_resources_captures_batch_delete**](ApplicationResourcesApi.md#poll_resources_captures_batch_delete) | **GET** /api/v2/resources/captures/operations/batch-delete/{id} | [**poll_resources_captures_upload_file**](ApplicationResourcesApi.md#poll_resources_captures_upload_file) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId} | [**poll_resources_certificates_upload_file**](ApplicationResourcesApi.md#poll_resources_certificates_upload_file) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} | +[**poll_resources_config_export_user_defined_apps**](ApplicationResourcesApi.md#poll_resources_config_export_user_defined_apps) | **GET** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id} | [**poll_resources_create_app**](ApplicationResourcesApi.md#poll_resources_create_app) | **GET** /api/v2/resources/operations/create-app/{id} | +[**poll_resources_custom_fuzzing_scripts_upload_file**](ApplicationResourcesApi.md#poll_resources_custom_fuzzing_scripts_upload_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId} | [**poll_resources_edit_app**](ApplicationResourcesApi.md#poll_resources_edit_app) | **GET** /api/v2/resources/operations/edit-app/{id} | [**poll_resources_find_param_matches**](ApplicationResourcesApi.md#poll_resources_find_param_matches) | **GET** /api/v2/resources/operations/find-param-matches/{id} | [**poll_resources_flow_library_upload_file**](ApplicationResourcesApi.md#poll_resources_flow_library_upload_file) | **GET** /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} | @@ -134,7 +141,9 @@ Method | HTTP request | Description [**start_resources_captures_batch_delete**](ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | [**start_resources_captures_upload_file**](ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | [**start_resources_certificates_upload_file**](ApplicationResourcesApi.md#start_resources_certificates_upload_file) | **POST** /api/v2/resources/certificates/operations/uploadFile | +[**start_resources_config_export_user_defined_apps**](ApplicationResourcesApi.md#start_resources_config_export_user_defined_apps) | **POST** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps | [**start_resources_create_app**](ApplicationResourcesApi.md#start_resources_create_app) | **POST** /api/v2/resources/operations/create-app | +[**start_resources_custom_fuzzing_scripts_upload_file**](ApplicationResourcesApi.md#start_resources_custom_fuzzing_scripts_upload_file) | **POST** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile | [**start_resources_edit_app**](ApplicationResourcesApi.md#start_resources_edit_app) | **POST** /api/v2/resources/operations/edit-app | [**start_resources_find_param_matches**](ApplicationResourcesApi.md#start_resources_find_param_matches) | **POST** /api/v2/resources/operations/find-param-matches | [**start_resources_flow_library_upload_file**](ApplicationResourcesApi.md#start_resources_flow_library_upload_file) | **POST** /api/v2/resources/flow-library/operations/uploadFile | @@ -308,6 +317,82 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_resources_custom_fuzzing_script** +> delete_resources_custom_fuzzing_script(custom_fuzzing_script_id) + + + +Delete a particular custom fuzzing script. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + custom_fuzzing_script_id = 'custom_fuzzing_script_id_example' # str | The ID of the custom fuzzing script. + + try: + api_instance.delete_resources_custom_fuzzing_script(custom_fuzzing_script_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->delete_resources_custom_fuzzing_script: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **custom_fuzzing_script_id** | **str**| The ID of the custom fuzzing script. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The custom fuzzing script was successfully deleted. | - | +**401** | Authorization information is missing or invalid. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_resources_flow_library** > delete_resources_flow_library(flow_library_id) @@ -1377,6 +1462,8 @@ void (empty response body) +Delete a CyPerf application that was created by the user. + ### Example * OAuth Authentication (OAuth2): @@ -1440,7 +1527,10 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | The request was completed successfully. | - | +**204** | The application was deleted. | - | +**401** | The user is not authorized to delete resources. | - | +**403** | The user is not allowed to delete an application not owned by them. | - | +**404** | A resource with the specified ID was not found. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2891,12 +2981,12 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_flow_library** -> GetResourcesCertificates200Response get_resources_flow_library(take=take, skip=skip) +# **get_resources_custom_fuzzing_script_by_id** +> GenericFile get_resources_custom_fuzzing_script_by_id(custom_fuzzing_script_id) -Get all the available flow library files. +Get a particular custom fuzzing script. ### Example @@ -2905,7 +2995,7 @@ Get all the available flow library files. ```python import cyperf -from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response +from cyperf.models.generic_file import GenericFile from cyperf.rest import ApiException from pprint import pprint @@ -2928,15 +3018,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - take = 56 # int | The number of search results to return (optional) - skip = 56 # int | The number of search results to skip (optional) + custom_fuzzing_script_id = 'custom_fuzzing_script_id_example' # str | The ID of the custom fuzzing script. try: - api_response = api_instance.get_resources_flow_library(take=take, skip=skip) - print("The response of ApplicationResourcesApi->get_resources_flow_library:\n") + api_response = api_instance.get_resources_custom_fuzzing_script_by_id(custom_fuzzing_script_id) + print("The response of ApplicationResourcesApi->get_resources_custom_fuzzing_script_by_id:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_flow_library: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_custom_fuzzing_script_by_id: %s\n" % e) ``` @@ -2946,12 +3035,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **take** | **int**| The number of search results to return | [optional] - **skip** | **int**| The number of search results to skip | [optional] + **custom_fuzzing_script_id** | **str**| The ID of the custom fuzzing script. | ### Return type -[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) +[**GenericFile**](GenericFile.md) ### Authorization @@ -2966,18 +3054,19 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of flow library files | - | +**200** | The requested custom fuzzing script | - | **401** | Authorization information is missing or invalid. | - | +**404** | A custom fuzzing script with the specified ID was not found. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_flow_library_by_id** -> GenericFile get_resources_flow_library_by_id(flow_library_id) +# **get_resources_custom_fuzzing_script_content_file** +> bytearray get_resources_custom_fuzzing_script_content_file(custom_fuzzing_script_id) -Get a particular flow library file. +Get the content of a particular custom fuzzing script file. ### Example @@ -2986,7 +3075,6 @@ Get a particular flow library file. ```python import cyperf -from cyperf.models.generic_file import GenericFile from cyperf.rest import ApiException from pprint import pprint @@ -3009,14 +3097,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - flow_library_id = 'flow_library_id_example' # str | The ID of the flow library. + custom_fuzzing_script_id = 'custom_fuzzing_script_id_example' # str | The ID of the custom fuzzing script. try: - api_response = api_instance.get_resources_flow_library_by_id(flow_library_id) - print("The response of ApplicationResourcesApi->get_resources_flow_library_by_id:\n") + api_response = api_instance.get_resources_custom_fuzzing_script_content_file(custom_fuzzing_script_id) + print("The response of ApplicationResourcesApi->get_resources_custom_fuzzing_script_content_file:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_flow_library_by_id: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_custom_fuzzing_script_content_file: %s\n" % e) ``` @@ -3026,11 +3114,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **flow_library_id** | **str**| The ID of the flow library. | + **custom_fuzzing_script_id** | **str**| The ID of the custom fuzzing script. | ### Return type -[**GenericFile**](GenericFile.md) +**bytearray** ### Authorization @@ -3039,25 +3127,23 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/octet-stream, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The requested flow library file | - | -**401** | Authorization information is missing or invalid. | - | -**404** | A flow library file with the specified ID was not found. | - | -**500** | Unexpected error | - | +**200** | The content of the custom fuzzing script file | - | +**404** | A custom fuzzing script file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_flow_library_content_file** -> bytearray get_resources_flow_library_content_file(flow_library_id) +# **get_resources_custom_fuzzing_scripts** +> GetResourcesCertificates200Response get_resources_custom_fuzzing_scripts(take=take, skip=skip) -Get the content of a particular flow library file. +Get all the available custom fuzzing scripts. ### Example @@ -3066,6 +3152,7 @@ Get the content of a particular flow library file. ```python import cyperf +from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response from cyperf.rest import ApiException from pprint import pprint @@ -3088,14 +3175,15 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - flow_library_id = 'flow_library_id_example' # str | The ID of the flow library. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) try: - api_response = api_instance.get_resources_flow_library_content_file(flow_library_id) - print("The response of ApplicationResourcesApi->get_resources_flow_library_content_file:\n") + api_response = api_instance.get_resources_custom_fuzzing_scripts(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_custom_fuzzing_scripts:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_flow_library_content_file: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_custom_fuzzing_scripts: %s\n" % e) ``` @@ -3105,11 +3193,12 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **flow_library_id** | **str**| The ID of the flow library. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] ### Return type -**bytearray** +[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) ### Authorization @@ -3118,19 +3207,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/octet-stream, application/json + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The content of the flow library file | - | -**404** | A flow library file with the specified ID was not found. | - | +**200** | The list of custom fuzzing scripts | - | +**401** | Authorization information is missing or invalid. | - | +**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_flow_library_upload_file_result** -> get_resources_flow_library_upload_file_result(upload_file_id) +# **get_resources_custom_fuzzing_scripts_upload_file_result** +> get_resources_custom_fuzzing_scripts_upload_file_result(upload_file_id) @@ -3168,9 +3258,9 @@ with cyperf.ApiClient(configuration) as api_client: upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. try: - api_instance.get_resources_flow_library_upload_file_result(upload_file_id) + api_instance.get_resources_custom_fuzzing_scripts_upload_file_result(upload_file_id) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_flow_library_upload_file_result: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_custom_fuzzing_scripts_upload_file_result: %s\n" % e) ``` @@ -3205,12 +3295,12 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_global_playlist_by_id** -> GenericFile get_resources_global_playlist_by_id(global_playlist_id) +# **get_resources_flow_library** +> GetResourcesCertificates200Response get_resources_flow_library(take=take, skip=skip) -Get a particular global playlists archive file. +Get all the available flow library files. ### Example @@ -3219,7 +3309,7 @@ Get a particular global playlists archive file. ```python import cyperf -from cyperf.models.generic_file import GenericFile +from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response from cyperf.rest import ApiException from pprint import pprint @@ -3242,14 +3332,15 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - global_playlist_id = 'global_playlist_id_example' # str | The ID of the global playlist. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) try: - api_response = api_instance.get_resources_global_playlist_by_id(global_playlist_id) - print("The response of ApplicationResourcesApi->get_resources_global_playlist_by_id:\n") + api_response = api_instance.get_resources_flow_library(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_flow_library:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_global_playlist_by_id: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_flow_library: %s\n" % e) ``` @@ -3259,11 +3350,12 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **global_playlist_id** | **str**| The ID of the global playlist. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] ### Return type -[**GenericFile**](GenericFile.md) +[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) ### Authorization @@ -3278,19 +3370,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The requested global playlists archive file | - | +**200** | The list of flow library files | - | **401** | Authorization information is missing or invalid. | - | -**404** | A global playlists archive file with the specified ID was not found. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_global_playlist_content_file** -> bytearray get_resources_global_playlist_content_file(global_playlist_id) +# **get_resources_flow_library_by_id** +> GenericFile get_resources_flow_library_by_id(flow_library_id) -Get the content of a particular global playlists archive file. +Get a particular flow library file. ### Example @@ -3299,6 +3390,7 @@ Get the content of a particular global playlists archive file. ```python import cyperf +from cyperf.models.generic_file import GenericFile from cyperf.rest import ApiException from pprint import pprint @@ -3321,14 +3413,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - global_playlist_id = 'global_playlist_id_example' # str | The ID of the global playlist. + flow_library_id = 'flow_library_id_example' # str | The ID of the flow library. try: - api_response = api_instance.get_resources_global_playlist_content_file(global_playlist_id) - print("The response of ApplicationResourcesApi->get_resources_global_playlist_content_file:\n") + api_response = api_instance.get_resources_flow_library_by_id(flow_library_id) + print("The response of ApplicationResourcesApi->get_resources_flow_library_by_id:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_global_playlist_content_file: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_flow_library_by_id: %s\n" % e) ``` @@ -3338,11 +3430,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **global_playlist_id** | **str**| The ID of the global playlist. | + **flow_library_id** | **str**| The ID of the flow library. | ### Return type -**bytearray** +[**GenericFile**](GenericFile.md) ### Authorization @@ -3351,23 +3443,25 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/octet-stream, application/json + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The content of the global playlists archive file | - | -**404** | A global playlists file with the specified ID was not found. | - | +**200** | The requested flow library file | - | +**401** | Authorization information is missing or invalid. | - | +**404** | A flow library file with the specified ID was not found. | - | +**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_global_playlists** -> GetResourcesCertificates200Response get_resources_global_playlists(take=take, skip=skip) +# **get_resources_flow_library_content_file** +> bytearray get_resources_flow_library_content_file(flow_library_id) -Get all the available global playlists files. +Get the content of a particular flow library file. ### Example @@ -3376,7 +3470,6 @@ Get all the available global playlists files. ```python import cyperf -from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response from cyperf.rest import ApiException from pprint import pprint @@ -3399,15 +3492,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - take = 56 # int | The number of search results to return (optional) - skip = 56 # int | The number of search results to skip (optional) + flow_library_id = 'flow_library_id_example' # str | The ID of the flow library. try: - api_response = api_instance.get_resources_global_playlists(take=take, skip=skip) - print("The response of ApplicationResourcesApi->get_resources_global_playlists:\n") + api_response = api_instance.get_resources_flow_library_content_file(flow_library_id) + print("The response of ApplicationResourcesApi->get_resources_flow_library_content_file:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_global_playlists: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_flow_library_content_file: %s\n" % e) ``` @@ -3417,12 +3509,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **take** | **int**| The number of search results to return | [optional] - **skip** | **int**| The number of search results to skip | [optional] + **flow_library_id** | **str**| The ID of the flow library. | ### Return type -[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) +**bytearray** ### Authorization @@ -3431,20 +3522,19 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/octet-stream, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of global playlists files | - | -**401** | Authorization information is missing or invalid. | - | -**500** | Unexpected error | - | +**200** | The content of the flow library file | - | +**404** | A flow library file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_global_playlists_upload_file_result** -> get_resources_global_playlists_upload_file_result(upload_file_id) +# **get_resources_flow_library_upload_file_result** +> get_resources_flow_library_upload_file_result(upload_file_id) @@ -3482,9 +3572,9 @@ with cyperf.ApiClient(configuration) as api_client: upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. try: - api_instance.get_resources_global_playlists_upload_file_result(upload_file_id) + api_instance.get_resources_flow_library_upload_file_result(upload_file_id) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_global_playlists_upload_file_result: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_flow_library_upload_file_result: %s\n" % e) ``` @@ -3519,12 +3609,12 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_http_library** -> GetResourcesCertificates200Response get_resources_http_library(take=take, skip=skip) +# **get_resources_global_playlist_by_id** +> GenericFile get_resources_global_playlist_by_id(global_playlist_id) -Get all the available http library files. +Get a particular global playlists archive file. ### Example @@ -3533,7 +3623,7 @@ Get all the available http library files. ```python import cyperf -from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response +from cyperf.models.generic_file import GenericFile from cyperf.rest import ApiException from pprint import pprint @@ -3556,15 +3646,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - take = 56 # int | The number of search results to return (optional) - skip = 56 # int | The number of search results to skip (optional) + global_playlist_id = 'global_playlist_id_example' # str | The ID of the global playlist. try: - api_response = api_instance.get_resources_http_library(take=take, skip=skip) - print("The response of ApplicationResourcesApi->get_resources_http_library:\n") + api_response = api_instance.get_resources_global_playlist_by_id(global_playlist_id) + print("The response of ApplicationResourcesApi->get_resources_global_playlist_by_id:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_http_library: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_global_playlist_by_id: %s\n" % e) ``` @@ -3574,12 +3663,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **take** | **int**| The number of search results to return | [optional] - **skip** | **int**| The number of search results to skip | [optional] + **global_playlist_id** | **str**| The ID of the global playlist. | ### Return type -[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) +[**GenericFile**](GenericFile.md) ### Authorization @@ -3594,18 +3682,19 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of http library files | - | +**200** | The requested global playlists archive file | - | **401** | Authorization information is missing or invalid. | - | +**404** | A global playlists archive file with the specified ID was not found. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_http_library_by_id** -> GenericFile get_resources_http_library_by_id(http_library_id) +# **get_resources_global_playlist_content_file** +> bytearray get_resources_global_playlist_content_file(global_playlist_id) -Get a particular http library file. +Get the content of a particular global playlists archive file. ### Example @@ -3614,7 +3703,6 @@ Get a particular http library file. ```python import cyperf -from cyperf.models.generic_file import GenericFile from cyperf.rest import ApiException from pprint import pprint @@ -3637,14 +3725,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - http_library_id = 'http_library_id_example' # str | The ID of the http library. + global_playlist_id = 'global_playlist_id_example' # str | The ID of the global playlist. try: - api_response = api_instance.get_resources_http_library_by_id(http_library_id) - print("The response of ApplicationResourcesApi->get_resources_http_library_by_id:\n") + api_response = api_instance.get_resources_global_playlist_content_file(global_playlist_id) + print("The response of ApplicationResourcesApi->get_resources_global_playlist_content_file:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_http_library_by_id: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_global_playlist_content_file: %s\n" % e) ``` @@ -3654,7 +3742,323 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **http_library_id** | **str**| The ID of the http library. | + **global_playlist_id** | **str**| The ID of the global playlist. | + +### Return type + +**bytearray** + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/octet-stream, application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The content of the global playlists archive file | - | +**404** | A global playlists file with the specified ID was not found. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resources_global_playlists** +> GetResourcesCertificates200Response get_resources_global_playlists(take=take, skip=skip) + + + +Get all the available global playlists files. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_resources_global_playlists(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_global_playlists:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_global_playlists: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of global playlists files | - | +**401** | Authorization information is missing or invalid. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resources_global_playlists_upload_file_result** +> get_resources_global_playlists_upload_file_result(upload_file_id) + + + +Get the result of the upload file operation. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + + try: + api_instance.get_resources_global_playlists_upload_file_result(upload_file_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_global_playlists_upload_file_result: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **upload_file_id** | **str**| The ID of the uploadfile. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The payload file that was added | - | +**400** | Bad request | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resources_http_library** +> GetResourcesCertificates200Response get_resources_http_library(take=take, skip=skip) + + + +Get all the available http library files. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_resources_http_library(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_http_library:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_http_library: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of http library files | - | +**401** | Authorization information is missing or invalid. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resources_http_library_by_id** +> GenericFile get_resources_http_library_by_id(http_library_id) + + + +Get a particular http library file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.generic_file import GenericFile +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + http_library_id = 'http_library_id_example' # str | The ID of the http library. + + try: + api_response = api_instance.get_resources_http_library_by_id(http_library_id) + print("The response of ApplicationResourcesApi->get_resources_http_library_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_http_library_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **http_library_id** | **str**| The ID of the http library. | ### Return type @@ -7808,15 +8212,170 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - take = 56 # int | The number of search results to return (optional) - skip = 56 # int | The number of search results to skip (optional) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_resources_user_defined_apps(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_user_defined_apps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_user_defined_apps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**List[AppsecApp]**](AppsecApp.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resources_user_defined_apps_upload_file_result** +> get_resources_user_defined_apps_upload_file_result(upload_file_id) + + + +Get the result of the upload file operation. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + + try: + api_instance.get_resources_user_defined_apps_upload_file_result(upload_file_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_user_defined_apps_upload_file_result: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **upload_file_id** | **str**| The ID of the uploadfile. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The payload file that was added | - | +**400** | Bad request | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **poll_resources_apps_export_all** +> AsyncContext poll_resources_apps_export_all(id) + + + +Get the state of an ongoing operation. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + id = 56 # int | The ID of the async operation. try: - api_response = api_instance.get_resources_user_defined_apps(take=take, skip=skip) - print("The response of ApplicationResourcesApi->get_resources_user_defined_apps:\n") + api_response = api_instance.poll_resources_apps_export_all(id) + print("The response of ApplicationResourcesApi->poll_resources_apps_export_all:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_user_defined_apps: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->poll_resources_apps_export_all: %s\n" % e) ``` @@ -7826,12 +8385,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **take** | **int**| The number of search results to return | [optional] - **skip** | **int**| The number of search results to skip | [optional] + **id** | **int**| The ID of the async operation. | ### Return type -[**List[AppsecApp]**](AppsecApp.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -7846,17 +8404,17 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**500** | Unexpected error | - | +**200** | Details about the ongoing operation | - | +**400** | Bad request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_resources_user_defined_apps_upload_file_result** -> get_resources_user_defined_apps_upload_file_result(upload_file_id) +# **poll_resources_captures_batch_delete** +> AsyncContext poll_resources_captures_batch_delete(id) -Get the result of the upload file operation. +Get the state of an ongoing operation. ### Example @@ -7865,6 +8423,7 @@ Get the result of the upload file operation. ```python import cyperf +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -7887,12 +8446,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + id = 56 # int | The ID of the async operation. try: - api_instance.get_resources_user_defined_apps_upload_file_result(upload_file_id) + api_response = api_instance.poll_resources_captures_batch_delete(id) + print("The response of ApplicationResourcesApi->poll_resources_captures_batch_delete:\n") + pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->get_resources_user_defined_apps_upload_file_result: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->poll_resources_captures_batch_delete: %s\n" % e) ``` @@ -7902,11 +8463,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | + **id** | **int**| The ID of the async operation. | ### Return type -void (empty response body) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -7921,14 +8482,13 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The payload file that was added | - | +**200** | Details about the ongoing operation | - | **400** | Bad request | - | -**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_apps_export_all** -> AsyncContext poll_resources_apps_export_all(id) +# **poll_resources_captures_upload_file** +> AsyncContext poll_resources_captures_upload_file(upload_file_id) @@ -7964,14 +8524,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. try: - api_response = api_instance.poll_resources_apps_export_all(id) - print("The response of ApplicationResourcesApi->poll_resources_apps_export_all:\n") + api_response = api_instance.poll_resources_captures_upload_file(upload_file_id) + print("The response of ApplicationResourcesApi->poll_resources_captures_upload_file:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_apps_export_all: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->poll_resources_captures_upload_file: %s\n" % e) ``` @@ -7981,7 +8541,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **upload_file_id** | **str**| The ID of the uploadfile. | ### Return type @@ -8002,11 +8562,12 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Details about the ongoing operation | - | **400** | Bad request | - | +**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_captures_batch_delete** -> AsyncContext poll_resources_captures_batch_delete(id) +# **poll_resources_certificates_upload_file** +> poll_resources_certificates_upload_file(upload_file_id) @@ -8019,7 +8580,6 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -8042,14 +8602,12 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. try: - api_response = api_instance.poll_resources_captures_batch_delete(id) - print("The response of ApplicationResourcesApi->poll_resources_captures_batch_delete:\n") - pprint(api_response) + api_instance.poll_resources_certificates_upload_file(upload_file_id) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_captures_batch_delete: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->poll_resources_certificates_upload_file: %s\n" % e) ``` @@ -8059,11 +8617,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **upload_file_id** | **str**| The ID of the uploadfile. | ### Return type -[**AsyncContext**](AsyncContext.md) +void (empty response body) ### Authorization @@ -8080,11 +8638,12 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Details about the ongoing operation | - | **400** | Bad request | - | +**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_captures_upload_file** -> AsyncContext poll_resources_captures_upload_file(upload_file_id) +# **poll_resources_config_export_user_defined_apps** +> AsyncContext poll_resources_config_export_user_defined_apps(config_id, id) @@ -8120,14 +8679,15 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + config_id = 'config_id_example' # str | The ID of the config. + id = 56 # int | The ID of the async operation. try: - api_response = api_instance.poll_resources_captures_upload_file(upload_file_id) - print("The response of ApplicationResourcesApi->poll_resources_captures_upload_file:\n") + api_response = api_instance.poll_resources_config_export_user_defined_apps(config_id, id) + print("The response of ApplicationResourcesApi->poll_resources_config_export_user_defined_apps:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_captures_upload_file: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->poll_resources_config_export_user_defined_apps: %s\n" % e) ``` @@ -8137,7 +8697,8 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | + **config_id** | **str**| The ID of the config. | + **id** | **int**| The ID of the async operation. | ### Return type @@ -8158,12 +8719,11 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Details about the ongoing operation | - | **400** | Bad request | - | -**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_certificates_upload_file** -> poll_resources_certificates_upload_file(upload_file_id) +# **poll_resources_create_app** +> AsyncContext poll_resources_create_app(id) @@ -8176,6 +8736,7 @@ Get the state of an ongoing operation. ```python import cyperf +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -8198,12 +8759,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + id = 56 # int | The ID of the async operation. try: - api_instance.poll_resources_certificates_upload_file(upload_file_id) + api_response = api_instance.poll_resources_create_app(id) + print("The response of ApplicationResourcesApi->poll_resources_create_app:\n") + pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_certificates_upload_file: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->poll_resources_create_app: %s\n" % e) ``` @@ -8213,11 +8776,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | + **id** | **int**| The ID of the async operation. | ### Return type -void (empty response body) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -8234,12 +8797,11 @@ void (empty response body) |-------------|-------------|------------------| **200** | Details about the ongoing operation | - | **400** | Bad request | - | -**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_create_app** -> AsyncContext poll_resources_create_app(id) +# **poll_resources_custom_fuzzing_scripts_upload_file** +> poll_resources_custom_fuzzing_scripts_upload_file(upload_file_id) @@ -8252,7 +8814,6 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -8275,14 +8836,12 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. try: - api_response = api_instance.poll_resources_create_app(id) - print("The response of ApplicationResourcesApi->poll_resources_create_app:\n") - pprint(api_response) + api_instance.poll_resources_custom_fuzzing_scripts_upload_file(upload_file_id) except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_create_app: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->poll_resources_custom_fuzzing_scripts_upload_file: %s\n" % e) ``` @@ -8292,11 +8851,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | + **upload_file_id** | **str**| The ID of the uploadfile. | ### Return type -[**AsyncContext**](AsyncContext.md) +void (empty response body) ### Authorization @@ -8313,6 +8872,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Details about the ongoing operation | - | **400** | Bad request | - | +**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -10306,6 +10866,83 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_resources_config_export_user_defined_apps** +> AsyncContext start_resources_config_export_user_defined_apps(config_id) + + + +Export all apps created by the user. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + config_id = 'config_id_example' # str | The ID of the config. + + try: + api_response = api_instance.start_resources_config_export_user_defined_apps(config_id) + print("The response of ApplicationResourcesApi->start_resources_config_export_user_defined_apps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_config_export_user_defined_apps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **config_id** | **str**| The ID of the config. | + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_resources_create_app** > AsyncContext start_resources_create_app(create_app_operation=create_app_operation) @@ -10384,6 +11021,81 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_resources_custom_fuzzing_scripts_upload_file** +> start_resources_custom_fuzzing_scripts_upload_file(file=file) + + + +Upload a file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + file = None # bytearray | (optional) + + try: + api_instance.start_resources_custom_fuzzing_scripts_upload_file(file=file) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_custom_fuzzing_scripts_upload_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_resources_edit_app** > AsyncContext start_resources_edit_app(edit_app_operation=edit_app_operation) diff --git a/docs/ApplicationType.md b/docs/ApplicationType.md index d02b291..14af1fd 100644 --- a/docs/ApplicationType.md +++ b/docs/ApplicationType.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **metadata** | [**Metadata**](Metadata.md) | | [optional] **name** | **str** | The display name of the application | [optional] **parameters** | [**List[Parameter]**](Parameter.md) | The parameters of the application | [optional] [readonly] +**protocol_found** | **bool** | Indicates if the application protocol has been found. | [optional] **strikes** | [**List[Command]**](Command.md) | The commands and strikes included in the flow | [optional] **supports_calibration** | **bool** | Indicates if the best configuration can be computed automatically | [optional] **supports_client_http_profile** | **bool** | Indicates if the application uses Client HTTP profiles. | [optional] diff --git a/docs/AppsecAttack.md b/docs/AppsecAttack.md index 3057f4e..78f45ca 100644 --- a/docs/AppsecAttack.md +++ b/docs/AppsecAttack.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attack** | [**Attack**](Attack.md) | | [optional] **description** | **str** | The description of the attack | [optional] -**metadata** | [**Metadata**](Metadata.md) | | [optional] +**metadata** | [**AttackMetadata**](AttackMetadata.md) | | [optional] **name** | **str** | The user friendly name of the attack | [optional] **id** | **str** | The unique identifier of the attack | [optional] [readonly] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/Attack.md b/docs/Attack.md index 25b8913..7fe5d99 100644 --- a/docs/Attack.md +++ b/docs/Attack.md @@ -39,7 +39,7 @@ Name | Type | Description | Notes **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **supports_tls** | **bool** | | [optional] **tracks** | [**List[AttackTrack]**](AttackTrack.md) | | [optional] -**create** | **List[bytearray]** | | [optional] +**create** | [**List[CreateAppOrAttackOperationInput]**](CreateAppOrAttackOperationInput.md) | | [optional] **modify_excluded_dut_recursively** | [**List[UpdateNetworkMapping]**](UpdateNetworkMapping.md) | | [optional] **modify_tags_recursively** | [**List[UpdateNetworkMapping]**](UpdateNetworkMapping.md) | | [optional] diff --git a/docs/AttackMetadata.md b/docs/AttackMetadata.md new file mode 100644 index 0000000..e80a700 --- /dev/null +++ b/docs/AttackMetadata.md @@ -0,0 +1,35 @@ +# AttackMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cve_count** | **int** | The number of CVE references associated with the attack | [optional] +**direction** | **str** | The aggregated direction of the strike included in the attack | [optional] +**keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The aggregated keywords of the attack | [optional] +**legacy_names** | **List[str]** | | [optional] +**references** | [**List[Reference]**](Reference.md) | The aggregated references of the attack | [optional] +**severity** | **str** | The aggregated severity of the strike included in the attack | [optional] +**strikes_count** | **int** | The number of strikes associated with the attack | [optional] + +## Example + +```python +from cyperf.models.attack_metadata import AttackMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of AttackMetadata from a JSON string +attack_metadata_instance = AttackMetadata.from_json(json) +# print the JSON string representation of the object +print(AttackMetadata.to_json()) + +# convert the object into a dict +attack_metadata_dict = attack_metadata_instance.to_dict() +# create an instance of AttackMetadata from a dict +attack_metadata_from_dict = AttackMetadata.from_dict(attack_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AttackMetadataKeywordsInner.md b/docs/AttackMetadataKeywordsInner.md new file mode 100644 index 0000000..1ffb2a0 --- /dev/null +++ b/docs/AttackMetadataKeywordsInner.md @@ -0,0 +1,28 @@ +# AttackMetadataKeywordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of AttackMetadataKeywordsInner from a JSON string +attack_metadata_keywords_inner_instance = AttackMetadataKeywordsInner.from_json(json) +# print the JSON string representation of the object +print(AttackMetadataKeywordsInner.to_json()) + +# convert the object into a dict +attack_metadata_keywords_inner_dict = attack_metadata_keywords_inner_instance.to_dict() +# create an instance of AttackMetadataKeywordsInner from a dict +attack_metadata_keywords_inner_from_dict = AttackMetadataKeywordsInner.from_dict(attack_metadata_keywords_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AttackTrack.md b/docs/AttackTrack.md index 7a0c292..f998d4b 100644 --- a/docs/AttackTrack.md +++ b/docs/AttackTrack.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions** | [**List[AttackAction]**](AttackAction.md) | | [optional] -**add_actions** | **List[bytearray]** | | [optional] +**add_actions** | [**List[CreateAppOrAttackOperationInput]**](CreateAppOrAttackOperationInput.md) | | [optional] **id** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/AuthProfile.md b/docs/AuthProfile.md index d4e40fb..da6e012 100644 --- a/docs/AuthProfile.md +++ b/docs/AuthProfile.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **data_types** | [**List[DataType]**](DataType.md) | The data types definition of the parameters | [optional] **endpoints** | [**List[Endpoint]**](Endpoint.md) | The list of endpoints used by the authentication profile | [optional] [readonly] **file_name** | **str** | The name of the XML file that contains the authentication profile definition | [optional] -**metadata** | [**Metadata**](Metadata.md) | | [optional] +**metadata** | [**AuthProfileMetadata**](AuthProfileMetadata.md) | | [optional] **parameters** | [**List[Parameter]**](Parameter.md) | The parameters of the authentication profile | [optional] [readonly] **description** | **str** | The user friendly description of the Auth Profile | [optional] [readonly] **id** | **str** | The unique identifier of the profile | [optional] [readonly] diff --git a/docs/AuthProfileMetadata.md b/docs/AuthProfileMetadata.md new file mode 100644 index 0000000..2806917 --- /dev/null +++ b/docs/AuthProfileMetadata.md @@ -0,0 +1,34 @@ +# AuthProfileMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_method** | [**Enum**](Enum.md) | | [optional] +**explicit_proxy** | **bool** | This is an authentication profile used along with an explicit proxy | [optional] +**idp_type** | [**Enum**](Enum.md) | | [optional] +**sgw_name** | **str** | The name of the secure gateway | [optional] +**sgw_type** | **str** | The type of the secure gateway | [optional] +**sgw_type_value** | **str** | The agent secure gateway type value of the secure gateway type | [optional] + +## Example + +```python +from cyperf.models.auth_profile_metadata import AuthProfileMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of AuthProfileMetadata from a JSON string +auth_profile_metadata_instance = AuthProfileMetadata.from_json(json) +# print the JSON string representation of the object +print(AuthProfileMetadata.to_json()) + +# convert the object into a dict +auth_profile_metadata_dict = auth_profile_metadata_instance.to_dict() +# create an instance of AuthProfileMetadata from a dict +auth_profile_metadata_from_dict = AuthProfileMetadata.from_dict(auth_profile_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConfigMetadata.md b/docs/ConfigMetadata.md index 8199721..274c345 100644 --- a/docs/ConfigMetadata.md +++ b/docs/ConfigMetadata.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **application** | **str** | | [optional] -**config_data** | [**Dict[str, ConfigMetadataConfigDataValue]**](ConfigMetadataConfigDataValue.md) | The actual configuration object | [optional] +**config_data** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The actual configuration object | [optional] **config_url** | **str** | The backend URL of the saved config data | [optional] **created_on** | **int** | A Unix timestamp that indicates when config was created | [optional] [readonly] **display_name** | **str** | The user-visible name of the configuration | [optional] **encoded_files** | **bool** | | [optional] **id** | **str** | The unique identifier of the configuration | [optional] [readonly] +**is_public** | **bool** | Indicates if the configuration is accessible by all users. | [optional] **last_accessed** | **int** | A Unix timestamp that indicates when config was last opened or modified | [optional] **last_modified** | **int** | A Unix timestamp that indicates when config was last modified | [optional] [readonly] **linked_resources** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/CreateAppOrAttackOperationInput.md b/docs/CreateAppOrAttackOperationInput.md new file mode 100644 index 0000000..4edb5ef --- /dev/null +++ b/docs/CreateAppOrAttackOperationInput.md @@ -0,0 +1,30 @@ +# CreateAppOrAttackOperationInput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**actions** | [**List[AddActionInfo]**](AddActionInfo.md) | | +**resource_url** | **str** | | [optional] + +## Example + +```python +from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateAppOrAttackOperationInput from a JSON string +create_app_or_attack_operation_input_instance = CreateAppOrAttackOperationInput.from_json(json) +# print the JSON string representation of the object +print(CreateAppOrAttackOperationInput.to_json()) + +# convert the object into a dict +create_app_or_attack_operation_input_dict = create_app_or_attack_operation_input_instance.to_dict() +# create an instance of CreateAppOrAttackOperationInput from a dict +create_app_or_attack_operation_input_from_dict = CreateAppOrAttackOperationInput.from_dict(create_app_or_attack_operation_input_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GenericFile.md b/docs/GenericFile.md index 458304b..640336a 100644 --- a/docs/GenericFile.md +++ b/docs/GenericFile.md @@ -7,10 +7,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **content** | **bytearray** | The content of the file | [optional] **id** | **str** | The unique identifier for the file | [optional] [readonly] +**is_public** | **bool** | Indicates if the resource is accessible by all users. | [optional] **md5** | **str** | The md5 value of the file | [optional] **metadata** | [**FileMetadata**](FileMetadata.md) | | [optional] **name** | **str** | The name of the file | [optional] -**options** | [**Dict[str, ConfigMetadataConfigDataValue]**](ConfigMetadataConfigDataValue.md) | The characteristics of the file | [optional] +**options** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The characteristics of the file | [optional] **owner** | **str** | The user-visible name of the file's owner | [optional] [readonly] **owner_id** | **str** | The unique identifier of the file's owner | [optional] [readonly] **reference_links** | **Dict[str, int]** | | [optional] diff --git a/docs/Metadata.md b/docs/Metadata.md index 5f90e96..5c57877 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **direction** | **str** | The direction of the strike | [optional] **is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] -**keywords** | [**List[ConfigMetadataConfigDataValue]**](ConfigMetadataConfigDataValue.md) | The keywords of the strike | [optional] +**keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The keywords of the strike | [optional] **legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] **protocol** | **str** | The protocol of the strike | [optional] **rtp_profile_meta** | [**RTPProfileMeta**](RTPProfileMeta.md) | | [optional] diff --git a/docs/OpenAPIDefinitions.md b/docs/OpenAPIDefinitions.md index 8791efb..a95a4c4 100644 --- a/docs/OpenAPIDefinitions.md +++ b/docs/OpenAPIDefinitions.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**open_api_definitions** | [**Dict[str, ConfigMetadataConfigDataValue]**](ConfigMetadataConfigDataValue.md) | The OpenAPI definitions for CyPerf data model | [optional] +**open_api_definitions** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The OpenAPI definitions for CyPerf data model | [optional] ## Example diff --git a/docs/Parameter.md b/docs/Parameter.md index 4484128..0da9abe 100644 --- a/docs/Parameter.md +++ b/docs/Parameter.md @@ -5,9 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**matches** | [**List[ParameterMatch]**](ParameterMatch.md) | | [optional] -**name** | **str** | | [optional] +**default_array_elements** | **List[Dict[str, str]]** | The default values of the parameter | [optional] +**default_source** | **str** | The default source of the parameter | [optional] +**default_value** | **str** | The default value of the parameter | [optional] +**element_type** | **str** | The type of elements in the values array | [optional] +**metadata** | [**ParameterMetadata**](ParameterMetadata.md) | | [optional] +**sources** | **List[str]** | The sources of the parameter | [optional] +**type** | **str** | The type of the parameter | [optional] **var_field** | **str** | The name of the ES document field | [optional] +**id** | **str** | The unique identifier of the parameter | [optional] [readonly] +**links** | [**List[APILink]**](APILink.md) | | [optional] **operator** | **str** | The operator that the parameter supports | [optional] **query_param** | **str** | The corresponding query param | [optional] diff --git a/docs/PluginStats.md b/docs/PluginStats.md index 6f6ddc1..628c84b 100644 --- a/docs/PluginStats.md +++ b/docs/PluginStats.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **plugin** | **str** | The name of the plugin | [optional] -**stats** | **List[Dict[str, ConfigMetadataConfigDataValue]]** | The statistics to be ingested | [optional] +**stats** | **List[Dict[str, AttackMetadataKeywordsInner]]** | The statistics to be ingested | [optional] **version** | **str** | The version of the plugin | [optional] ## Example diff --git a/docs/SessionsApi.md b/docs/SessionsApi.md index 65deca8..2a95787 100644 --- a/docs/SessionsApi.md +++ b/docs/SessionsApi.md @@ -21,8 +21,8 @@ Method | HTTP request | Description [**patch_session_meta**](SessionsApi.md#patch_session_meta) | **PATCH** /api/v2/sessions/{sessionId}/meta/{metaId} | [**patch_session_test**](SessionsApi.md#patch_session_test) | **PATCH** /api/v2/sessions/{sessionId}/test | [**poll_config_add_applications**](SessionsApi.md#poll_config_add_applications) | **GET** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id} | -[**poll_config_save**](SessionsApi.md#poll_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | [**poll_session_config_granular_stats_default_dashboards**](SessionsApi.md#poll_session_config_granular_stats_default_dashboards) | **GET** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} | +[**poll_session_config_save**](SessionsApi.md#poll_session_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | [**poll_session_load_config**](SessionsApi.md#poll_session_load_config) | **GET** /api/v2/sessions/{sessionId}/operations/loadConfig/{id} | [**poll_session_prepare_test**](SessionsApi.md#poll_session_prepare_test) | **GET** /api/v2/sessions/{sessionId}/operations/prepareTest/{id} | [**poll_session_test_end**](SessionsApi.md#poll_session_test_end) | **GET** /api/v2/sessions/{sessionId}/operations/testEnd/{id} | @@ -1396,8 +1396,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_config_save** -> AsyncContext poll_config_save(session_id, id) +# **poll_session_config_granular_stats_default_dashboards** +> AsyncContext poll_session_config_granular_stats_default_dashboards(session_id, id) @@ -1437,11 +1437,11 @@ with cyperf.ApiClient(configuration) as api_client: id = 56 # int | The ID of the async operation. try: - api_response = api_instance.poll_config_save(session_id, id) - print("The response of SessionsApi->poll_config_save:\n") + api_response = api_instance.poll_session_config_granular_stats_default_dashboards(session_id, id) + print("The response of SessionsApi->poll_session_config_granular_stats_default_dashboards:\n") pprint(api_response) except Exception as e: - print("Exception when calling SessionsApi->poll_config_save: %s\n" % e) + print("Exception when calling SessionsApi->poll_session_config_granular_stats_default_dashboards: %s\n" % e) ``` @@ -1472,11 +1472,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Details about the ongoing operation | - | +**400** | Bad request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_session_config_granular_stats_default_dashboards** -> AsyncContext poll_session_config_granular_stats_default_dashboards(session_id, id) +# **poll_session_config_save** +> AsyncContext poll_session_config_save(session_id, id) @@ -1516,11 +1517,11 @@ with cyperf.ApiClient(configuration) as api_client: id = 56 # int | The ID of the async operation. try: - api_response = api_instance.poll_session_config_granular_stats_default_dashboards(session_id, id) - print("The response of SessionsApi->poll_session_config_granular_stats_default_dashboards:\n") + api_response = api_instance.poll_session_config_save(session_id, id) + print("The response of SessionsApi->poll_session_config_save:\n") pprint(api_response) except Exception as e: - print("Exception when calling SessionsApi->poll_session_config_granular_stats_default_dashboards: %s\n" % e) + print("Exception when calling SessionsApi->poll_session_config_save: %s\n" % e) ``` diff --git a/docs/Snapshot.md b/docs/Snapshot.md index 5c489d8..e0fd70e 100644 --- a/docs/Snapshot.md +++ b/docs/Snapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **timestamp** | **int** | The Unix timestamp in milliseconds at which the snapshot was taken | [optional] -**values** | **List[List[ConfigMetadataConfigDataValue]]** | The values of the snapshot. The order of the values corresponds to the order of columns in result. | [optional] +**values** | **List[List[AttackMetadataKeywordsInner]]** | The values of the snapshot. The order of the values corresponds to the order of columns in result. | [optional] ## Example diff --git a/docs/Track.md b/docs/Track.md index 3de8613..28391a8 100644 --- a/docs/Track.md +++ b/docs/Track.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions** | [**List[Action]**](Action.md) | | [optional] -**add_actions** | **List[bytearray]** | | [optional] +**add_actions** | [**List[CreateAppOrAttackOperationInput]**](CreateAppOrAttackOperationInput.md) | | [optional] **id** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/samples/sample_create_save_and_export_config.py b/samples/sample_create_save_and_export_config.py index 0fda71f..a0dc980 100644 --- a/samples/sample_create_save_and_export_config.py +++ b/samples/sample_create_save_and_export_config.py @@ -188,4 +188,3 @@ file_name = file_path[last_separator_index + 1:] print(f"Exported as: '{file_name}' at {directory}\n") - diff --git a/test/test_action_input.py b/test/test_action_input.py index 4722163..39c7b19 100644 --- a/test/test_action_input.py +++ b/test/test_action_input.py @@ -50,19 +50,87 @@ def make_instance(self, include_optional) -> ActionInput: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ] diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py index 78715b9..0bd785a 100644 --- a/test/test_action_metadata.py +++ b/test/test_action_metadata.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> ActionMetadata: c2s_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, @@ -88,6 +89,7 @@ def make_instance(self, include_optional) -> ActionMetadata: s2c_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', name = '', owner = '', @@ -114,19 +116,87 @@ def make_instance(self, include_optional) -> ActionMetadata: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ] diff --git a/test/test_add_action_info.py b/test/test_add_action_info.py new file mode 100644 index 0000000..c3dd4fe --- /dev/null +++ b/test/test_add_action_info.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.add_action_info import AddActionInfo + +class TestAddActionInfo(unittest.TestCase): + """AddActionInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AddActionInfo: + """Test AddActionInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AddActionInfo` + """ + model = AddActionInfo() + if include_optional: + return AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '' + ) + else: + return AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '', + ) + """ + + def testAddActionInfo(self): + """Test AddActionInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_add_input.py b/test/test_add_input.py index 959db90..8d0c9cc 100644 --- a/test/test_add_input.py +++ b/test/test_add_input.py @@ -53,19 +53,87 @@ def make_instance(self, include_optional) -> AddInput: flow_index_insert_at = 56, parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_app_exchange.py b/test/test_app_exchange.py index 280a795..48d9a91 100644 --- a/test/test_app_exchange.py +++ b/test/test_app_exchange.py @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AppExchange: c2s_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, @@ -83,6 +84,7 @@ def make_instance(self, include_optional) -> AppExchange: s2c_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, diff --git a/test/test_app_flow.py b/test/test_app_flow.py index 057844a..420faa7 100644 --- a/test/test_app_flow.py +++ b/test/test_app_flow.py @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> AppFlow: c2s_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, @@ -83,6 +84,7 @@ def make_instance(self, include_optional) -> AppFlow: s2c_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', name = '', owner = '', diff --git a/test/test_application.py b/test/test_application.py index 1206076..9b0e095 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -522,6 +522,7 @@ def make_instance(self, include_optional) -> Application: inherit_tls = True, is_stateless_stream = True, objective_weight = 56, + protocol_found = True, server_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -624,7 +625,15 @@ def make_instance(self, include_optional) -> Application: null ], add_actions = [ - 'YQ==' + cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( + actions = [ + cyperf.models.add_action_info.AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '', ) + ], + resource_url = '', ) ], id = '', links = [ diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py index 911ae85..0bad3a7 100644 --- a/test/test_application_resources_api.py +++ b/test/test_application_resources_api.py @@ -39,6 +39,12 @@ def test_delete_resources_certificate(self) -> None: """ pass + def test_delete_resources_custom_fuzzing_script(self) -> None: + """Test case for delete_resources_custom_fuzzing_script + + """ + pass + def test_delete_resources_flow_library(self) -> None: """Test case for delete_resources_flow_library @@ -237,6 +243,30 @@ def test_get_resources_certificates_upload_file_result(self) -> None: """ pass + def test_get_resources_custom_fuzzing_script_by_id(self) -> None: + """Test case for get_resources_custom_fuzzing_script_by_id + + """ + pass + + def test_get_resources_custom_fuzzing_script_content_file(self) -> None: + """Test case for get_resources_custom_fuzzing_script_content_file + + """ + pass + + def test_get_resources_custom_fuzzing_scripts(self) -> None: + """Test case for get_resources_custom_fuzzing_scripts + + """ + pass + + def test_get_resources_custom_fuzzing_scripts_upload_file_result(self) -> None: + """Test case for get_resources_custom_fuzzing_scripts_upload_file_result + + """ + pass + def test_get_resources_flow_library(self) -> None: """Test case for get_resources_flow_library @@ -645,12 +675,24 @@ def test_poll_resources_certificates_upload_file(self) -> None: """ pass + def test_poll_resources_config_export_user_defined_apps(self) -> None: + """Test case for poll_resources_config_export_user_defined_apps + + """ + pass + def test_poll_resources_create_app(self) -> None: """Test case for poll_resources_create_app """ pass + def test_poll_resources_custom_fuzzing_scripts_upload_file(self) -> None: + """Test case for poll_resources_custom_fuzzing_scripts_upload_file + + """ + pass + def test_poll_resources_edit_app(self) -> None: """Test case for poll_resources_edit_app @@ -807,12 +849,24 @@ def test_start_resources_certificates_upload_file(self) -> None: """ pass + def test_start_resources_config_export_user_defined_apps(self) -> None: + """Test case for start_resources_config_export_user_defined_apps + + """ + pass + def test_start_resources_create_app(self) -> None: """Test case for start_resources_create_app """ pass + def test_start_resources_custom_fuzzing_scripts_upload_file(self) -> None: + """Test case for start_resources_custom_fuzzing_scripts_upload_file + + """ + pass + def test_start_resources_edit_app(self) -> None: """Test case for start_resources_edit_app diff --git a/test/test_application_type.py b/test/test_application_type.py index e3635fb..184d3ad 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -83,19 +83,29 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -215,22 +225,91 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], + protocol_found = True, strikes = [ cyperf.models.command.Command( action_id = '', @@ -278,19 +357,29 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index 1cab740..1bcc761 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -57,6 +57,7 @@ def make_instance(self, include_optional) -> AppsecApp: c2s_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, @@ -96,6 +97,7 @@ def make_instance(self, include_optional) -> AppsecApp: s2c_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', name = '', owner = '', @@ -122,27 +124,79 @@ def make_instance(self, include_optional) -> AppsecApp: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], ), diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index 54ced87..23d1ea7 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -51,6 +51,7 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: c2s_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, @@ -90,6 +91,7 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: s2c_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', name = '', owner = '', @@ -116,38 +118,154 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ] diff --git a/test/test_appsec_attack.py b/test/test_appsec_attack.py index 9ae242f..f1c4d0f 100644 --- a/test/test_appsec_attack.py +++ b/test/test_appsec_attack.py @@ -38,38 +38,22 @@ def make_instance(self, include_optional) -> AppsecAttack: return AppsecAttack( attack = None, description = '', - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.attack_metadata.AttackMetadata( + cve_count = 56, direction = '', - is_banner = True, keywords = [ null ], legacy_names = [ '' ], - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), references = [ cyperf.models.reference.Reference( type = '', value = '', ) ], - requires_uniqueness = True, severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '', ), + strikes_count = 56, ), name = '', id = '', links = [ diff --git a/test/test_attack.py b/test/test_attack.py index e100b4e..7486b14 100644 --- a/test/test_attack.py +++ b/test/test_attack.py @@ -592,7 +592,15 @@ def make_instance(self, include_optional) -> Attack: null ], add_actions = [ - 'YQ==' + cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( + actions = [ + cyperf.models.add_action_info.AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '', ) + ], + resource_url = '', ) ], id = '', links = [ @@ -607,7 +615,15 @@ def make_instance(self, include_optional) -> Attack: ], ) ], create = [ - 'YQ==' + cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( + actions = [ + cyperf.models.add_action_info.AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '', ) + ], + resource_url = '', ) ], modify_excluded_dut_recursively = [ cyperf.models.update_network_mapping.UpdateNetworkMapping( diff --git a/test/test_attack_metadata.py b/test/test_attack_metadata.py new file mode 100644 index 0000000..fd5876a --- /dev/null +++ b/test/test_attack_metadata.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.attack_metadata import AttackMetadata + +class TestAttackMetadata(unittest.TestCase): + """AttackMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AttackMetadata: + """Test AttackMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AttackMetadata` + """ + model = AttackMetadata() + if include_optional: + return AttackMetadata( + cve_count = 56, + direction = '', + keywords = [ + null + ], + legacy_names = [ + '' + ], + references = [ + cyperf.models.reference.Reference( + type = '', + value = '', ) + ], + severity = '', + strikes_count = 56 + ) + else: + return AttackMetadata( + ) + """ + + def testAttackMetadata(self): + """Test AttackMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_attack_metadata_keywords_inner.py b/test/test_attack_metadata_keywords_inner.py new file mode 100644 index 0000000..bb36988 --- /dev/null +++ b/test/test_attack_metadata_keywords_inner.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner + +class TestAttackMetadataKeywordsInner(unittest.TestCase): + """AttackMetadataKeywordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AttackMetadataKeywordsInner: + """Test AttackMetadataKeywordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AttackMetadataKeywordsInner` + """ + model = AttackMetadataKeywordsInner() + if include_optional: + return AttackMetadataKeywordsInner( + ) + else: + return AttackMetadataKeywordsInner( + ) + """ + + def testAttackMetadataKeywordsInner(self): + """Test AttackMetadataKeywordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_attack_track.py b/test/test_attack_track.py index b6ae22a..5e7665e 100644 --- a/test/test_attack_track.py +++ b/test/test_attack_track.py @@ -40,7 +40,15 @@ def make_instance(self, include_optional) -> AttackTrack: null ], add_actions = [ - 'YQ==' + cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( + actions = [ + cyperf.models.add_action_info.AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '', ) + ], + resource_url = '', ) ], id = '', links = [ diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py index 7757bd9..8607853 100644 --- a/test/test_auth_profile.py +++ b/test/test_auth_profile.py @@ -95,53 +95,105 @@ def make_instance(self, include_optional) -> AuthProfile: ], ) ], file_name = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '', ), + metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( + auth_method = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) + ], + default = '', ), + explicit_proxy = True, + idp_type = cyperf.models.enum.Enum( + default = '', ), + sgw_name = '', + sgw_type = '', + sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_auth_profile_metadata.py b/test/test_auth_profile_metadata.py new file mode 100644 index 0000000..e1ef241 --- /dev/null +++ b/test/test_auth_profile_metadata.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.auth_profile_metadata import AuthProfileMetadata + +class TestAuthProfileMetadata(unittest.TestCase): + """AuthProfileMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuthProfileMetadata: + """Test AuthProfileMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AuthProfileMetadata` + """ + model = AuthProfileMetadata() + if include_optional: + return AuthProfileMetadata( + auth_method = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) + ], + default = '', ), + explicit_proxy = True, + idp_type = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) + ], + default = '', ), + sgw_name = '', + sgw_type = '', + sgw_type_value = '' + ) + else: + return AuthProfileMetadata( + ) + """ + + def testAuthProfileMetadata(self): + """Test AuthProfileMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_command.py b/test/test_command.py index 9efd4ad..6140bfb 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -81,19 +81,87 @@ def make_instance(self, include_optional) -> Command: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_config_metadata.py b/test/test_config_metadata.py index bf63e5f..0358ee0 100644 --- a/test/test_config_metadata.py +++ b/test/test_config_metadata.py @@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> ConfigMetadata: display_name = '', encoded_files = True, id = '', + is_public = True, last_accessed = 56, last_modified = 56, linked_resources = [ diff --git a/test/test_create_app_operation.py b/test/test_create_app_operation.py index e7c2831..b9dc5b1 100644 --- a/test/test_create_app_operation.py +++ b/test/test_create_app_operation.py @@ -52,19 +52,87 @@ def make_instance(self, include_optional) -> CreateAppOperation: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], ) @@ -73,19 +141,87 @@ def make_instance(self, include_optional) -> CreateAppOperation: app_type = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ] diff --git a/test/test_create_app_or_attack_operation_input.py b/test/test_create_app_or_attack_operation_input.py new file mode 100644 index 0000000..b848d70 --- /dev/null +++ b/test/test_create_app_or_attack_operation_input.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput + +class TestCreateAppOrAttackOperationInput(unittest.TestCase): + """CreateAppOrAttackOperationInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateAppOrAttackOperationInput: + """Test CreateAppOrAttackOperationInput + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateAppOrAttackOperationInput` + """ + model = CreateAppOrAttackOperationInput() + if include_optional: + return CreateAppOrAttackOperationInput( + actions = [ + cyperf.models.add_action_info.AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '', ) + ], + resource_url = '' + ) + else: + return CreateAppOrAttackOperationInput( + actions = [ + cyperf.models.add_action_info.AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '', ) + ], + ) + """ + + def testCreateAppOrAttackOperationInput(self): + """Test CreateAppOrAttackOperationInput""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_edit_action_input.py b/test/test_edit_action_input.py index 7ac6e8d..9850903 100644 --- a/test/test_edit_action_input.py +++ b/test/test_edit_action_input.py @@ -39,19 +39,87 @@ def make_instance(self, include_optional) -> EditActionInput: action_index = 56, parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ] diff --git a/test/test_edit_app_operation.py b/test/test_edit_app_operation.py index 3b4c1fe..d91e709 100644 --- a/test/test_edit_app_operation.py +++ b/test/test_edit_app_operation.py @@ -55,19 +55,87 @@ def make_instance(self, include_optional) -> EditAppOperation: flow_index_insert_at = 56, parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -77,19 +145,87 @@ def make_instance(self, include_optional) -> EditAppOperation: app_name = '', app_parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -105,19 +241,87 @@ def make_instance(self, include_optional) -> EditAppOperation: action_index = 56, parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], ) diff --git a/test/test_generic_file.py b/test/test_generic_file.py index e6f30c9..b11eb37 100644 --- a/test/test_generic_file.py +++ b/test/test_generic_file.py @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> GenericFile: return GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, diff --git a/test/test_get_configs200_response.py b/test/test_get_configs200_response.py index c8f430b..8a89d14 100644 --- a/test/test_get_configs200_response.py +++ b/test/test_get_configs200_response.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> GetConfigs200Response: display_name = '', encoded_files = True, id = '', + is_public = True, last_accessed = 56, last_modified = 56, linked_resources = [ diff --git a/test/test_get_configs200_response_one_of.py b/test/test_get_configs200_response_one_of.py index 099549c..0530958 100644 --- a/test/test_get_configs200_response_one_of.py +++ b/test/test_get_configs200_response_one_of.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> GetConfigs200ResponseOneOf: display_name = '', encoded_files = True, id = '', + is_public = True, last_accessed = 56, last_modified = 56, linked_resources = [ diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index 70f7551..99acfc4 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -85,19 +85,30 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -175,11 +186,16 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], + protocol_found = True, strikes = [ cyperf.models.command.Command( action_id = '', @@ -194,16 +210,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) + links = , ) ], total_count = 56 ) diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index 6b2bcbe..959477f 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -85,19 +85,30 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -175,11 +186,16 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], + protocol_found = True, strikes = [ cyperf.models.command.Command( action_id = '', @@ -194,16 +210,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) + links = , ) ], total_count = 56 ) diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index e605a49..1b8b5fb 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -59,6 +59,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: c2s_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, @@ -98,6 +99,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: s2c_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', name = '', owner = '', @@ -124,27 +126,79 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], ), diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index adde379..81c64f7 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -59,6 +59,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: c2s_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, @@ -98,6 +99,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: s2c_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', name = '', owner = '', @@ -124,27 +126,79 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], ), diff --git a/test/test_get_resources_attacks200_response.py b/test/test_get_resources_attacks200_response.py index 94c19c7..902aa81 100644 --- a/test/test_get_resources_attacks200_response.py +++ b/test/test_get_resources_attacks200_response.py @@ -40,38 +40,22 @@ def make_instance(self, include_optional) -> GetResourcesAttacks200Response: cyperf.models.appsec_attack.AppsecAttack( attack = null, description = '', - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.attack_metadata.AttackMetadata( + cve_count = 56, direction = '', - is_banner = True, keywords = [ null ], legacy_names = [ '' ], - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), references = [ cyperf.models.reference.Reference( type = '', value = '', ) ], - requires_uniqueness = True, severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '', ), + strikes_count = 56, ), name = '', id = '', links = [ diff --git a/test/test_get_resources_attacks200_response_one_of.py b/test/test_get_resources_attacks200_response_one_of.py index 314acf4..7ca5d7b 100644 --- a/test/test_get_resources_attacks200_response_one_of.py +++ b/test/test_get_resources_attacks200_response_one_of.py @@ -40,38 +40,22 @@ def make_instance(self, include_optional) -> GetResourcesAttacks200ResponseOneOf cyperf.models.appsec_attack.AppsecAttack( attack = null, description = '', - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.attack_metadata.AttackMetadata( + cve_count = 56, direction = '', - is_banner = True, keywords = [ null ], legacy_names = [ '' ], - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), references = [ cyperf.models.reference.Reference( type = '', value = '', ) ], - requires_uniqueness = True, severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '', ), + strikes_count = 56, ), name = '', id = '', links = [ diff --git a/test/test_get_resources_auth_profiles200_response.py b/test/test_get_resources_auth_profiles200_response.py index 7ca2580..0493f11 100644 --- a/test/test_get_resources_auth_profiles200_response.py +++ b/test/test_get_resources_auth_profiles200_response.py @@ -87,53 +87,38 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response id = '', ) ], file_name = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '', ), + metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( + auth_method = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) + ], + default = '', ), + explicit_proxy = True, + idp_type = cyperf.models.enum.Enum( + default = '', ), + sgw_name = '', + sgw_type = '', + sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', operator = '', query_param = '', ) ], diff --git a/test/test_get_resources_auth_profiles200_response_one_of.py b/test/test_get_resources_auth_profiles200_response_one_of.py index 0df0505..ce9adaa 100644 --- a/test/test_get_resources_auth_profiles200_response_one_of.py +++ b/test/test_get_resources_auth_profiles200_response_one_of.py @@ -87,53 +87,38 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response id = '', ) ], file_name = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '', ), + metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( + auth_method = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) + ], + default = '', ), + explicit_proxy = True, + idp_type = cyperf.models.enum.Enum( + default = '', ), + sgw_name = '', + sgw_type = '', + sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', operator = '', query_param = '', ) ], diff --git a/test/test_get_resources_certificates200_response.py b/test/test_get_resources_certificates200_response.py index 62a07f0..84f6279 100644 --- a/test/test_get_resources_certificates200_response.py +++ b/test/test_get_resources_certificates200_response.py @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> GetResourcesCertificates200Response cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, diff --git a/test/test_get_resources_certificates200_response_one_of.py b/test/test_get_resources_certificates200_response_one_of.py index 5d13954..7754505 100644 --- a/test/test_get_resources_certificates200_response_one_of.py +++ b/test/test_get_resources_certificates200_response_one_of.py @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> GetResourcesCertificates200Response cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py index fe69d65..df09589 100644 --- a/test/test_get_result_stats200_response.py +++ b/test/test_get_result_stats200_response.py @@ -40,19 +40,87 @@ def make_instance(self, include_optional) -> GetResultStats200Response: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py index b183877..8774204 100644 --- a/test/test_get_result_stats200_response_one_of.py +++ b/test/test_get_result_stats200_response_one_of.py @@ -40,19 +40,87 @@ def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_import_all_operation.py b/test/test_import_all_operation.py index e312217..5586973 100644 --- a/test/test_import_all_operation.py +++ b/test/test_import_all_operation.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> ImportAllOperation: display_name = '', encoded_files = True, id = '', + is_public = True, last_accessed = 56, last_modified = 56, linked_resources = [ diff --git a/test/test_parameter.py b/test/test_parameter.py index 561369f..0e68c9d 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -36,19 +36,87 @@ def make_instance(self, include_optional) -> Parameter: model = Parameter() if include_optional: return Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', var_field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '' ) diff --git a/test/test_replay_capture.py b/test/test_replay_capture.py index eddbc9b..50fc4dc 100644 --- a/test/test_replay_capture.py +++ b/test/test_replay_capture.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> ReplayCapture: c2s_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', metadata = cyperf.models.file_metadata.FileMetadata( default = True, @@ -85,6 +86,7 @@ def make_instance(self, include_optional) -> ReplayCapture: s2c_payload = cyperf.models.generic_file.GenericFile( content = 'YQ==', id = '', + is_public = True, md5 = '', name = '', owner = '', diff --git a/test/test_sessions_api.py b/test/test_sessions_api.py index f6c0d76..a806656 100644 --- a/test/test_sessions_api.py +++ b/test/test_sessions_api.py @@ -129,14 +129,14 @@ def test_poll_config_add_applications(self) -> None: """ pass - def test_poll_config_save(self) -> None: - """Test case for poll_config_save + def test_poll_session_config_granular_stats_default_dashboards(self) -> None: + """Test case for poll_session_config_granular_stats_default_dashboards """ pass - def test_poll_session_config_granular_stats_default_dashboards(self) -> None: - """Test case for poll_session_config_granular_stats_default_dashboards + def test_poll_session_config_save(self) -> None: + """Test case for poll_session_config_save """ pass diff --git a/test/test_stats_result.py b/test/test_stats_result.py index 8f05d74..dd36631 100644 --- a/test/test_stats_result.py +++ b/test/test_stats_result.py @@ -38,19 +38,87 @@ def make_instance(self, include_optional) -> StatsResult: return StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_track.py b/test/test_track.py index 11c6cbe..41eee21 100644 --- a/test/test_track.py +++ b/test/test_track.py @@ -40,7 +40,15 @@ def make_instance(self, include_optional) -> Track: null ], add_actions = [ - 'YQ==' + cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( + actions = [ + cyperf.models.add_action_info.AddActionInfo( + action_id = '', + insert_at_index = 56, + is_strike = True, + protocol_id = '', ) + ], + resource_url = '', ) ], id = '', links = [ From 6b13dc4cfa4191d7fb9be943aac6558495ab79de Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 2 Jul 2025 03:30:25 -0600 Subject: [PATCH 07/53] Pull request #28: attack based sample script Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-34308-create-an-attack-focused-api-wrapper-sample to main Squashed commit of the following: commit ff8f9110ef2b469fb296d2da59b4ac7806cddd13 Author: iustmitu Date: Wed Jul 2 11:05:00 2025 +0300 fixed typo commit aaba2277a2674c924bc045811c9bc2a097dbbbb5 Author: iustmitu Date: Tue Jul 1 15:00:46 2025 +0300 deleted pass commit 7c4d7fccf26b566833a834465835dbf8b8067797 Author: iustmitu Date: Wed May 21 14:25:55 2025 +0300 attack based sample script --- samples/sample_attack_based_script.py | 217 ++++++++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 samples/sample_attack_based_script.py diff --git a/samples/sample_attack_based_script.py b/samples/sample_attack_based_script.py new file mode 100644 index 0000000..ace63d8 --- /dev/null +++ b/samples/sample_attack_based_script.py @@ -0,0 +1,217 @@ +import cyperf +from cyperf import * +from cyperf.utils import create_api_client_cli, TestRunner +from time import sleep +import os + +if __name__ == "__main__": + import urllib3; urllib3.disable_warnings() + + # Enter a context with an instance of the API client + with create_api_client_cli(verify_ssl=False) as api_client: + + # Get some strikes + api_application_resources_instance = cyperf.ApplicationResourcesApi(api_client) + take = 3 # int | The number of search results to return (optional) + skip = 0 # int | The number of search results to skip (optional) + search_col = 'Name' # str | A list of comma-separated columns used to search for the supplied values (optional) + search_val = 'Google Chrome' # str | The keywords used to filter the items (optional) + categories = 'Browser:Chrome' + + strikes = None + try: + print(f"Finding first {take} strikes with \'{search_val}\' in their name, from the \'Browser\' category...") + api_application_resources_response = api_application_resources_instance.get_resources_strikes(take=take, skip=skip, search_col=search_col, search_val=search_val, categories=categories) + strikes = api_application_resources_response.data + if len(strikes) != take: + raise ValueError(f"Couldn't find {take} strikes.") + + print(f"{len(strikes)} strikes found:") + for strike in strikes: + print(f" {strike.name}") + print() + + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_strikes: %s\n" % e) + + + + all_files = [] + # Add the attacks + for strike in strikes: + + # Find the pre-canned empty config + api_config_instance = cyperf.ConfigurationsApi(api_client) + take = 1 # int | The number of search results to return (optional) + skip = None # int | The number of search results to skip (optional) + search_col = 'displayName' # str | A list of comma-separated columns used to search for the supplied values (optional) + search_val = 'Cyperf Empty Config' # str | The keywords used to filter the items (optional) + filter_mode = None # str | The operator applied to the supplied values (optional) + sort = None # str | A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc (optional) + config = api_config_instance.get_configs(take=1, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort) + + if len(config.data) == 0: + raise ValueError("Couldn't find the specified configuration.") + + # Load a pre-canned config + api_session_instance = cyperf.SessionsApi(api_client) + application = None # str | The user-friendly name for the application that controls this session (optional) + config_name = None # str | The display name of the configuration loaded in the session (optional) + config_url = config.data[0].config_url # str | The external URL of the configuration loaded in the session (optional) + index = None # int | The session's index (optional) (readonly) + name = None # str | The user-visible name of the session (optional) + owner = None # str | The user-visible name of the session's owner (optional) (readonly) + sessions = [cyperf.Session(application=application, + config_name=config_name, + configUrl=config_url, + index=index, + name=name, + owner=owner)] + # Create a session + session = None + try: + print("Creating empty session...") + api_session_response = api_session_instance.create_sessions(sessions=sessions) + session = api_session_response[0] + print("Session created.\n") + except Exception as e: + print("Exception when calling SessionsApi->create_sessions: %s\n" % e) # Add an app profile + + # Create an attack profile + print("Creating a Attack Profile...") + attack_profile_name = "Custom Attack Profile" + session.config.config.attack_profiles.append(cyperf.AttackProfile(id="1", name="My Attack Profile", attacks=[])) + session.config.config.attack_profiles.update() + print(attack_profile_name + " created succesfully.\n") + + take = 1 # int | The number of search results to return (optional) + skip = 0 # int | The number of search results to skip (optional) + search_col = 'Name' # str | A list of comma-separated columns used to search for the supplied values (optional) + search_val = strike.name # str | The keywords used to filter the items (optional) + + attack = None + try: + print(f"Finding the attack with the same name as the strike...") + api_application_resources_response = api_application_resources_instance.get_resources_attacks(take=take, skip=skip, search_col=search_col, search_val=search_val, categories=categories) + attack = api_application_resources_response.data[0] + print("Attack found.") + + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_attacks: %s\n" % e) + + session.config.config.attack_profiles[0].attacks.append(Attack(id = "1", name = strike.name, external_resource_url = attack.id)) + session.config.config.attack_profiles[0].attacks.update() + + + print(f"Attack {strike.name} added successfully.\n") + + # Set the objective to single iteration + print("Setting the Iteration Count to 1...") + session.config.config.attack_profiles[0].objectives_and_timeline.timeline_segments[0].iteration_count = 1 + session.config.config.attack_profiles[0].objectives_and_timeline.update() + print("Iteration Count setted to 1 successfully.\n") + + # Create IP Networks + client_ip_network = IPNetwork(name="IP Network 1", id="1", agentAssignments=AgentAssignments(by_tag=[]), minAgents=1) + server_ip_network = IPNetwork(name="IP Network 2", id="2", agentAssignments=AgentAssignments(by_tag=[]), minAgents=1) + + # Append the IP Networks to the Network Profile + session.config.config.network_profiles[0].ip_network_segment = [client_ip_network, server_ip_network] + session.config.config.network_profiles[0].ip_network_segment.update() + print("Client and Server network segments added successfully.\n") + + # Get available agents + api_agents_instance = cyperf.AgentsApi(api_client) + agents = api_agents_instance.get_agents(exclude_offline='true') + + if len(agents) < 2: + raise ValueError("Expected at least 2 active agents") + + # Create an agent map + agent_map = { + 'IP Network 1': [agents[0].id, agents[0].ip], + 'IP Network 2': [agents[1].id, agents[1].ip] + } + + # Assign the agents + print("Assigning agents ...") + for net_profile in session.config.config.network_profiles: + for ip_net in net_profile.ip_network_segment: + if ip_net.name in agent_map: + agent_ip = agent_map[ip_net.name][1] + print(f" Agent {agent_ip} assigned to {ip_net.name}.") + capture_settings = None # str | The capture settings of the agent that is assigned (optional) + interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) + links = None # List[APILink] | (optional) + agent_id = agent_map[ip_net.name][0] + agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + capture_setting=capture_settings, + id=agent_id, + interfaces=interfaces, + links=links)] + + if not ip_net.agent_assignments: + by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) + by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) + by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned + links = None # List[APILink] | (optional) + ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, + by_port=by_port, + by_tag=by_tag, + links=links) + + ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.update() + print("Assigning agents completed.\n") + + # Start traffic + print("Starting the test ...") + api_test_operation_instance = cyperf.TestOperationsApi(api_client) + api_test_operation_response = api_test_operation_instance.start_test_run_start(session_id=session.id) + api_test_operation_response.await_completion() + + # Wait for the test to be finished + print("Test running ...") + session.refresh() + while session.test.status != 'STOPPED': + sleep(5) + session.refresh() + print("Test finished successfully.\n") + + # Download the test results + print("Downloading test results ...") + api_reports_instance = cyperf.ReportsApi(api_client) + generate_csv_operation = cyperf.GenerateCSVReportsOperation() + api_test_results_response = api_reports_instance.start_result_generate_csv(result_id=session.test.test_id, generate_csv_reports_operation=generate_csv_operation) + file_path = api_test_results_response.await_completion() + + last_separator_index = file_path.rfind("\\") + directory = file_path[:last_separator_index] + file_name = file_path[last_separator_index + 1:] + + print(f"Saved as: '{file_name}' at {directory}\n") + + # Add the file path to the list + all_files.append(file_path) + + + print("Aggregating all CSV files ...") + aggregated_file_path = os.path.join(directory, "aggregated_all_strikes_attack.csv") + + with open(aggregated_file_path, 'w', encoding='ISO-8859-1') as outfile: + for i, file_path in enumerate(all_files): + with open(file_path, 'r', encoding='ISO-8859-1') as infile: + if i == 0: + outfile.write(infile.read()) + else: + next(infile) + outfile.write(infile.read()) + + print(f"Aggregated results saved as: '{aggregated_file_path}'") + + From f77c9e1d6c7cc4b5f97e8c1a3bbba254082c09bb Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 9 Jul 2025 02:58:35 -0600 Subject: [PATCH 08/53] Pull request #30: fix remove items from update function Merge in ISGAPPSEC/cyperf-api-wrapper from bug-fix-remove-one-item- to main Squashed commit of the following: commit 5eb3572c95353678a4bcaef6f1d709756b39e6ef Author: iustmitu Date: Tue Jul 8 14:18:32 2025 +0300 fix len commit 6d0e53642df648b180a2d1bf4503906721d8f092 Author: iustmitu Date: Tue Jul 8 12:57:14 2025 +0300 fix remove items from update function --- cyperf/dynamic_model_meta.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cyperf/dynamic_model_meta.py b/cyperf/dynamic_model_meta.py index 5dd3e69..dacfc41 100644 --- a/cyperf/dynamic_model_meta.py +++ b/cyperf/dynamic_model_meta.py @@ -139,6 +139,13 @@ def update(self): href_to_item = {} items_to_add = [] + self_data_links = [] + for item in self.data: + links = item.links + if links != None: + for link in links: + self_data_links.append(link.href) + for item in self.dyn_data: link = item.get_self_link() if link is None or link.href is None: @@ -153,7 +160,7 @@ def update(self): items_to_remove = [ item for item in lst for link in getattr(item, "links", []) - if getattr(link, "type", None) == "self" and link.href not in local_hrefs + if getattr(link, "type", None) == "self" and link.href not in self_data_links ] if items_to_add: From dc569a6dbbab8d88226a92940c46cf5fb41d37ab Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 24 Jul 2025 05:16:43 -0600 Subject: [PATCH 09/53] Pull request #31: fix version naming for branches with slashes Merge in ISGAPPSEC/cyperf-api-wrapper from fix-jenkins-file to main Squashed commit of the following: commit b987c8be3e7db838a7f6b8d76b1f15a6e7c9526c Author: iustmitu Date: Thu Jul 24 13:54:40 2025 +0300 using - instead of . for better version name commit 150e953833eee92e97309c47b36a8a0fbbd6025b Author: iustmitu Date: Thu Jul 24 12:51:01 2025 +0300 small fix commit fbea0f0a9460954f703db82179ee7b19e26b9707 Author: iustmitu Date: Thu Jul 24 12:40:03 2025 +0300 fix slash in branch name --- jenkins/JenkinsFile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/JenkinsFile b/jenkins/JenkinsFile index dadb906..3794add 100644 --- a/jenkins/JenkinsFile +++ b/jenkins/JenkinsFile @@ -37,7 +37,7 @@ def do_publish = params.publish_pypi @NonCPS boolean setDisplayVersion(publish) { - branch_sanitized = branch.replaceAll('-', '.').replaceAll('_', '.') + branch_sanitized = branch.replaceAll('-', '.').replaceAll('_', '.').replaceAll('%2F', '-') def matcher = Pattern.compile("^release%2F([0-9]+)\\.([0-9]+)\$").matcher(branch) if (matcher.matches()) { build_number = "dev${env.BUILD_NUMBER}+${branch_sanitized}" From 88df86b663bb99f8118ed413a094047ca38aeb92 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Mon, 11 Aug 2025 07:22:40 -0600 Subject: [PATCH 10/53] Pull request #33: added wait function for agents Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-34322-move-to-wrapper-based-integration-tests to main Squashed commit of the following: commit 51f671078143913c0223be36fa599ece5aa4bce8 Author: iustmitu Date: Tue Jul 29 12:08:57 2025 +0300 add timeout support commit 2b39d7d2851f1e743248d50a10feb10f6186be85 Author: iustmitu Date: Mon Jul 28 13:54:59 2025 +0300 added wait function for agents --- cyperf/utils.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cyperf/utils.py b/cyperf/utils.py index d2f3f0f..c4b8c1c 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -175,6 +175,28 @@ def assign_agents(self, session, agent_map=None, augment=False, auto_assign=Fals else: ip_net.agent_assignments.by_id = agent_details ip_net.update() + + def wait_until_agents_released(self, agents): + timeout = 180 + poll_interval = 3 + agent_api_instance = cyperf.AgentsApi(self.api_client) + start_time = time.time() + + while True: + running = False + for agent in agents: + current_agent = agent_api_instance.get_agent_by_id(agent.id) + if current_agent.status == "RUNNING": + running = True + break + + if not running: + return + + if time.time() - start_time > timeout: + raise TimeoutError("Timeout reached while waiting for agents to be released.") + + time.sleep(poll_interval) def disable_automatic_network(self, session): for net_profile in session.config.config.network_profiles: From 1897f9f7a79dc2df46bc88af7c5c07ac659bb544 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 13 Aug 2025 06:09:21 -0600 Subject: [PATCH 11/53] Pull request #34: ISGAPPSEC2-34538-have-poll-as-function-on-the-object-instead-of-having-a-lot-of-functions Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34538-have-poll-as-function-on-the-object-instead-of-having-a-lot-of-functions to main Squashed commit of the following: commit 07b0ff5e882cb3a78b45fad6ee6ffe1653302157 Author: iustmitu Date: Wed Aug 6 17:29:44 2025 +0300 regenerated wrapper with no poll methods --- README.md | 81 +- cyperf/__init__.py | 2 + cyperf/api/agents_api.py | 4074 +----- cyperf/api/application_resources_api.py | 10952 +++------------- cyperf/api/authorization_api.py | 6 +- cyperf/api/brokers_api.py | 30 +- cyperf/api/configurations_api.py | 1486 +-- cyperf/api/data_migration_api.py | 514 +- cyperf/api/diagnostics_api.py | 42 +- cyperf/api/license_servers_api.py | 30 +- cyperf/api/licensing_api.py | 114 +- cyperf/api/notifications_api.py | 538 +- cyperf/api/reports_api.py | 556 +- cyperf/api/sessions_api.py | 2939 +---- cyperf/api/statistics_api.py | 287 +- cyperf/api/test_operations_api.py | 1360 +- cyperf/api/test_results_api.py | 1407 +- cyperf/api/utils_api.py | 2259 +--- cyperf/dynamic_models/__init__.py | 2 + cyperf/models/__init__.py | 2 + cyperf/models/action.py | 4 +- cyperf/models/action_base.py | 4 +- cyperf/models/application.py | 19 +- cyperf/models/application_profile.py | 4 +- cyperf/models/attack.py | 15 +- cyperf/models/attack_action.py | 4 +- cyperf/models/attack_profile.py | 4 +- cyperf/models/connection.py | 4 +- cyperf/models/create_app_operation.py | 4 +- cyperf/models/dut_network.py | 16 +- cyperf/models/edit_app_operation.py | 4 +- cyperf/models/metadata.py | 6 +- cyperf/models/parameter.py | 40 +- cyperf/models/pep_dut.py | 8 +- cyperf/models/quic_profile.py | 121 + cyperf/models/quic_version.py | 37 + cyperf/models/scenario.py | 15 +- cyperf/models/supported_group_tls13.py | 1 + cyperf/models/traffic_profile_base.py | 4 +- cyperf/models/transport_profile.py | 13 +- cyperf/models/transport_profile_base.py | 13 +- docs/AgentsApi.md | 1106 -- docs/Application.md | 5 + docs/ApplicationProfile.md | 1 + docs/ApplicationResourcesApi.md | 2260 ---- docs/Attack.md | 3 + docs/AttackProfile.md | 1 + docs/ConfigurationsApi.md | 316 - docs/CreateAppOperation.md | 1 + docs/DataMigrationApi.md | 158 - docs/EditAppOperation.md | 1 + docs/Metadata.md | 2 + docs/NotificationsApi.md | 158 - docs/Parameter.md | 11 +- docs/QUICProfile.md | 35 + docs/QUICVersion.md | 10 + docs/ReportsApi.md | 162 - docs/Scenario.md | 3 + docs/SessionsApi.md | 728 - docs/StatisticsApi.md | 79 - docs/SupportedGroupTLS13.md | 2 + docs/TestOperationsApi.md | 405 - docs/TestResultsApi.md | 322 - docs/TrafficProfileBase.md | 1 + docs/TransportProfile.md | 2 + docs/TransportProfileBase.md | 2 + docs/UtilsApi.md | 553 - test/test_action.py | 1 + test/test_action_base.py | 1 + test/test_action_input.py | 89 +- test/test_action_input_find_param.py | 1 + test/test_action_metadata.py | 89 +- test/test_activation_code_info.py | 1 + test/test_activation_code_list_request.py | 1 + test/test_activation_code_request.py | 1 + test/test_add_action_info.py | 1 + test/test_add_input.py | 89 +- test/test_advanced_settings.py | 1 + test/test_agent.py | 1 + test/test_agent_assignment_by_port.py | 1 + test/test_agent_assignment_details.py | 1 + test/test_agent_assignments.py | 1 + test/test_agent_cpu_info.py | 1 + test/test_agent_features.py | 1 + test/test_agent_optimization_mode.py | 1 + test/test_agent_release.py | 1 + test/test_agent_reservation.py | 1 + test/test_agent_to_be_rebooted.py | 1 + test/test_agents_api.py | 72 +- test/test_agents_group.py | 1 + test/test_api_link.py | 1 + test/test_api_relationship.py | 1 + test/test_app_exchange.py | 1 + test/test_app_flow.py | 1 + test/test_app_flow_desc.py | 1 + test/test_app_flow_input.py | 1 + test/test_app_flow_input_find_param.py | 1 + test/test_app_id.py | 1 + test/test_app_mode.py | 1 + test/test_application.py | 38 + test/test_application_profile.py | 2 + test/test_application_resources_api.py | 147 +- test/test_application_type.py | 159 +- test/test_appsec_app.py | 75 +- test/test_appsec_app_metadata.py | 157 +- test/test_appsec_attack.py | 1 + test/test_appsec_config.py | 1 + test/test_archive_info.py | 1 + test/test_array_v2_element_metadata.py | 1 + test/test_async_context.py | 1 + test/test_async_operation_response.py | 1 + test/test_attack.py | 36 + test/test_attack_action.py | 1 + test/test_attack_metadata.py | 1 + test/test_attack_metadata_keywords_inner.py | 1 + test/test_attack_objectives_and_timeline.py | 1 + test/test_attack_profile.py | 2 + test/test_attack_timeline_segment.py | 1 + test/test_attack_track.py | 1 + test/test_auth_method_type.py | 1 + test/test_auth_profile.py | 89 +- test/test_auth_profile_metadata.py | 1 + test/test_auth_settings.py | 1 + test/test_authenticate200_response.py | 1 + test/test_authentication_settings.py | 1 + test/test_authorization_api.py | 2 +- test/test_automatic_ip_type.py | 1 + test/test_broker.py | 1 + test/test_brokers_api.py | 2 +- test/test_capture_input.py | 1 + test/test_capture_input_find_param.py | 1 + test/test_capture_settings.py | 1 + test/test_category.py | 1 + test/test_category_filter.py | 1 + test/test_category_value.py | 1 + test/test_cert_config.py | 1 + test/test_certificate.py | 1 + test/test_chassis_info.py | 1 + test/test_choice.py | 1 + test/test_cipher_tls12.py | 1 + test/test_cipher_tls13.py | 1 + test/test_cisco_any_connect_settings.py | 1 + test/test_cisco_encapsulation.py | 1 + test/test_clear_ports_ownership_operation.py | 1 + test/test_command.py | 91 +- test/test_compute_node.py | 1 + test/test_config.py | 1 + test/test_config_category.py | 1 + test/test_config_id.py | 1 + test/test_config_metadata.py | 1 + test/test_config_validation.py | 1 + test/test_configurations_api.py | 22 +- test/test_conflict.py | 1 + test/test_connection.py | 1 + test/test_connection_persistence.py | 1 + test/test_consumer.py | 1 + test/test_controller.py | 1 + test/test_counted_feature_consumer.py | 1 + test/test_counted_feature_stats.py | 1 + test/test_create_app_operation.py | 178 +- ...st_create_app_or_attack_operation_input.py | 1 + test/test_custom_dashboards.py | 1 + test/test_custom_import_handler.py | 1 + test/test_custom_stat.py | 1 + test/test_dashboard.py | 1 + test/test_data_migration_api.py | 12 +- test/test_data_type.py | 1 + test/test_data_type_values_inner.py | 1 + test/test_definition.py | 1 + test/test_delete_input.py | 1 + test/test_dh_p1_group.py | 1 + test/test_diagnostic_component.py | 1 + test/test_diagnostic_component_context.py | 1 + test/test_diagnostic_options.py | 1 + test/test_diagnostics_api.py | 2 +- test/test_disk_usage.py | 1 + test/test_dns_resolver.py | 1 + test/test_dns_server.py | 1 + test/test_dtls_settings.py | 1 + test/test_dut_network.py | 1 + test/test_edit_action_input.py | 89 +- test/test_edit_app_operation.py | 266 +- test/test_effective_ports.py | 1 + test/test_emulated_router.py | 1 + test/test_emulated_router_range.py | 1 + test/test_emulated_subnet_config.py | 1 + test/test_enc_p1_algorithm.py | 1 + test/test_enc_p2_algorithm.py | 1 + test/test_endpoint.py | 1 + test/test_entitlement_code_info.py | 1 + test/test_entitlement_code_request.py | 1 + test/test_enum.py | 1 + test/test_error_description.py | 1 + test/test_error_response.py | 1 + test/test_esp_over_udp_settings.py | 1 + test/test_eth_range.py | 1 + test/test_eula_details.py | 1 + test/test_eula_summary.py | 1 + test/test_exchange.py | 1 + test/test_exchange_order.py | 1 + test/test_exchange_payload.py | 1 + test/test_expected_disk_space.py | 1 + test/test_expected_disk_space_message.py | 1 + test/test_expected_disk_space_pretty_size.py | 1 + test/test_expected_disk_space_size.py | 1 + test/test_export_all_operation.py | 1 + test/test_export_apps_operation_input.py | 1 + test/test_export_files_operation_input.py | 1 + test/test_export_files_request.py | 1 + test/test_export_package_operation.py | 1 + test/test_external_resource_info.py | 1 + test/test_f5_encapsulation.py | 1 + test/test_f5_settings.py | 1 + test/test_feature.py | 1 + test/test_feature_reservation.py | 1 + test/test_feature_reservation_reserve.py | 1 + test/test_file_metadata.py | 1 + test/test_file_value.py | 1 + test/test_filter.py | 1 + test/test_filtered_stat.py | 1 + test/test_find_param_matches_operation.py | 1 + test/test_fortinet_encapsulation.py | 1 + test/test_fortinet_settings.py | 1 + test/test_fulfillment_request.py | 1 + test/test_generate_all_operation.py | 1 + test/test_generate_csv_reports_operation.py | 1 + test/test_generate_pdf_report_operation.py | 1 + test/test_generic_file.py | 1 + test/test_get_agents200_response.py | 1 + test/test_get_agents200_response_one_of.py | 1 + test/test_get_agents_tags200_response.py | 1 + ...test_get_agents_tags200_response_one_of.py | 1 + ..._get_async_operation_result200_response.py | 1 + test/test_get_attacks_operation.py | 1 + test/test_get_brokers200_response.py | 1 + test/test_get_brokers200_response_one_of.py | 1 + test/test_get_categories_operation.py | 1 + .../test_get_config_categories200_response.py | 1 + ...et_config_categories200_response_one_of.py | 1 + test/test_get_configs200_response.py | 1 + test/test_get_configs200_response_one_of.py | 1 + test/test_get_controllers200_response.py | 1 + ...test_get_controllers200_response_one_of.py | 1 + ...st_get_disk_usage_consumers200_response.py | 1 + ...disk_usage_consumers200_response_one_of.py | 1 + ...ense_async_operation_result200_response.py | 1 + test/test_get_license_servers200_response.py | 1 + ..._get_license_servers200_response_one_of.py | 1 + test/test_get_notifications200_response.py | 1 + ...st_get_notifications200_response_one_of.py | 1 + ...resources_application_types200_response.py | 55 +- ...es_application_types200_response_one_of.py | 55 +- test/test_get_resources_apps200_response.py | 75 +- ...t_get_resources_apps200_response_one_of.py | 75 +- .../test_get_resources_attacks200_response.py | 1 + ...et_resources_attacks200_response_one_of.py | 1 + ...get_resources_auth_profiles200_response.py | 24 +- ...ources_auth_profiles200_response_one_of.py | 24 +- ..._get_resources_certificates200_response.py | 1 + ...sources_certificates200_response_one_of.py | 1 + ...es_custom_import_operations200_response.py | 1 + ...om_import_operations200_response_one_of.py | 1 + ...get_resources_http_profiles200_response.py | 1 + ...ources_http_profiles200_response_one_of.py | 1 + test/test_get_result_files200_response.py | 1 + ...est_get_result_files200_response_one_of.py | 1 + test/test_get_result_stats200_response.py | 89 +- ...est_get_result_stats200_response_one_of.py | 89 +- test/test_get_results200_response.py | 1 + test/test_get_results200_response_one_of.py | 1 + test/test_get_results_tags200_response.py | 1 + ...est_get_results_tags200_response_one_of.py | 1 + test/test_get_session_meta200_response.py | 1 + ...est_get_session_meta200_response_one_of.py | 1 + test/test_get_sessions200_response.py | 1 + test/test_get_sessions200_response_one_of.py | 1 + test/test_get_stats_plugins200_response.py | 1 + ...st_get_stats_plugins200_response_one_of.py | 1 + test/test_get_strikes_operation.py | 1 + test/test_hash_p1_algorithm.py | 1 + test/test_hash_p2_algorithm.py | 1 + test/test_health_check_config.py | 1 + test/test_health_issue.py | 1 + test/test_host_id.py | 1 + test/test_http_profile.py | 1 + test/test_http_req_meta.py | 1 + test/test_http_res_meta.py | 1 + test/test_http_version.py | 1 + test/test_id_p_signature_algo.py | 1 + test/test_import_all_operation.py | 1 + test/test_import_offline_license_result.py | 1 + test/test_ingest_operation.py | 1 + test/test_inner_ip_range.py | 1 + test/test_interface.py | 1 + test/test_ip_mask.py | 1 + test/test_ip_network.py | 1 + test/test_ip_preference.py | 1 + test/test_ip_range.py | 1 + test/test_ip_sec_range.py | 1 + test/test_ip_sec_stack.py | 1 + test/test_ip_ver.py | 1 + test/test_license.py | 1 + test/test_license_receipt.py | 1 + test/test_license_server_metadata.py | 1 + test/test_license_servers_api.py | 2 +- test/test_licensing_api.py | 2 +- test/test_link.py | 1 + test/test_load_config_operation.py | 1 + test/test_local_subnet_config.py | 1 + test/test_log_config.py | 1 + test/test_log_level.py | 1 + test/test_mac_dtls_stack.py | 1 + test/test_mapping_type.py | 1 + test/test_marked_as_deleted.py | 1 + test/test_media_file.py | 1 + test/test_media_track.py | 1 + test/test_metadata.py | 3 + test/test_mos_mode.py | 1 + test/test_name_id_format.py | 1 + test/test_name_server.py | 1 + test/test_network_mapping.py | 1 + test/test_network_meshing.py | 1 + test/test_network_profile.py | 1 + test/test_network_segment_base.py | 1 + test/test_nodes_by_controller.py | 1 + test/test_nodes_power_cycle_operation.py | 1 + test/test_notification.py | 1 + test/test_notification_counts.py | 1 + test/test_notifications_api.py | 12 +- test/test_ntp_info.py | 1 + test/test_objective_type.py | 1 + test/test_objective_unit.py | 1 + test/test_objective_value_entry.py | 1 + test/test_objectives_and_timeline.py | 1 + test/test_open_api_definitions.py | 1 + test/test_p1_config.py | 1 + test/test_p2_config.py | 1 + test/test_pair.py | 1 + test/test_pangp_encapsulation.py | 1 + test/test_pangp_settings.py | 1 + test/test_param_metadata.py | 1 + test/test_param_metadata_type_info.py | 1 + .../test_param_metadata_type_info_array_v2.py | 1 + ...adata_type_info_array_v2_elements_inner.py | 1 + test/test_param_metadata_type_info_int.py | 1 + test/test_param_metadata_type_info_media.py | 1 + test/test_param_metadata_type_info_string.py | 1 + test/test_param_source_type.py | 1 + test/test_param_type.py | 1 + test/test_parameter.py | 89 +- test/test_parameter_match.py | 1 + test/test_parameter_metadata.py | 1 + test/test_params.py | 1 + test/test_params_enum.py | 1 + test/test_payload_meta.py | 1 + test/test_payload_metadata.py | 1 + test/test_pep_dut.py | 1 + test/test_pfs_p2_group.py | 1 + test/test_plugin.py | 1 + test/test_plugin_stats.py | 1 + test/test_port.py | 1 + test/test_port_settings.py | 1 + test/test_ports_by_controller.py | 1 + test/test_ports_by_node.py | 1 + test/test_prepare_test_operation.py | 1 + test/test_prepared_test_options.py | 1 + test/test_prf_p1_algorithm.py | 1 + test/test_protected_subnet_config.py | 1 + test/test_quic_profile.py | 214 + test/test_quic_version.py | 35 + test/test_reboot_operation_input.py | 1 + test/test_reboot_ports_operation.py | 1 + test/test_reference.py | 1 + test/test_regex_match.py | 1 + test/test_release_operation_input.py | 1 + test/test_remote_access.py | 1 + test/test_remote_subnet_config.py | 1 + test/test_rename_input.py | 1 + test/test_reorder_action_input.py | 1 + test/test_reorder_exchanges_input.py | 1 + test/test_replay_capture.py | 1 + test/test_reports_api.py | 12 +- test/test_required_file_types.py | 1 + test/test_reserve_operation_input.py | 1 + test/test_result_file_metadata.py | 1 + test/test_result_metadata.py | 1 + test/test_results_group.py | 1 + test/test_rtp_encryption_mode.py | 1 + test/test_rtp_profile.py | 1 + test/test_rtp_profile_meta.py | 1 + test/test_save_config_operation.py | 1 + test/test_scenario.py | 36 + test/test_secondary_objective.py | 1 + test/test_segment_type.py | 1 + test/test_selected_env.py | 1 + test/test_session.py | 1 + test/test_session_reuse_method_tls12.py | 1 + test/test_session_reuse_method_tls13.py | 1 + test/test_sessions_api.py | 47 +- test/test_set_aggregation_mode_operation.py | 1 + test/test_set_app_operation.py | 1 + test/test_set_dpdk_mode_operation_input.py | 1 + test/test_set_link_state_operation.py | 1 + test/test_set_ntp_operation_input.py | 1 + test/test_simulated_id_p.py | 1 + test/test_snapshot.py | 1 + test/test_sort_body_field.py | 1 + test/test_specific_objective.py | 1 + ...start_agents_batch_delete_request_inner.py | 1 + test/test_stateless_stream.py | 1 + test/test_static_arp_entry.py | 1 + test/test_statistics_api.py | 7 +- test/test_stats_result.py | 89 +- test/test_steady_segment.py | 1 + test/test_step_segment.py | 1 + test/test_stream_direction.py | 1 + test/test_stream_payload_type.py | 1 + test/test_stream_profile.py | 1 + test/test_supported_group_tls13.py | 1 + test/test_system_info.py | 1 + test/test_tcp_profile.py | 1 + test/test_test_info.py | 1 + test/test_test_operations_api.py | 27 +- test/test_test_results_api.py | 22 +- test/test_test_state_changed_operation.py | 1 + test/test_time_value.py | 1 + test/test_timeline_segment.py | 1 + test/test_timeline_segment_base.py | 1 + test/test_timeline_segment_union.py | 1 + test/test_timers.py | 1 + test/test_tls_profile.py | 1 + test/test_track.py | 1 + test/test_track_type.py | 1 + test/test_traffic_agent_info.py | 1 + test/test_traffic_profile_base.py | 2 + test/test_traffic_settings.py | 1 + test/test_transport_profile.py | 35 + test/test_transport_profile_base.py | 35 + test/test_tunnel_range.py | 1 + test/test_tunnel_settings.py | 1 + test/test_tunnel_stack.py | 1 + test/test_type_array_v2_metadata.py | 1 + test/test_type_info_metadata.py | 1 + test/test_type_int_metadata.py | 1 + test/test_type_media_metadata.py | 1 + test/test_type_string_metadata.py | 1 + test/test_udp_profile.py | 1 + test/test_update_network_mapping.py | 1 + test/test_utils_api.py | 37 +- test/test_validation_message.py | 1 + test/test_version.py | 1 + test/test_vlan_range.py | 1 + 452 files changed, 4933 insertions(+), 31652 deletions(-) create mode 100644 cyperf/models/quic_profile.py create mode 100644 cyperf/models/quic_version.py create mode 100644 docs/QUICProfile.md create mode 100644 docs/QUICVersion.md create mode 100644 test/test_quic_profile.py create mode 100644 test/test_quic_version.py diff --git a/README.md b/README.md index 87c4c80..00b16d6 100644 --- a/README.md +++ b/README.md @@ -87,20 +87,6 @@ Class | Method | HTTP request | Description *AgentsApi* | [**get_controller_compute_nodes**](docs/AgentsApi.md#get_controller_compute_nodes) | **GET** /api/v2/controllers/{controllerId}/compute-nodes | *AgentsApi* | [**get_controllers**](docs/AgentsApi.md#get_controllers) | **GET** /api/v2/controllers | *AgentsApi* | [**patch_agent**](docs/AgentsApi.md#patch_agent) | **PATCH** /api/v2/agents/{agentId} | -*AgentsApi* | [**poll_agents_batch_delete**](docs/AgentsApi.md#poll_agents_batch_delete) | **GET** /api/v2/agents/operations/batch-delete/{id} | -*AgentsApi* | [**poll_agents_export_files**](docs/AgentsApi.md#poll_agents_export_files) | **GET** /api/v2/agents/operations/exportFiles/{id} | -*AgentsApi* | [**poll_agents_reboot**](docs/AgentsApi.md#poll_agents_reboot) | **GET** /api/v2/agents/operations/reboot/{id} | -*AgentsApi* | [**poll_agents_release**](docs/AgentsApi.md#poll_agents_release) | **GET** /api/v2/agents/operations/release/{id} | -*AgentsApi* | [**poll_agents_reserve**](docs/AgentsApi.md#poll_agents_reserve) | **GET** /api/v2/agents/operations/reserve/{id} | -*AgentsApi* | [**poll_agents_set_dpdk_mode**](docs/AgentsApi.md#poll_agents_set_dpdk_mode) | **GET** /api/v2/agents/operations/set-dpdk-mode/{id} | -*AgentsApi* | [**poll_agents_set_ntp**](docs/AgentsApi.md#poll_agents_set_ntp) | **GET** /api/v2/agents/operations/set-ntp/{id} | -*AgentsApi* | [**poll_agents_update**](docs/AgentsApi.md#poll_agents_update) | **GET** /api/v2/agents/operations/update/{id} | -*AgentsApi* | [**poll_controllers_clear_port_ownership**](docs/AgentsApi.md#poll_controllers_clear_port_ownership) | **GET** /api/v2/controllers/operations/clear-port-ownership/{id} | -*AgentsApi* | [**poll_controllers_power_cycle_nodes**](docs/AgentsApi.md#poll_controllers_power_cycle_nodes) | **GET** /api/v2/controllers/operations/power-cycle-nodes/{id} | -*AgentsApi* | [**poll_controllers_reboot_port**](docs/AgentsApi.md#poll_controllers_reboot_port) | **GET** /api/v2/controllers/operations/reboot-port/{id} | -*AgentsApi* | [**poll_controllers_set_app**](docs/AgentsApi.md#poll_controllers_set_app) | **GET** /api/v2/controllers/operations/set-app/{id} | -*AgentsApi* | [**poll_controllers_set_node_aggregation**](docs/AgentsApi.md#poll_controllers_set_node_aggregation) | **GET** /api/v2/controllers/operations/set-node-aggregation/{id} | -*AgentsApi* | [**poll_controllers_set_port_link_state**](docs/AgentsApi.md#poll_controllers_set_port_link_state) | **GET** /api/v2/controllers/operations/set-port-link-state/{id} | *AgentsApi* | [**start_agents_batch_delete**](docs/AgentsApi.md#start_agents_batch_delete) | **POST** /api/v2/agents/operations/batch-delete | *AgentsApi* | [**start_agents_export_files**](docs/AgentsApi.md#start_agents_export_files) | **POST** /api/v2/agents/operations/exportFiles | *AgentsApi* | [**start_agents_reboot**](docs/AgentsApi.md#start_agents_reboot) | **POST** /api/v2/agents/operations/reboot | @@ -219,35 +205,6 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_tls_keys_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_user_defined_apps**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | *ApplicationResourcesApi* | [**get_resources_user_defined_apps_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | -*ApplicationResourcesApi* | [**poll_resources_apps_export_all**](docs/ApplicationResourcesApi.md#poll_resources_apps_export_all) | **GET** /api/v2/resources/apps/operations/export-all/{id} | -*ApplicationResourcesApi* | [**poll_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#poll_resources_captures_batch_delete) | **GET** /api/v2/resources/captures/operations/batch-delete/{id} | -*ApplicationResourcesApi* | [**poll_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_captures_upload_file) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_certificates_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_certificates_upload_file) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_config_export_user_defined_apps**](docs/ApplicationResourcesApi.md#poll_resources_config_export_user_defined_apps) | **GET** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id} | -*ApplicationResourcesApi* | [**poll_resources_create_app**](docs/ApplicationResourcesApi.md#poll_resources_create_app) | **GET** /api/v2/resources/operations/create-app/{id} | -*ApplicationResourcesApi* | [**poll_resources_custom_fuzzing_scripts_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_custom_fuzzing_scripts_upload_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_edit_app**](docs/ApplicationResourcesApi.md#poll_resources_edit_app) | **GET** /api/v2/resources/operations/edit-app/{id} | -*ApplicationResourcesApi* | [**poll_resources_find_param_matches**](docs/ApplicationResourcesApi.md#poll_resources_find_param_matches) | **GET** /api/v2/resources/operations/find-param-matches/{id} | -*ApplicationResourcesApi* | [**poll_resources_flow_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_flow_library_upload_file) | **GET** /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_get_attack_categories**](docs/ApplicationResourcesApi.md#poll_resources_get_attack_categories) | **GET** /api/v2/resources/operations/get-attack-categories/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_attacks**](docs/ApplicationResourcesApi.md#poll_resources_get_attacks) | **GET** /api/v2/resources/operations/get-attacks/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_strike_categories**](docs/ApplicationResourcesApi.md#poll_resources_get_strike_categories) | **GET** /api/v2/resources/operations/get-strike-categories/{id} | -*ApplicationResourcesApi* | [**poll_resources_get_strikes**](docs/ApplicationResourcesApi.md#poll_resources_get_strikes) | **GET** /api/v2/resources/operations/get-strikes/{id} | -*ApplicationResourcesApi* | [**poll_resources_global_playlists_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_global_playlists_upload_file) | **GET** /api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_http_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_http_library_upload_file) | **GET** /api/v2/resources/http-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_media_files_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_media_files_upload_file) | **GET** /api/v2/resources/media-files/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_media_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_media_library_upload_file) | **GET** /api/v2/resources/media-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_other_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_other_library_upload_file) | **GET** /api/v2/resources/other-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_payloads_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_payloads_upload_file) | **GET** /api/v2/resources/payloads/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_pcaps_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_pcaps_upload_file) | **GET** /api/v2/resources/pcaps/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_playlists_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_playlists_upload_file) | **GET** /api/v2/resources/playlists/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_sip_library_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_sip_library_upload_file) | **GET** /api/v2/resources/sip-library/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_stats_profile_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_stats_profile_upload_file) | **GET** /api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_certificates_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_certificates_upload_file) | **GET** /api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_dhs_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_dhs_upload_file) | **GET** /api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_tls_keys_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_tls_keys_upload_file) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId} | -*ApplicationResourcesApi* | [**poll_resources_user_defined_apps_export_all**](docs/ApplicationResourcesApi.md#poll_resources_user_defined_apps_export_all) | **GET** /api/v2/resources/user-defined-apps/operations/export-all/{id} | -*ApplicationResourcesApi* | [**poll_resources_user_defined_apps_upload_file**](docs/ApplicationResourcesApi.md#poll_resources_user_defined_apps_upload_file) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId} | *ApplicationResourcesApi* | [**start_resources_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | *ApplicationResourcesApi* | [**start_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | @@ -290,17 +247,11 @@ Class | Method | HTTP request | Description *ConfigurationsApi* | [**get_configs**](docs/ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | *ConfigurationsApi* | [**get_resources_custom_import_operations**](docs/ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | *ConfigurationsApi* | [**patch_config**](docs/ConfigurationsApi.md#patch_config) | **PATCH** /api/v2/configs/{configId} | -*ConfigurationsApi* | [**poll_configs_batch_delete**](docs/ConfigurationsApi.md#poll_configs_batch_delete) | **GET** /api/v2/configs/operations/batch-delete/{id} | -*ConfigurationsApi* | [**poll_configs_export_all**](docs/ConfigurationsApi.md#poll_configs_export_all) | **GET** /api/v2/configs/operations/exportAll/{id} | -*ConfigurationsApi* | [**poll_configs_import**](docs/ConfigurationsApi.md#poll_configs_import) | **GET** /api/v2/configs/operations/import/{id} | -*ConfigurationsApi* | [**poll_configs_import_all**](docs/ConfigurationsApi.md#poll_configs_import_all) | **GET** /api/v2/configs/operations/importAll/{id} | *ConfigurationsApi* | [**start_configs_batch_delete**](docs/ConfigurationsApi.md#start_configs_batch_delete) | **POST** /api/v2/configs/operations/batch-delete | *ConfigurationsApi* | [**start_configs_export_all**](docs/ConfigurationsApi.md#start_configs_export_all) | **POST** /api/v2/configs/operations/exportAll | *ConfigurationsApi* | [**start_configs_import**](docs/ConfigurationsApi.md#start_configs_import) | **POST** /api/v2/configs/operations/import | *ConfigurationsApi* | [**start_configs_import_all**](docs/ConfigurationsApi.md#start_configs_import_all) | **POST** /api/v2/configs/operations/importAll | *ConfigurationsApi* | [**update_config**](docs/ConfigurationsApi.md#update_config) | **PUT** /api/v2/configs/{configId} | -*DataMigrationApi* | [**poll_controller_migration_export**](docs/DataMigrationApi.md#poll_controller_migration_export) | **GET** /api/v2/controller-migration/operations/export/{id} | -*DataMigrationApi* | [**poll_controller_migration_import**](docs/DataMigrationApi.md#poll_controller_migration_import) | **GET** /api/v2/controller-migration/operations/import/{id} | *DataMigrationApi* | [**start_controller_migration_export**](docs/DataMigrationApi.md#start_controller_migration_export) | **POST** /api/v2/controller-migration/operations/export | *DataMigrationApi* | [**start_controller_migration_import**](docs/DataMigrationApi.md#start_controller_migration_import) | **POST** /api/v2/controller-migration/operations/import | *DiagnosticsApi* | [**api_v2_diagnostics_components_get**](docs/DiagnosticsApi.md#api_v2_diagnostics_components_get) | **GET** /api/v2/diagnostics/components | @@ -338,14 +289,10 @@ Class | Method | HTTP request | Description *NotificationsApi* | [**get_notification_by_id**](docs/NotificationsApi.md#get_notification_by_id) | **GET** /api/v2/notifications/{notificationId} | *NotificationsApi* | [**get_notification_counts**](docs/NotificationsApi.md#get_notification_counts) | **GET** /api/v2/notification-counts | *NotificationsApi* | [**get_notifications**](docs/NotificationsApi.md#get_notifications) | **GET** /api/v2/notifications | -*NotificationsApi* | [**poll_notifications_cleanup**](docs/NotificationsApi.md#poll_notifications_cleanup) | **GET** /api/v2/notifications/operations/cleanup/{id} | -*NotificationsApi* | [**poll_notifications_dismiss**](docs/NotificationsApi.md#poll_notifications_dismiss) | **GET** /api/v2/notifications/operations/dismiss/{id} | *NotificationsApi* | [**start_notifications_cleanup**](docs/NotificationsApi.md#start_notifications_cleanup) | **POST** /api/v2/notifications/operations/cleanup | *NotificationsApi* | [**start_notifications_dismiss**](docs/NotificationsApi.md#start_notifications_dismiss) | **POST** /api/v2/notifications/operations/dismiss | *ReportsApi* | [**download_pdf**](docs/ReportsApi.md#download_pdf) | **GET** /api/v2/results/{resultId}/download-pdf/{pdfId} | *ReportsApi* | [**get_result_download_csv_by_id**](docs/ReportsApi.md#get_result_download_csv_by_id) | **GET** /api/v2/results/{resultId}/download-csv/{downloadCsvId} | -*ReportsApi* | [**poll_result_generate_csv**](docs/ReportsApi.md#poll_result_generate_csv) | **GET** /api/v2/results/{resultId}/operations/generate-csv/{id} | -*ReportsApi* | [**poll_result_generate_pdf**](docs/ReportsApi.md#poll_result_generate_pdf) | **GET** /api/v2/results/{resultId}/operations/generate-pdf/{id} | *ReportsApi* | [**start_result_generate_csv**](docs/ReportsApi.md#start_result_generate_csv) | **POST** /api/v2/results/{resultId}/operations/generate-csv | *ReportsApi* | [**start_result_generate_pdf**](docs/ReportsApi.md#start_result_generate_pdf) | **POST** /api/v2/results/{resultId}/operations/generate-pdf | *SessionsApi* | [**create_session_meta**](docs/SessionsApi.md#create_session_meta) | **POST** /api/v2/sessions/{sessionId}/meta | @@ -364,15 +311,6 @@ Class | Method | HTTP request | Description *SessionsApi* | [**patch_session**](docs/SessionsApi.md#patch_session) | **PATCH** /api/v2/sessions/{sessionId} | *SessionsApi* | [**patch_session_meta**](docs/SessionsApi.md#patch_session_meta) | **PATCH** /api/v2/sessions/{sessionId}/meta/{metaId} | *SessionsApi* | [**patch_session_test**](docs/SessionsApi.md#patch_session_test) | **PATCH** /api/v2/sessions/{sessionId}/test | -*SessionsApi* | [**poll_config_add_applications**](docs/SessionsApi.md#poll_config_add_applications) | **GET** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id} | -*SessionsApi* | [**poll_session_config_granular_stats_default_dashboards**](docs/SessionsApi.md#poll_session_config_granular_stats_default_dashboards) | **GET** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} | -*SessionsApi* | [**poll_session_config_save**](docs/SessionsApi.md#poll_session_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | -*SessionsApi* | [**poll_session_load_config**](docs/SessionsApi.md#poll_session_load_config) | **GET** /api/v2/sessions/{sessionId}/operations/loadConfig/{id} | -*SessionsApi* | [**poll_session_prepare_test**](docs/SessionsApi.md#poll_session_prepare_test) | **GET** /api/v2/sessions/{sessionId}/operations/prepareTest/{id} | -*SessionsApi* | [**poll_session_test_end**](docs/SessionsApi.md#poll_session_test_end) | **GET** /api/v2/sessions/{sessionId}/operations/testEnd/{id} | -*SessionsApi* | [**poll_session_test_init**](docs/SessionsApi.md#poll_session_test_init) | **GET** /api/v2/sessions/{sessionId}/operations/testInit/{id} | -*SessionsApi* | [**poll_session_touch**](docs/SessionsApi.md#poll_session_touch) | **GET** /api/v2/sessions/{sessionId}/operations/touch/{id} | -*SessionsApi* | [**poll_sessions_batch_delete**](docs/SessionsApi.md#poll_sessions_batch_delete) | **GET** /api/v2/sessions/operations/batch-delete/{id} | *SessionsApi* | [**start_config_add_applications**](docs/SessionsApi.md#start_config_add_applications) | **POST** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications | *SessionsApi* | [**start_session_config_granular_stats_default_dashboards**](docs/SessionsApi.md#start_session_config_granular_stats_default_dashboards) | **POST** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards | *SessionsApi* | [**start_session_config_save**](docs/SessionsApi.md#start_session_config_save) | **POST** /api/v2/sessions/{sessionId}/config/operations/save | @@ -391,13 +329,7 @@ Class | Method | HTTP request | Description *StatisticsApi* | [**get_result_stat_by_id**](docs/StatisticsApi.md#get_result_stat_by_id) | **GET** /api/v2/results/{resultId}/stats/{statId} | *StatisticsApi* | [**get_result_stats**](docs/StatisticsApi.md#get_result_stats) | **GET** /api/v2/results/{resultId}/stats | *StatisticsApi* | [**get_stats_plugins**](docs/StatisticsApi.md#get_stats_plugins) | **GET** /api/v2/stats/plugins | -*StatisticsApi* | [**poll_stats_plugins_ingest**](docs/StatisticsApi.md#poll_stats_plugins_ingest) | **GET** /api/v2/stats/plugins/operations/ingest/{id} | *StatisticsApi* | [**start_stats_plugins_ingest**](docs/StatisticsApi.md#start_stats_plugins_ingest) | **POST** /api/v2/stats/plugins/operations/ingest | -*TestOperationsApi* | [**poll_test_calibrate_start**](docs/TestOperationsApi.md#poll_test_calibrate_start) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id} | -*TestOperationsApi* | [**poll_test_calibrate_stop**](docs/TestOperationsApi.md#poll_test_calibrate_stop) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id} | -*TestOperationsApi* | [**poll_test_run_abort**](docs/TestOperationsApi.md#poll_test_run_abort) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/abort/{id} | -*TestOperationsApi* | [**poll_test_run_start**](docs/TestOperationsApi.md#poll_test_run_start) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/start/{id} | -*TestOperationsApi* | [**poll_test_run_stop**](docs/TestOperationsApi.md#poll_test_run_stop) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/stop/{id} | *TestOperationsApi* | [**start_test_calibrate_start**](docs/TestOperationsApi.md#start_test_calibrate_start) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/start | *TestOperationsApi* | [**start_test_calibrate_stop**](docs/TestOperationsApi.md#start_test_calibrate_stop) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop | *TestOperationsApi* | [**start_test_run_abort**](docs/TestOperationsApi.md#start_test_run_abort) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/abort | @@ -413,10 +345,6 @@ Class | Method | HTTP request | Description *TestResultsApi* | [**get_result_files**](docs/TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | *TestResultsApi* | [**get_results**](docs/TestResultsApi.md#get_results) | **GET** /api/v2/results | *TestResultsApi* | [**get_results_tags**](docs/TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | -*TestResultsApi* | [**poll_result_generate_all**](docs/TestResultsApi.md#poll_result_generate_all) | **GET** /api/v2/results/{resultId}/operations/generate-all/{id} | -*TestResultsApi* | [**poll_result_generate_results**](docs/TestResultsApi.md#poll_result_generate_results) | **GET** /api/v2/results/{resultId}/operations/generate-results/{id} | -*TestResultsApi* | [**poll_result_load**](docs/TestResultsApi.md#poll_result_load) | **GET** /api/v2/results/{resultId}/operations/load/{id} | -*TestResultsApi* | [**poll_results_batch_delete**](docs/TestResultsApi.md#poll_results_batch_delete) | **GET** /api/v2/results/operations/batch-delete/{id} | *TestResultsApi* | [**start_result_generate_all**](docs/TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | *TestResultsApi* | [**start_result_generate_results**](docs/TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | *TestResultsApi* | [**start_result_load**](docs/TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -433,13 +361,6 @@ Class | Method | HTTP request | Description *UtilsApi* | [**get_log_config**](docs/UtilsApi.md#get_log_config) | **GET** /api/v2/log-config | *UtilsApi* | [**get_time**](docs/UtilsApi.md#get_time) | **GET** /api/v2/time | *UtilsApi* | [**list_eulas**](docs/UtilsApi.md#list_eulas) | **GET** /eula/v1/eula | list of EULAs -*UtilsApi* | [**poll_cert_manager_generate**](docs/UtilsApi.md#poll_cert_manager_generate) | **GET** /api/v2/cert-manager/operations/generate/{id} | -*UtilsApi* | [**poll_cert_manager_upload**](docs/UtilsApi.md#poll_cert_manager_upload) | **GET** /api/v2/cert-manager/operations/upload/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_diagnostics**](docs/UtilsApi.md#poll_disk_usage_cleanup_diagnostics) | **GET** /api/v2/disk-usage/operations/cleanup-diagnostics/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_logs**](docs/UtilsApi.md#poll_disk_usage_cleanup_logs) | **GET** /api/v2/disk-usage/operations/cleanup-logs/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_migration**](docs/UtilsApi.md#poll_disk_usage_cleanup_migration) | **GET** /api/v2/disk-usage/operations/cleanup-migration/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_notifications**](docs/UtilsApi.md#poll_disk_usage_cleanup_notifications) | **GET** /api/v2/disk-usage/operations/cleanup-notifications/{id} | -*UtilsApi* | [**poll_disk_usage_cleanup_results**](docs/UtilsApi.md#poll_disk_usage_cleanup_results) | **GET** /api/v2/disk-usage/operations/cleanup-results/{id} | *UtilsApi* | [**post_eula**](docs/UtilsApi.md#post_eula) | **POST** /eula/v1/eula/CyPerf | Update properties an EULA *UtilsApi* | [**start_cert_manager_generate**](docs/UtilsApi.md#start_cert_manager_generate) | **POST** /api/v2/cert-manager/operations/generate | *UtilsApi* | [**start_cert_manager_upload**](docs/UtilsApi.md#start_cert_manager_upload) | **POST** /api/v2/cert-manager/operations/upload | @@ -744,6 +665,8 @@ Class | Method | HTTP request | Description - [PreparedTestOptions](docs/PreparedTestOptions.md) - [PrfP1Algorithm](docs/PrfP1Algorithm.md) - [ProtectedSubnetConfig](docs/ProtectedSubnetConfig.md) + - [QUICProfile](docs/QUICProfile.md) + - [QUICVersion](docs/QUICVersion.md) - [RTPEncryptionMode](docs/RTPEncryptionMode.md) - [RTPProfile](docs/RTPProfile.md) - [RTPProfileMeta](docs/RTPProfileMeta.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index ee40fe3..94c7838 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -343,6 +343,8 @@ from cyperf.models.prepared_test_options import PreparedTestOptions from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from cyperf.models.protected_subnet_config import ProtectedSubnetConfig +from cyperf.models.quic_profile import QUICProfile +from cyperf.models.quic_version import QUICVersion from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from cyperf.models.rtp_profile import RTPProfile from cyperf.models.rtp_profile_meta import RTPProfileMeta diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 16f97c8..b5c3097 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -124,7 +124,7 @@ def delete_agent( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_agent_with_http_info( @@ -189,7 +189,7 @@ def delete_agent_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_agent_without_preload_content( @@ -254,7 +254,7 @@ def delete_agent_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_agent_serialize( self, @@ -382,7 +382,7 @@ def get_agent_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agent_by_id_with_http_info( @@ -447,7 +447,7 @@ def get_agent_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agent_by_id_without_preload_content( @@ -512,7 +512,7 @@ def get_agent_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agent_by_id_serialize( self, @@ -663,7 +663,7 @@ def get_agents( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_with_http_info( @@ -751,7 +751,7 @@ def get_agents_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_without_preload_content( @@ -839,7 +839,7 @@ def get_agents_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agents_serialize( self, @@ -1002,7 +1002,7 @@ def get_agents_tags( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_tags_with_http_info( @@ -1070,7 +1070,7 @@ def get_agents_tags_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_agents_tags_without_preload_content( @@ -1138,7 +1138,7 @@ def get_agents_tags_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_agents_tags_serialize( self, @@ -1280,7 +1280,7 @@ def get_compute_node_port_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_port_by_id_with_http_info( @@ -1352,7 +1352,7 @@ def get_compute_node_port_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_port_by_id_without_preload_content( @@ -1424,7 +1424,7 @@ def get_compute_node_port_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_compute_node_port_by_id_serialize( self, @@ -1568,7 +1568,7 @@ def get_compute_node_ports( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_ports_with_http_info( @@ -1643,7 +1643,7 @@ def get_compute_node_ports_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_compute_node_ports_without_preload_content( @@ -1718,7 +1718,7 @@ def get_compute_node_ports_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_compute_node_ports_serialize( self, @@ -1858,7 +1858,7 @@ def get_controller_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_by_id_with_http_info( @@ -1922,7 +1922,7 @@ def get_controller_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_by_id_without_preload_content( @@ -1986,7 +1986,7 @@ def get_controller_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_by_id_serialize( self, @@ -2117,7 +2117,7 @@ def get_controller_compute_node_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_node_by_id_with_http_info( @@ -2185,7 +2185,7 @@ def get_controller_compute_node_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_node_by_id_without_preload_content( @@ -2253,7 +2253,7 @@ def get_controller_compute_node_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_compute_node_by_id_serialize( self, @@ -2390,7 +2390,7 @@ def get_controller_compute_nodes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_nodes_with_http_info( @@ -2461,7 +2461,7 @@ def get_controller_compute_nodes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controller_compute_nodes_without_preload_content( @@ -2532,7 +2532,7 @@ def get_controller_compute_nodes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_controller_compute_nodes_serialize( self, @@ -2673,7 +2673,7 @@ def get_controllers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_controllers_with_http_info( @@ -2692,3628 +2692,15 @@ def get_controllers_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetControllers200Response]: - """get_controllers - - Get the controllers chain. - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_controllers_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetControllers200Response", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def get_controllers_without_preload_content( - self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """get_controllers - - Get the controllers chain. - - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_controllers_serialize( - take=take, - skip=skip, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetControllers200Response", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _get_controllers_serialize( - self, - take, - skip, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def patch_agent( - self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """patch_agent - - Update a particular agent. Only non-null fields are updated. - - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def patch_agent_with_http_info( - self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """patch_agent - - Update a particular agent. Only non-null fields are updated. - - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def patch_agent_without_preload_content( - self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """patch_agent - - Update a particular agent. Only non-null fields are updated. - - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _patch_agent_serialize( - self, - agent_id, - agent, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if agent_id is not None: - _path_params['agentId'] = agent_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if agent is not None: - _body_params = agent - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/api/v2/agents/{agentId}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_batch_delete( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_batch_delete_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_batch_delete_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_batch_delete_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/batch-delete/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_export_files( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_export_files - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_export_files_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_export_files_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_export_files - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_export_files_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_export_files_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_export_files - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_export_files_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_export_files_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/exportFiles/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_reboot( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_reboot - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reboot_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_reboot_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_reboot - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reboot_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_reboot_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_reboot - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reboot_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_reboot_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/reboot/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_release( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_release - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_release_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_release_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_release - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_release_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_release_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_release - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_release_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_release_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/release/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_reserve( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_reserve - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reserve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_reserve_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_reserve - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reserve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_reserve_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_reserve - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_reserve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_reserve_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/reserve/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_set_dpdk_mode( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_set_dpdk_mode - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_set_dpdk_mode_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_set_dpdk_mode - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_set_dpdk_mode_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_set_dpdk_mode - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_dpdk_mode_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_set_dpdk_mode_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/set-dpdk-mode/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_set_ntp( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_set_ntp - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_ntp_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_set_ntp_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_set_ntp - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_ntp_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_set_ntp_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_set_ntp - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_set_ntp_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_set_ntp_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/set-ntp/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_agents_update( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_agents_update - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_update_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_update_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_agents_update - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_update_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_agents_update_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_agents_update - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_agents_update_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_agents_update_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/agents/operations/update/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_clear_port_ownership( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_clear_port_ownership_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_clear_port_ownership_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_clear_port_ownership - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_clear_port_ownership_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_clear_port_ownership_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/clear-port-ownership/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_power_cycle_nodes( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_power_cycle_nodes_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_power_cycle_nodes_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_power_cycle_nodes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_power_cycle_nodes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_power_cycle_nodes_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/power-cycle-nodes/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_reboot_port( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_reboot_port_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_reboot_port_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_reboot_port - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_reboot_port_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_reboot_port_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/reboot-port/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_set_app( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_app_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_app_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controllers_set_app - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_app_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controllers_set_app_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/set-app/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_controllers_set_node_aggregation( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_node_aggregation - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controllers_set_node_aggregation_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_node_aggregation + ) -> ApiResponse[GetControllers200Response]: + """get_controllers - Get the state of an ongoing operation. + Get the controllers chain. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6336,8 +2723,9 @@ def poll_controllers_set_node_aggregation_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, + _param = self._get_controllers_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6345,20 +2733,21 @@ def poll_controllers_set_node_aggregation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetControllers200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_controllers_set_node_aggregation_without_preload_content( + def get_controllers_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6372,12 +2761,14 @@ def poll_controllers_set_node_aggregation_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_controllers_set_node_aggregation + """get_controllers - Get the state of an ongoing operation. + Get the controllers chain. - :param id: The ID of the async operation. (required) - :type id: int + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6400,8 +2791,9 @@ def poll_controllers_set_node_aggregation_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_node_aggregation_serialize( - id=id, + _param = self._get_controllers_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6409,19 +2801,20 @@ def poll_controllers_set_node_aggregation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "GetControllers200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_controllers_set_node_aggregation_serialize( + def _get_controllers_serialize( self, - id, + take, + skip, _request_auth, _content_type, _headers, @@ -6441,9 +2834,15 @@ def _poll_controllers_set_node_aggregation_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -6466,7 +2865,7 @@ def _poll_controllers_set_node_aggregation_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/controllers/operations/set-node-aggregation/{id}', + resource_path='/api/v2/controllers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6483,9 +2882,10 @@ def _poll_controllers_set_node_aggregation_serialize( @validate_call - def poll_controllers_set_port_link_state( + def patch_agent( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6498,13 +2898,15 @@ def poll_controllers_set_port_link_state( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controllers_set_port_link_state + ) -> None: + """patch_agent - Get the state of an ongoing operation. + Update a particular agent. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6527,8 +2929,9 @@ def poll_controllers_set_port_link_state( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6536,20 +2939,22 @@ def poll_controllers_set_port_link_state( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_controllers_set_port_link_state_with_http_info( + def patch_agent_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6562,13 +2967,15 @@ def poll_controllers_set_port_link_state_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controllers_set_port_link_state + ) -> ApiResponse[None]: + """patch_agent - Get the state of an ongoing operation. + Update a particular agent. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6591,8 +2998,9 @@ def poll_controllers_set_port_link_state_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6600,20 +3008,22 @@ def poll_controllers_set_port_link_state_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_controllers_set_port_link_state_without_preload_content( + def patch_agent_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6627,12 +3037,14 @@ def poll_controllers_set_port_link_state_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_controllers_set_port_link_state + """patch_agent - Get the state of an ongoing operation. + Update a particular agent. Only non-null fields are updated. - :param id: The ID of the async operation. (required) - :type id: int + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6655,8 +3067,9 @@ def poll_controllers_set_port_link_state_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_controllers_set_port_link_state_serialize( - id=id, + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6664,19 +3077,21 @@ def poll_controllers_set_port_link_state_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_controllers_set_port_link_state_serialize( + def _patch_agent_serialize( self, - id, + agent_id, + agent, _request_auth, _content_type, _headers, @@ -6696,12 +3111,14 @@ def _poll_controllers_set_port_link_state_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if agent_id is not None: + _path_params['agentId'] = agent_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if agent is not None: + _body_params = agent # set the HTTP header `Accept` @@ -6712,6 +3129,19 @@ def _poll_controllers_set_port_link_state_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6720,8 +3150,8 @@ def _poll_controllers_set_port_link_state_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controllers/operations/set-port-link-state/{id}', + method='PATCH', + resource_path='/api/v2/agents/{agentId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6737,6 +3167,146 @@ def _poll_controllers_set_port_link_state_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call def start_agents_batch_delete( self, @@ -6798,7 +3368,7 @@ def start_agents_batch_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_batch_delete_with_http_info( @@ -6861,7 +3431,7 @@ def start_agents_batch_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_batch_delete_without_preload_content( @@ -6924,7 +3494,7 @@ def start_agents_batch_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_batch_delete_serialize( self, @@ -7064,7 +3634,7 @@ def start_agents_export_files( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_export_files_with_http_info( @@ -7127,7 +3697,7 @@ def start_agents_export_files_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_export_files_without_preload_content( @@ -7190,7 +3760,7 @@ def start_agents_export_files_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_export_files_serialize( self, @@ -7329,7 +3899,7 @@ def start_agents_reboot( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_reboot_with_http_info( @@ -7392,7 +3962,7 @@ def start_agents_reboot_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_reboot_without_preload_content( @@ -7455,7 +4025,7 @@ def start_agents_reboot_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_reboot_serialize( self, @@ -7594,7 +4164,7 @@ def start_agents_release( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_release_with_http_info( @@ -7657,7 +4227,7 @@ def start_agents_release_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_release_without_preload_content( @@ -7720,7 +4290,7 @@ def start_agents_release_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_release_serialize( self, @@ -7859,7 +4429,7 @@ def start_agents_reserve( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_reserve_with_http_info( @@ -7922,7 +4492,7 @@ def start_agents_reserve_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_reserve_without_preload_content( @@ -7985,7 +4555,7 @@ def start_agents_reserve_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_reserve_serialize( self, @@ -8124,7 +4694,7 @@ def start_agents_set_dpdk_mode( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_set_dpdk_mode_with_http_info( @@ -8187,7 +4757,7 @@ def start_agents_set_dpdk_mode_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_set_dpdk_mode_without_preload_content( @@ -8250,7 +4820,7 @@ def start_agents_set_dpdk_mode_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_set_dpdk_mode_serialize( self, @@ -8389,7 +4959,7 @@ def start_agents_set_ntp( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_set_ntp_with_http_info( @@ -8452,7 +5022,7 @@ def start_agents_set_ntp_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_set_ntp_without_preload_content( @@ -8515,7 +5085,7 @@ def start_agents_set_ntp_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_set_ntp_serialize( self, @@ -8650,7 +5220,7 @@ def start_agents_update( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_update_with_http_info( @@ -8709,7 +5279,7 @@ def start_agents_update_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_agents_update_without_preload_content( @@ -8768,7 +5338,7 @@ def start_agents_update_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_agents_update_serialize( self, @@ -8891,7 +5461,7 @@ def start_controllers_clear_port_ownership( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_clear_port_ownership_with_http_info( @@ -8954,7 +5524,7 @@ def start_controllers_clear_port_ownership_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_clear_port_ownership_without_preload_content( @@ -9017,7 +5587,7 @@ def start_controllers_clear_port_ownership_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_clear_port_ownership_serialize( self, @@ -9156,7 +5726,7 @@ def start_controllers_power_cycle_nodes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_power_cycle_nodes_with_http_info( @@ -9219,7 +5789,7 @@ def start_controllers_power_cycle_nodes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_power_cycle_nodes_without_preload_content( @@ -9282,7 +5852,7 @@ def start_controllers_power_cycle_nodes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_power_cycle_nodes_serialize( self, @@ -9421,7 +5991,7 @@ def start_controllers_reboot_port( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_reboot_port_with_http_info( @@ -9484,7 +6054,7 @@ def start_controllers_reboot_port_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_reboot_port_without_preload_content( @@ -9547,7 +6117,7 @@ def start_controllers_reboot_port_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_reboot_port_serialize( self, @@ -9686,7 +6256,7 @@ def start_controllers_set_app( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_app_with_http_info( @@ -9749,7 +6319,7 @@ def start_controllers_set_app_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_app_without_preload_content( @@ -9812,7 +6382,7 @@ def start_controllers_set_app_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_set_app_serialize( self, @@ -9951,7 +6521,7 @@ def start_controllers_set_node_aggregation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_node_aggregation_with_http_info( @@ -10014,7 +6584,7 @@ def start_controllers_set_node_aggregation_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_node_aggregation_without_preload_content( @@ -10077,7 +6647,7 @@ def start_controllers_set_node_aggregation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_set_node_aggregation_serialize( self, @@ -10216,7 +6786,7 @@ def start_controllers_set_port_link_state( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_port_link_state_with_http_info( @@ -10279,7 +6849,7 @@ def start_controllers_set_port_link_state_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controllers_set_port_link_state_without_preload_content( @@ -10342,7 +6912,7 @@ def start_controllers_set_port_link_state_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controllers_set_port_link_state_serialize( self, diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index b415caa..da3c6ef 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -125,7 +125,7 @@ def delete_resources_capture( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_capture_with_http_info( @@ -188,7 +188,7 @@ def delete_resources_capture_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_capture_without_preload_content( @@ -251,7 +251,7 @@ def delete_resources_capture_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_capture_serialize( self, @@ -379,7 +379,7 @@ def delete_resources_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_certificate_with_http_info( @@ -444,7 +444,7 @@ def delete_resources_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_certificate_without_preload_content( @@ -509,7 +509,7 @@ def delete_resources_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_certificate_serialize( self, @@ -637,7 +637,7 @@ def delete_resources_custom_fuzzing_script( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_custom_fuzzing_script_with_http_info( @@ -702,7 +702,7 @@ def delete_resources_custom_fuzzing_script_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_custom_fuzzing_script_without_preload_content( @@ -767,7 +767,7 @@ def delete_resources_custom_fuzzing_script_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_custom_fuzzing_script_serialize( self, @@ -895,7 +895,7 @@ def delete_resources_flow_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_flow_library_with_http_info( @@ -960,7 +960,7 @@ def delete_resources_flow_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_flow_library_without_preload_content( @@ -1025,7 +1025,7 @@ def delete_resources_flow_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_flow_library_serialize( self, @@ -1153,7 +1153,7 @@ def delete_resources_global_playlist( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_global_playlist_with_http_info( @@ -1218,7 +1218,7 @@ def delete_resources_global_playlist_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_global_playlist_without_preload_content( @@ -1283,7 +1283,7 @@ def delete_resources_global_playlist_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_global_playlist_serialize( self, @@ -1411,7 +1411,7 @@ def delete_resources_http_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_http_library_with_http_info( @@ -1476,7 +1476,7 @@ def delete_resources_http_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_http_library_without_preload_content( @@ -1541,7 +1541,7 @@ def delete_resources_http_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_http_library_serialize( self, @@ -1669,7 +1669,7 @@ def delete_resources_media_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_file_with_http_info( @@ -1734,7 +1734,7 @@ def delete_resources_media_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_file_without_preload_content( @@ -1799,7 +1799,7 @@ def delete_resources_media_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_media_file_serialize( self, @@ -1927,7 +1927,7 @@ def delete_resources_media_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_library_with_http_info( @@ -1992,7 +1992,7 @@ def delete_resources_media_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_media_library_without_preload_content( @@ -2057,7 +2057,7 @@ def delete_resources_media_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_media_library_serialize( self, @@ -2185,7 +2185,7 @@ def delete_resources_other_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_other_library_with_http_info( @@ -2250,7 +2250,7 @@ def delete_resources_other_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_other_library_without_preload_content( @@ -2315,7 +2315,7 @@ def delete_resources_other_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_other_library_serialize( self, @@ -2443,7 +2443,7 @@ def delete_resources_payload( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_payload_with_http_info( @@ -2508,7 +2508,7 @@ def delete_resources_payload_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_payload_without_preload_content( @@ -2573,7 +2573,7 @@ def delete_resources_payload_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_payload_serialize( self, @@ -2701,7 +2701,7 @@ def delete_resources_pcap( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_pcap_with_http_info( @@ -2766,7 +2766,7 @@ def delete_resources_pcap_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_pcap_without_preload_content( @@ -2831,7 +2831,7 @@ def delete_resources_pcap_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_pcap_serialize( self, @@ -2959,7 +2959,7 @@ def delete_resources_playlist( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_playlist_with_http_info( @@ -3024,7 +3024,7 @@ def delete_resources_playlist_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_playlist_without_preload_content( @@ -3089,7 +3089,7 @@ def delete_resources_playlist_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_playlist_serialize( self, @@ -3217,7 +3217,7 @@ def delete_resources_sip_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_sip_library_with_http_info( @@ -3282,7 +3282,7 @@ def delete_resources_sip_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_sip_library_without_preload_content( @@ -3347,7 +3347,7 @@ def delete_resources_sip_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_sip_library_serialize( self, @@ -3475,7 +3475,7 @@ def delete_resources_stats_profile( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_stats_profile_with_http_info( @@ -3540,7 +3540,7 @@ def delete_resources_stats_profile_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_stats_profile_without_preload_content( @@ -3605,7 +3605,7 @@ def delete_resources_stats_profile_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_stats_profile_serialize( self, @@ -3733,7 +3733,7 @@ def delete_resources_tls_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_certificate_with_http_info( @@ -3798,7 +3798,7 @@ def delete_resources_tls_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_certificate_without_preload_content( @@ -3863,7 +3863,7 @@ def delete_resources_tls_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_certificate_serialize( self, @@ -3991,7 +3991,7 @@ def delete_resources_tls_dh( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_dh_with_http_info( @@ -4056,7 +4056,7 @@ def delete_resources_tls_dh_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_dh_without_preload_content( @@ -4121,7 +4121,7 @@ def delete_resources_tls_dh_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_dh_serialize( self, @@ -4249,7 +4249,7 @@ def delete_resources_tls_key( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_key_with_http_info( @@ -4314,7 +4314,7 @@ def delete_resources_tls_key_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_tls_key_without_preload_content( @@ -4379,7 +4379,7 @@ def delete_resources_tls_key_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_tls_key_serialize( self, @@ -4509,7 +4509,7 @@ def delete_resources_user_defined_app( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_user_defined_app_with_http_info( @@ -4576,7 +4576,7 @@ def delete_resources_user_defined_app_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_resources_user_defined_app_without_preload_content( @@ -4643,7 +4643,7 @@ def delete_resources_user_defined_app_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_resources_user_defined_app_serialize( self, @@ -4777,7 +4777,7 @@ def get_capture_flows( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_capture_flows_with_http_info( @@ -4848,7 +4848,7 @@ def get_capture_flows_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_capture_flows_without_preload_content( @@ -4919,7 +4919,7 @@ def get_capture_flows_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_capture_flows_serialize( self, @@ -5067,7 +5067,7 @@ def get_flow_exchanges( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_flow_exchanges_with_http_info( @@ -5142,7 +5142,7 @@ def get_flow_exchanges_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_flow_exchanges_without_preload_content( @@ -5217,7 +5217,7 @@ def get_flow_exchanges_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_flow_exchanges_serialize( self, @@ -5359,7 +5359,7 @@ def get_resources_app_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_app_by_id_with_http_info( @@ -5425,7 +5425,7 @@ def get_resources_app_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_app_by_id_without_preload_content( @@ -5491,7 +5491,7 @@ def get_resources_app_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_app_by_id_serialize( self, @@ -5618,7 +5618,7 @@ def get_resources_application_type_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_application_type_by_id_with_http_info( @@ -5682,7 +5682,7 @@ def get_resources_application_type_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_application_type_by_id_without_preload_content( @@ -5746,7 +5746,7 @@ def get_resources_application_type_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_application_type_by_id_serialize( self, @@ -5877,7 +5877,7 @@ def get_resources_application_types( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_application_types_with_http_info( @@ -5945,7 +5945,7 @@ def get_resources_application_types_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_application_types_without_preload_content( @@ -6013,7 +6013,7 @@ def get_resources_application_types_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_application_types_serialize( self, @@ -6168,7 +6168,7 @@ def get_resources_apps( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_apps_with_http_info( @@ -6253,7 +6253,7 @@ def get_resources_apps_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_apps_without_preload_content( @@ -6338,7 +6338,7 @@ def get_resources_apps_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_apps_serialize( self, @@ -6494,7 +6494,7 @@ def get_resources_attack_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attack_by_id_with_http_info( @@ -6560,7 +6560,7 @@ def get_resources_attack_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attack_by_id_without_preload_content( @@ -6626,7 +6626,7 @@ def get_resources_attack_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_attack_by_id_serialize( self, @@ -6756,7 +6756,7 @@ def get_resources_attack_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attack_categories_with_http_info( @@ -6823,7 +6823,7 @@ def get_resources_attack_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attack_categories_without_preload_content( @@ -6890,7 +6890,7 @@ def get_resources_attack_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_attack_categories_serialize( self, @@ -7050,7 +7050,7 @@ def get_resources_attacks( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attacks_with_http_info( @@ -7140,7 +7140,7 @@ def get_resources_attacks_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_attacks_without_preload_content( @@ -7230,7 +7230,7 @@ def get_resources_attacks_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_attacks_serialize( self, @@ -7390,7 +7390,7 @@ def get_resources_auth_profile_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_auth_profile_by_id_with_http_info( @@ -7455,7 +7455,7 @@ def get_resources_auth_profile_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_auth_profile_by_id_without_preload_content( @@ -7520,7 +7520,7 @@ def get_resources_auth_profile_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_auth_profile_by_id_serialize( self, @@ -7651,7 +7651,7 @@ def get_resources_auth_profiles( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_auth_profiles_with_http_info( @@ -7719,7 +7719,7 @@ def get_resources_auth_profiles_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_auth_profiles_without_preload_content( @@ -7787,7 +7787,7 @@ def get_resources_auth_profiles_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_auth_profiles_serialize( self, @@ -7923,7 +7923,7 @@ def get_resources_capture_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_capture_by_id_with_http_info( @@ -7989,7 +7989,7 @@ def get_resources_capture_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_capture_by_id_without_preload_content( @@ -8055,7 +8055,7 @@ def get_resources_capture_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_capture_by_id_serialize( self, @@ -8185,7 +8185,7 @@ def get_resources_captures( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_captures_with_http_info( @@ -8252,7 +8252,7 @@ def get_resources_captures_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_captures_without_preload_content( @@ -8319,7 +8319,7 @@ def get_resources_captures_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_captures_serialize( self, @@ -8454,7 +8454,7 @@ def get_resources_captures_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_captures_upload_file_result_with_http_info( @@ -8519,7 +8519,7 @@ def get_resources_captures_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_captures_upload_file_result_without_preload_content( @@ -8584,7 +8584,7 @@ def get_resources_captures_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_captures_upload_file_result_serialize( self, @@ -8713,7 +8713,7 @@ def get_resources_certificate_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificate_by_id_with_http_info( @@ -8779,7 +8779,7 @@ def get_resources_certificate_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificate_by_id_without_preload_content( @@ -8845,7 +8845,7 @@ def get_resources_certificate_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_certificate_by_id_serialize( self, @@ -8972,7 +8972,7 @@ def get_resources_certificate_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificate_content_file_with_http_info( @@ -9036,7 +9036,7 @@ def get_resources_certificate_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificate_content_file_without_preload_content( @@ -9100,7 +9100,7 @@ def get_resources_certificate_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_certificate_content_file_serialize( self, @@ -9233,7 +9233,7 @@ def get_resources_certificates( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificates_with_http_info( @@ -9302,7 +9302,7 @@ def get_resources_certificates_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificates_without_preload_content( @@ -9371,7 +9371,7 @@ def get_resources_certificates_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_certificates_serialize( self, @@ -9506,7 +9506,7 @@ def get_resources_certificates_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificates_upload_file_result_with_http_info( @@ -9571,7 +9571,7 @@ def get_resources_certificates_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_certificates_upload_file_result_without_preload_content( @@ -9636,7 +9636,7 @@ def get_resources_certificates_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_certificates_upload_file_result_serialize( self, @@ -9765,7 +9765,7 @@ def get_resources_custom_fuzzing_script_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_script_by_id_with_http_info( @@ -9831,7 +9831,7 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_script_by_id_without_preload_content( @@ -9897,7 +9897,7 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_fuzzing_script_by_id_serialize( self, @@ -10024,7 +10024,7 @@ def get_resources_custom_fuzzing_script_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_script_content_file_with_http_info( @@ -10088,7 +10088,7 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_script_content_file_without_preload_content( @@ -10152,7 +10152,7 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_fuzzing_script_content_file_serialize( self, @@ -10285,7 +10285,7 @@ def get_resources_custom_fuzzing_scripts( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_scripts_with_http_info( @@ -10354,7 +10354,7 @@ def get_resources_custom_fuzzing_scripts_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_scripts_without_preload_content( @@ -10423,7 +10423,7 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_fuzzing_scripts_serialize( self, @@ -10558,7 +10558,7 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( @@ -10623,7 +10623,7 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_content( @@ -10688,7 +10688,7 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( self, @@ -10820,7 +10820,7 @@ def get_resources_flow_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_with_http_info( @@ -10889,7 +10889,7 @@ def get_resources_flow_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_without_preload_content( @@ -10958,7 +10958,7 @@ def get_resources_flow_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_flow_library_serialize( self, @@ -11094,7 +11094,7 @@ def get_resources_flow_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_by_id_with_http_info( @@ -11160,7 +11160,7 @@ def get_resources_flow_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_by_id_without_preload_content( @@ -11226,7 +11226,7 @@ def get_resources_flow_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_flow_library_by_id_serialize( self, @@ -11353,7 +11353,7 @@ def get_resources_flow_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_content_file_with_http_info( @@ -11417,7 +11417,7 @@ def get_resources_flow_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_content_file_without_preload_content( @@ -11481,7 +11481,7 @@ def get_resources_flow_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_flow_library_content_file_serialize( self, @@ -11610,7 +11610,7 @@ def get_resources_flow_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_upload_file_result_with_http_info( @@ -11675,7 +11675,7 @@ def get_resources_flow_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_flow_library_upload_file_result_without_preload_content( @@ -11740,7 +11740,7 @@ def get_resources_flow_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_flow_library_upload_file_result_serialize( self, @@ -11869,7 +11869,7 @@ def get_resources_global_playlist_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlist_by_id_with_http_info( @@ -11935,7 +11935,7 @@ def get_resources_global_playlist_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlist_by_id_without_preload_content( @@ -12001,7 +12001,7 @@ def get_resources_global_playlist_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_global_playlist_by_id_serialize( self, @@ -12128,7 +12128,7 @@ def get_resources_global_playlist_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlist_content_file_with_http_info( @@ -12192,7 +12192,7 @@ def get_resources_global_playlist_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlist_content_file_without_preload_content( @@ -12256,7 +12256,7 @@ def get_resources_global_playlist_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_global_playlist_content_file_serialize( self, @@ -12389,7 +12389,7 @@ def get_resources_global_playlists( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlists_with_http_info( @@ -12458,7 +12458,7 @@ def get_resources_global_playlists_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlists_without_preload_content( @@ -12527,7 +12527,7 @@ def get_resources_global_playlists_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_global_playlists_serialize( self, @@ -12662,7 +12662,7 @@ def get_resources_global_playlists_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlists_upload_file_result_with_http_info( @@ -12727,7 +12727,7 @@ def get_resources_global_playlists_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_global_playlists_upload_file_result_without_preload_content( @@ -12792,7 +12792,7 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_global_playlists_upload_file_result_serialize( self, @@ -12924,7 +12924,7 @@ def get_resources_http_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_with_http_info( @@ -12993,7 +12993,7 @@ def get_resources_http_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_without_preload_content( @@ -13062,7 +13062,7 @@ def get_resources_http_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_library_serialize( self, @@ -13198,7 +13198,7 @@ def get_resources_http_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_by_id_with_http_info( @@ -13264,7 +13264,7 @@ def get_resources_http_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_by_id_without_preload_content( @@ -13330,7 +13330,7 @@ def get_resources_http_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_library_by_id_serialize( self, @@ -13457,7 +13457,7 @@ def get_resources_http_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_content_file_with_http_info( @@ -13521,7 +13521,7 @@ def get_resources_http_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_content_file_without_preload_content( @@ -13585,7 +13585,7 @@ def get_resources_http_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_library_content_file_serialize( self, @@ -13714,7 +13714,7 @@ def get_resources_http_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_upload_file_result_with_http_info( @@ -13779,7 +13779,7 @@ def get_resources_http_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_library_upload_file_result_without_preload_content( @@ -13844,7 +13844,7 @@ def get_resources_http_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_library_upload_file_result_serialize( self, @@ -13972,7 +13972,7 @@ def get_resources_http_profile_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_profile_by_id_with_http_info( @@ -14037,7 +14037,7 @@ def get_resources_http_profile_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_profile_by_id_without_preload_content( @@ -14102,7 +14102,7 @@ def get_resources_http_profile_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_profile_by_id_serialize( self, @@ -14233,7 +14233,7 @@ def get_resources_http_profiles( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_profiles_with_http_info( @@ -14301,7 +14301,7 @@ def get_resources_http_profiles_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_http_profiles_without_preload_content( @@ -14369,7 +14369,7 @@ def get_resources_http_profiles_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_http_profiles_serialize( self, @@ -14505,7 +14505,7 @@ def get_resources_media_file_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_file_by_id_with_http_info( @@ -14571,7 +14571,7 @@ def get_resources_media_file_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_file_by_id_without_preload_content( @@ -14637,7 +14637,7 @@ def get_resources_media_file_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_file_by_id_serialize( self, @@ -14764,7 +14764,7 @@ def get_resources_media_file_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_file_content_file_with_http_info( @@ -14828,7 +14828,7 @@ def get_resources_media_file_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_file_content_file_without_preload_content( @@ -14892,7 +14892,7 @@ def get_resources_media_file_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_file_content_file_serialize( self, @@ -15025,7 +15025,7 @@ def get_resources_media_files( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_files_with_http_info( @@ -15094,7 +15094,7 @@ def get_resources_media_files_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_files_without_preload_content( @@ -15163,7 +15163,7 @@ def get_resources_media_files_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_files_serialize( self, @@ -15298,7 +15298,7 @@ def get_resources_media_files_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_files_upload_file_result_with_http_info( @@ -15363,7 +15363,7 @@ def get_resources_media_files_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_files_upload_file_result_without_preload_content( @@ -15428,7 +15428,7 @@ def get_resources_media_files_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_files_upload_file_result_serialize( self, @@ -15560,7 +15560,7 @@ def get_resources_media_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_with_http_info( @@ -15629,7 +15629,7 @@ def get_resources_media_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_without_preload_content( @@ -15698,7 +15698,7 @@ def get_resources_media_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_library_serialize( self, @@ -15834,7 +15834,7 @@ def get_resources_media_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_by_id_with_http_info( @@ -15900,7 +15900,7 @@ def get_resources_media_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_by_id_without_preload_content( @@ -15966,7 +15966,7 @@ def get_resources_media_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_library_by_id_serialize( self, @@ -16093,7 +16093,7 @@ def get_resources_media_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_content_file_with_http_info( @@ -16157,7 +16157,7 @@ def get_resources_media_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_content_file_without_preload_content( @@ -16221,7 +16221,7 @@ def get_resources_media_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_library_content_file_serialize( self, @@ -16350,7 +16350,7 @@ def get_resources_media_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_upload_file_result_with_http_info( @@ -16415,7 +16415,7 @@ def get_resources_media_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_media_library_upload_file_result_without_preload_content( @@ -16480,7 +16480,7 @@ def get_resources_media_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_media_library_upload_file_result_serialize( self, @@ -16612,7 +16612,7 @@ def get_resources_other_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_with_http_info( @@ -16681,7 +16681,7 @@ def get_resources_other_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_without_preload_content( @@ -16750,7 +16750,7 @@ def get_resources_other_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_other_library_serialize( self, @@ -16886,7 +16886,7 @@ def get_resources_other_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_by_id_with_http_info( @@ -16952,7 +16952,7 @@ def get_resources_other_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_by_id_without_preload_content( @@ -17018,7 +17018,7 @@ def get_resources_other_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_other_library_by_id_serialize( self, @@ -17145,7 +17145,7 @@ def get_resources_other_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_content_file_with_http_info( @@ -17209,7 +17209,7 @@ def get_resources_other_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_content_file_without_preload_content( @@ -17273,7 +17273,7 @@ def get_resources_other_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_other_library_content_file_serialize( self, @@ -17402,7 +17402,7 @@ def get_resources_other_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_upload_file_result_with_http_info( @@ -17467,7 +17467,7 @@ def get_resources_other_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_other_library_upload_file_result_without_preload_content( @@ -17532,7 +17532,7 @@ def get_resources_other_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_other_library_upload_file_result_serialize( self, @@ -17661,7 +17661,7 @@ def get_resources_payload_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payload_by_id_with_http_info( @@ -17727,7 +17727,7 @@ def get_resources_payload_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payload_by_id_without_preload_content( @@ -17793,7 +17793,7 @@ def get_resources_payload_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_payload_by_id_serialize( self, @@ -17920,7 +17920,7 @@ def get_resources_payload_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payload_content_file_with_http_info( @@ -17984,7 +17984,7 @@ def get_resources_payload_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payload_content_file_without_preload_content( @@ -18048,7 +18048,7 @@ def get_resources_payload_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_payload_content_file_serialize( self, @@ -18181,7 +18181,7 @@ def get_resources_payloads( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payloads_with_http_info( @@ -18250,7 +18250,7 @@ def get_resources_payloads_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payloads_without_preload_content( @@ -18319,7 +18319,7 @@ def get_resources_payloads_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_payloads_serialize( self, @@ -18454,7 +18454,7 @@ def get_resources_payloads_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payloads_upload_file_result_with_http_info( @@ -18519,7 +18519,7 @@ def get_resources_payloads_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_payloads_upload_file_result_without_preload_content( @@ -18584,7 +18584,7 @@ def get_resources_payloads_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_payloads_upload_file_result_serialize( self, @@ -18713,7 +18713,7 @@ def get_resources_pcap_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcap_by_id_with_http_info( @@ -18779,7 +18779,7 @@ def get_resources_pcap_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcap_by_id_without_preload_content( @@ -18845,7 +18845,7 @@ def get_resources_pcap_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_pcap_by_id_serialize( self, @@ -18972,7 +18972,7 @@ def get_resources_pcap_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcap_content_file_with_http_info( @@ -19036,7 +19036,7 @@ def get_resources_pcap_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcap_content_file_without_preload_content( @@ -19100,7 +19100,7 @@ def get_resources_pcap_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_pcap_content_file_serialize( self, @@ -19233,7 +19233,7 @@ def get_resources_pcaps( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcaps_with_http_info( @@ -19302,7 +19302,7 @@ def get_resources_pcaps_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcaps_without_preload_content( @@ -19371,7 +19371,7 @@ def get_resources_pcaps_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_pcaps_serialize( self, @@ -19506,7 +19506,7 @@ def get_resources_pcaps_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcaps_upload_file_result_with_http_info( @@ -19571,7 +19571,7 @@ def get_resources_pcaps_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_pcaps_upload_file_result_without_preload_content( @@ -19636,7 +19636,7 @@ def get_resources_pcaps_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_pcaps_upload_file_result_serialize( self, @@ -19765,7 +19765,7 @@ def get_resources_playlist_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_by_id_with_http_info( @@ -19831,7 +19831,7 @@ def get_resources_playlist_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_by_id_without_preload_content( @@ -19897,7 +19897,7 @@ def get_resources_playlist_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlist_by_id_serialize( self, @@ -20024,7 +20024,7 @@ def get_resources_playlist_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_content_file_with_http_info( @@ -20088,7 +20088,7 @@ def get_resources_playlist_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_content_file_without_preload_content( @@ -20152,7 +20152,7 @@ def get_resources_playlist_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlist_content_file_serialize( self, @@ -20285,7 +20285,7 @@ def get_resources_playlist_values( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_values_with_http_info( @@ -20354,7 +20354,7 @@ def get_resources_playlist_values_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlist_values_without_preload_content( @@ -20423,7 +20423,7 @@ def get_resources_playlist_values_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlist_values_serialize( self, @@ -20560,7 +20560,7 @@ def get_resources_playlists( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlists_with_http_info( @@ -20629,7 +20629,7 @@ def get_resources_playlists_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlists_without_preload_content( @@ -20698,7 +20698,7 @@ def get_resources_playlists_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlists_serialize( self, @@ -20833,7 +20833,7 @@ def get_resources_playlists_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlists_upload_file_result_with_http_info( @@ -20898,7 +20898,7 @@ def get_resources_playlists_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_playlists_upload_file_result_without_preload_content( @@ -20963,7 +20963,7 @@ def get_resources_playlists_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_playlists_upload_file_result_serialize( self, @@ -21095,7 +21095,7 @@ def get_resources_sip_library( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_with_http_info( @@ -21164,7 +21164,7 @@ def get_resources_sip_library_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_without_preload_content( @@ -21233,7 +21233,7 @@ def get_resources_sip_library_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_sip_library_serialize( self, @@ -21369,7 +21369,7 @@ def get_resources_sip_library_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_by_id_with_http_info( @@ -21435,7 +21435,7 @@ def get_resources_sip_library_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_by_id_without_preload_content( @@ -21501,7 +21501,7 @@ def get_resources_sip_library_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_sip_library_by_id_serialize( self, @@ -21628,7 +21628,7 @@ def get_resources_sip_library_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_content_file_with_http_info( @@ -21692,7 +21692,7 @@ def get_resources_sip_library_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_content_file_without_preload_content( @@ -21756,7 +21756,7 @@ def get_resources_sip_library_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_sip_library_content_file_serialize( self, @@ -21885,7 +21885,7 @@ def get_resources_sip_library_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_upload_file_result_with_http_info( @@ -21950,7 +21950,7 @@ def get_resources_sip_library_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_sip_library_upload_file_result_without_preload_content( @@ -22015,7 +22015,7 @@ def get_resources_sip_library_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_sip_library_upload_file_result_serialize( self, @@ -22147,7 +22147,7 @@ def get_resources_stats_profile( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_with_http_info( @@ -22216,7 +22216,7 @@ def get_resources_stats_profile_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_without_preload_content( @@ -22285,7 +22285,7 @@ def get_resources_stats_profile_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_stats_profile_serialize( self, @@ -22421,7 +22421,7 @@ def get_resources_stats_profile_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_by_id_with_http_info( @@ -22487,7 +22487,7 @@ def get_resources_stats_profile_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_by_id_without_preload_content( @@ -22553,7 +22553,7 @@ def get_resources_stats_profile_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_stats_profile_by_id_serialize( self, @@ -22680,7 +22680,7 @@ def get_resources_stats_profile_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_content_file_with_http_info( @@ -22744,7 +22744,7 @@ def get_resources_stats_profile_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_content_file_without_preload_content( @@ -22808,7 +22808,7 @@ def get_resources_stats_profile_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_stats_profile_content_file_serialize( self, @@ -22937,7 +22937,7 @@ def get_resources_stats_profile_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_upload_file_result_with_http_info( @@ -23002,7 +23002,7 @@ def get_resources_stats_profile_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_stats_profile_upload_file_result_without_preload_content( @@ -23067,7 +23067,7 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_stats_profile_upload_file_result_serialize( self, @@ -23194,7 +23194,7 @@ def get_resources_strike_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strike_by_id_with_http_info( @@ -23258,7 +23258,7 @@ def get_resources_strike_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strike_by_id_without_preload_content( @@ -23322,7 +23322,7 @@ def get_resources_strike_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_strike_by_id_serialize( self, @@ -23452,7 +23452,7 @@ def get_resources_strike_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strike_categories_with_http_info( @@ -23519,7 +23519,7 @@ def get_resources_strike_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strike_categories_without_preload_content( @@ -23586,7 +23586,7 @@ def get_resources_strike_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_strike_categories_serialize( self, @@ -23749,7 +23749,7 @@ def get_resources_strikes( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strikes_with_http_info( @@ -23842,7 +23842,7 @@ def get_resources_strikes_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_strikes_without_preload_content( @@ -23935,7 +23935,7 @@ def get_resources_strikes_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_strikes_serialize( self, @@ -24101,7 +24101,7 @@ def get_resources_tls_certificate_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificate_by_id_with_http_info( @@ -24167,7 +24167,7 @@ def get_resources_tls_certificate_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificate_by_id_without_preload_content( @@ -24233,7 +24233,7 @@ def get_resources_tls_certificate_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_certificate_by_id_serialize( self, @@ -24360,7 +24360,7 @@ def get_resources_tls_certificate_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificate_content_file_with_http_info( @@ -24424,7 +24424,7 @@ def get_resources_tls_certificate_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificate_content_file_without_preload_content( @@ -24488,7 +24488,7 @@ def get_resources_tls_certificate_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_certificate_content_file_serialize( self, @@ -24621,7 +24621,7 @@ def get_resources_tls_certificates( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificates_with_http_info( @@ -24690,7 +24690,7 @@ def get_resources_tls_certificates_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificates_without_preload_content( @@ -24759,7 +24759,7 @@ def get_resources_tls_certificates_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_certificates_serialize( self, @@ -24894,7 +24894,7 @@ def get_resources_tls_certificates_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificates_upload_file_result_with_http_info( @@ -24959,7 +24959,7 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_certificates_upload_file_result_without_preload_content( @@ -25024,7 +25024,7 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_certificates_upload_file_result_serialize( self, @@ -25153,7 +25153,7 @@ def get_resources_tls_dh_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dh_by_id_with_http_info( @@ -25219,7 +25219,7 @@ def get_resources_tls_dh_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dh_by_id_without_preload_content( @@ -25285,7 +25285,7 @@ def get_resources_tls_dh_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_dh_by_id_serialize( self, @@ -25412,7 +25412,7 @@ def get_resources_tls_dh_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dh_content_file_with_http_info( @@ -25476,7 +25476,7 @@ def get_resources_tls_dh_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dh_content_file_without_preload_content( @@ -25540,7 +25540,7 @@ def get_resources_tls_dh_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_dh_content_file_serialize( self, @@ -25673,7 +25673,7 @@ def get_resources_tls_dhs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dhs_with_http_info( @@ -25742,7 +25742,7 @@ def get_resources_tls_dhs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dhs_without_preload_content( @@ -25811,7 +25811,7 @@ def get_resources_tls_dhs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_dhs_serialize( self, @@ -25946,7 +25946,7 @@ def get_resources_tls_dhs_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dhs_upload_file_result_with_http_info( @@ -26011,7 +26011,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_dhs_upload_file_result_without_preload_content( @@ -26076,7 +26076,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_dhs_upload_file_result_serialize( self, @@ -26205,7 +26205,7 @@ def get_resources_tls_key_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_key_by_id_with_http_info( @@ -26271,7 +26271,7 @@ def get_resources_tls_key_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_key_by_id_without_preload_content( @@ -26337,7 +26337,7 @@ def get_resources_tls_key_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_key_by_id_serialize( self, @@ -26464,7 +26464,7 @@ def get_resources_tls_key_content_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_key_content_file_with_http_info( @@ -26528,7 +26528,7 @@ def get_resources_tls_key_content_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_key_content_file_without_preload_content( @@ -26592,7 +26592,7 @@ def get_resources_tls_key_content_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_key_content_file_serialize( self, @@ -26725,7 +26725,7 @@ def get_resources_tls_keys( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_keys_with_http_info( @@ -26794,7 +26794,7 @@ def get_resources_tls_keys_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_keys_without_preload_content( @@ -26863,7 +26863,7 @@ def get_resources_tls_keys_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_keys_serialize( self, @@ -26998,7 +26998,7 @@ def get_resources_tls_keys_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_keys_upload_file_result_with_http_info( @@ -27063,7 +27063,7 @@ def get_resources_tls_keys_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_tls_keys_upload_file_result_without_preload_content( @@ -27128,7 +27128,7 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_tls_keys_upload_file_result_serialize( self, @@ -27258,7 +27258,7 @@ def get_resources_user_defined_apps( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_user_defined_apps_with_http_info( @@ -27325,7 +27325,7 @@ def get_resources_user_defined_apps_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_user_defined_apps_without_preload_content( @@ -27392,7 +27392,7 @@ def get_resources_user_defined_apps_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_user_defined_apps_serialize( self, @@ -27527,7 +27527,7 @@ def get_resources_user_defined_apps_upload_file_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_user_defined_apps_upload_file_result_with_http_info( @@ -27592,7 +27592,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_user_defined_apps_upload_file_result_without_preload_content( @@ -27657,7 +27657,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_user_defined_apps_upload_file_result_serialize( self, @@ -27722,10 +27722,300 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_resources_apps_export_all( + def start_resources_apps_export_all( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27739,12 +28029,12 @@ def poll_resources_apps_export_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27767,8 +28057,8 @@ def poll_resources_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27776,20 +28066,19 @@ def poll_resources_apps_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_apps_export_all_with_http_info( + def start_resources_apps_export_all_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27803,12 +28092,12 @@ def poll_resources_apps_export_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27831,8 +28120,8 @@ def poll_resources_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27840,20 +28129,19 @@ def poll_resources_apps_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_apps_export_all_without_preload_content( + def start_resources_apps_export_all_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27867,12 +28155,12 @@ def poll_resources_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_apps_export_all + """start_resources_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27895,8 +28183,8 @@ def poll_resources_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_apps_export_all_serialize( - id=id, + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27904,19 +28192,18 @@ def poll_resources_apps_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_apps_export_all_serialize( + def _start_resources_apps_export_all_serialize( self, - id, + export_apps_operation_input, _request_auth, _content_type, _headers, @@ -27936,12 +28223,12 @@ def _poll_resources_apps_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if export_apps_operation_input is not None: + _body_params = export_apps_operation_input # set the HTTP header `Accept` @@ -27952,6 +28239,19 @@ def _poll_resources_apps_export_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -27960,8 +28260,8 @@ def _poll_resources_apps_export_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/apps/operations/export-all/{id}', + method='POST', + resource_path='/api/v2/resources/apps/operations/export-all', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27978,9 +28278,8 @@ def _poll_resources_apps_export_all_serialize( @validate_call - def poll_resources_captures_batch_delete( + def start_resources_captures_batch_delete( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27994,12 +28293,10 @@ def poll_resources_captures_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_captures_batch_delete + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28022,8 +28319,7 @@ def poll_resources_captures_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28031,20 +28327,18 @@ def poll_resources_captures_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_batch_delete_with_http_info( + def start_resources_captures_batch_delete_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28058,12 +28352,10 @@ def poll_resources_captures_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_captures_batch_delete + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28086,8 +28378,7 @@ def poll_resources_captures_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28095,20 +28386,18 @@ def poll_resources_captures_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_batch_delete_without_preload_content( + def start_resources_captures_batch_delete_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28122,12 +28411,10 @@ def poll_resources_captures_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_captures_batch_delete + """start_resources_captures_batch_delete - Get the state of an ongoing operation. + Delete one or more captures - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28150,8 +28437,7 @@ def poll_resources_captures_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_batch_delete_serialize( - id=id, + _param = self._start_resources_captures_batch_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28159,19 +28445,17 @@ def poll_resources_captures_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_captures_batch_delete_serialize( + def _start_resources_captures_batch_delete_serialize( self, - id, _request_auth, _content_type, _headers, @@ -28191,8 +28475,6 @@ def _poll_resources_captures_batch_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -28215,8 +28497,8 @@ def _poll_resources_captures_batch_delete_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/captures/operations/batch-delete/{id}', + method='POST', + resource_path='/api/v2/resources/captures/operations/batch-delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28233,9 +28515,9 @@ def _poll_resources_captures_batch_delete_serialize( @validate_call - def poll_resources_captures_upload_file( + def start_resources_captures_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28249,12 +28531,12 @@ def poll_resources_captures_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_captures_upload_file + """start_resources_captures_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28277,8 +28559,8 @@ def poll_resources_captures_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28286,8 +28568,7 @@ def poll_resources_captures_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -28295,12 +28576,12 @@ def poll_resources_captures_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_upload_file_with_http_info( + def start_resources_captures_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28314,12 +28595,12 @@ def poll_resources_captures_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_captures_upload_file + """start_resources_captures_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28342,8 +28623,8 @@ def poll_resources_captures_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28351,8 +28632,7 @@ def poll_resources_captures_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -28360,12 +28640,12 @@ def poll_resources_captures_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_captures_upload_file_without_preload_content( + def start_resources_captures_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28379,12 +28659,12 @@ def poll_resources_captures_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_captures_upload_file + """start_resources_captures_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28407,8 +28687,8 @@ def poll_resources_captures_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_captures_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28416,8 +28696,7 @@ def poll_resources_captures_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -28425,11 +28704,11 @@ def poll_resources_captures_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_captures_upload_file_serialize( + def _start_resources_captures_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -28449,11 +28728,11 @@ def _poll_resources_captures_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -28465,6 +28744,19 @@ def _poll_resources_captures_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -28473,8 +28765,8 @@ def _poll_resources_captures_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/captures/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/captures/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28491,9 +28783,9 @@ def _poll_resources_captures_upload_file_serialize( @validate_call - def poll_resources_certificates_upload_file( + def start_resources_certificates_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28507,12 +28799,12 @@ def poll_resources_certificates_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_certificates_upload_file + """start_resources_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28535,8 +28827,8 @@ def poll_resources_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28544,8 +28836,7 @@ def poll_resources_certificates_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -28553,12 +28844,12 @@ def poll_resources_certificates_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_certificates_upload_file_with_http_info( + def start_resources_certificates_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28572,12 +28863,12 @@ def poll_resources_certificates_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_certificates_upload_file + """start_resources_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28600,8 +28891,8 @@ def poll_resources_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28609,8 +28900,7 @@ def poll_resources_certificates_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -28618,12 +28908,12 @@ def poll_resources_certificates_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_certificates_upload_file_without_preload_content( + def start_resources_certificates_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28637,12 +28927,12 @@ def poll_resources_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_certificates_upload_file + """start_resources_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28665,8 +28955,8 @@ def poll_resources_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28674,8 +28964,7 @@ def poll_resources_certificates_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -28683,11 +28972,11 @@ def poll_resources_certificates_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_certificates_upload_file_serialize( + def _start_resources_certificates_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -28707,11 +28996,11 @@ def _poll_resources_certificates_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -28723,6 +29012,19 @@ def _poll_resources_certificates_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -28731,8 +29033,8 @@ def _poll_resources_certificates_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/certificates/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/certificates/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28749,10 +29051,9 @@ def _poll_resources_certificates_upload_file_serialize( @validate_call - def poll_resources_config_export_user_defined_apps( + def start_resources_config_export_user_defined_apps( self, config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28766,14 +29067,12 @@ def poll_resources_config_export_user_defined_apps( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_config_export_user_defined_apps + """start_resources_config_export_user_defined_apps - Get the state of an ongoing operation. + Export all apps created by the user. :param config_id: The ID of the config. (required) :type config_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28796,9 +29095,8 @@ def poll_resources_config_export_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( + _param = self._start_resources_config_export_user_defined_apps_serialize( config_id=config_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28806,21 +29104,19 @@ def poll_resources_config_export_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_config_export_user_defined_apps_with_http_info( + def start_resources_config_export_user_defined_apps_with_http_info( self, config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28834,14 +29130,12 @@ def poll_resources_config_export_user_defined_apps_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_config_export_user_defined_apps + """start_resources_config_export_user_defined_apps - Get the state of an ongoing operation. + Export all apps created by the user. :param config_id: The ID of the config. (required) :type config_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28864,9 +29158,8 @@ def poll_resources_config_export_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( + _param = self._start_resources_config_export_user_defined_apps_serialize( config_id=config_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28874,21 +29167,19 @@ def poll_resources_config_export_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_config_export_user_defined_apps_without_preload_content( + def start_resources_config_export_user_defined_apps_without_preload_content( self, config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28902,14 +29193,12 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_config_export_user_defined_apps + """start_resources_config_export_user_defined_apps - Get the state of an ongoing operation. + Export all apps created by the user. :param config_id: The ID of the config. (required) :type config_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28932,9 +29221,8 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_config_export_user_defined_apps_serialize( + _param = self._start_resources_config_export_user_defined_apps_serialize( config_id=config_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28942,20 +29230,18 @@ def poll_resources_config_export_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_config_export_user_defined_apps_serialize( + def _start_resources_config_export_user_defined_apps_serialize( self, config_id, - id, _request_auth, _content_type, _headers, @@ -28977,8 +29263,6 @@ def _poll_resources_config_export_user_defined_apps_serialize( # process the path parameters if config_id is not None: _path_params['configId'] = config_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -29001,8 +29285,8 @@ def _poll_resources_config_export_user_defined_apps_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id}', + method='POST', + resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29019,9 +29303,9 @@ def _poll_resources_config_export_user_defined_apps_serialize( @validate_call - def poll_resources_create_app( + def start_resources_create_app( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29035,12 +29319,12 @@ def poll_resources_create_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_create_app + """start_resources_create_app - Get the state of an ongoing operation. + Create an app from captures - :param id: The ID of the async operation. (required) - :type id: int + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29063,8 +29347,8 @@ def poll_resources_create_app( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29072,20 +29356,19 @@ def poll_resources_create_app( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_create_app_with_http_info( + def start_resources_create_app_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29099,12 +29382,12 @@ def poll_resources_create_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_create_app + """start_resources_create_app - Get the state of an ongoing operation. + Create an app from captures - :param id: The ID of the async operation. (required) - :type id: int + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29127,8 +29410,8 @@ def poll_resources_create_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29136,20 +29419,19 @@ def poll_resources_create_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_create_app_without_preload_content( + def start_resources_create_app_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29163,12 +29445,12 @@ def poll_resources_create_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_create_app + """start_resources_create_app - Get the state of an ongoing operation. + Create an app from captures - :param id: The ID of the async operation. (required) - :type id: int + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29191,8 +29473,8 @@ def poll_resources_create_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_create_app_serialize( - id=id, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29200,19 +29482,18 @@ def poll_resources_create_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_create_app_serialize( + def _start_resources_create_app_serialize( self, - id, + create_app_operation, _request_auth, _content_type, _headers, @@ -29232,12 +29513,12 @@ def _poll_resources_create_app_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if create_app_operation is not None: + _body_params = create_app_operation # set the HTTP header `Accept` @@ -29248,6 +29529,19 @@ def _poll_resources_create_app_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29256,8 +29550,8 @@ def _poll_resources_create_app_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/create-app/{id}', + method='POST', + resource_path='/api/v2/resources/operations/create-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29274,9 +29568,9 @@ def _poll_resources_create_app_serialize( @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file( + def start_resources_custom_fuzzing_scripts_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29290,12 +29584,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_custom_fuzzing_scripts_upload_file + """start_resources_custom_fuzzing_scripts_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29318,8 +29612,8 @@ def poll_resources_custom_fuzzing_scripts_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29327,8 +29621,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -29336,12 +29629,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( + def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29355,12 +29648,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_custom_fuzzing_scripts_upload_file + """start_resources_custom_fuzzing_scripts_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29383,8 +29676,8 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29392,8 +29685,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -29401,12 +29693,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( + def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29420,12 +29712,12 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_custom_fuzzing_scripts_upload_file + """start_resources_custom_fuzzing_scripts_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29448,8 +29740,8 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_custom_fuzzing_scripts_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29457,8 +29749,7 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -29466,11 +29757,11 @@ def poll_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( + def _start_resources_custom_fuzzing_scripts_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -29490,11 +29781,11 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -29506,6 +29797,19 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29514,8 +29818,8 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29532,9 +29836,9 @@ def _poll_resources_custom_fuzzing_scripts_upload_file_serialize( @validate_call - def poll_resources_edit_app( + def start_resources_edit_app( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29548,12 +29852,12 @@ def poll_resources_edit_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_edit_app + """start_resources_edit_app - Get the state of an ongoing operation. + Edit an application - :param id: The ID of the async operation. (required) - :type id: int + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29576,8 +29880,8 @@ def poll_resources_edit_app( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29585,20 +29889,19 @@ def poll_resources_edit_app( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_edit_app_with_http_info( + def start_resources_edit_app_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29612,12 +29915,12 @@ def poll_resources_edit_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_edit_app + """start_resources_edit_app - Get the state of an ongoing operation. + Edit an application - :param id: The ID of the async operation. (required) - :type id: int + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29640,8 +29943,8 @@ def poll_resources_edit_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29649,20 +29952,19 @@ def poll_resources_edit_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_edit_app_without_preload_content( + def start_resources_edit_app_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29676,12 +29978,12 @@ def poll_resources_edit_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_edit_app + """start_resources_edit_app - Get the state of an ongoing operation. + Edit an application - :param id: The ID of the async operation. (required) - :type id: int + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29704,8 +30006,8 @@ def poll_resources_edit_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_edit_app_serialize( - id=id, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29713,19 +30015,18 @@ def poll_resources_edit_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_edit_app_serialize( + def _start_resources_edit_app_serialize( self, - id, + edit_app_operation, _request_auth, _content_type, _headers, @@ -29745,12 +30046,12 @@ def _poll_resources_edit_app_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if edit_app_operation is not None: + _body_params = edit_app_operation # set the HTTP header `Accept` @@ -29761,6 +30062,19 @@ def _poll_resources_edit_app_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29769,8 +30083,8 @@ def _poll_resources_edit_app_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/edit-app/{id}', + method='POST', + resource_path='/api/v2/resources/operations/edit-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29787,9 +30101,9 @@ def _poll_resources_edit_app_serialize( @validate_call - def poll_resources_find_param_matches( + def start_resources_find_param_matches( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29803,12 +30117,12 @@ def poll_resources_find_param_matches( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_find_param_matches + """start_resources_find_param_matches - Get the state of an ongoing operation. + Find parameter matches - :param id: The ID of the async operation. (required) - :type id: int + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29831,8 +30145,8 @@ def poll_resources_find_param_matches( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29840,20 +30154,19 @@ def poll_resources_find_param_matches( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_find_param_matches_with_http_info( + def start_resources_find_param_matches_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29867,12 +30180,12 @@ def poll_resources_find_param_matches_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_find_param_matches + """start_resources_find_param_matches - Get the state of an ongoing operation. + Find parameter matches - :param id: The ID of the async operation. (required) - :type id: int + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29895,8 +30208,8 @@ def poll_resources_find_param_matches_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29904,20 +30217,19 @@ def poll_resources_find_param_matches_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_find_param_matches_without_preload_content( + def start_resources_find_param_matches_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29931,12 +30243,12 @@ def poll_resources_find_param_matches_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_find_param_matches + """start_resources_find_param_matches - Get the state of an ongoing operation. + Find parameter matches - :param id: The ID of the async operation. (required) - :type id: int + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29959,8 +30271,8 @@ def poll_resources_find_param_matches_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_find_param_matches_serialize( - id=id, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29968,19 +30280,18 @@ def poll_resources_find_param_matches_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_find_param_matches_serialize( + def _start_resources_find_param_matches_serialize( self, - id, + find_param_matches_operation, _request_auth, _content_type, _headers, @@ -30000,12 +30311,12 @@ def _poll_resources_find_param_matches_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if find_param_matches_operation is not None: + _body_params = find_param_matches_operation # set the HTTP header `Accept` @@ -30016,6 +30327,19 @@ def _poll_resources_find_param_matches_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30024,8 +30348,8 @@ def _poll_resources_find_param_matches_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/find-param-matches/{id}', + method='POST', + resource_path='/api/v2/resources/operations/find-param-matches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30042,9 +30366,9 @@ def _poll_resources_find_param_matches_serialize( @validate_call - def poll_resources_flow_library_upload_file( + def start_resources_flow_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30058,12 +30382,12 @@ def poll_resources_flow_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_flow_library_upload_file + """start_resources_flow_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30086,8 +30410,8 @@ def poll_resources_flow_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30095,8 +30419,7 @@ def poll_resources_flow_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -30104,12 +30427,12 @@ def poll_resources_flow_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_flow_library_upload_file_with_http_info( + def start_resources_flow_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30123,12 +30446,12 @@ def poll_resources_flow_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_flow_library_upload_file + """start_resources_flow_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30151,8 +30474,8 @@ def poll_resources_flow_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30160,8 +30483,7 @@ def poll_resources_flow_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -30169,12 +30491,12 @@ def poll_resources_flow_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_flow_library_upload_file_without_preload_content( + def start_resources_flow_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30188,12 +30510,12 @@ def poll_resources_flow_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_flow_library_upload_file + """start_resources_flow_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30216,8 +30538,8 @@ def poll_resources_flow_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_flow_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30225,8 +30547,7 @@ def poll_resources_flow_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -30234,11 +30555,11 @@ def poll_resources_flow_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_flow_library_upload_file_serialize( + def _start_resources_flow_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -30258,11 +30579,11 @@ def _poll_resources_flow_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -30274,6 +30595,19 @@ def _poll_resources_flow_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30282,8 +30616,8 @@ def _poll_resources_flow_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/flow-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30300,9 +30634,9 @@ def _poll_resources_flow_library_upload_file_serialize( @validate_call - def poll_resources_get_attack_categories( + def start_resources_get_attack_categories( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30316,12 +30650,12 @@ def poll_resources_get_attack_categories( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_get_attack_categories + """start_resources_get_attack_categories - Get the state of an ongoing operation. + Get the list of attack categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30344,8 +30678,8 @@ def poll_resources_get_attack_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._start_resources_get_attack_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30353,20 +30687,19 @@ def poll_resources_get_attack_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attack_categories_with_http_info( + def start_resources_get_attack_categories_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30380,12 +30713,12 @@ def poll_resources_get_attack_categories_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_get_attack_categories + """start_resources_get_attack_categories - Get the state of an ongoing operation. + Get the list of attack categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30408,8 +30741,8 @@ def poll_resources_get_attack_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._start_resources_get_attack_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30417,20 +30750,19 @@ def poll_resources_get_attack_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attack_categories_without_preload_content( + def start_resources_get_attack_categories_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30444,12 +30776,12 @@ def poll_resources_get_attack_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_attack_categories + """start_resources_get_attack_categories - Get the state of an ongoing operation. + Get the list of attack categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30472,8 +30804,8 @@ def poll_resources_get_attack_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attack_categories_serialize( - id=id, + _param = self._start_resources_get_attack_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30481,19 +30813,18 @@ def poll_resources_get_attack_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_attack_categories_serialize( + def _start_resources_get_attack_categories_serialize( self, - id, + get_categories_operation, _request_auth, _content_type, _headers, @@ -30513,12 +30844,12 @@ def _poll_resources_get_attack_categories_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if get_categories_operation is not None: + _body_params = get_categories_operation # set the HTTP header `Accept` @@ -30529,6 +30860,19 @@ def _poll_resources_get_attack_categories_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30537,8 +30881,8 @@ def _poll_resources_get_attack_categories_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/get-attack-categories/{id}', + method='POST', + resource_path='/api/v2/resources/operations/get-attack-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30555,9 +30899,9 @@ def _poll_resources_get_attack_categories_serialize( @validate_call - def poll_resources_get_attacks( + def start_resources_get_attacks( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_attacks_operation: Optional[GetAttacksOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30571,12 +30915,12 @@ def poll_resources_get_attacks( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_get_attacks + """start_resources_get_attacks - Get the state of an ongoing operation. + Get the list of attacks - :param id: The ID of the async operation. (required) - :type id: int + :param get_attacks_operation: + :type get_attacks_operation: GetAttacksOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30599,8 +30943,8 @@ def poll_resources_get_attacks( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._start_resources_get_attacks_serialize( + get_attacks_operation=get_attacks_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30608,20 +30952,19 @@ def poll_resources_get_attacks( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attacks_with_http_info( + def start_resources_get_attacks_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_attacks_operation: Optional[GetAttacksOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30635,12 +30978,12 @@ def poll_resources_get_attacks_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_get_attacks + """start_resources_get_attacks - Get the state of an ongoing operation. + Get the list of attacks - :param id: The ID of the async operation. (required) - :type id: int + :param get_attacks_operation: + :type get_attacks_operation: GetAttacksOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30663,8 +31006,8 @@ def poll_resources_get_attacks_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._start_resources_get_attacks_serialize( + get_attacks_operation=get_attacks_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30672,20 +31015,19 @@ def poll_resources_get_attacks_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_attacks_without_preload_content( + def start_resources_get_attacks_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_attacks_operation: Optional[GetAttacksOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30699,12 +31041,12 @@ def poll_resources_get_attacks_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_attacks + """start_resources_get_attacks - Get the state of an ongoing operation. + Get the list of attacks - :param id: The ID of the async operation. (required) - :type id: int + :param get_attacks_operation: + :type get_attacks_operation: GetAttacksOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30727,8 +31069,8 @@ def poll_resources_get_attacks_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_attacks_serialize( - id=id, + _param = self._start_resources_get_attacks_serialize( + get_attacks_operation=get_attacks_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30736,19 +31078,18 @@ def poll_resources_get_attacks_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_attacks_serialize( + def _start_resources_get_attacks_serialize( self, - id, + get_attacks_operation, _request_auth, _content_type, _headers, @@ -30768,12 +31109,12 @@ def _poll_resources_get_attacks_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if get_attacks_operation is not None: + _body_params = get_attacks_operation # set the HTTP header `Accept` @@ -30784,6 +31125,19 @@ def _poll_resources_get_attacks_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30792,8 +31146,8 @@ def _poll_resources_get_attacks_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/get-attacks/{id}', + method='POST', + resource_path='/api/v2/resources/operations/get-attacks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30810,9 +31164,9 @@ def _poll_resources_get_attacks_serialize( @validate_call - def poll_resources_get_strike_categories( + def start_resources_get_strike_categories( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30826,12 +31180,12 @@ def poll_resources_get_strike_categories( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_resources_get_strike_categories + """start_resources_get_strike_categories - Get the state of an ongoing operation. + Get the list of strike categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30854,8 +31208,8 @@ def poll_resources_get_strike_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strike_categories_serialize( - id=id, + _param = self._start_resources_get_strike_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30863,20 +31217,19 @@ def poll_resources_get_strike_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_strike_categories_with_http_info( + def start_resources_get_strike_categories_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30890,203 +31243,12 @@ def poll_resources_get_strike_categories_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_resources_get_strike_categories - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_get_strike_categories_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_resources_get_strike_categories_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_resources_get_strike_categories - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_get_strike_categories_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_resources_get_strike_categories_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/get-strike-categories/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_resources_get_strikes( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_get_strikes + """start_resources_get_strike_categories - Get the state of an ongoing operation. + Get the list of strike categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31109,72 +31271,8 @@ def poll_resources_get_strikes( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strikes_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_resources_get_strikes_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_get_strikes - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_get_strikes_serialize( - id=id, + _param = self._start_resources_get_strike_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31182,20 +31280,19 @@ def poll_resources_get_strikes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_get_strikes_without_preload_content( + def start_resources_get_strike_categories_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31209,12 +31306,12 @@ def poll_resources_get_strikes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_get_strikes + """start_resources_get_strike_categories - Get the state of an ongoing operation. + Get the list of strike categories - :param id: The ID of the async operation. (required) - :type id: int + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31237,8 +31334,8 @@ def poll_resources_get_strikes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_get_strikes_serialize( - id=id, + _param = self._start_resources_get_strike_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31246,19 +31343,18 @@ def poll_resources_get_strikes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_get_strikes_serialize( + def _start_resources_get_strike_categories_serialize( self, - id, + get_categories_operation, _request_auth, _content_type, _headers, @@ -31278,12 +31374,12 @@ def _poll_resources_get_strikes_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if get_categories_operation is not None: + _body_params = get_categories_operation # set the HTTP header `Accept` @@ -31294,6 +31390,19 @@ def _poll_resources_get_strikes_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -31302,8 +31411,8 @@ def _poll_resources_get_strikes_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/operations/get-strikes/{id}', + method='POST', + resource_path='/api/v2/resources/operations/get-strike-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31320,9 +31429,9 @@ def _poll_resources_get_strikes_serialize( @validate_call - def poll_resources_global_playlists_upload_file( + def start_resources_get_strikes( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + get_strikes_operation: Optional[GetStrikesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31335,13 +31444,13 @@ def poll_resources_global_playlists_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_global_playlists_upload_file + ) -> AsyncContext: + """start_resources_get_strikes - Get the state of an ongoing operation. + Get the list of strikes - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param get_strikes_operation: + :type get_strikes_operation: GetStrikesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31364,8 +31473,8 @@ def poll_resources_global_playlists_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_get_strikes_serialize( + get_strikes_operation=get_strikes_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31373,21 +31482,19 @@ def poll_resources_global_playlists_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_global_playlists_upload_file_with_http_info( + def start_resources_get_strikes_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + get_strikes_operation: Optional[GetStrikesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31400,13 +31507,13 @@ def poll_resources_global_playlists_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_global_playlists_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_get_strikes - Get the state of an ongoing operation. + Get the list of strikes - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param get_strikes_operation: + :type get_strikes_operation: GetStrikesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31429,8 +31536,8 @@ def poll_resources_global_playlists_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_get_strikes_serialize( + get_strikes_operation=get_strikes_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31438,21 +31545,19 @@ def poll_resources_global_playlists_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_global_playlists_upload_file_without_preload_content( + def start_resources_get_strikes_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + get_strikes_operation: Optional[GetStrikesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31466,12 +31571,12 @@ def poll_resources_global_playlists_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_global_playlists_upload_file + """start_resources_get_strikes - Get the state of an ongoing operation. + Get the list of strikes - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param get_strikes_operation: + :type get_strikes_operation: GetStrikesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31494,8 +31599,8 @@ def poll_resources_global_playlists_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_global_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_get_strikes_serialize( + get_strikes_operation=get_strikes_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31503,20 +31608,18 @@ def poll_resources_global_playlists_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_global_playlists_upload_file_serialize( + def _start_resources_get_strikes_serialize( self, - upload_file_id, + get_strikes_operation, _request_auth, _content_type, _headers, @@ -31536,12 +31639,12 @@ def _poll_resources_global_playlists_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if get_strikes_operation is not None: + _body_params = get_strikes_operation # set the HTTP header `Accept` @@ -31552,6 +31655,19 @@ def _poll_resources_global_playlists_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -31560,8 +31676,8 @@ def _poll_resources_global_playlists_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/operations/get-strikes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31578,9 +31694,9 @@ def _poll_resources_global_playlists_upload_file_serialize( @validate_call - def poll_resources_http_library_upload_file( + def start_resources_global_playlists_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31594,12 +31710,12 @@ def poll_resources_http_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_http_library_upload_file + """start_resources_global_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31622,8 +31738,8 @@ def poll_resources_http_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_global_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31631,8 +31747,7 @@ def poll_resources_http_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31640,12 +31755,12 @@ def poll_resources_http_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_http_library_upload_file_with_http_info( + def start_resources_global_playlists_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31659,12 +31774,12 @@ def poll_resources_http_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_http_library_upload_file + """start_resources_global_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31687,8 +31802,8 @@ def poll_resources_http_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_global_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31696,8 +31811,7 @@ def poll_resources_http_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31705,12 +31819,12 @@ def poll_resources_http_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_http_library_upload_file_without_preload_content( + def start_resources_global_playlists_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31724,12 +31838,12 @@ def poll_resources_http_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_http_library_upload_file + """start_resources_global_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31752,8 +31866,8 @@ def poll_resources_http_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_http_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_global_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31761,8 +31875,7 @@ def poll_resources_http_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31770,11 +31883,11 @@ def poll_resources_http_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_http_library_upload_file_serialize( + def _start_resources_global_playlists_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -31794,11 +31907,11 @@ def _poll_resources_http_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -31810,6 +31923,19 @@ def _poll_resources_http_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -31818,8 +31944,8 @@ def _poll_resources_http_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/global-playlists/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31836,9 +31962,9 @@ def _poll_resources_http_library_upload_file_serialize( @validate_call - def poll_resources_media_files_upload_file( + def start_resources_http_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31852,12 +31978,12 @@ def poll_resources_media_files_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_media_files_upload_file + """start_resources_http_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31880,8 +32006,8 @@ def poll_resources_media_files_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_http_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31889,8 +32015,7 @@ def poll_resources_media_files_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31898,12 +32023,12 @@ def poll_resources_media_files_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_files_upload_file_with_http_info( + def start_resources_http_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31917,12 +32042,12 @@ def poll_resources_media_files_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_media_files_upload_file + """start_resources_http_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31945,8 +32070,8 @@ def poll_resources_media_files_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_http_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31954,8 +32079,7 @@ def poll_resources_media_files_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -31963,12 +32087,12 @@ def poll_resources_media_files_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_files_upload_file_without_preload_content( + def start_resources_http_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31982,12 +32106,12 @@ def poll_resources_media_files_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_media_files_upload_file + """start_resources_http_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32010,8 +32134,8 @@ def poll_resources_media_files_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_files_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_http_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32019,8 +32143,7 @@ def poll_resources_media_files_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32028,11 +32151,11 @@ def poll_resources_media_files_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_media_files_upload_file_serialize( + def _start_resources_http_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -32052,11 +32175,11 @@ def _poll_resources_media_files_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -32068,6 +32191,19 @@ def _poll_resources_media_files_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -32076,8 +32212,8 @@ def _poll_resources_media_files_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/media-files/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/http-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32094,9 +32230,9 @@ def _poll_resources_media_files_upload_file_serialize( @validate_call - def poll_resources_media_library_upload_file( + def start_resources_media_files_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32110,12 +32246,12 @@ def poll_resources_media_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_media_library_upload_file + """start_resources_media_files_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32138,8 +32274,8 @@ def poll_resources_media_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_files_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32147,8 +32283,7 @@ def poll_resources_media_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32156,12 +32291,12 @@ def poll_resources_media_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_library_upload_file_with_http_info( + def start_resources_media_files_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32175,12 +32310,12 @@ def poll_resources_media_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_media_library_upload_file + """start_resources_media_files_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32203,8 +32338,8 @@ def poll_resources_media_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_files_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32212,8 +32347,7 @@ def poll_resources_media_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32221,12 +32355,12 @@ def poll_resources_media_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_media_library_upload_file_without_preload_content( + def start_resources_media_files_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32240,12 +32374,12 @@ def poll_resources_media_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_media_library_upload_file + """start_resources_media_files_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32268,8 +32402,8 @@ def poll_resources_media_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_media_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_files_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32277,8 +32411,7 @@ def poll_resources_media_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32286,11 +32419,11 @@ def poll_resources_media_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_media_library_upload_file_serialize( + def _start_resources_media_files_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -32310,11 +32443,11 @@ def _poll_resources_media_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -32326,6 +32459,19 @@ def _poll_resources_media_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -32334,8 +32480,8 @@ def _poll_resources_media_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/media-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/media-files/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32352,9 +32498,9 @@ def _poll_resources_media_library_upload_file_serialize( @validate_call - def poll_resources_other_library_upload_file( + def start_resources_media_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32368,12 +32514,12 @@ def poll_resources_other_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_other_library_upload_file + """start_resources_media_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32396,8 +32542,8 @@ def poll_resources_other_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32405,8 +32551,7 @@ def poll_resources_other_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32414,12 +32559,12 @@ def poll_resources_other_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_other_library_upload_file_with_http_info( + def start_resources_media_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32433,12 +32578,12 @@ def poll_resources_other_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_other_library_upload_file + """start_resources_media_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32461,8 +32606,8 @@ def poll_resources_other_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32470,8 +32615,7 @@ def poll_resources_other_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32479,12 +32623,12 @@ def poll_resources_other_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_other_library_upload_file_without_preload_content( + def start_resources_media_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32498,12 +32642,12 @@ def poll_resources_other_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_other_library_upload_file + """start_resources_media_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32526,8 +32670,8 @@ def poll_resources_other_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_other_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_media_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32535,8 +32679,7 @@ def poll_resources_other_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32544,11 +32687,11 @@ def poll_resources_other_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_other_library_upload_file_serialize( + def _start_resources_media_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -32568,11 +32711,11 @@ def _poll_resources_other_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -32584,6 +32727,19 @@ def _poll_resources_other_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -32592,8 +32748,8 @@ def _poll_resources_other_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/other-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/media-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32610,9 +32766,9 @@ def _poll_resources_other_library_upload_file_serialize( @validate_call - def poll_resources_payloads_upload_file( + def start_resources_other_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32626,12 +32782,12 @@ def poll_resources_payloads_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_payloads_upload_file + """start_resources_other_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32654,8 +32810,8 @@ def poll_resources_payloads_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_other_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32663,8 +32819,7 @@ def poll_resources_payloads_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32672,12 +32827,12 @@ def poll_resources_payloads_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_payloads_upload_file_with_http_info( + def start_resources_other_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32691,12 +32846,12 @@ def poll_resources_payloads_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_payloads_upload_file + """start_resources_other_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32719,8 +32874,8 @@ def poll_resources_payloads_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_other_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32728,8 +32883,7 @@ def poll_resources_payloads_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32737,12 +32891,12 @@ def poll_resources_payloads_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_payloads_upload_file_without_preload_content( + def start_resources_other_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32756,12 +32910,12 @@ def poll_resources_payloads_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_payloads_upload_file + """start_resources_other_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32784,8 +32938,8 @@ def poll_resources_payloads_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_payloads_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_other_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32793,8 +32947,7 @@ def poll_resources_payloads_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32802,11 +32955,11 @@ def poll_resources_payloads_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_payloads_upload_file_serialize( + def _start_resources_other_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -32826,11 +32979,11 @@ def _poll_resources_payloads_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -32842,6 +32995,19 @@ def _poll_resources_payloads_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -32850,8 +33016,8 @@ def _poll_resources_payloads_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/payloads/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/other-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32868,9 +33034,9 @@ def _poll_resources_payloads_upload_file_serialize( @validate_call - def poll_resources_pcaps_upload_file( + def start_resources_payloads_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32884,12 +33050,12 @@ def poll_resources_pcaps_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_pcaps_upload_file + """start_resources_payloads_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32912,8 +33078,8 @@ def poll_resources_pcaps_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_payloads_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32921,8 +33087,7 @@ def poll_resources_pcaps_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32930,12 +33095,12 @@ def poll_resources_pcaps_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_pcaps_upload_file_with_http_info( + def start_resources_payloads_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32949,12 +33114,12 @@ def poll_resources_pcaps_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_pcaps_upload_file + """start_resources_payloads_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32977,8 +33142,8 @@ def poll_resources_pcaps_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_payloads_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32986,8 +33151,7 @@ def poll_resources_pcaps_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -32995,12 +33159,12 @@ def poll_resources_pcaps_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_pcaps_upload_file_without_preload_content( + def start_resources_payloads_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33014,12 +33178,12 @@ def poll_resources_pcaps_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_pcaps_upload_file + """start_resources_payloads_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33042,8 +33206,8 @@ def poll_resources_pcaps_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_pcaps_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_payloads_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33051,8 +33215,7 @@ def poll_resources_pcaps_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33060,11 +33223,11 @@ def poll_resources_pcaps_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_pcaps_upload_file_serialize( + def _start_resources_payloads_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -33084,11 +33247,11 @@ def _poll_resources_pcaps_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33100,6 +33263,19 @@ def _poll_resources_pcaps_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33108,8 +33284,8 @@ def _poll_resources_pcaps_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/payloads/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33126,9 +33302,9 @@ def _poll_resources_pcaps_upload_file_serialize( @validate_call - def poll_resources_playlists_upload_file( + def start_resources_pcaps_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33142,12 +33318,12 @@ def poll_resources_playlists_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_playlists_upload_file + """start_resources_pcaps_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33170,8 +33346,8 @@ def poll_resources_playlists_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_pcaps_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33179,8 +33355,7 @@ def poll_resources_playlists_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33188,12 +33363,12 @@ def poll_resources_playlists_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_playlists_upload_file_with_http_info( + def start_resources_pcaps_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33207,12 +33382,12 @@ def poll_resources_playlists_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_playlists_upload_file + """start_resources_pcaps_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33235,8 +33410,8 @@ def poll_resources_playlists_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_pcaps_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33244,8 +33419,7 @@ def poll_resources_playlists_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33253,12 +33427,12 @@ def poll_resources_playlists_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_playlists_upload_file_without_preload_content( + def start_resources_pcaps_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33272,12 +33446,12 @@ def poll_resources_playlists_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_playlists_upload_file + """start_resources_pcaps_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33300,8 +33474,8 @@ def poll_resources_playlists_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_playlists_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_pcaps_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33309,8 +33483,7 @@ def poll_resources_playlists_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33318,11 +33491,11 @@ def poll_resources_playlists_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_playlists_upload_file_serialize( + def _start_resources_pcaps_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -33342,11 +33515,11 @@ def _poll_resources_playlists_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33358,6 +33531,19 @@ def _poll_resources_playlists_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33366,8 +33552,8 @@ def _poll_resources_playlists_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/playlists/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/pcaps/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33384,9 +33570,9 @@ def _poll_resources_playlists_upload_file_serialize( @validate_call - def poll_resources_sip_library_upload_file( + def start_resources_playlists_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33400,12 +33586,12 @@ def poll_resources_sip_library_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_sip_library_upload_file + """start_resources_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33428,8 +33614,8 @@ def poll_resources_sip_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33437,8 +33623,7 @@ def poll_resources_sip_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33446,12 +33631,12 @@ def poll_resources_sip_library_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_sip_library_upload_file_with_http_info( + def start_resources_playlists_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33465,12 +33650,12 @@ def poll_resources_sip_library_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_sip_library_upload_file + """start_resources_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33493,8 +33678,8 @@ def poll_resources_sip_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33502,8 +33687,7 @@ def poll_resources_sip_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33511,12 +33695,12 @@ def poll_resources_sip_library_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_sip_library_upload_file_without_preload_content( + def start_resources_playlists_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33530,12 +33714,12 @@ def poll_resources_sip_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_sip_library_upload_file + """start_resources_playlists_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33558,8 +33742,8 @@ def poll_resources_sip_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_sip_library_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_playlists_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33567,8 +33751,7 @@ def poll_resources_sip_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33576,11 +33759,11 @@ def poll_resources_sip_library_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_sip_library_upload_file_serialize( + def _start_resources_playlists_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -33600,11 +33783,11 @@ def _poll_resources_sip_library_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33616,6 +33799,19 @@ def _poll_resources_sip_library_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33624,8 +33820,8 @@ def _poll_resources_sip_library_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/playlists/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33642,9 +33838,9 @@ def _poll_resources_sip_library_upload_file_serialize( @validate_call - def poll_resources_stats_profile_upload_file( + def start_resources_sip_library_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33658,12 +33854,12 @@ def poll_resources_stats_profile_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_stats_profile_upload_file + """start_resources_sip_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33686,8 +33882,8 @@ def poll_resources_stats_profile_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_sip_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33695,8 +33891,7 @@ def poll_resources_stats_profile_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33704,12 +33899,12 @@ def poll_resources_stats_profile_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_stats_profile_upload_file_with_http_info( + def start_resources_sip_library_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33723,12 +33918,12 @@ def poll_resources_stats_profile_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_stats_profile_upload_file + """start_resources_sip_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33751,8 +33946,8 @@ def poll_resources_stats_profile_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_sip_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33760,8 +33955,7 @@ def poll_resources_stats_profile_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33769,12 +33963,12 @@ def poll_resources_stats_profile_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_stats_profile_upload_file_without_preload_content( + def start_resources_sip_library_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33788,12 +33982,12 @@ def poll_resources_stats_profile_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_stats_profile_upload_file + """start_resources_sip_library_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33816,8 +34010,8 @@ def poll_resources_stats_profile_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_stats_profile_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_sip_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33825,8 +34019,7 @@ def poll_resources_stats_profile_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33834,11 +34027,11 @@ def poll_resources_stats_profile_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_stats_profile_upload_file_serialize( + def _start_resources_sip_library_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -33858,11 +34051,11 @@ def _poll_resources_stats_profile_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -33874,6 +34067,19 @@ def _poll_resources_stats_profile_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -33882,8 +34088,8 @@ def _poll_resources_stats_profile_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/sip-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33900,9 +34106,9 @@ def _poll_resources_stats_profile_upload_file_serialize( @validate_call - def poll_resources_tls_certificates_upload_file( + def start_resources_stats_profile_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33916,12 +34122,12 @@ def poll_resources_tls_certificates_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_tls_certificates_upload_file + """start_resources_stats_profile_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33944,8 +34150,8 @@ def poll_resources_tls_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_stats_profile_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33953,8 +34159,7 @@ def poll_resources_tls_certificates_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -33962,12 +34167,12 @@ def poll_resources_tls_certificates_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_certificates_upload_file_with_http_info( + def start_resources_stats_profile_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33981,12 +34186,12 @@ def poll_resources_tls_certificates_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_tls_certificates_upload_file + """start_resources_stats_profile_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34009,8 +34214,8 @@ def poll_resources_tls_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_stats_profile_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34018,8 +34223,7 @@ def poll_resources_tls_certificates_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34027,12 +34231,12 @@ def poll_resources_tls_certificates_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_certificates_upload_file_without_preload_content( + def start_resources_stats_profile_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34046,12 +34250,12 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_certificates_upload_file + """start_resources_stats_profile_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34074,8 +34278,8 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_certificates_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_stats_profile_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34083,8 +34287,7 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34092,11 +34295,11 @@ def poll_resources_tls_certificates_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_tls_certificates_upload_file_serialize( + def _start_resources_stats_profile_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -34116,11 +34319,11 @@ def _poll_resources_tls_certificates_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -34132,6 +34335,19 @@ def _poll_resources_tls_certificates_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34140,8 +34356,8 @@ def _poll_resources_tls_certificates_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/stats-profile/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34158,9 +34374,9 @@ def _poll_resources_tls_certificates_upload_file_serialize( @validate_call - def poll_resources_tls_dhs_upload_file( + def start_resources_tls_certificates_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34174,12 +34390,12 @@ def poll_resources_tls_dhs_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_tls_dhs_upload_file + """start_resources_tls_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34202,8 +34418,8 @@ def poll_resources_tls_dhs_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34211,8 +34427,7 @@ def poll_resources_tls_dhs_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34220,12 +34435,12 @@ def poll_resources_tls_dhs_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_dhs_upload_file_with_http_info( + def start_resources_tls_certificates_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34239,12 +34454,12 @@ def poll_resources_tls_dhs_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_tls_dhs_upload_file + """start_resources_tls_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34267,8 +34482,8 @@ def poll_resources_tls_dhs_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34276,8 +34491,7 @@ def poll_resources_tls_dhs_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34285,12 +34499,12 @@ def poll_resources_tls_dhs_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_dhs_upload_file_without_preload_content( + def start_resources_tls_certificates_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34304,12 +34518,12 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_dhs_upload_file + """start_resources_tls_certificates_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34332,8 +34546,8 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_dhs_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_certificates_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34341,8 +34555,7 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34350,11 +34563,11 @@ def poll_resources_tls_dhs_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_tls_dhs_upload_file_serialize( + def _start_resources_tls_certificates_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -34374,11 +34587,11 @@ def _poll_resources_tls_dhs_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -34390,6 +34603,19 @@ def _poll_resources_tls_dhs_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34398,8 +34624,8 @@ def _poll_resources_tls_dhs_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/tls-certificates/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34416,9 +34642,9 @@ def _poll_resources_tls_dhs_upload_file_serialize( @validate_call - def poll_resources_tls_keys_upload_file( + def start_resources_tls_dhs_upload_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34432,12 +34658,12 @@ def poll_resources_tls_keys_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """poll_resources_tls_keys_upload_file + """start_resources_tls_dhs_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34460,8 +34686,8 @@ def poll_resources_tls_keys_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_dhs_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34469,8 +34695,7 @@ def poll_resources_tls_keys_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34478,12 +34703,12 @@ def poll_resources_tls_keys_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_keys_upload_file_with_http_info( + def start_resources_tls_dhs_upload_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34497,12 +34722,12 @@ def poll_resources_tls_keys_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """poll_resources_tls_keys_upload_file + """start_resources_tls_dhs_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34525,8 +34750,8 @@ def poll_resources_tls_keys_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_dhs_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34534,8 +34759,7 @@ def poll_resources_tls_keys_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34543,12 +34767,12 @@ def poll_resources_tls_keys_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_tls_keys_upload_file_without_preload_content( + def start_resources_tls_dhs_upload_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34562,12 +34786,12 @@ def poll_resources_tls_keys_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_tls_keys_upload_file + """start_resources_tls_dhs_upload_file - Get the state of an ongoing operation. + Upload a file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34590,8 +34814,8 @@ def poll_resources_tls_keys_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_tls_keys_upload_file_serialize( - upload_file_id=upload_file_id, + _param = self._start_resources_tls_dhs_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34599,8 +34823,7 @@ def poll_resources_tls_keys_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '202': None, '500': "ErrorResponse", } return self.api_client.call_api( @@ -34608,11 +34831,11 @@ def poll_resources_tls_keys_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_tls_keys_upload_file_serialize( + def _start_resources_tls_dhs_upload_file_serialize( self, - upload_file_id, + file, _request_auth, _content_type, _headers, @@ -34632,11 +34855,11 @@ def _poll_resources_tls_keys_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -34648,6 +34871,19 @@ def _poll_resources_tls_keys_upload_file_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34656,8 +34892,8 @@ def _poll_resources_tls_keys_upload_file_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}', + method='POST', + resource_path='/api/v2/resources/tls-dhs/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34674,9 +34910,9 @@ def _poll_resources_tls_keys_upload_file_serialize( @validate_call - def poll_resources_user_defined_apps_export_all( + def start_resources_tls_keys_upload_file( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34689,13 +34925,13 @@ def poll_resources_user_defined_apps_export_all( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_resources_user_defined_apps_export_all + ) -> None: + """start_resources_tls_keys_upload_file - Get the state of an ongoing operation. + Upload a file. - :param id: The ID of the async operation. (required) - :type id: int + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34718,8 +34954,8 @@ def poll_resources_user_defined_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_tls_keys_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34727,20 +34963,20 @@ def poll_resources_user_defined_apps_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_user_defined_apps_export_all_with_http_info( + def start_resources_tls_keys_upload_file_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34753,13 +34989,13 @@ def poll_resources_user_defined_apps_export_all_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_resources_user_defined_apps_export_all + ) -> ApiResponse[None]: + """start_resources_tls_keys_upload_file - Get the state of an ongoing operation. + Upload a file. - :param id: The ID of the async operation. (required) - :type id: int + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34782,8 +35018,8 @@ def poll_resources_user_defined_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_tls_keys_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34791,20 +35027,20 @@ def poll_resources_user_defined_apps_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_resources_user_defined_apps_export_all_without_preload_content( + def start_resources_tls_keys_upload_file_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34818,12 +35054,12 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_resources_user_defined_apps_export_all + """start_resources_tls_keys_upload_file - Get the state of an ongoing operation. + Upload a file. - :param id: The ID of the async operation. (required) - :type id: int + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34846,8 +35082,8 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_resources_user_defined_apps_export_all_serialize( - id=id, + _param = self._start_resources_tls_keys_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34855,19 +35091,19 @@ def poll_resources_user_defined_apps_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_resources_user_defined_apps_export_all_serialize( + def _start_resources_tls_keys_upload_file_serialize( self, - id, + file, _request_auth, _content_type, _headers, @@ -34887,11 +35123,11 @@ def _poll_resources_user_defined_apps_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -34903,6 +35139,19 @@ def _poll_resources_user_defined_apps_export_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -34911,8 +35160,8 @@ def _poll_resources_user_defined_apps_export_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/export-all/{id}', + method='POST', + resource_path='/api/v2/resources/tls-keys/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34929,9 +35178,9 @@ def _poll_resources_user_defined_apps_export_all_serialize( @validate_call - def poll_resources_user_defined_apps_upload_file( + def start_resources_user_defined_apps_export_all( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34944,7436 +35193,13 @@ def poll_resources_user_defined_apps_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """poll_resources_user_defined_apps_upload_file + ) -> AsyncContext: + """start_resources_user_defined_apps_export_all - Get the state of an ongoing operation. + Export all apps created by the user. Optionally, provide a list of app IDs to export. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_resources_user_defined_apps_upload_file_with_http_info( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """poll_resources_user_defined_apps_upload_file - - Get the state of an ongoing operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_resources_user_defined_apps_upload_file_without_preload_content( - self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_resources_user_defined_apps_upload_file - - Get the state of an ongoing operation. - - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_resources_user_defined_apps_upload_file_serialize( - upload_file_id=upload_file_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_resources_user_defined_apps_upload_file_serialize( - self, - upload_file_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_apps_export_all( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_apps_export_all - - Export all apps created by the user. Optionally, provide a list of app IDs to export. - - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_apps_export_all_with_http_info( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_apps_export_all - - Export all apps created by the user. Optionally, provide a list of app IDs to export. - - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_apps_export_all_without_preload_content( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_apps_export_all - - Export all apps created by the user. Optionally, provide a list of app IDs to export. - - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_apps_export_all_serialize( - self, - export_apps_operation_input, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if export_apps_operation_input is not None: - _body_params = export_apps_operation_input - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/apps/operations/export-all', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_captures_batch_delete( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_captures_batch_delete - - Delete one or more captures - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_batch_delete_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_captures_batch_delete_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_captures_batch_delete - - Delete one or more captures - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_batch_delete_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_captures_batch_delete_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_captures_batch_delete - - Delete one or more captures - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_batch_delete_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_captures_batch_delete_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/captures/operations/batch-delete', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_captures_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_captures_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_captures_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_captures_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_captures_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_captures_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_captures_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_captures_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/captures/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_certificates_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_certificates_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_certificates_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_certificates_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/certificates/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_config_export_user_defined_apps( - self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_config_export_user_defined_apps - - Export all apps created by the user. - - :param config_id: The ID of the config. (required) - :type config_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_config_export_user_defined_apps_with_http_info( - self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_config_export_user_defined_apps - - Export all apps created by the user. - - :param config_id: The ID of the config. (required) - :type config_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_config_export_user_defined_apps_without_preload_content( - self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_config_export_user_defined_apps - - Export all apps created by the user. - - :param config_id: The ID of the config. (required) - :type config_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_config_export_user_defined_apps_serialize( - self, - config_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if config_id is not None: - _path_params['configId'] = config_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_create_app( - self, - create_app_operation: Optional[CreateAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_create_app - - Create an app from captures - - :param create_app_operation: - :type create_app_operation: CreateAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_create_app_with_http_info( - self, - create_app_operation: Optional[CreateAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_create_app - - Create an app from captures - - :param create_app_operation: - :type create_app_operation: CreateAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_create_app_without_preload_content( - self, - create_app_operation: Optional[CreateAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_create_app - - Create an app from captures - - :param create_app_operation: - :type create_app_operation: CreateAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_create_app_serialize( - self, - create_app_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if create_app_operation is not None: - _body_params = create_app_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/create-app', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_custom_fuzzing_scripts_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_custom_fuzzing_scripts_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_custom_fuzzing_scripts_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_custom_fuzzing_scripts_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_custom_fuzzing_scripts_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_edit_app( - self, - edit_app_operation: Optional[EditAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_edit_app - - Edit an application - - :param edit_app_operation: - :type edit_app_operation: EditAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_edit_app_with_http_info( - self, - edit_app_operation: Optional[EditAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_edit_app - - Edit an application - - :param edit_app_operation: - :type edit_app_operation: EditAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_edit_app_without_preload_content( - self, - edit_app_operation: Optional[EditAppOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_edit_app - - Edit an application - - :param edit_app_operation: - :type edit_app_operation: EditAppOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_edit_app_serialize( - self, - edit_app_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if edit_app_operation is not None: - _body_params = edit_app_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/edit-app', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_find_param_matches( - self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_find_param_matches - - Find parameter matches - - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_find_param_matches_with_http_info( - self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_find_param_matches - - Find parameter matches - - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_find_param_matches_without_preload_content( - self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_find_param_matches - - Find parameter matches - - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_find_param_matches_serialize( - self, - find_param_matches_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if find_param_matches_operation is not None: - _body_params = find_param_matches_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/find-param-matches', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_flow_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_flow_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_flow_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_flow_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_flow_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_flow_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_flow_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/flow-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_get_attack_categories( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_get_attack_categories - - Get the list of attack categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attack_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_attack_categories_with_http_info( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_get_attack_categories - - Get the list of attack categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attack_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_attack_categories_without_preload_content( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_get_attack_categories - - Get the list of attack categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attack_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_get_attack_categories_serialize( - self, - get_categories_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if get_categories_operation is not None: - _body_params = get_categories_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/get-attack-categories', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_get_attacks( - self, - get_attacks_operation: Optional[GetAttacksOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_get_attacks - - Get the list of attacks - - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_attacks_with_http_info( - self, - get_attacks_operation: Optional[GetAttacksOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_get_attacks - - Get the list of attacks - - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_attacks_without_preload_content( - self, - get_attacks_operation: Optional[GetAttacksOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_get_attacks - - Get the list of attacks - - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_get_attacks_serialize( - self, - get_attacks_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if get_attacks_operation is not None: - _body_params = get_attacks_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/get-attacks', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_get_strike_categories( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_get_strike_categories - - Get the list of strike categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strike_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_strike_categories_with_http_info( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_get_strike_categories - - Get the list of strike categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strike_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_strike_categories_without_preload_content( - self, - get_categories_operation: Optional[GetCategoriesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_get_strike_categories - - Get the list of strike categories - - :param get_categories_operation: - :type get_categories_operation: GetCategoriesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strike_categories_serialize( - get_categories_operation=get_categories_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_get_strike_categories_serialize( - self, - get_categories_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if get_categories_operation is not None: - _body_params = get_categories_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/get-strike-categories', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_get_strikes( - self, - get_strikes_operation: Optional[GetStrikesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_get_strikes - - Get the list of strikes - - :param get_strikes_operation: - :type get_strikes_operation: GetStrikesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strikes_serialize( - get_strikes_operation=get_strikes_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_strikes_with_http_info( - self, - get_strikes_operation: Optional[GetStrikesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_get_strikes - - Get the list of strikes - - :param get_strikes_operation: - :type get_strikes_operation: GetStrikesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strikes_serialize( - get_strikes_operation=get_strikes_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_get_strikes_without_preload_content( - self, - get_strikes_operation: Optional[GetStrikesOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_get_strikes - - Get the list of strikes - - :param get_strikes_operation: - :type get_strikes_operation: GetStrikesOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_get_strikes_serialize( - get_strikes_operation=get_strikes_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_get_strikes_serialize( - self, - get_strikes_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if get_strikes_operation is not None: - _body_params = get_strikes_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/operations/get-strikes', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_global_playlists_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_global_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_global_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_global_playlists_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_global_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_global_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_global_playlists_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_global_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_global_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_global_playlists_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/global-playlists/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_http_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_http_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_http_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_http_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_http_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_http_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_http_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_http_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_http_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_http_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/http-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_media_files_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_media_files_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_files_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_media_files_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_media_files_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_files_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_media_files_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_media_files_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_files_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_media_files_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/media-files/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_media_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_media_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_media_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_media_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_media_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_media_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_media_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_media_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/media-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_other_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_other_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_other_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_other_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_other_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_other_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_other_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_other_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_other_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_other_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/other-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_payloads_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_payloads_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_payloads_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_payloads_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_payloads_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_payloads_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_payloads_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_payloads_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_payloads_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_payloads_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/payloads/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_pcaps_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_pcaps_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_pcaps_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_pcaps_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_pcaps_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_pcaps_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_pcaps_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_pcaps_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_pcaps_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_pcaps_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/pcaps/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_playlists_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_playlists_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_playlists_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_playlists_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_playlists_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_playlists_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/playlists/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_sip_library_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_sip_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_sip_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_sip_library_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_sip_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_sip_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_sip_library_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_sip_library_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_sip_library_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_sip_library_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/sip-library/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_stats_profile_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_stats_profile_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_stats_profile_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_stats_profile_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_stats_profile_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_stats_profile_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_stats_profile_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_stats_profile_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_stats_profile_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_stats_profile_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/stats-profile/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_tls_certificates_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_tls_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_certificates_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_tls_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_certificates_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_tls_certificates_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_certificates_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_tls_certificates_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/tls-certificates/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_tls_dhs_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_tls_dhs_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_dhs_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_dhs_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_tls_dhs_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_dhs_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_dhs_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_tls_dhs_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_dhs_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_tls_dhs_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/tls-dhs/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_tls_keys_upload_file( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_tls_keys_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_keys_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_keys_upload_file_with_http_info( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_tls_keys_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_keys_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_resources_tls_keys_upload_file_without_preload_content( - self, - file: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_resources_tls_keys_upload_file - - Upload a file. - - :param file: - :type file: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_resources_tls_keys_upload_file_serialize( - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_resources_tls_keys_upload_file_serialize( - self, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_resources_user_defined_apps_export_all( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_user_defined_apps_export_all - - Export all apps created by the user. Optionally, provide a list of app IDs to export. - - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42412,7 +35238,7 @@ def start_resources_user_defined_apps_export_all( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_export_all_with_http_info( @@ -42475,7 +35301,7 @@ def start_resources_user_defined_apps_export_all_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_export_all_without_preload_content( @@ -42538,7 +35364,7 @@ def start_resources_user_defined_apps_export_all_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_user_defined_apps_export_all_serialize( self, @@ -42678,7 +35504,7 @@ def start_resources_user_defined_apps_upload_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_upload_file_with_http_info( @@ -42742,7 +35568,7 @@ def start_resources_user_defined_apps_upload_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_resources_user_defined_apps_upload_file_without_preload_content( @@ -42806,7 +35632,7 @@ def start_resources_user_defined_apps_upload_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_resources_user_defined_apps_upload_file_serialize( self, diff --git a/cyperf/api/authorization_api.py b/cyperf/api/authorization_api.py index d1a8d8b..37b7b39 100644 --- a/cyperf/api/authorization_api.py +++ b/cyperf/api/authorization_api.py @@ -122,7 +122,7 @@ def authenticate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def authenticate_with_http_info( @@ -205,7 +205,7 @@ def authenticate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def authenticate_without_preload_content( @@ -288,7 +288,7 @@ def authenticate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _authenticate_serialize( self, diff --git a/cyperf/api/brokers_api.py b/cyperf/api/brokers_api.py index 08483ec..2c39111 100644 --- a/cyperf/api/brokers_api.py +++ b/cyperf/api/brokers_api.py @@ -105,7 +105,7 @@ def create_brokers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_brokers_with_http_info( @@ -170,7 +170,7 @@ def create_brokers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_brokers_without_preload_content( @@ -235,7 +235,7 @@ def create_brokers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_brokers_serialize( self, @@ -378,7 +378,7 @@ def delete_broker( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_broker_with_http_info( @@ -444,7 +444,7 @@ def delete_broker_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_broker_without_preload_content( @@ -510,7 +510,7 @@ def delete_broker_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_broker_serialize( self, @@ -637,7 +637,7 @@ def get_broker_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_broker_by_id_with_http_info( @@ -701,7 +701,7 @@ def get_broker_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_broker_by_id_without_preload_content( @@ -765,7 +765,7 @@ def get_broker_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_broker_by_id_serialize( self, @@ -897,7 +897,7 @@ def get_brokers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_brokers_with_http_info( @@ -966,7 +966,7 @@ def get_brokers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_brokers_without_preload_content( @@ -1035,7 +1035,7 @@ def get_brokers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_brokers_serialize( self, @@ -1175,7 +1175,7 @@ def patch_broker( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_broker_with_http_info( @@ -1245,7 +1245,7 @@ def patch_broker_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_broker_without_preload_content( @@ -1315,7 +1315,7 @@ def patch_broker_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_broker_serialize( self, diff --git a/cyperf/api/configurations_api.py b/cyperf/api/configurations_api.py index a353176..a68ff2f 100644 --- a/cyperf/api/configurations_api.py +++ b/cyperf/api/configurations_api.py @@ -111,7 +111,7 @@ def create_configs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_configs_with_http_info( @@ -176,7 +176,7 @@ def create_configs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_configs_without_preload_content( @@ -241,7 +241,7 @@ def create_configs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_configs_serialize( self, @@ -387,7 +387,7 @@ def delete_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_config_with_http_info( @@ -453,7 +453,7 @@ def delete_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_config_without_preload_content( @@ -519,7 +519,7 @@ def delete_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_config_serialize( self, @@ -655,7 +655,7 @@ def get_config_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_by_id_with_http_info( @@ -728,7 +728,7 @@ def get_config_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_by_id_without_preload_content( @@ -801,7 +801,7 @@ def get_config_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_by_id_serialize( self, @@ -945,7 +945,7 @@ def get_config_categories( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_categories_with_http_info( @@ -1013,7 +1013,7 @@ def get_config_categories_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_categories_without_preload_content( @@ -1081,7 +1081,7 @@ def get_config_categories_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_categories_serialize( self, @@ -1235,7 +1235,7 @@ def get_configs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_configs_with_http_info( @@ -1319,7 +1319,7 @@ def get_configs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_configs_without_preload_content( @@ -1403,7 +1403,7 @@ def get_configs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_configs_serialize( self, @@ -1561,7 +1561,7 @@ def get_resources_custom_import_operations( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_import_operations_with_http_info( @@ -1629,7 +1629,7 @@ def get_resources_custom_import_operations_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_resources_custom_import_operations_without_preload_content( @@ -1697,7 +1697,7 @@ def get_resources_custom_import_operations_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_resources_custom_import_operations_serialize( self, @@ -1836,7 +1836,7 @@ def patch_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_config_with_http_info( @@ -1905,7 +1905,7 @@ def patch_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_config_without_preload_content( @@ -1974,7 +1974,7 @@ def patch_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_config_serialize( self, @@ -2055,10 +2055,50 @@ def _patch_config_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_configs_batch_delete( + def start_configs_batch_delete( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2072,12 +2112,12 @@ def poll_configs_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_configs_batch_delete + """start_configs_batch_delete - Get the state of an ongoing operation. + Remove multiple configurations. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2100,8 +2140,8 @@ def poll_configs_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_batch_delete_serialize( - id=id, + _param = self._start_configs_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2109,20 +2149,19 @@ def poll_configs_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_batch_delete_with_http_info( + def start_configs_batch_delete_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2136,12 +2175,12 @@ def poll_configs_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_configs_batch_delete + """start_configs_batch_delete - Get the state of an ongoing operation. + Remove multiple configurations. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2164,8 +2203,8 @@ def poll_configs_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_batch_delete_serialize( - id=id, + _param = self._start_configs_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2173,20 +2212,19 @@ def poll_configs_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_batch_delete_without_preload_content( + def start_configs_batch_delete_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2200,12 +2238,12 @@ def poll_configs_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_batch_delete + """start_configs_batch_delete - Get the state of an ongoing operation. + Remove multiple configurations. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2228,8 +2266,8 @@ def poll_configs_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_batch_delete_serialize( - id=id, + _param = self._start_configs_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2237,19 +2275,18 @@ def poll_configs_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_batch_delete_serialize( + def _start_configs_batch_delete_serialize( self, - id, + start_agents_batch_delete_request_inner, _request_auth, _content_type, _headers, @@ -2259,6 +2296,7 @@ def _poll_configs_batch_delete_serialize( _host = None _collection_formats: Dict[str, str] = { + 'StartAgentsBatchDeleteRequestInner': '', } _path_params: Dict[str, str] = {} @@ -2269,12 +2307,12 @@ def _poll_configs_batch_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if start_agents_batch_delete_request_inner is not None: + _body_params = start_agents_batch_delete_request_inner # set the HTTP header `Accept` @@ -2285,6 +2323,19 @@ def _poll_configs_batch_delete_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2293,8 +2344,8 @@ def _poll_configs_batch_delete_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/batch-delete/{id}', + method='POST', + resource_path='/api/v2/configs/operations/batch-delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2311,9 +2362,9 @@ def _poll_configs_batch_delete_serialize( @validate_call - def poll_configs_export_all( + def start_configs_export_all( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_all_operation: Optional[ExportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2327,12 +2378,12 @@ def poll_configs_export_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_configs_export_all + """start_configs_export_all - Get the state of an ongoing operation. + Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_all_operation: + :type export_all_operation: ExportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2355,8 +2406,8 @@ def poll_configs_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_export_all_serialize( - id=id, + _param = self._start_configs_export_all_serialize( + export_all_operation=export_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2364,20 +2415,19 @@ def poll_configs_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_export_all_with_http_info( + def start_configs_export_all_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_all_operation: Optional[ExportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2391,12 +2441,12 @@ def poll_configs_export_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_configs_export_all + """start_configs_export_all - Get the state of an ongoing operation. + Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_all_operation: + :type export_all_operation: ExportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2419,8 +2469,8 @@ def poll_configs_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_export_all_serialize( - id=id, + _param = self._start_configs_export_all_serialize( + export_all_operation=export_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2428,20 +2478,19 @@ def poll_configs_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_export_all_without_preload_content( + def start_configs_export_all_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + export_all_operation: Optional[ExportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2455,12 +2504,12 @@ def poll_configs_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_export_all + """start_configs_export_all - Get the state of an ongoing operation. + Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - :param id: The ID of the async operation. (required) - :type id: int + :param export_all_operation: + :type export_all_operation: ExportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2483,8 +2532,8 @@ def poll_configs_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_export_all_serialize( - id=id, + _param = self._start_configs_export_all_serialize( + export_all_operation=export_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2492,19 +2541,18 @@ def poll_configs_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_export_all_serialize( + def _start_configs_export_all_serialize( self, - id, + export_all_operation, _request_auth, _content_type, _headers, @@ -2524,12 +2572,12 @@ def _poll_configs_export_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if export_all_operation is not None: + _body_params = export_all_operation # set the HTTP header `Accept` @@ -2540,6 +2588,19 @@ def _poll_configs_export_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2548,8 +2609,8 @@ def _poll_configs_export_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/exportAll/{id}', + method='POST', + resource_path='/api/v2/configs/operations/exportAll', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2566,9 +2627,9 @@ def _poll_configs_export_all_serialize( @validate_call - def poll_configs_import( + def start_configs_import( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + body: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2582,12 +2643,12 @@ def poll_configs_import( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_configs_import + """start_configs_import - Get the state of an ongoing operation. + Import a single configuration from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param body: + :type body: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2610,8 +2671,8 @@ def poll_configs_import( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._start_configs_import_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2619,20 +2680,19 @@ def poll_configs_import( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_with_http_info( + def start_configs_import_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + body: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2646,12 +2706,12 @@ def poll_configs_import_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_configs_import + """start_configs_import - Get the state of an ongoing operation. + Import a single configuration from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param body: + :type body: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2674,8 +2734,8 @@ def poll_configs_import_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._start_configs_import_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2683,20 +2743,19 @@ def poll_configs_import_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_without_preload_content( + def start_configs_import_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + body: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2710,12 +2769,12 @@ def poll_configs_import_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_import + """start_configs_import - Get the state of an ongoing operation. + Import a single configuration from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param body: + :type body: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2738,8 +2797,8 @@ def poll_configs_import_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_serialize( - id=id, + _param = self._start_configs_import_serialize( + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2747,19 +2806,18 @@ def poll_configs_import_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_import_serialize( + def _start_configs_import_serialize( self, - id, + body, _request_auth, _content_type, _headers, @@ -2779,12 +2837,17 @@ def _poll_configs_import_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if body is not None: + # convert to byte array if the input is a file name (str) + if isinstance(body, str): + with open(body, "rb") as _fp: + _body_params = _fp.read() + else: + _body_params = body # set the HTTP header `Accept` @@ -2795,6 +2858,21 @@ def _poll_configs_import_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/x-zip', + 'application/zip', + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2803,8 +2881,8 @@ def _poll_configs_import_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/import/{id}', + method='POST', + resource_path='/api/v2/configs/operations/import', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2821,9 +2899,9 @@ def _poll_configs_import_serialize( @validate_call - def poll_configs_import_all( + def start_configs_import_all( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + import_all_operation: Optional[ImportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2837,12 +2915,12 @@ def poll_configs_import_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_configs_import_all + """start_configs_import_all - Get the state of an ongoing operation. + Import all configurations from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param import_all_operation: + :type import_all_operation: ImportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2865,8 +2943,8 @@ def poll_configs_import_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._start_configs_import_all_serialize( + import_all_operation=import_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2874,20 +2952,19 @@ def poll_configs_import_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_all_with_http_info( + def start_configs_import_all_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + import_all_operation: Optional[ImportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2901,12 +2978,12 @@ def poll_configs_import_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_configs_import_all + """start_configs_import_all - Get the state of an ongoing operation. + Import all configurations from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param import_all_operation: + :type import_all_operation: ImportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2929,8 +3006,8 @@ def poll_configs_import_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._start_configs_import_all_serialize( + import_all_operation=import_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2938,20 +3015,19 @@ def poll_configs_import_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_configs_import_all_without_preload_content( + def start_configs_import_all_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + import_all_operation: Optional[ImportAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2965,12 +3041,12 @@ def poll_configs_import_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_configs_import_all + """start_configs_import_all - Get the state of an ongoing operation. + Import all configurations from the specified file. - :param id: The ID of the async operation. (required) - :type id: int + :param import_all_operation: + :type import_all_operation: ImportAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2993,8 +3069,8 @@ def poll_configs_import_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_configs_import_all_serialize( - id=id, + _param = self._start_configs_import_all_serialize( + import_all_operation=import_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3002,19 +3078,18 @@ def poll_configs_import_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_configs_import_all_serialize( + def _start_configs_import_all_serialize( self, - id, + import_all_operation, _request_auth, _content_type, _headers, @@ -3034,1067 +3109,12 @@ def _poll_configs_import_all_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/configs/operations/importAll/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_configs_batch_delete( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_configs_batch_delete - - Remove multiple configurations. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_batch_delete_with_http_info( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_configs_batch_delete - - Remove multiple configurations. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_batch_delete_without_preload_content( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_configs_batch_delete - - Remove multiple configurations. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_configs_batch_delete_serialize( - self, - start_agents_batch_delete_request_inner, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'StartAgentsBatchDeleteRequestInner': '', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if start_agents_batch_delete_request_inner is not None: - _body_params = start_agents_batch_delete_request_inner - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/configs/operations/batch-delete', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_configs_export_all( - self, - export_all_operation: Optional[ExportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_configs_export_all - - Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - - :param export_all_operation: - :type export_all_operation: ExportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_export_all_serialize( - export_all_operation=export_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_export_all_with_http_info( - self, - export_all_operation: Optional[ExportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_configs_export_all - - Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - - :param export_all_operation: - :type export_all_operation: ExportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_export_all_serialize( - export_all_operation=export_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_export_all_without_preload_content( - self, - export_all_operation: Optional[ExportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_configs_export_all - - Export all configurations owned by the current user. Optionally, provide a list of config IDs to export. - - :param export_all_operation: - :type export_all_operation: ExportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_export_all_serialize( - export_all_operation=export_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_configs_export_all_serialize( - self, - export_all_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if export_all_operation is not None: - _body_params = export_all_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/configs/operations/exportAll', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_configs_import( - self, - body: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_configs_import - - Import a single configuration from the specified file. - - :param body: - :type body: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_serialize( - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_import_with_http_info( - self, - body: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_configs_import - - Import a single configuration from the specified file. - - :param body: - :type body: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_serialize( - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_import_without_preload_content( - self, - body: Optional[Union[StrictBytes, StrictStr]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_configs_import - - Import a single configuration from the specified file. - - :param body: - :type body: bytearray - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_serialize( - body=body, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_configs_import_serialize( - self, - body, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if body is not None: - # convert to byte array if the input is a file name (str) - if isinstance(body, str): - with open(body, "rb") as _fp: - _body_params = _fp.read() - else: - _body_params = body - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/x-zip', - 'application/zip', - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/configs/operations/import', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_configs_import_all( - self, - import_all_operation: Optional[ImportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_configs_import_all - - Import all configurations from the specified file. - - :param import_all_operation: - :type import_all_operation: ImportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_all_serialize( - import_all_operation=import_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_import_all_with_http_info( - self, - import_all_operation: Optional[ImportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_configs_import_all - - Import all configurations from the specified file. - - :param import_all_operation: - :type import_all_operation: ImportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_all_serialize( - import_all_operation=import_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_configs_import_all_without_preload_content( - self, - import_all_operation: Optional[ImportAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_configs_import_all - - Import all configurations from the specified file. - - :param import_all_operation: - :type import_all_operation: ImportAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_configs_import_all_serialize( - import_all_operation=import_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_configs_import_all_serialize( - self, - import_all_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if import_all_operation is not None: - _body_params = import_all_operation + if import_all_operation is not None: + _body_params = import_all_operation # set the HTTP header `Accept` @@ -4211,7 +3231,7 @@ def update_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_config_with_http_info( @@ -4281,7 +3301,7 @@ def update_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_config_without_preload_content( @@ -4351,7 +3371,7 @@ def update_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_config_serialize( self, diff --git a/cyperf/api/data_migration_api.py b/cyperf/api/data_migration_api.py index 58b0d8e..674238c 100644 --- a/cyperf/api/data_migration_api.py +++ b/cyperf/api/data_migration_api.py @@ -42,512 +42,22 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def poll_controller_migration_export( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_export_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_export_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controller_migration_export - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_export_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controller_migration_export_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controller-migration/operations/export/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) + + + - @validate_call - def poll_controller_migration_import( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_controller_migration_import - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + - @validate_call - def poll_controller_migration_import_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_controller_migration_import + - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_controller_migration_import_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_controller_migration_import - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_controller_migration_import_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_controller_migration_import_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/controller-migration/operations/import/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -613,7 +123,7 @@ def start_controller_migration_export( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_export_with_http_info( @@ -676,7 +186,7 @@ def start_controller_migration_export_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_export_without_preload_content( @@ -739,7 +249,7 @@ def start_controller_migration_export_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controller_migration_export_serialize( self, @@ -874,7 +384,7 @@ def start_controller_migration_import( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_import_with_http_info( @@ -933,7 +443,7 @@ def start_controller_migration_import_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_controller_migration_import_without_preload_content( @@ -992,7 +502,7 @@ def start_controller_migration_import_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_controller_migration_import_serialize( self, diff --git a/cyperf/api/diagnostics_api.py b/cyperf/api/diagnostics_api.py index 43eee01..9351718 100644 --- a/cyperf/api/diagnostics_api.py +++ b/cyperf/api/diagnostics_api.py @@ -102,7 +102,7 @@ def api_v2_diagnostics_components_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_components_get_with_http_info( @@ -162,7 +162,7 @@ def api_v2_diagnostics_components_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_components_get_without_preload_content( @@ -222,7 +222,7 @@ def api_v2_diagnostics_components_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_components_get_serialize( self, @@ -341,7 +341,7 @@ def api_v2_diagnostics_operations_delete_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_delete_with_http_info( @@ -400,7 +400,7 @@ def api_v2_diagnostics_operations_delete_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_delete_without_preload_content( @@ -459,7 +459,7 @@ def api_v2_diagnostics_operations_delete_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_delete_delete_serialize( self, @@ -582,7 +582,7 @@ def api_v2_diagnostics_operations_delete_id_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_id_delete_with_http_info( @@ -645,7 +645,7 @@ def api_v2_diagnostics_operations_delete_id_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_delete_id_delete_without_preload_content( @@ -708,7 +708,7 @@ def api_v2_diagnostics_operations_delete_id_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_delete_id_delete_serialize( self, @@ -830,7 +830,7 @@ def api_v2_diagnostics_operations_export_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_get_with_http_info( @@ -889,7 +889,7 @@ def api_v2_diagnostics_operations_export_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_get_without_preload_content( @@ -948,7 +948,7 @@ def api_v2_diagnostics_operations_export_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_get_serialize( self, @@ -1072,7 +1072,7 @@ def api_v2_diagnostics_operations_export_id_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_get_with_http_info( @@ -1136,7 +1136,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_get_without_preload_content( @@ -1200,7 +1200,7 @@ def api_v2_diagnostics_operations_export_id_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_id_get_serialize( self, @@ -1327,7 +1327,7 @@ def api_v2_diagnostics_operations_export_id_result_get( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_result_get_with_http_info( @@ -1391,7 +1391,7 @@ def api_v2_diagnostics_operations_export_id_result_get_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_id_result_get_without_preload_content( @@ -1455,7 +1455,7 @@ def api_v2_diagnostics_operations_export_id_result_get_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_id_result_get_serialize( self, @@ -1582,7 +1582,7 @@ def api_v2_diagnostics_operations_export_post( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_post_with_http_info( @@ -1646,7 +1646,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def api_v2_diagnostics_operations_export_post_without_preload_content( @@ -1710,7 +1710,7 @@ def api_v2_diagnostics_operations_export_post_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _api_v2_diagnostics_operations_export_post_serialize( self, diff --git a/cyperf/api/license_servers_api.py b/cyperf/api/license_servers_api.py index 1e10137..a45eb7a 100644 --- a/cyperf/api/license_servers_api.py +++ b/cyperf/api/license_servers_api.py @@ -105,7 +105,7 @@ def create_license_servers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_license_servers_with_http_info( @@ -170,7 +170,7 @@ def create_license_servers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_license_servers_without_preload_content( @@ -235,7 +235,7 @@ def create_license_servers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_license_servers_serialize( self, @@ -377,7 +377,7 @@ def delete_license_server( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_license_server_with_http_info( @@ -442,7 +442,7 @@ def delete_license_server_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_license_server_without_preload_content( @@ -507,7 +507,7 @@ def delete_license_server_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_license_server_serialize( self, @@ -635,7 +635,7 @@ def get_license_server_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_server_by_id_with_http_info( @@ -700,7 +700,7 @@ def get_license_server_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_server_by_id_without_preload_content( @@ -765,7 +765,7 @@ def get_license_server_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_server_by_id_serialize( self, @@ -896,7 +896,7 @@ def get_license_servers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_servers_with_http_info( @@ -964,7 +964,7 @@ def get_license_servers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_servers_without_preload_content( @@ -1032,7 +1032,7 @@ def get_license_servers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_servers_serialize( self, @@ -1171,7 +1171,7 @@ def patch_license_server( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_license_server_with_http_info( @@ -1240,7 +1240,7 @@ def patch_license_server_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_license_server_without_preload_content( @@ -1309,7 +1309,7 @@ def patch_license_server_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_license_server_serialize( self, diff --git a/cyperf/api/licensing_api.py b/cyperf/api/licensing_api.py index e8a676d..b487458 100644 --- a/cyperf/api/licensing_api.py +++ b/cyperf/api/licensing_api.py @@ -112,7 +112,7 @@ def activate_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def activate_licenses_with_http_info( @@ -175,7 +175,7 @@ def activate_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def activate_licenses_without_preload_content( @@ -238,7 +238,7 @@ def activate_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _activate_licenses_serialize( self, @@ -378,7 +378,7 @@ def deactivate_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def deactivate_licenses_with_http_info( @@ -441,7 +441,7 @@ def deactivate_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def deactivate_licenses_without_preload_content( @@ -504,7 +504,7 @@ def deactivate_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _deactivate_licenses_serialize( self, @@ -640,7 +640,7 @@ def generate_offline_request( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def generate_offline_request_with_http_info( @@ -699,7 +699,7 @@ def generate_offline_request_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def generate_offline_request_without_preload_content( @@ -758,7 +758,7 @@ def generate_offline_request_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _generate_offline_request_serialize( self, @@ -882,7 +882,7 @@ def get_activation_code_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_with_http_info( @@ -945,7 +945,7 @@ def get_activation_code_info_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_without_preload_content( @@ -1008,7 +1008,7 @@ def get_activation_code_info_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_activation_code_info_serialize( self, @@ -1147,7 +1147,7 @@ def get_activation_code_info_list( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_list_with_http_info( @@ -1210,7 +1210,7 @@ def get_activation_code_info_list_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_activation_code_info_list_without_preload_content( @@ -1273,7 +1273,7 @@ def get_activation_code_info_list_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_activation_code_info_list_serialize( self, @@ -1416,7 +1416,7 @@ def get_async_operation_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_result_with_http_info( @@ -1483,7 +1483,7 @@ def get_async_operation_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_result_without_preload_content( @@ -1550,7 +1550,7 @@ def get_async_operation_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_async_operation_result_serialize( self, @@ -1683,7 +1683,7 @@ def get_async_operation_status( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_status_with_http_info( @@ -1750,7 +1750,7 @@ def get_async_operation_status_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_async_operation_status_without_preload_content( @@ -1817,7 +1817,7 @@ def get_async_operation_status_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_async_operation_status_serialize( self, @@ -1942,7 +1942,7 @@ def get_counted_feature_stats( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_counted_feature_stats_with_http_info( @@ -2001,7 +2001,7 @@ def get_counted_feature_stats_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_counted_feature_stats_without_preload_content( @@ -2060,7 +2060,7 @@ def get_counted_feature_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_counted_feature_stats_serialize( self, @@ -2183,7 +2183,7 @@ def get_entitlement_code_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_entitlement_code_info_with_http_info( @@ -2246,7 +2246,7 @@ def get_entitlement_code_info_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_entitlement_code_info_without_preload_content( @@ -2309,7 +2309,7 @@ def get_entitlement_code_info_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_entitlement_code_info_serialize( self, @@ -2444,7 +2444,7 @@ def get_hostid( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_hostid_with_http_info( @@ -2503,7 +2503,7 @@ def get_hostid_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_hostid_without_preload_content( @@ -2562,7 +2562,7 @@ def get_hostid_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_hostid_serialize( self, @@ -2681,7 +2681,7 @@ def get_installed_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_installed_licenses_with_http_info( @@ -2740,7 +2740,7 @@ def get_installed_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_installed_licenses_without_preload_content( @@ -2799,7 +2799,7 @@ def get_installed_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_installed_licenses_serialize( self, @@ -2922,7 +2922,7 @@ def get_license( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_with_http_info( @@ -2985,7 +2985,7 @@ def get_license_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_without_preload_content( @@ -3048,7 +3048,7 @@ def get_license_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_serialize( self, @@ -3182,7 +3182,7 @@ def get_license_async_operation_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_async_operation_result_with_http_info( @@ -3253,7 +3253,7 @@ def get_license_async_operation_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_async_operation_result_without_preload_content( @@ -3324,7 +3324,7 @@ def get_license_async_operation_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_async_operation_result_serialize( self, @@ -3464,7 +3464,7 @@ def get_license_async_operation_status( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_async_operation_status_with_http_info( @@ -3535,7 +3535,7 @@ def get_license_async_operation_status_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_license_async_operation_status_without_preload_content( @@ -3606,7 +3606,7 @@ def get_license_async_operation_status_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_license_async_operation_status_serialize( self, @@ -3738,7 +3738,7 @@ def import_offline_license( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def import_offline_license_with_http_info( @@ -3801,7 +3801,7 @@ def import_offline_license_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def import_offline_license_without_preload_content( @@ -3864,7 +3864,7 @@ def import_offline_license_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _import_offline_license_serialize( self, @@ -4007,7 +4007,7 @@ def remove_reservation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def remove_reservation_with_http_info( @@ -4074,7 +4074,7 @@ def remove_reservation_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def remove_reservation_without_preload_content( @@ -4141,7 +4141,7 @@ def remove_reservation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _remove_reservation_serialize( self, @@ -4280,7 +4280,7 @@ def sync_licenses( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def sync_licenses_with_http_info( @@ -4339,7 +4339,7 @@ def sync_licenses_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def sync_licenses_without_preload_content( @@ -4398,7 +4398,7 @@ def sync_licenses_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _sync_licenses_serialize( self, @@ -4517,7 +4517,7 @@ def test_backend_connectivity( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def test_backend_connectivity_with_http_info( @@ -4576,7 +4576,7 @@ def test_backend_connectivity_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def test_backend_connectivity_without_preload_content( @@ -4635,7 +4635,7 @@ def test_backend_connectivity_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _test_backend_connectivity_serialize( self, @@ -4762,7 +4762,7 @@ def update_reservation( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_reservation_with_http_info( @@ -4829,7 +4829,7 @@ def update_reservation_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_reservation_without_preload_content( @@ -4896,7 +4896,7 @@ def update_reservation_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_reservation_serialize( self, diff --git a/cyperf/api/notifications_api.py b/cyperf/api/notifications_api.py index 48cebe5..aa99ac0 100644 --- a/cyperf/api/notifications_api.py +++ b/cyperf/api/notifications_api.py @@ -109,7 +109,7 @@ def delete_notification( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_notification_with_http_info( @@ -176,7 +176,7 @@ def delete_notification_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_notification_without_preload_content( @@ -243,7 +243,7 @@ def delete_notification_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_notification_serialize( self, @@ -370,7 +370,7 @@ def get_notification_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_by_id_with_http_info( @@ -434,7 +434,7 @@ def get_notification_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_by_id_without_preload_content( @@ -498,7 +498,7 @@ def get_notification_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notification_by_id_serialize( self, @@ -673,7 +673,7 @@ def get_notification_counts( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_counts_with_http_info( @@ -785,7 +785,7 @@ def get_notification_counts_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notification_counts_without_preload_content( @@ -897,7 +897,7 @@ def get_notification_counts_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notification_counts_serialize( self, @@ -1142,7 +1142,7 @@ def get_notifications( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notifications_with_http_info( @@ -1262,7 +1262,7 @@ def get_notifications_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_notifications_without_preload_content( @@ -1382,7 +1382,7 @@ def get_notifications_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_notifications_serialize( self, @@ -1519,512 +1519,22 @@ def _get_notifications_serialize( - @validate_call - def poll_notifications_cleanup( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_cleanup_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_cleanup_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_notifications_cleanup - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_cleanup_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_notifications_cleanup_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/notifications/operations/cleanup/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_notifications_dismiss( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_notifications_dismiss + - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - @validate_call - def poll_notifications_dismiss_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_notifications_dismiss - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_notifications_dismiss_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_notifications_dismiss - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_notifications_dismiss_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_notifications_dismiss_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/notifications/operations/dismiss/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -2086,7 +1596,7 @@ def start_notifications_cleanup( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_cleanup_with_http_info( @@ -2145,7 +1655,7 @@ def start_notifications_cleanup_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_cleanup_without_preload_content( @@ -2204,7 +1714,7 @@ def start_notifications_cleanup_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_notifications_cleanup_serialize( self, @@ -2323,7 +1833,7 @@ def start_notifications_dismiss( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_dismiss_with_http_info( @@ -2382,7 +1892,7 @@ def start_notifications_dismiss_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_notifications_dismiss_without_preload_content( @@ -2441,7 +1951,7 @@ def start_notifications_dismiss_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_notifications_dismiss_serialize( self, diff --git a/cyperf/api/reports_api.py b/cyperf/api/reports_api.py index a6af096..83ca1ef 100644 --- a/cyperf/api/reports_api.py +++ b/cyperf/api/reports_api.py @@ -109,7 +109,7 @@ def download_pdf( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def download_pdf_with_http_info( @@ -177,7 +177,7 @@ def download_pdf_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def download_pdf_without_preload_content( @@ -245,7 +245,7 @@ def download_pdf_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _download_pdf_serialize( self, @@ -381,7 +381,7 @@ def get_result_download_csv_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_csv_by_id_with_http_info( @@ -450,7 +450,7 @@ def get_result_download_csv_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_csv_by_id_without_preload_content( @@ -519,7 +519,7 @@ def get_result_download_csv_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_csv_by_id_serialize( self, @@ -587,542 +587,22 @@ def _get_result_download_csv_by_id_serialize( - @validate_call - def poll_result_generate_csv( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_csv_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_csv_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_result_generate_csv - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_csv_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_result_generate_csv_serialize( - self, - result_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-csv/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_result_generate_pdf( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_result_generate_pdf - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_pdf_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_result_generate_pdf - - Get the state of an ongoing operation. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_result_generate_pdf_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_result_generate_pdf - - Get the state of an ongoing operation. + - :param result_id: The ID of the result. (required) - :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_result_generate_pdf_serialize( - result_id=result_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - def _poll_result_generate_pdf_serialize( - self, - result_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + + - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] + - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-pdf/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1192,7 +672,7 @@ def start_result_generate_csv( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_csv_with_http_info( @@ -1259,7 +739,7 @@ def start_result_generate_csv_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_csv_without_preload_content( @@ -1326,7 +806,7 @@ def start_result_generate_csv_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_result_generate_csv_serialize( self, @@ -1472,7 +952,7 @@ def start_result_generate_pdf( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_pdf_with_http_info( @@ -1539,7 +1019,7 @@ def start_result_generate_pdf_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_result_generate_pdf_without_preload_content( @@ -1606,7 +1086,7 @@ def start_result_generate_pdf_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_result_generate_pdf_serialize( self, diff --git a/cyperf/api/sessions_api.py b/cyperf/api/sessions_api.py index 05fc432..705e787 100644 --- a/cyperf/api/sessions_api.py +++ b/cyperf/api/sessions_api.py @@ -121,7 +121,7 @@ def create_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_session_meta_with_http_info( @@ -190,7 +190,7 @@ def create_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_session_meta_without_preload_content( @@ -259,7 +259,7 @@ def create_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_session_meta_serialize( self, @@ -404,7 +404,7 @@ def create_sessions( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_sessions_with_http_info( @@ -469,7 +469,7 @@ def create_sessions_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_sessions_without_preload_content( @@ -534,7 +534,7 @@ def create_sessions_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_sessions_serialize( self, @@ -678,7 +678,7 @@ def delete_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_with_http_info( @@ -745,7 +745,7 @@ def delete_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_without_preload_content( @@ -812,7 +812,7 @@ def delete_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_session_serialize( self, @@ -944,7 +944,7 @@ def delete_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_meta_with_http_info( @@ -1013,7 +1013,7 @@ def delete_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_session_meta_without_preload_content( @@ -1082,7 +1082,7 @@ def delete_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_session_meta_serialize( self, @@ -1212,7 +1212,7 @@ def get_config_docs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_docs_with_http_info( @@ -1276,7 +1276,7 @@ def get_config_docs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_docs_without_preload_content( @@ -1340,7 +1340,7 @@ def get_config_docs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_docs_serialize( self, @@ -1467,7 +1467,7 @@ def get_config_granular_stats( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_with_http_info( @@ -1531,7 +1531,7 @@ def get_config_granular_stats_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_without_preload_content( @@ -1595,7 +1595,7 @@ def get_config_granular_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_granular_stats_serialize( self, @@ -1722,7 +1722,7 @@ def get_config_granular_stats_filters( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_filters_with_http_info( @@ -1786,7 +1786,7 @@ def get_config_granular_stats_filters_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_config_granular_stats_filters_without_preload_content( @@ -1850,7 +1850,7 @@ def get_config_granular_stats_filters_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_config_granular_stats_filters_serialize( self, @@ -1981,7 +1981,7 @@ def get_session_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_by_id_with_http_info( @@ -2049,7 +2049,7 @@ def get_session_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_by_id_without_preload_content( @@ -2117,7 +2117,7 @@ def get_session_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_by_id_serialize( self, @@ -2253,7 +2253,7 @@ def get_session_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_config_with_http_info( @@ -2321,7 +2321,7 @@ def get_session_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_config_without_preload_content( @@ -2389,7 +2389,7 @@ def get_session_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_config_serialize( self, @@ -2529,7 +2529,7 @@ def get_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_with_http_info( @@ -2601,7 +2601,7 @@ def get_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_without_preload_content( @@ -2673,7 +2673,7 @@ def get_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_meta_serialize( self, @@ -2814,7 +2814,7 @@ def get_session_meta_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_by_id_with_http_info( @@ -2882,7 +2882,7 @@ def get_session_meta_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_meta_by_id_without_preload_content( @@ -2950,7 +2950,7 @@ def get_session_meta_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_meta_by_id_serialize( self, @@ -3079,7 +3079,7 @@ def get_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_test_with_http_info( @@ -3142,7 +3142,7 @@ def get_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_session_test_without_preload_content( @@ -3205,7 +3205,7 @@ def get_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_session_test_serialize( self, @@ -3355,7 +3355,7 @@ def get_sessions( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_sessions_with_http_info( @@ -3442,7 +3442,7 @@ def get_sessions_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_sessions_without_preload_content( @@ -3529,7 +3529,7 @@ def get_sessions_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_sessions_serialize( self, @@ -3693,7 +3693,7 @@ def patch_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_with_http_info( @@ -3762,7 +3762,7 @@ def patch_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_without_preload_content( @@ -3831,7 +3831,7 @@ def patch_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_serialize( self, @@ -3983,7 +3983,7 @@ def patch_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_meta_with_http_info( @@ -4056,7 +4056,7 @@ def patch_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_meta_without_preload_content( @@ -4129,7 +4129,7 @@ def patch_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_meta_serialize( self, @@ -4278,7 +4278,7 @@ def patch_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_test_with_http_info( @@ -4345,7 +4345,7 @@ def patch_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def patch_session_test_without_preload_content( @@ -4412,7 +4412,7 @@ def patch_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _patch_session_test_serialize( self, @@ -4493,12 +4493,102 @@ def _patch_session_test_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_config_add_applications( + def start_config_add_applications( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4512,16 +4602,16 @@ def poll_config_add_applications( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4544,10 +4634,10 @@ def poll_config_add_applications( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4555,21 +4645,21 @@ def poll_config_add_applications( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_config_add_applications_with_http_info( + def start_config_add_applications_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4583,16 +4673,16 @@ def poll_config_add_applications_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4615,10 +4705,10 @@ def poll_config_add_applications_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4626,21 +4716,21 @@ def poll_config_add_applications_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_config_add_applications_without_preload_content( + def start_config_add_applications_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + external_resource_info: Optional[List[ExternalResourceInfo]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4654,16 +4744,16 @@ def poll_config_add_applications_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_config_add_applications + """start_config_add_applications - Get the state of an ongoing operation. + Add applications in the traffic profile of the current session. :param session_id: The ID of the session. (required) :type session_id: str :param traffic_profile_id: The ID of the traffic profile. (required) :type traffic_profile_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param external_resource_info: + :type external_resource_info: List[ExternalResourceInfo] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4686,10 +4776,10 @@ def poll_config_add_applications_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_config_add_applications_serialize( + _param = self._start_config_add_applications_serialize( session_id=session_id, traffic_profile_id=traffic_profile_id, - id=id, + external_resource_info=external_resource_info, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4697,20 +4787,20 @@ def poll_config_add_applications_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_config_add_applications_serialize( + def _start_config_add_applications_serialize( self, session_id, traffic_profile_id, - id, + external_resource_info, _request_auth, _content_type, _headers, @@ -4720,6 +4810,7 @@ def _poll_config_add_applications_serialize( _host = None _collection_formats: Dict[str, str] = { + 'ExternalResourceInfo': '', } _path_params: Dict[str, str] = {} @@ -4734,12 +4825,12 @@ def _poll_config_add_applications_serialize( _path_params['sessionId'] = session_id if traffic_profile_id is not None: _path_params['trafficProfileId'] = traffic_profile_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if external_resource_info is not None: + _body_params = external_resource_info # set the HTTP header `Accept` @@ -4750,6 +4841,19 @@ def _poll_config_add_applications_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4758,8 +4862,8 @@ def _poll_config_add_applications_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4776,10 +4880,9 @@ def _poll_config_add_applications_serialize( @validate_call - def poll_session_config_granular_stats_default_dashboards( + def start_session_config_granular_stats_default_dashboards( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4793,14 +4896,12 @@ def poll_session_config_granular_stats_default_dashboards( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4823,9 +4924,8 @@ def poll_session_config_granular_stats_default_dashboards( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4833,21 +4933,19 @@ def poll_session_config_granular_stats_default_dashboards( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_granular_stats_default_dashboards_with_http_info( + def start_session_config_granular_stats_default_dashboards_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4861,14 +4959,12 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4891,9 +4987,8 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4901,21 +4996,19 @@ def poll_session_config_granular_stats_default_dashboards_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_granular_stats_default_dashboards_without_preload_content( + def start_session_config_granular_stats_default_dashboards_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4929,14 +5022,12 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_session_config_granular_stats_default_dashboards + """start_session_config_granular_stats_default_dashboards - Get the state of an ongoing operation. + Create granular statistics dashboards based on the session configuration. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4959,9 +5050,8 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_granular_stats_default_dashboards_serialize( + _param = self._start_session_config_granular_stats_default_dashboards_serialize( session_id=session_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4969,20 +5059,18 @@ def poll_session_config_granular_stats_default_dashboards_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_session_config_granular_stats_default_dashboards_serialize( + def _start_session_config_granular_stats_default_dashboards_serialize( self, session_id, - id, _request_auth, _content_type, _headers, @@ -5004,8 +5092,6 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( # process the path parameters if session_id is not None: _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -5028,8 +5114,8 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5046,10 +5132,10 @@ def _poll_session_config_granular_stats_default_dashboards_serialize( @validate_call - def poll_session_config_save( + def start_session_config_save( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5063,14 +5149,14 @@ def poll_session_config_save( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5093,9 +5179,9 @@ def poll_session_config_save( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5103,21 +5189,20 @@ def poll_session_config_save( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_save_with_http_info( + def start_session_config_save_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5131,14 +5216,14 @@ def poll_session_config_save_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5161,9 +5246,9 @@ def poll_session_config_save_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5171,21 +5256,20 @@ def poll_session_config_save_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_config_save_without_preload_content( + def start_session_config_save_without_preload_content( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + save_config_operation: Optional[SaveConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5199,14 +5283,14 @@ def poll_session_config_save_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_session_config_save + """start_session_config_save - Get the state of an ongoing operation. + Save the configuration of the current session using the specified name. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param save_config_operation: + :type save_config_operation: SaveConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5229,9 +5313,9 @@ def poll_session_config_save_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_config_save_serialize( + _param = self._start_session_config_save_serialize( session_id=session_id, - id=id, + save_config_operation=save_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5239,20 +5323,19 @@ def poll_session_config_save_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_session_config_save_serialize( + def _start_session_config_save_serialize( self, session_id, - id, + save_config_operation, _request_auth, _content_type, _headers, @@ -5274,12 +5357,12 @@ def _poll_session_config_save_serialize( # process the path parameters if session_id is not None: _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if save_config_operation is not None: + _body_params = save_config_operation # set the HTTP header `Accept` @@ -5290,6 +5373,19 @@ def _poll_session_config_save_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5298,8 +5394,8 @@ def _poll_session_config_save_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/config/operations/save/{id}', + method='POST', + resource_path='/api/v2/sessions/{sessionId}/config/operations/save', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5316,10 +5412,10 @@ def _poll_session_config_save_serialize( @validate_call - def poll_session_load_config( + def start_session_load_config( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + load_config_operation: Optional[LoadConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5333,14 +5429,14 @@ def poll_session_load_config( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_session_load_config + """start_session_load_config - Get the state of an ongoing operation. + Load a new test in the current session. :param session_id: The ID of the session. (required) :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param load_config_operation: + :type load_config_operation: LoadConfigOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5363,9 +5459,9 @@ def poll_session_load_config( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_session_load_config_serialize( + _param = self._start_session_load_config_serialize( session_id=session_id, - id=id, + load_config_operation=load_config_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5373,21 +5469,20 @@ def poll_session_load_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_session_load_config_with_http_info( + def start_session_load_config_with_http_info( self, session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + load_config_operation: Optional[LoadConfigOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5401,2441 +5496,9 @@ def poll_session_load_config_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_session_load_config + """start_session_load_config - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_load_config_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_load_config_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_load_config - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_load_config_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_load_config_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/loadConfig/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_prepare_test( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_prepare_test_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_prepare_test_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_prepare_test - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_prepare_test_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_prepare_test_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/prepareTest/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_test_end( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_end_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_end_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_test_end - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_end_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_test_end_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/testEnd/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_test_init( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_init_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_test_init_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_test_init - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_test_init_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_test_init_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/testInit/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_session_touch( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_touch_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_session_touch_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_session_touch - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_session_touch_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_session_touch_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/operations/touch/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_sessions_batch_delete( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_sessions_batch_delete_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_sessions_batch_delete_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_sessions_batch_delete - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_sessions_batch_delete_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_sessions_batch_delete_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/operations/batch-delete/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_config_add_applications( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_config_add_applications_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_config_add_applications_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - traffic_profile_id: Annotated[StrictStr, Field(description="The ID of the traffic profile.")], - external_resource_info: Optional[List[ExternalResourceInfo]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_config_add_applications - - Add applications in the traffic profile of the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param traffic_profile_id: The ID of the traffic profile. (required) - :type traffic_profile_id: str - :param external_resource_info: - :type external_resource_info: List[ExternalResourceInfo] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_config_add_applications_serialize( - session_id=session_id, - traffic_profile_id=traffic_profile_id, - external_resource_info=external_resource_info, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_config_add_applications_serialize( - self, - session_id, - traffic_profile_id, - external_resource_info, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'ExternalResourceInfo': '', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if traffic_profile_id is not None: - _path_params['trafficProfileId'] = traffic_profile_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if external_resource_info is not None: - _body_params = external_resource_info - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_config_granular_stats_default_dashboards( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_granular_stats_default_dashboards_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_granular_stats_default_dashboards_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_session_config_granular_stats_default_dashboards - - Create granular statistics dashboards based on the session configuration. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_granular_stats_default_dashboards_serialize( - session_id=session_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_session_config_granular_stats_default_dashboards_serialize( - self, - session_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_config_save( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_save_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_config_save_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - save_config_operation: Optional[SaveConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_session_config_save - - Save the configuration of the current session using the specified name. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param save_config_operation: - :type save_config_operation: SaveConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_config_save_serialize( - session_id=session_id, - save_config_operation=save_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_session_config_save_serialize( - self, - session_id, - save_config_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if save_config_operation is not None: - _body_params = save_config_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/config/operations/save', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_session_load_config( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - load_config_operation: Optional[LoadConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_load_config - - Load a new test in the current session. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param load_config_operation: - :type load_config_operation: LoadConfigOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_load_config_serialize( - session_id=session_id, - load_config_operation=load_config_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_load_config_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - load_config_operation: Optional[LoadConfigOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_load_config - - Load a new test in the current session. + Load a new test in the current session. :param session_id: The ID of the session. (required) :type session_id: str @@ -7880,7 +5543,7 @@ def start_session_load_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_load_config_without_preload_content( @@ -7947,7 +5610,7 @@ def start_session_load_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_load_config_serialize( self, @@ -8093,7 +5756,7 @@ def start_session_prepare_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_prepare_test_with_http_info( @@ -8160,7 +5823,7 @@ def start_session_prepare_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_prepare_test_without_preload_content( @@ -8227,7 +5890,7 @@ def start_session_prepare_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_prepare_test_serialize( self, @@ -8374,7 +6037,7 @@ def start_session_test_end( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_end_with_http_info( @@ -8441,7 +6104,7 @@ def start_session_test_end_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_end_without_preload_content( @@ -8508,7 +6171,7 @@ def start_session_test_end_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_test_end_serialize( self, @@ -8655,7 +6318,7 @@ def start_session_test_init( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_init_with_http_info( @@ -8722,7 +6385,7 @@ def start_session_test_init_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_test_init_without_preload_content( @@ -8789,7 +6452,7 @@ def start_session_test_init_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_test_init_serialize( self, @@ -8936,7 +6599,7 @@ def start_session_touch( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_touch_with_http_info( @@ -9003,7 +6666,7 @@ def start_session_touch_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_session_touch_without_preload_content( @@ -9070,7 +6733,7 @@ def start_session_touch_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_session_touch_serialize( self, @@ -9212,7 +6875,7 @@ def start_sessions_batch_delete( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_sessions_batch_delete_with_http_info( @@ -9275,7 +6938,7 @@ def start_sessions_batch_delete_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_sessions_batch_delete_without_preload_content( @@ -9338,7 +7001,7 @@ def start_sessions_batch_delete_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_sessions_batch_delete_serialize( self, @@ -9484,7 +7147,7 @@ def update_session( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_with_http_info( @@ -9554,7 +7217,7 @@ def update_session_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_without_preload_content( @@ -9624,7 +7287,7 @@ def update_session_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_serialize( self, @@ -9771,7 +7434,7 @@ def update_session_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_config_with_http_info( @@ -9839,7 +7502,7 @@ def update_session_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_config_without_preload_content( @@ -9907,7 +7570,7 @@ def update_session_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_config_serialize( self, @@ -10055,7 +7718,7 @@ def update_session_meta( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_meta_with_http_info( @@ -10124,7 +7787,7 @@ def update_session_meta_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_meta_without_preload_content( @@ -10193,7 +7856,7 @@ def update_session_meta_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_meta_serialize( self, @@ -10340,7 +8003,7 @@ def update_session_test( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_test_with_http_info( @@ -10407,7 +8070,7 @@ def update_session_test_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_session_test_without_preload_content( @@ -10474,7 +8137,7 @@ def update_session_test_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_session_test_serialize( self, diff --git a/cyperf/api/statistics_api.py b/cyperf/api/statistics_api.py index 9146fad..0a818ba 100644 --- a/cyperf/api/statistics_api.py +++ b/cyperf/api/statistics_api.py @@ -109,7 +109,7 @@ def create_stats_plugins( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_stats_plugins_with_http_info( @@ -174,7 +174,7 @@ def create_stats_plugins_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def create_stats_plugins_without_preload_content( @@ -239,7 +239,7 @@ def create_stats_plugins_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _create_stats_plugins_serialize( self, @@ -381,7 +381,7 @@ def delete_stats_plugin( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_stats_plugin_with_http_info( @@ -446,7 +446,7 @@ def delete_stats_plugin_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_stats_plugin_without_preload_content( @@ -511,7 +511,7 @@ def delete_stats_plugin_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_stats_plugin_serialize( self, @@ -660,7 +660,7 @@ def get_result_stat_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stat_by_id_with_http_info( @@ -746,7 +746,7 @@ def get_result_stat_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stat_by_id_without_preload_content( @@ -832,7 +832,7 @@ def get_result_stat_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_stat_by_id_serialize( self, @@ -992,7 +992,7 @@ def get_result_stats( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stats_with_http_info( @@ -1066,7 +1066,7 @@ def get_result_stats_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_stats_without_preload_content( @@ -1140,7 +1140,7 @@ def get_result_stats_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_stats_serialize( self, @@ -1280,7 +1280,7 @@ def get_stats_plugins( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_stats_plugins_with_http_info( @@ -1347,7 +1347,7 @@ def get_stats_plugins_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_stats_plugins_without_preload_content( @@ -1414,7 +1414,7 @@ def get_stats_plugins_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_stats_plugins_serialize( self, @@ -1486,257 +1486,12 @@ def _get_stats_plugins_serialize( - @validate_call - def poll_stats_plugins_ingest( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_stats_plugins_ingest_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_stats_plugins_ingest_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_stats_plugins_ingest - - Get the state of an ongoing operation. + - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + - _param = self._poll_stats_plugins_ingest_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_stats_plugins_ingest_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/stats/plugins/operations/ingest/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1802,7 +1557,7 @@ def start_stats_plugins_ingest( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_stats_plugins_ingest_with_http_info( @@ -1865,7 +1620,7 @@ def start_stats_plugins_ingest_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_stats_plugins_ingest_without_preload_content( @@ -1928,7 +1683,7 @@ def start_stats_plugins_ingest_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_stats_plugins_ingest_serialize( self, diff --git a/cyperf/api/test_operations_api.py b/cyperf/api/test_operations_api.py index 4363b40..1051319 100644 --- a/cyperf/api/test_operations_api.py +++ b/cyperf/api/test_operations_api.py @@ -40,1352 +40,52 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client - @validate_call - def poll_test_calibrate_start( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_start_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_start_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_calibrate_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_calibrate_start_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_calibrate_stop( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_stop_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_calibrate_stop_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_calibrate_stop - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_calibrate_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_calibrate_stop_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_run_abort( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_abort_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_abort_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_abort - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_abort_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_run_abort_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/abort/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_test_run_start( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_start_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_test_run_start_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_start - - Get the state of an ongoing operation. - - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_test_run_start_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_test_run_start_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/start/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) + + + - @validate_call - def poll_test_run_stop( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_test_run_stop - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + + - @validate_call - def poll_test_run_stop_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_test_run_stop - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) + + - @validate_call - def poll_test_run_stop_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_test_run_stop + - Get the state of an ongoing operation. - :param session_id: The ID of the session. (required) - :type session_id: str - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._poll_test_run_stop_serialize( - session_id=session_id, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) + - def _poll_test_run_stop_serialize( - self, - session_id, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: + - _host = None + - _collection_formats: Dict[str, str] = { - } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + + - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] + - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/sessions/{sessionId}/test-run/operations/stop/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) @@ -1451,7 +151,7 @@ def start_test_calibrate_start( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_start_with_http_info( @@ -1514,7 +214,7 @@ def start_test_calibrate_start_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_start_without_preload_content( @@ -1577,7 +277,7 @@ def start_test_calibrate_start_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_calibrate_start_serialize( self, @@ -1703,7 +403,7 @@ def start_test_calibrate_stop( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_stop_with_http_info( @@ -1766,7 +466,7 @@ def start_test_calibrate_stop_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_calibrate_stop_without_preload_content( @@ -1829,7 +529,7 @@ def start_test_calibrate_stop_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_calibrate_stop_serialize( self, @@ -1955,7 +655,7 @@ def start_test_run_abort( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_abort_with_http_info( @@ -2018,7 +718,7 @@ def start_test_run_abort_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_abort_without_preload_content( @@ -2081,7 +781,7 @@ def start_test_run_abort_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_abort_serialize( self, @@ -2207,7 +907,7 @@ def start_test_run_start( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_start_with_http_info( @@ -2270,7 +970,7 @@ def start_test_run_start_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_start_without_preload_content( @@ -2333,7 +1033,7 @@ def start_test_run_start_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_start_serialize( self, @@ -2459,7 +1159,7 @@ def start_test_run_stop( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_stop_with_http_info( @@ -2522,7 +1222,7 @@ def start_test_run_stop_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_test_run_stop_without_preload_content( @@ -2585,7 +1285,7 @@ def start_test_run_stop_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_test_run_stop_serialize( self, diff --git a/cyperf/api/test_results_api.py b/cyperf/api/test_results_api.py index 4d09c5c..e6a095e 100644 --- a/cyperf/api/test_results_api.py +++ b/cyperf/api/test_results_api.py @@ -112,7 +112,7 @@ def delete_result( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_with_http_info( @@ -178,7 +178,7 @@ def delete_result_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_without_preload_content( @@ -244,7 +244,7 @@ def delete_result_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_result_serialize( self, @@ -376,7 +376,7 @@ def delete_result_file( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_file_with_http_info( @@ -445,7 +445,7 @@ def delete_result_file_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def delete_result_file_without_preload_content( @@ -514,7 +514,7 @@ def delete_result_file_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _delete_result_file_serialize( self, @@ -645,7 +645,7 @@ def get_result_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_by_id_with_http_info( @@ -710,7 +710,7 @@ def get_result_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_by_id_without_preload_content( @@ -775,7 +775,7 @@ def get_result_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_by_id_serialize( self, @@ -906,7 +906,7 @@ def get_result_download_all_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_all_by_id_with_http_info( @@ -974,7 +974,7 @@ def get_result_download_all_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_all_by_id_without_preload_content( @@ -1042,7 +1042,7 @@ def get_result_download_all_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_all_by_id_serialize( self, @@ -1172,7 +1172,7 @@ def get_result_download_result_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_result_config_with_http_info( @@ -1236,7 +1236,7 @@ def get_result_download_result_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_download_result_config_without_preload_content( @@ -1300,7 +1300,7 @@ def get_result_download_result_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_download_result_config_serialize( self, @@ -1432,7 +1432,7 @@ def get_result_file_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_by_id_with_http_info( @@ -1501,7 +1501,7 @@ def get_result_file_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_by_id_without_preload_content( @@ -1570,7 +1570,7 @@ def get_result_file_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_file_by_id_serialize( self, @@ -1705,7 +1705,7 @@ def get_result_file_content( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_content_with_http_info( @@ -1774,7 +1774,7 @@ def get_result_file_content_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_file_content_without_preload_content( @@ -1843,7 +1843,7 @@ def get_result_file_content_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_file_content_serialize( self, @@ -1982,7 +1982,7 @@ def get_result_files( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_files_with_http_info( @@ -2055,7 +2055,7 @@ def get_result_files_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_result_files_without_preload_content( @@ -2128,7 +2128,7 @@ def get_result_files_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_result_files_serialize( self, @@ -2285,7 +2285,7 @@ def get_results( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_with_http_info( @@ -2369,7 +2369,7 @@ def get_results_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_without_preload_content( @@ -2453,7 +2453,7 @@ def get_results_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_results_serialize( self, @@ -2611,7 +2611,7 @@ def get_results_tags( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_tags_with_http_info( @@ -2679,7 +2679,7 @@ def get_results_tags_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_results_tags_without_preload_content( @@ -2747,7 +2747,7 @@ def get_results_tags_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_results_tags_serialize( self, @@ -2819,11 +2819,51 @@ def _get_results_tags_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_result_generate_all( + def start_result_generate_all( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2837,14 +2877,14 @@ def poll_result_generate_all( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_generate_all + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2867,9 +2907,9 @@ def poll_result_generate_all( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2877,21 +2917,20 @@ def poll_result_generate_all( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_all_with_http_info( + def start_result_generate_all_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2905,14 +2944,14 @@ def poll_result_generate_all_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_generate_all + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2935,9 +2974,9 @@ def poll_result_generate_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2945,21 +2984,20 @@ def poll_result_generate_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_all_without_preload_content( + def start_result_generate_all_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + generate_all_operation: Optional[GenerateAllOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2973,14 +3011,14 @@ def poll_result_generate_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_generate_all + """start_result_generate_all - Get the state of an ongoing operation. + Generate all result types. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int + :param generate_all_operation: + :type generate_all_operation: GenerateAllOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3003,9 +3041,9 @@ def poll_result_generate_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_all_serialize( + _param = self._start_result_generate_all_serialize( result_id=result_id, - id=id, + generate_all_operation=generate_all_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3013,20 +3051,19 @@ def poll_result_generate_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_generate_all_serialize( + def _start_result_generate_all_serialize( self, result_id, - id, + generate_all_operation, _request_auth, _content_type, _headers, @@ -3048,12 +3085,12 @@ def _poll_result_generate_all_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if generate_all_operation is not None: + _body_params = generate_all_operation # set the HTTP header `Accept` @@ -3064,6 +3101,19 @@ def _poll_result_generate_all_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3072,8 +3122,8 @@ def _poll_result_generate_all_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-all/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/generate-all', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3090,10 +3140,9 @@ def _poll_result_generate_all_serialize( @validate_call - def poll_result_generate_results( + def start_result_generate_results( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3107,14 +3156,12 @@ def poll_result_generate_results( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_generate_results + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3137,9 +3184,8 @@ def poll_result_generate_results( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3147,21 +3193,19 @@ def poll_result_generate_results( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_results_with_http_info( + def start_result_generate_results_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3175,14 +3219,12 @@ def poll_result_generate_results_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_generate_results + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3205,9 +3247,8 @@ def poll_result_generate_results_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3215,21 +3256,19 @@ def poll_result_generate_results_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_generate_results_without_preload_content( + def start_result_generate_results_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3243,14 +3282,12 @@ def poll_result_generate_results_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_generate_results + """start_result_generate_results - Get the state of an ongoing operation. + Export all result files zipped. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3273,9 +3310,8 @@ def poll_result_generate_results_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_generate_results_serialize( + _param = self._start_result_generate_results_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3283,20 +3319,18 @@ def poll_result_generate_results_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_generate_results_serialize( + def _start_result_generate_results_serialize( self, result_id, - id, _request_auth, _content_type, _headers, @@ -3318,8 +3352,6 @@ def _poll_result_generate_results_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3342,8 +3374,8 @@ def _poll_result_generate_results_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/generate-results/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/generate-results', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3360,10 +3392,9 @@ def _poll_result_generate_results_serialize( @validate_call - def poll_result_load( + def start_result_load( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3377,14 +3408,12 @@ def poll_result_load( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_result_load + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3407,9 +3436,8 @@ def poll_result_load( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_load_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3417,21 +3445,19 @@ def poll_result_load( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_load_with_http_info( + def start_result_load_with_http_info( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3445,14 +3471,12 @@ def poll_result_load_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_result_load + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3475,9 +3499,8 @@ def poll_result_load_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_load_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3485,21 +3508,19 @@ def poll_result_load_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_result_load_without_preload_content( + def start_result_load_without_preload_content( self, result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3513,14 +3534,12 @@ def poll_result_load_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_result_load + """start_result_load - Get the state of an ongoing operation. + Loads a completed result into a new session. :param result_id: The ID of the result. (required) :type result_id: str - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3543,9 +3562,8 @@ def poll_result_load_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_result_load_serialize( + _param = self._start_result_load_serialize( result_id=result_id, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3553,20 +3571,18 @@ def poll_result_load_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_result_load_serialize( + def _start_result_load_serialize( self, result_id, - id, _request_auth, _content_type, _headers, @@ -3588,8 +3604,6 @@ def _poll_result_load_serialize( # process the path parameters if result_id is not None: _path_params['resultId'] = result_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3612,8 +3626,8 @@ def _poll_result_load_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/{resultId}/operations/load/{id}', + method='POST', + resource_path='/api/v2/results/{resultId}/operations/load', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3630,9 +3644,9 @@ def _poll_result_load_serialize( @validate_call - def poll_results_batch_delete( + def start_results_batch_delete( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3646,12 +3660,12 @@ def poll_results_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_results_batch_delete + """start_results_batch_delete - Get the state of an ongoing operation. + Remove multiple results. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3674,8 +3688,8 @@ def poll_results_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3683,20 +3697,19 @@ def poll_results_batch_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_results_batch_delete_with_http_info( + def start_results_batch_delete_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3710,12 +3723,12 @@ def poll_results_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_results_batch_delete + """start_results_batch_delete - Get the state of an ongoing operation. + Remove multiple results. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3738,8 +3751,8 @@ def poll_results_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3747,20 +3760,19 @@ def poll_results_batch_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_results_batch_delete_without_preload_content( + def start_results_batch_delete_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3774,12 +3786,12 @@ def poll_results_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_results_batch_delete + """start_results_batch_delete - Get the state of an ongoing operation. + Remove multiple results. - :param id: The ID of the async operation. (required) - :type id: int + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3802,8 +3814,8 @@ def poll_results_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_results_batch_delete_serialize( - id=id, + _param = self._start_results_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3811,1051 +3823,14 @@ def poll_results_batch_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) - - - def _poll_results_batch_delete_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/results/operations/batch-delete/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_result_generate_all( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_result_generate_all - - Generate all result types. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_all_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_result_generate_all - - Generate all result types. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_all_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - generate_all_operation: Optional[GenerateAllOperation] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_result_generate_all - - Generate all result types. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param generate_all_operation: - :type generate_all_operation: GenerateAllOperation - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_all_serialize( - result_id=result_id, - generate_all_operation=generate_all_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_result_generate_all_serialize( - self, - result_id, - generate_all_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if generate_all_operation is not None: - _body_params = generate_all_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/generate-all', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_result_generate_results( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_results_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_generate_results_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_result_generate_results - - Export all result files zipped. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_generate_results_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_result_generate_results_serialize( - self, - result_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/generate-results', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_result_load( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_load_with_http_info( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_result_load_without_preload_content( - self, - result_id: Annotated[StrictStr, Field(description="The ID of the result.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_result_load - - Loads a completed result into a new session. - - :param result_id: The ID of the result. (required) - :type result_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_result_load_serialize( - result_id=result_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_result_load_serialize( - self, - result_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if result_id is not None: - _path_params['resultId'] = result_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/results/{resultId}/operations/load', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_results_batch_delete( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_results_batch_delete_with_http_info( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_results_batch_delete_without_preload_content( - self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_results_batch_delete - - Remove multiple results. - - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_results_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - + def _start_results_batch_delete_serialize( self, diff --git a/cyperf/api/utils_api.py b/cyperf/api/utils_api.py index 0d167b2..b4eaf2f 100644 --- a/cyperf/api/utils_api.py +++ b/cyperf/api/utils_api.py @@ -110,7 +110,7 @@ def check_eulas( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def check_eulas_with_http_info( @@ -173,7 +173,7 @@ def check_eulas_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def check_eulas_without_preload_content( @@ -236,7 +236,7 @@ def check_eulas_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _check_eulas_serialize( self, @@ -352,7 +352,7 @@ def get_cert_manager_certificate( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_cert_manager_certificate_with_http_info( @@ -412,7 +412,7 @@ def get_cert_manager_certificate_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_cert_manager_certificate_without_preload_content( @@ -472,7 +472,7 @@ def get_cert_manager_certificate_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_cert_manager_certificate_serialize( self, @@ -592,7 +592,7 @@ def get_disk_usage( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_with_http_info( @@ -652,7 +652,7 @@ def get_disk_usage_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_without_preload_content( @@ -712,7 +712,7 @@ def get_disk_usage_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_serialize( self, @@ -837,7 +837,7 @@ def get_disk_usage_consumer_by_id( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumer_by_id_with_http_info( @@ -902,7 +902,7 @@ def get_disk_usage_consumer_by_id_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumer_by_id_without_preload_content( @@ -967,7 +967,7 @@ def get_disk_usage_consumer_by_id_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_consumer_by_id_serialize( self, @@ -1098,7 +1098,7 @@ def get_disk_usage_consumers( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumers_with_http_info( @@ -1166,7 +1166,7 @@ def get_disk_usage_consumers_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_disk_usage_consumers_without_preload_content( @@ -1234,7 +1234,7 @@ def get_disk_usage_consumers_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_disk_usage_consumers_serialize( self, @@ -1364,7 +1364,7 @@ def get_docs( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_with_http_info( @@ -1424,7 +1424,7 @@ def get_docs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_without_preload_content( @@ -1484,7 +1484,7 @@ def get_docs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_serialize( self, @@ -1604,7 +1604,7 @@ def get_docs_json( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_json_with_http_info( @@ -1664,7 +1664,7 @@ def get_docs_json_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_json_without_preload_content( @@ -1724,7 +1724,7 @@ def get_docs_json_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_json_serialize( self, @@ -1844,7 +1844,7 @@ def get_docs_yaml( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_yaml_with_http_info( @@ -1904,7 +1904,7 @@ def get_docs_yaml_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_docs_yaml_without_preload_content( @@ -1964,7 +1964,7 @@ def get_docs_yaml_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_docs_yaml_serialize( self, @@ -2084,7 +2084,7 @@ def get_eula( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_eula_with_http_info( @@ -2143,7 +2143,7 @@ def get_eula_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_eula_without_preload_content( @@ -2202,7 +2202,7 @@ def get_eula_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_eula_serialize( self, @@ -2322,7 +2322,7 @@ def get_log_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_log_config_with_http_info( @@ -2382,7 +2382,7 @@ def get_log_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_log_config_without_preload_content( @@ -2442,7 +2442,7 @@ def get_log_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_log_config_serialize( self, @@ -2561,7 +2561,7 @@ def get_time( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_time_with_http_info( @@ -2620,7 +2620,7 @@ def get_time_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def get_time_without_preload_content( @@ -2679,7 +2679,7 @@ def get_time_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _get_time_serialize( self, @@ -2797,7 +2797,7 @@ def list_eulas( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def list_eulas_with_http_info( @@ -2855,7 +2855,7 @@ def list_eulas_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def list_eulas_without_preload_content( @@ -2913,7 +2913,7 @@ def list_eulas_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _list_eulas_serialize( self, @@ -2975,10 +2975,80 @@ def _list_eulas_serialize( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call - def poll_cert_manager_generate( + def post_eula( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2991,13 +3061,12 @@ def poll_cert_manager_generate( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_cert_manager_generate + ) -> str: + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3020,8 +3089,8 @@ def poll_cert_manager_generate( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3029,20 +3098,20 @@ def poll_cert_manager_generate( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_generate_with_http_info( + def post_eula_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3055,13 +3124,12 @@ def poll_cert_manager_generate_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_cert_manager_generate + ) -> ApiResponse[str]: + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3084,8 +3152,8 @@ def poll_cert_manager_generate_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3093,20 +3161,20 @@ def poll_cert_manager_generate_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_generate_without_preload_content( + def post_eula_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3120,12 +3188,11 @@ def poll_cert_manager_generate_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_cert_manager_generate + """Update properties an EULA - Get the state of an ongoing operation. - :param id: The ID of the async operation. (required) - :type id: int + :param eula_summary: + :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3148,8 +3215,8 @@ def poll_cert_manager_generate_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_generate_serialize( - id=id, + _param = self._post_eula_serialize( + eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3157,19 +3224,19 @@ def poll_cert_manager_generate_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '200': "str", + '404': None, } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_cert_manager_generate_serialize( + def _post_eula_serialize( self, - id, + eula_summary, _request_auth, _content_type, _headers, @@ -3189,12 +3256,12 @@ def _poll_cert_manager_generate_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if eula_summary is not None: + _body_params = eula_summary # set the HTTP header `Accept` @@ -3205,6 +3272,19 @@ def _poll_cert_manager_generate_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3213,8 +3293,8 @@ def _poll_cert_manager_generate_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/cert-manager/operations/generate/{id}', + method='POST', + resource_path='/eula/v1/eula/CyPerf', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3231,9 +3311,9 @@ def _poll_cert_manager_generate_serialize( @validate_call - def poll_cert_manager_upload( + def start_cert_manager_generate( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3247,12 +3327,12 @@ def poll_cert_manager_upload( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3275,8 +3355,8 @@ def poll_cert_manager_upload( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3284,20 +3364,19 @@ def poll_cert_manager_upload( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_upload_with_http_info( + def start_cert_manager_generate_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3311,12 +3390,12 @@ def poll_cert_manager_upload_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3339,8 +3418,8 @@ def poll_cert_manager_upload_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3348,20 +3427,19 @@ def poll_cert_manager_upload_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_cert_manager_upload_without_preload_content( + def start_cert_manager_generate_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], + certificate: Optional[Certificate] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3375,12 +3453,12 @@ def poll_cert_manager_upload_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_cert_manager_upload + """start_cert_manager_generate - Get the state of an ongoing operation. + Generate a certificate. - :param id: The ID of the async operation. (required) - :type id: int + :param certificate: + :type certificate: Certificate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3403,8 +3481,8 @@ def poll_cert_manager_upload_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_cert_manager_upload_serialize( - id=id, + _param = self._start_cert_manager_generate_serialize( + certificate=certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3412,19 +3490,18 @@ def poll_cert_manager_upload_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_cert_manager_upload_serialize( + def _start_cert_manager_generate_serialize( self, - id, + certificate, _request_auth, _content_type, _headers, @@ -3444,12 +3521,12 @@ def _poll_cert_manager_upload_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if certificate is not None: + _body_params = certificate # set the HTTP header `Accept` @@ -3460,6 +3537,19 @@ def _poll_cert_manager_upload_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3468,8 +3558,8 @@ def _poll_cert_manager_upload_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/cert-manager/operations/upload/{id}', + method='POST', + resource_path='/api/v2/cert-manager/operations/generate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3486,9 +3576,8 @@ def _poll_cert_manager_upload_serialize( @validate_call - def poll_disk_usage_cleanup_diagnostics( + def start_cert_manager_upload( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3502,12 +3591,10 @@ def poll_disk_usage_cleanup_diagnostics( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3530,8 +3617,7 @@ def poll_disk_usage_cleanup_diagnostics( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3539,20 +3625,18 @@ def poll_disk_usage_cleanup_diagnostics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_diagnostics_with_http_info( + def start_cert_manager_upload_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3566,12 +3650,10 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3594,8 +3676,7 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3603,20 +3684,18 @@ def poll_disk_usage_cleanup_diagnostics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_diagnostics_without_preload_content( + def start_cert_manager_upload_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3630,12 +3709,10 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_disk_usage_cleanup_diagnostics + """start_cert_manager_upload - Get the state of an ongoing operation. + Upload a certificate/key pair that will replace the system certificate. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3658,8 +3735,7 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_diagnostics_serialize( - id=id, + _param = self._start_cert_manager_upload_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3667,19 +3743,17 @@ def poll_disk_usage_cleanup_diagnostics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_disk_usage_cleanup_diagnostics_serialize( + def _start_cert_manager_upload_serialize( self, - id, _request_auth, _content_type, _headers, @@ -3699,8 +3773,6 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3723,8 +3795,8 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics/{id}', + method='POST', + resource_path='/api/v2/cert-manager/operations/upload', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3741,9 +3813,8 @@ def _poll_disk_usage_cleanup_diagnostics_serialize( @validate_call - def poll_disk_usage_cleanup_logs( + def start_disk_usage_cleanup_diagnostics( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3757,12 +3828,10 @@ def poll_disk_usage_cleanup_logs( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3785,8 +3854,7 @@ def poll_disk_usage_cleanup_logs( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3794,20 +3862,18 @@ def poll_disk_usage_cleanup_logs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_logs_with_http_info( + def start_disk_usage_cleanup_diagnostics_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3821,12 +3887,10 @@ def poll_disk_usage_cleanup_logs_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3849,8 +3913,7 @@ def poll_disk_usage_cleanup_logs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3858,20 +3921,18 @@ def poll_disk_usage_cleanup_logs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_logs_without_preload_content( + def start_disk_usage_cleanup_diagnostics_without_preload_content( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3885,12 +3946,10 @@ def poll_disk_usage_cleanup_logs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """poll_disk_usage_cleanup_logs + """start_disk_usage_cleanup_diagnostics - Get the state of an ongoing operation. + Clean the system diagnostics. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3913,8 +3972,7 @@ def poll_disk_usage_cleanup_logs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_logs_serialize( - id=id, + _param = self._start_disk_usage_cleanup_diagnostics_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3922,19 +3980,17 @@ def poll_disk_usage_cleanup_logs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=None, _request_timeout=_request_timeout ) + - - def _poll_disk_usage_cleanup_logs_serialize( + def _start_disk_usage_cleanup_diagnostics_serialize( self, - id, _request_auth, _content_type, _headers, @@ -3954,8 +4010,6 @@ def _poll_disk_usage_cleanup_logs_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3978,8 +4032,8 @@ def _poll_disk_usage_cleanup_logs_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-logs/{id}', + method='POST', + resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3996,9 +4050,8 @@ def _poll_disk_usage_cleanup_logs_serialize( @validate_call - def poll_disk_usage_cleanup_migration( + def start_disk_usage_cleanup_logs( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4012,12 +4065,10 @@ def poll_disk_usage_cleanup_migration( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """poll_disk_usage_cleanup_migration + """start_disk_usage_cleanup_logs - Get the state of an ongoing operation. + Clean the system logs. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4040,8 +4091,7 @@ def poll_disk_usage_cleanup_migration( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, + _param = self._start_disk_usage_cleanup_logs_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4049,20 +4099,18 @@ def poll_disk_usage_cleanup_migration( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call - def poll_disk_usage_cleanup_migration_with_http_info( + def start_disk_usage_cleanup_logs_with_http_info( self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4076,12 +4124,10 @@ def poll_disk_usage_cleanup_migration_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_migration + """start_disk_usage_cleanup_logs - Get the state of an ongoing operation. + Clean the system logs. - :param id: The ID of the async operation. (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4104,1768 +4150,7 @@ def poll_disk_usage_cleanup_migration_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_migration_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_migration - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_migration_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_migration_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-migration/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_disk_usage_cleanup_notifications( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_notifications_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_notifications_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_notifications - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_notifications_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_notifications_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-notifications/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def poll_disk_usage_cleanup_results( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_results_with_http_info( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def poll_disk_usage_cleanup_results_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="The ID of the async operation.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """poll_disk_usage_cleanup_results - - Get the state of an ongoing operation. - - :param id: The ID of the async operation. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._poll_disk_usage_cleanup_results_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncContext", - '400': "ErrorResponse", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _poll_disk_usage_cleanup_results_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/api/v2/disk-usage/operations/cleanup-results/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def post_eula( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def post_eula_with_http_info( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def post_eula_without_preload_content( - self, - eula_summary: Optional[EulaSummary] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update properties an EULA - - - :param eula_summary: - :type eula_summary: EulaSummary - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._post_eula_serialize( - eula_summary=eula_summary, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - '404': None, - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _post_eula_serialize( - self, - eula_summary, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if eula_summary is not None: - _body_params = eula_summary - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/eula/v1/eula/CyPerf', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_cert_manager_generate( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_generate_with_http_info( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_generate_without_preload_content( - self, - certificate: Optional[Certificate] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_cert_manager_generate - - Generate a certificate. - - :param certificate: - :type certificate: Certificate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_generate_serialize( - certificate=certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_cert_manager_generate_serialize( - self, - certificate, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if certificate is not None: - _body_params = certificate - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/cert-manager/operations/generate', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_cert_manager_upload( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_upload_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_cert_manager_upload_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_cert_manager_upload - - Upload a certificate/key pair that will replace the system certificate. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_cert_manager_upload_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_cert_manager_upload_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/cert-manager/operations/upload', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_disk_usage_cleanup_diagnostics( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_diagnostics_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_diagnostics_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_disk_usage_cleanup_diagnostics - - Clean the system diagnostics. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_diagnostics_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_disk_usage_cleanup_diagnostics_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/disk-usage/operations/cleanup-diagnostics', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def start_disk_usage_cleanup_logs( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_disk_usage_cleanup_logs - - Clean the system logs. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_logs_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_disk_usage_cleanup_logs_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_disk_usage_cleanup_logs - - Clean the system logs. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_disk_usage_cleanup_logs_serialize( + _param = self._start_disk_usage_cleanup_logs_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5880,7 +4165,7 @@ def start_disk_usage_cleanup_logs_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_logs_without_preload_content( @@ -5939,7 +4224,7 @@ def start_disk_usage_cleanup_logs_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_logs_serialize( self, @@ -6058,7 +4343,7 @@ def start_disk_usage_cleanup_migration( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_migration_with_http_info( @@ -6117,7 +4402,7 @@ def start_disk_usage_cleanup_migration_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_migration_without_preload_content( @@ -6176,7 +4461,7 @@ def start_disk_usage_cleanup_migration_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_migration_serialize( self, @@ -6295,7 +4580,7 @@ def start_disk_usage_cleanup_notifications( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_notifications_with_http_info( @@ -6354,7 +4639,7 @@ def start_disk_usage_cleanup_notifications_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_notifications_without_preload_content( @@ -6413,7 +4698,7 @@ def start_disk_usage_cleanup_notifications_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_notifications_serialize( self, @@ -6532,7 +4817,7 @@ def start_disk_usage_cleanup_results( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_results_with_http_info( @@ -6591,7 +4876,7 @@ def start_disk_usage_cleanup_results_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def start_disk_usage_cleanup_results_without_preload_content( @@ -6650,7 +4935,7 @@ def start_disk_usage_cleanup_results_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _start_disk_usage_cleanup_results_serialize( self, @@ -6774,7 +5059,7 @@ def update_log_config( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_log_config_with_http_info( @@ -6838,7 +5123,7 @@ def update_log_config_with_http_info( _response_types_map=_response_types_map, _request_timeout=_request_timeout ) - + @validate_call def update_log_config_without_preload_content( @@ -6902,7 +5187,7 @@ def update_log_config_without_preload_content( _response_types_map=None, _request_timeout=_request_timeout ) - + def _update_log_config_serialize( self, diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index cf80f4f..3fdf669 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -309,6 +309,8 @@ PreparedTestOptions = DynamicModel('PreparedTestOptions', (), {} ) PrfP1Algorithm = DynamicModel('PrfP1Algorithm', (), {} ) ProtectedSubnetConfig = DynamicModel('ProtectedSubnetConfig', (), {} ) +QUICProfile = DynamicModel('QUICProfile', (), {} ) +QUICVersion = DynamicModel('QUICVersion', (), {} ) RTPEncryptionMode = DynamicModel('RTPEncryptionMode', (), {} ) RTPProfile = DynamicModel('RTPProfile', (), {} ) RTPProfileMeta = DynamicModel('RTPProfileMeta', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index b2c27b9..d6851fc 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -309,6 +309,8 @@ class LinkNameException(Exception): from cyperf.models.prepared_test_options import PreparedTestOptions from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from cyperf.models.protected_subnet_config import ProtectedSubnetConfig +from cyperf.models.quic_profile import QUICProfile +from cyperf.models.quic_version import QUICVersion from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from cyperf.models.rtp_profile import RTPProfile from cyperf.models.rtp_profile_meta import RTPProfileMeta diff --git a/cyperf/models/action.py b/cyperf/models/action.py index af6770c..ea3a2c8 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index fae4a52..8b4808b 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 4e13108..3f0811d 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -29,6 +29,7 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params +from cyperf.models.quic_profile import QUICProfile from cyperf.models.stateless_stream import StatelessStream from cyperf.models.tls_profile import TLSProfile from cyperf.models.track import Track @@ -44,6 +45,7 @@ class Application(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -54,6 +56,7 @@ class Application(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -65,6 +68,7 @@ class Application(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") @@ -74,6 +78,7 @@ class Application(BaseModel): data_types: Optional[List[DataType]] = Field(default=None, alias="DataTypes") inherit_tls: Optional[StrictBool] = Field(default=None, alias="InheritTLS") is_stateless_stream: Optional[StrictBool] = Field(default=None, alias="IsStatelessStream") + is_streaming: Optional[StrictBool] = Field(default=None, alias="IsStreaming") objective_weight: StrictInt = Field(description="The objective weight of the application.", alias="ObjectiveWeight") protocol_found: Optional[StrictBool] = Field(default=None, alias="ProtocolFound") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") @@ -81,6 +86,7 @@ class Application(BaseModel): static: Optional[StrictBool] = Field(default=None, alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, alias="SupportedApps") supports_calibration: Optional[StrictBool] = Field(default=None, alias="SupportsCalibration") + supports_multi_flow: Optional[StrictBool] = Field(default=None, alias="SupportsMultiFlow") supports_strikes: Optional[StrictBool] = Field(default=None, alias="SupportsStrikes") supports_tls: Optional[StrictBool] = Field(default=None, alias="SupportsTLS") tracks: Optional[List[Track]] = Field(default=None, alias="Tracks") @@ -88,7 +94,7 @@ class Application(BaseModel): _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "IsStreaming", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsMultiFlow", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -142,6 +148,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -169,6 +178,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -230,6 +242,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), @@ -240,6 +253,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), @@ -251,6 +265,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), @@ -260,6 +275,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, "InheritTLS": obj.get("InheritTLS"), "IsStatelessStream": obj.get("IsStatelessStream"), + "IsStreaming": obj.get("IsStreaming"), "ObjectiveWeight": obj.get("ObjectiveWeight"), "ProtocolFound": obj.get("ProtocolFound"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, @@ -267,6 +283,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps"), "SupportsCalibration": obj.get("SupportsCalibration"), + "SupportsMultiFlow": obj.get("SupportsMultiFlow"), "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), "Tracks": [Track.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index b1b5222..4e5243e 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -37,6 +37,7 @@ class ApplicationProfile(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None applications: Optional[List[Application]] = Field(default=None, alias="Applications") @@ -51,7 +52,7 @@ class ApplicationProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateTrafficProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetTrafficProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,6 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "Applications": [Application.from_dict(_item) for _item in obj["Applications"]] if obj.get("Applications") is not None else None, diff --git a/cyperf/models/attack.py b/cyperf/models/attack.py index a2922f0..c985108 100644 --- a/cyperf/models/attack.py +++ b/cyperf/models/attack.py @@ -30,6 +30,7 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params +from cyperf.models.quic_profile import QUICProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union, GenericAlias, get_args @@ -43,6 +44,7 @@ class Attack(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -53,6 +55,7 @@ class Attack(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -64,6 +67,7 @@ class Attack(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") @@ -80,7 +84,7 @@ class Attack(BaseModel): _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritTLS", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritTLS", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -134,6 +138,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -161,6 +168,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -219,6 +229,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), @@ -229,6 +240,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), @@ -240,6 +252,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 2f104f1..425cdb7 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -54,8 +54,8 @@ def dst_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index c5085d6..8ceeeed 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -37,6 +37,7 @@ class AttackProfile(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None attacks: Optional[List[Attack]] = Field(default=None, alias="Attacks") @@ -51,7 +52,7 @@ class AttackProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetAttackProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,6 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "Attacks": [Attack.from_dict(_item) for _item in obj["Attacks"]] if obj.get("Attacks") is not None else None, diff --git a/cyperf/models/connection.py b/cyperf/models/connection.py index 681d812..1fe6b20 100644 --- a/cyperf/models/connection.py +++ b/cyperf/models/connection.py @@ -69,8 +69,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['http', 'https', 'tcp', 'tls', 'udp', 'ssl']): - raise ValueError("must be one of enum values ('http', 'https', 'tcp', 'tls', 'udp', 'ssl')") + if value not in set(['http', 'https', 'tcp', 'tls', 'udp', 'ssl', 'google_quic']): + raise ValueError("must be one of enum values ('http', 'https', 'tcp', 'tls', 'udp', 'ssl', 'google_quic')") return value model_config = ConfigDict( diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index 5125401..b9d51a4 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -33,8 +33,9 @@ class CreateAppOperation(BaseModel): actions: Optional[List[ActionInput]] = Field(default=None, alias="Actions") app_name: Optional[StrictStr] = Field(default=None, alias="AppName") app_type: Optional[StrictStr] = Field(default=None, alias="AppType") + description: Optional[StrictStr] = Field(default=None, alias="Description") parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") - __properties: ClassVar[List[str]] = ["Actions", "AppName", "AppType", "Parameters"] + __properties: ClassVar[List[str]] = ["Actions", "AppName", "AppType", "Description", "Parameters"] model_config = ConfigDict( populate_by_name=True, @@ -106,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Actions": [ActionInput.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, "AppName": obj.get("AppName"), "AppType": obj.get("AppType"), + "Description": obj.get("Description"), "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index 8fd419e..d59c7b9 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -74,8 +74,8 @@ def client_dut_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('config_settings') @@ -94,8 +94,8 @@ def hostname_suffix_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('http_forward_proxy_mode') @@ -114,8 +114,8 @@ def server_dut_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('host') @@ -124,8 +124,8 @@ def host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 99f63fe..9d73af5 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -36,6 +36,7 @@ class EditAppOperation(BaseModel): EditAppOperation """ # noqa: E501 add_inputs: Optional[List[AddInput]] = Field(default=None, alias="AddInputs") + app_description: Optional[StrictStr] = Field(default=None, alias="AppDescription") app_id: Optional[StrictStr] = Field(default=None, alias="AppId") app_name: Optional[StrictStr] = Field(default=None, alias="AppName") app_parameters: Optional[List[Parameter]] = Field(default=None, alias="AppParameters") @@ -44,7 +45,7 @@ class EditAppOperation(BaseModel): rename_inputs: Optional[List[RenameInput]] = Field(default=None, alias="RenameInputs") reorder_actions_inputs: Optional[List[ReorderActionInput]] = Field(default=None, alias="ReorderActionsInputs") reorder_exchanges_inputs: Optional[List[ReorderExchangesInput]] = Field(default=None, alias="ReorderExchangesInputs") - __properties: ClassVar[List[str]] = ["AddInputs", "AppId", "AppName", "AppParameters", "DeleteInputs", "EditActionInputs", "RenameInputs", "ReorderActionsInputs", "ReorderExchangesInputs"] + __properties: ClassVar[List[str]] = ["AddInputs", "AppDescription", "AppId", "AppName", "AppParameters", "DeleteInputs", "EditActionInputs", "RenameInputs", "ReorderActionsInputs", "ReorderExchangesInputs"] model_config = ConfigDict( populate_by_name=True, @@ -149,6 +150,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AddInputs": [AddInput.from_dict(_item) for _item in obj["AddInputs"]] if obj.get("AddInputs") is not None else None, + "AppDescription": obj.get("AppDescription"), "AppId": obj.get("AppId"), "AppName": obj.get("AppName"), "AppParameters": [Parameter.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 3600451..eb20e9c 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -33,8 +33,10 @@ class Metadata(BaseModel): """ # noqa: E501 direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") + is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") + no_multi_flow_support: Optional[StrictBool] = Field(default=None, description="If true, only a single application with this protocol id can be present in the configuration", alias="NoMultiFlowSupport") protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") rtp_profile_meta: Optional[RTPProfileMeta] = Field(default=None, alias="RTPProfileMeta") references: Optional[List[Reference]] = Field(default=None, description="The references of the strike", alias="References") @@ -45,7 +47,7 @@ class Metadata(BaseModel): static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "Keywords", "LegacyNames", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -119,8 +121,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), + "IsStreaming": obj.get("IsStreaming"), "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, "LegacyNames": obj.get("LegacyNames"), + "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index a30f21b..3540950 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -20,8 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.api_link import APILink -from cyperf.models.parameter_metadata import ParameterMetadata +from cyperf.models.parameter_match import ParameterMatch from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,19 +29,12 @@ class Parameter(BaseModel): """ Parameter """ # noqa: E501 - default_array_elements: Optional[List[Dict[str, StrictStr]]] = Field(default=None, description="The default values of the parameter", alias="DefaultArrayElements") - default_source: Optional[StrictStr] = Field(default=None, description="The default source of the parameter", alias="DefaultSource") - default_value: Optional[StrictStr] = Field(default=None, description="The default value of the parameter", alias="DefaultValue") - element_type: Optional[StrictStr] = Field(default=None, description="The type of elements in the values array", alias="ElementType") - metadata: Optional[ParameterMetadata] = Field(default=None, alias="Metadata") - sources: Optional[List[StrictStr]] = Field(default=None, description="The sources of the parameter", alias="Sources") - type: Optional[StrictStr] = Field(default=None, description="The type of the parameter", alias="Type") + matches: Optional[List[ParameterMatch]] = Field(default=None, alias="Matches") + name: Optional[StrictStr] = Field(default=None, alias="Name") var_field: Optional[StrictStr] = Field(default=None, description="The name of the ES document field", alias="field") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the parameter") - links: Optional[List[APILink]] = None operator: Optional[StrictStr] = Field(default=None, description="The operator that the parameter supports") query_param: Optional[StrictStr] = Field(default=None, description="The corresponding query param", alias="queryParam") - __properties: ClassVar[List[str]] = ["DefaultArrayElements", "DefaultSource", "DefaultValue", "ElementType", "Metadata", "Sources", "Type", "field", "id", "links", "operator", "queryParam"] + __properties: ClassVar[List[str]] = ["Matches", "Name", "field", "operator", "queryParam"] model_config = ConfigDict( populate_by_name=True, @@ -74,10 +66,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ - "id", ]) _dict = self.model_dump( @@ -85,16 +75,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of metadata - if self.metadata: - _dict['Metadata'] = self.metadata.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in links (list) + # override the default output from pydantic by calling `to_dict()` of each item in matches (list) _items = [] - if self.links: - for _item in self.links: + if self.matches: + for _item in self.matches: if _item: _items.append(_item.to_dict()) - _dict['links'] = _items + _dict['Matches'] = _items return _dict @classmethod @@ -109,16 +96,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "DefaultArrayElements": obj.get("DefaultArrayElements"), - "DefaultSource": obj.get("DefaultSource"), - "DefaultValue": obj.get("DefaultValue"), - "ElementType": obj.get("ElementType"), - "Metadata": ParameterMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, - "Sources": obj.get("Sources"), - "Type": obj.get("Type"), + "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, + "Name": obj.get("Name"), "field": obj.get("field"), - "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "operator": obj.get("operator"), "queryParam": obj.get("queryParam") , diff --git a/cyperf/models/pep_dut.py b/cyperf/models/pep_dut.py index e43b9d3..aabbc1e 100644 --- a/cyperf/models/pep_dut.py +++ b/cyperf/models/pep_dut.py @@ -50,8 +50,8 @@ def hostname_suffix_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value @field_validator('pep_host') @@ -60,8 +60,8 @@ def pep_host_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): - raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") return value model_config = ConfigDict( diff --git a/cyperf/models/quic_profile.py b/cyperf/models/quic_profile.py new file mode 100644 index 0000000..e0d9898 --- /dev/null +++ b/cyperf/models/quic_profile.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.quic_version import QUICVersion +from cyperf.models.tls_profile import TLSProfile +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class QUICProfile(BaseModel): + """ + QUICProfile + """ # noqa: E501 + client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") + min_rto: Optional[StrictInt] = Field(default=None, alias="MinRTO") + name: Optional[StrictStr] = Field(default=None, description="The name of the QUIC profile.", alias="Name") + quic_version: Optional[QUICVersion] = Field(default=None, alias="QUICVersion") + rx_buffer: Optional[StrictInt] = Field(default=None, alias="RxBuffer") + server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["ClientTLSProfile", "MinRTO", "Name", "QUICVersion", "RxBuffer", "ServerTLSProfile", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of QUICProfile from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of client_tls_profile + if self.client_tls_profile: + _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_tls_profile + if self.server_tls_profile: + _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QUICProfile from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, + "MinRTO": obj.get("MinRTO"), + "Name": obj.get("Name"), + "QUICVersion": obj.get("QUICVersion"), + "RxBuffer": obj.get("RxBuffer"), + "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/quic_version.py b/cyperf/models/quic_version.py new file mode 100644 index 0000000..6ae4dbb --- /dev/null +++ b/cyperf/models/quic_version.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class QUICVersion(str, Enum): + """ + QUICVersion + """ + + """ + allowed enum values + """ + Q043 = 'Q043' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of QUICVersion from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/scenario.py b/cyperf/models/scenario.py index 91ff912..7ddb33d 100644 --- a/cyperf/models/scenario.py +++ b/cyperf/models/scenario.py @@ -28,6 +28,7 @@ from cyperf.models.ip_preference import IpPreference from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params +from cyperf.models.quic_profile import QUICProfile from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -39,6 +40,7 @@ class Scenario(BaseModel): action_timeout: Optional[StrictInt] = Field(default=None, description="The action timeout value of the Scenario.", alias="ActionTimeout") active: Optional[StrictBool] = Field(default=None, description="Indicates whether the scenario is enabled or not.", alias="Active") client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") connections: Optional[List[Connection]] = Field(default=None, alias="Connections") connections_max_transactions: Optional[StrictInt] = Field(default=None, description="The maximum number of transactions for all scenario connections.", alias="ConnectionsMaxTransactions") description: Optional[StrictStr] = Field(default=None, description="The description of the Scenario.", alias="Description") @@ -49,6 +51,7 @@ class Scenario(BaseModel): external_resource_url: Optional[StrictStr] = Field(default=None, description="The external resource URL of the Scenario.", alias="ExternalResourceURL") index: Optional[StrictInt] = Field(default=None, description="The index of the scenario.", alias="Index") inherit_http_profile: Optional[StrictBool] = Field(default=None, alias="InheritHTTPProfile") + inherit_quic_profile: Optional[StrictBool] = Field(default=None, alias="InheritQUICProfile") ip_preference: Optional[IpPreference] = Field(default=None, description="The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX.", alias="IpPreference") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") iteration_count: Optional[StrictInt] = Field(default=None, description="The iteration counter of the Scenario.", alias="IterationCount") @@ -60,12 +63,13 @@ class Scenario(BaseModel): qos_flow_id: Optional[StrictStr] = Field(default=None, alias="QosFlowId") readonly_max_trans: Optional[StrictBool] = Field(default=None, description="If true, ConnectionsMaxTransactions will be readonly.", alias="ReadonlyMaxTrans") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") supports_client_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Client HTTP profile.", alias="SupportsClientHTTPProfile") supports_http_profiles: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports HTTP profiles.", alias="SupportsHTTPProfiles") supports_server_http_profile: Optional[StrictBool] = Field(default=None, description="Indicates if the scenario supports Server HTTP profile.", alias="SupportsServerHTTPProfile") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -119,6 +123,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in connections (list) _items = [] if self.connections: @@ -146,6 +153,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -170,6 +180,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ActionTimeout": obj.get("ActionTimeout"), "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), @@ -180,6 +191,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), + "InheritQUICProfile": obj.get("InheritQUICProfile"), "IpPreference": obj.get("IpPreference"), "IsDeprecated": obj.get("IsDeprecated"), "IterationCount": obj.get("IterationCount"), @@ -191,6 +203,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), diff --git a/cyperf/models/supported_group_tls13.py b/cyperf/models/supported_group_tls13.py index 7e6a8ed..3184772 100644 --- a/cyperf/models/supported_group_tls13.py +++ b/cyperf/models/supported_group_tls13.py @@ -47,6 +47,7 @@ class SupportedGroupTLS13(str, Enum): P384_MLKEM768 = 'P384_MLKEM768' P256_MLKEM768 = 'P256_MLKEM768' P256_MLKEM512 = 'P256_MLKEM512' + X25519 = 'X25519' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index d3a0ed7..637afa5 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -32,9 +32,10 @@ class TrafficProfileBase(BaseModel): """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") + use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "id", "links"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] model_config = ConfigDict( populate_by_name=True, @@ -101,6 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, + "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , diff --git a/cyperf/models/transport_profile.py b/cyperf/models/transport_profile.py index 5b14cb0..37a0715 100644 --- a/cyperf/models/transport_profile.py +++ b/cyperf/models/transport_profile.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.http_profile import HTTPProfile +from cyperf.models.quic_profile import QUICProfile from cyperf.models.rtp_profile import RTPProfile from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile @@ -35,18 +36,20 @@ class TransportProfile(BaseModel): TransportProfile """ # noqa: E501 client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") client_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ClientTcpProfile") ip_tos: Optional[StrictInt] = Field(default=None, alias="IpTos") rtp_profile: Optional[RTPProfile] = Field(default=None, alias="RTPProfile") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") server_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ServerTcpProfile") udp_profile: Optional[UdpProfile] = Field(default=None, alias="UdpProfile") vlan_prio: Optional[StrictInt] = Field(default=None, alias="VlanPrio") links: Optional[List[APILink]] = None l4_profile_name: StrictStr = Field(alias="L4ProfileName") - __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links", "L4ProfileName"] + __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links", "L4ProfileName"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +93,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of client_tls_profile if self.client_tls_profile: _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() @@ -102,6 +108,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of server_tls_profile if self.server_tls_profile: _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() @@ -133,11 +142,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "ClientTcpProfile": TcpProfile.from_dict(obj["ClientTcpProfile"]) if obj.get("ClientTcpProfile") is not None else None, "IpTos": obj.get("IpTos"), "RTPProfile": RTPProfile.from_dict(obj["RTPProfile"]) if obj.get("RTPProfile") is not None else None, "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, diff --git a/cyperf/models/transport_profile_base.py b/cyperf/models/transport_profile_base.py index 0a608e7..0a19ccd 100644 --- a/cyperf/models/transport_profile_base.py +++ b/cyperf/models/transport_profile_base.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.http_profile import HTTPProfile +from cyperf.models.quic_profile import QUICProfile from cyperf.models.rtp_profile import RTPProfile from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile @@ -35,17 +36,19 @@ class TransportProfileBase(BaseModel): TransportProfileBase """ # noqa: E501 client_http_profile: Optional[HTTPProfile] = Field(default=None, description="The client HTTP profile used in the Scenario.", alias="ClientHTTPProfile") + client_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ClientQUICProfile") client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") client_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ClientTcpProfile") ip_tos: Optional[StrictInt] = Field(default=None, alias="IpTos") rtp_profile: Optional[RTPProfile] = Field(default=None, alias="RTPProfile") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") + server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") server_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ServerTcpProfile") udp_profile: Optional[UdpProfile] = Field(default=None, alias="UdpProfile") vlan_prio: Optional[StrictInt] = Field(default=None, alias="VlanPrio") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links"] + __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_http_profile if self.client_http_profile: _dict['ClientHTTPProfile'] = self.client_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of client_quic_profile + if self.client_quic_profile: + _dict['ClientQUICProfile'] = self.client_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of client_tls_profile if self.client_tls_profile: _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() @@ -101,6 +107,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of server_http_profile if self.server_http_profile: _dict['ServerHTTPProfile'] = self.server_http_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_quic_profile + if self.server_quic_profile: + _dict['ServerQUICProfile'] = self.server_quic_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of server_tls_profile if self.server_tls_profile: _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() @@ -132,11 +141,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, + "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "ClientTcpProfile": TcpProfile.from_dict(obj["ClientTcpProfile"]) if obj.get("ClientTcpProfile") is not None else None, "IpTos": obj.get("IpTos"), "RTPProfile": RTPProfile.from_dict(obj["RTPProfile"]) if obj.get("RTPProfile") is not None else None, "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, + "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index a28507d..dfe18d8 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -15,20 +15,6 @@ Method | HTTP request | Description [**get_controller_compute_nodes**](AgentsApi.md#get_controller_compute_nodes) | **GET** /api/v2/controllers/{controllerId}/compute-nodes | [**get_controllers**](AgentsApi.md#get_controllers) | **GET** /api/v2/controllers | [**patch_agent**](AgentsApi.md#patch_agent) | **PATCH** /api/v2/agents/{agentId} | -[**poll_agents_batch_delete**](AgentsApi.md#poll_agents_batch_delete) | **GET** /api/v2/agents/operations/batch-delete/{id} | -[**poll_agents_export_files**](AgentsApi.md#poll_agents_export_files) | **GET** /api/v2/agents/operations/exportFiles/{id} | -[**poll_agents_reboot**](AgentsApi.md#poll_agents_reboot) | **GET** /api/v2/agents/operations/reboot/{id} | -[**poll_agents_release**](AgentsApi.md#poll_agents_release) | **GET** /api/v2/agents/operations/release/{id} | -[**poll_agents_reserve**](AgentsApi.md#poll_agents_reserve) | **GET** /api/v2/agents/operations/reserve/{id} | -[**poll_agents_set_dpdk_mode**](AgentsApi.md#poll_agents_set_dpdk_mode) | **GET** /api/v2/agents/operations/set-dpdk-mode/{id} | -[**poll_agents_set_ntp**](AgentsApi.md#poll_agents_set_ntp) | **GET** /api/v2/agents/operations/set-ntp/{id} | -[**poll_agents_update**](AgentsApi.md#poll_agents_update) | **GET** /api/v2/agents/operations/update/{id} | -[**poll_controllers_clear_port_ownership**](AgentsApi.md#poll_controllers_clear_port_ownership) | **GET** /api/v2/controllers/operations/clear-port-ownership/{id} | -[**poll_controllers_power_cycle_nodes**](AgentsApi.md#poll_controllers_power_cycle_nodes) | **GET** /api/v2/controllers/operations/power-cycle-nodes/{id} | -[**poll_controllers_reboot_port**](AgentsApi.md#poll_controllers_reboot_port) | **GET** /api/v2/controllers/operations/reboot-port/{id} | -[**poll_controllers_set_app**](AgentsApi.md#poll_controllers_set_app) | **GET** /api/v2/controllers/operations/set-app/{id} | -[**poll_controllers_set_node_aggregation**](AgentsApi.md#poll_controllers_set_node_aggregation) | **GET** /api/v2/controllers/operations/set-node-aggregation/{id} | -[**poll_controllers_set_port_link_state**](AgentsApi.md#poll_controllers_set_port_link_state) | **GET** /api/v2/controllers/operations/set-port-link-state/{id} | [**start_agents_batch_delete**](AgentsApi.md#start_agents_batch_delete) | **POST** /api/v2/agents/operations/batch-delete | [**start_agents_export_files**](AgentsApi.md#start_agents_export_files) | **POST** /api/v2/agents/operations/exportFiles | [**start_agents_reboot**](AgentsApi.md#start_agents_reboot) | **POST** /api/v2/agents/operations/reboot | @@ -929,1098 +915,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_agents_batch_delete** -> AsyncContext poll_agents_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_batch_delete(id) - print("The response of AgentsApi->poll_agents_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_export_files** -> AsyncContext poll_agents_export_files(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_export_files(id) - print("The response of AgentsApi->poll_agents_export_files:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_export_files: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_reboot** -> AsyncContext poll_agents_reboot(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_reboot(id) - print("The response of AgentsApi->poll_agents_reboot:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_reboot: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_release** -> AsyncContext poll_agents_release(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_release(id) - print("The response of AgentsApi->poll_agents_release:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_release: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_reserve** -> AsyncContext poll_agents_reserve(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_reserve(id) - print("The response of AgentsApi->poll_agents_reserve:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_reserve: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_set_dpdk_mode** -> AsyncContext poll_agents_set_dpdk_mode(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_set_dpdk_mode(id) - print("The response of AgentsApi->poll_agents_set_dpdk_mode:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_set_dpdk_mode: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_set_ntp** -> AsyncContext poll_agents_set_ntp(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_set_ntp(id) - print("The response of AgentsApi->poll_agents_set_ntp:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_set_ntp: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_agents_update** -> AsyncContext poll_agents_update(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_agents_update(id) - print("The response of AgentsApi->poll_agents_update:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_agents_update: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_clear_port_ownership** -> AsyncContext poll_controllers_clear_port_ownership(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_clear_port_ownership(id) - print("The response of AgentsApi->poll_controllers_clear_port_ownership:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_clear_port_ownership: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_power_cycle_nodes** -> AsyncContext poll_controllers_power_cycle_nodes(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_power_cycle_nodes(id) - print("The response of AgentsApi->poll_controllers_power_cycle_nodes:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_power_cycle_nodes: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_reboot_port** -> AsyncContext poll_controllers_reboot_port(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_reboot_port(id) - print("The response of AgentsApi->poll_controllers_reboot_port:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_reboot_port: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_set_app** -> AsyncContext poll_controllers_set_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_set_app(id) - print("The response of AgentsApi->poll_controllers_set_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_set_node_aggregation** -> AsyncContext poll_controllers_set_node_aggregation(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_set_node_aggregation(id) - print("The response of AgentsApi->poll_controllers_set_node_aggregation:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_node_aggregation: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controllers_set_port_link_state** -> AsyncContext poll_controllers_set_port_link_state(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.AgentsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controllers_set_port_link_state(id) - print("The response of AgentsApi->poll_controllers_set_port_link_state:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AgentsApi->poll_controllers_set_port_link_state: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_agents_batch_delete** > AsyncContext start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) diff --git a/docs/Application.md b/docs/Application.md index 589625c..64b0257 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] @@ -38,6 +41,7 @@ Name | Type | Description | Notes **data_types** | [**List[DataType]**](DataType.md) | | [optional] **inherit_tls** | **bool** | | [optional] **is_stateless_stream** | **bool** | | [optional] +**is_streaming** | **bool** | | [optional] **objective_weight** | **int** | The objective weight of the application. | **protocol_found** | **bool** | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] @@ -45,6 +49,7 @@ Name | Type | Description | Notes **static** | **bool** | | [optional] **supported_apps** | **List[str]** | | [optional] **supports_calibration** | **bool** | | [optional] +**supports_multi_flow** | **bool** | | [optional] **supports_strikes** | **bool** | | [optional] **supports_tls** | **bool** | | [optional] **tracks** | [**List[Track]**](Track.md) | | [optional] diff --git a/docs/ApplicationProfile.md b/docs/ApplicationProfile.md index 70d5ae1..6cde695 100644 --- a/docs/ApplicationProfile.md +++ b/docs/ApplicationProfile.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **applications** | [**List[Application]**](Application.md) | | [optional] diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index c49b33f..78b3044 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -108,35 +108,6 @@ Method | HTTP request | Description [**get_resources_tls_keys_upload_file_result**](ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | [**get_resources_user_defined_apps**](ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | [**get_resources_user_defined_apps_upload_file_result**](ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | -[**poll_resources_apps_export_all**](ApplicationResourcesApi.md#poll_resources_apps_export_all) | **GET** /api/v2/resources/apps/operations/export-all/{id} | -[**poll_resources_captures_batch_delete**](ApplicationResourcesApi.md#poll_resources_captures_batch_delete) | **GET** /api/v2/resources/captures/operations/batch-delete/{id} | -[**poll_resources_captures_upload_file**](ApplicationResourcesApi.md#poll_resources_captures_upload_file) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId} | -[**poll_resources_certificates_upload_file**](ApplicationResourcesApi.md#poll_resources_certificates_upload_file) | **GET** /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} | -[**poll_resources_config_export_user_defined_apps**](ApplicationResourcesApi.md#poll_resources_config_export_user_defined_apps) | **GET** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps/{id} | -[**poll_resources_create_app**](ApplicationResourcesApi.md#poll_resources_create_app) | **GET** /api/v2/resources/operations/create-app/{id} | -[**poll_resources_custom_fuzzing_scripts_upload_file**](ApplicationResourcesApi.md#poll_resources_custom_fuzzing_scripts_upload_file) | **GET** /api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId} | -[**poll_resources_edit_app**](ApplicationResourcesApi.md#poll_resources_edit_app) | **GET** /api/v2/resources/operations/edit-app/{id} | -[**poll_resources_find_param_matches**](ApplicationResourcesApi.md#poll_resources_find_param_matches) | **GET** /api/v2/resources/operations/find-param-matches/{id} | -[**poll_resources_flow_library_upload_file**](ApplicationResourcesApi.md#poll_resources_flow_library_upload_file) | **GET** /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_get_attack_categories**](ApplicationResourcesApi.md#poll_resources_get_attack_categories) | **GET** /api/v2/resources/operations/get-attack-categories/{id} | -[**poll_resources_get_attacks**](ApplicationResourcesApi.md#poll_resources_get_attacks) | **GET** /api/v2/resources/operations/get-attacks/{id} | -[**poll_resources_get_strike_categories**](ApplicationResourcesApi.md#poll_resources_get_strike_categories) | **GET** /api/v2/resources/operations/get-strike-categories/{id} | -[**poll_resources_get_strikes**](ApplicationResourcesApi.md#poll_resources_get_strikes) | **GET** /api/v2/resources/operations/get-strikes/{id} | -[**poll_resources_global_playlists_upload_file**](ApplicationResourcesApi.md#poll_resources_global_playlists_upload_file) | **GET** /api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId} | -[**poll_resources_http_library_upload_file**](ApplicationResourcesApi.md#poll_resources_http_library_upload_file) | **GET** /api/v2/resources/http-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_media_files_upload_file**](ApplicationResourcesApi.md#poll_resources_media_files_upload_file) | **GET** /api/v2/resources/media-files/operations/uploadFile/{uploadFileId} | -[**poll_resources_media_library_upload_file**](ApplicationResourcesApi.md#poll_resources_media_library_upload_file) | **GET** /api/v2/resources/media-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_other_library_upload_file**](ApplicationResourcesApi.md#poll_resources_other_library_upload_file) | **GET** /api/v2/resources/other-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_payloads_upload_file**](ApplicationResourcesApi.md#poll_resources_payloads_upload_file) | **GET** /api/v2/resources/payloads/operations/uploadFile/{uploadFileId} | -[**poll_resources_pcaps_upload_file**](ApplicationResourcesApi.md#poll_resources_pcaps_upload_file) | **GET** /api/v2/resources/pcaps/operations/uploadFile/{uploadFileId} | -[**poll_resources_playlists_upload_file**](ApplicationResourcesApi.md#poll_resources_playlists_upload_file) | **GET** /api/v2/resources/playlists/operations/uploadFile/{uploadFileId} | -[**poll_resources_sip_library_upload_file**](ApplicationResourcesApi.md#poll_resources_sip_library_upload_file) | **GET** /api/v2/resources/sip-library/operations/uploadFile/{uploadFileId} | -[**poll_resources_stats_profile_upload_file**](ApplicationResourcesApi.md#poll_resources_stats_profile_upload_file) | **GET** /api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_certificates_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_certificates_upload_file) | **GET** /api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_dhs_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_dhs_upload_file) | **GET** /api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId} | -[**poll_resources_tls_keys_upload_file**](ApplicationResourcesApi.md#poll_resources_tls_keys_upload_file) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId} | -[**poll_resources_user_defined_apps_export_all**](ApplicationResourcesApi.md#poll_resources_user_defined_apps_export_all) | **GET** /api/v2/resources/user-defined-apps/operations/export-all/{id} | -[**poll_resources_user_defined_apps_upload_file**](ApplicationResourcesApi.md#poll_resources_user_defined_apps_upload_file) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId} | [**start_resources_apps_export_all**](ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | [**start_resources_captures_batch_delete**](ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | [**start_resources_captures_upload_file**](ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | @@ -8331,2237 +8302,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_resources_apps_export_all** -> AsyncContext poll_resources_apps_export_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_apps_export_all(id) - print("The response of ApplicationResourcesApi->poll_resources_apps_export_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_apps_export_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_captures_batch_delete** -> AsyncContext poll_resources_captures_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_captures_batch_delete(id) - print("The response of ApplicationResourcesApi->poll_resources_captures_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_captures_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_captures_upload_file** -> AsyncContext poll_resources_captures_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_response = api_instance.poll_resources_captures_upload_file(upload_file_id) - print("The response of ApplicationResourcesApi->poll_resources_captures_upload_file:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_captures_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_certificates_upload_file** -> poll_resources_certificates_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_certificates_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_certificates_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_config_export_user_defined_apps** -> AsyncContext poll_resources_config_export_user_defined_apps(config_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - config_id = 'config_id_example' # str | The ID of the config. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_config_export_user_defined_apps(config_id, id) - print("The response of ApplicationResourcesApi->poll_resources_config_export_user_defined_apps:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_config_export_user_defined_apps: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **config_id** | **str**| The ID of the config. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_create_app** -> AsyncContext poll_resources_create_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_create_app(id) - print("The response of ApplicationResourcesApi->poll_resources_create_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_create_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_custom_fuzzing_scripts_upload_file** -> poll_resources_custom_fuzzing_scripts_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_custom_fuzzing_scripts_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_custom_fuzzing_scripts_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_edit_app** -> AsyncContext poll_resources_edit_app(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_edit_app(id) - print("The response of ApplicationResourcesApi->poll_resources_edit_app:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_edit_app: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_find_param_matches** -> AsyncContext poll_resources_find_param_matches(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_find_param_matches(id) - print("The response of ApplicationResourcesApi->poll_resources_find_param_matches:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_find_param_matches: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_flow_library_upload_file** -> poll_resources_flow_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_flow_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_flow_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_attack_categories** -> AsyncContext poll_resources_get_attack_categories(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_attack_categories(id) - print("The response of ApplicationResourcesApi->poll_resources_get_attack_categories:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_attack_categories: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_attacks** -> AsyncContext poll_resources_get_attacks(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_attacks(id) - print("The response of ApplicationResourcesApi->poll_resources_get_attacks:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_attacks: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_strike_categories** -> AsyncContext poll_resources_get_strike_categories(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_strike_categories(id) - print("The response of ApplicationResourcesApi->poll_resources_get_strike_categories:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_strike_categories: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_get_strikes** -> AsyncContext poll_resources_get_strikes(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_get_strikes(id) - print("The response of ApplicationResourcesApi->poll_resources_get_strikes:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_get_strikes: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_global_playlists_upload_file** -> poll_resources_global_playlists_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_global_playlists_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_global_playlists_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_http_library_upload_file** -> poll_resources_http_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_http_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_http_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_media_files_upload_file** -> poll_resources_media_files_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_media_files_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_media_files_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_media_library_upload_file** -> poll_resources_media_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_media_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_media_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_other_library_upload_file** -> poll_resources_other_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_other_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_other_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_payloads_upload_file** -> poll_resources_payloads_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_payloads_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_payloads_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_pcaps_upload_file** -> poll_resources_pcaps_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_pcaps_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_pcaps_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_playlists_upload_file** -> poll_resources_playlists_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_playlists_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_playlists_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_sip_library_upload_file** -> poll_resources_sip_library_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_sip_library_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_sip_library_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_stats_profile_upload_file** -> poll_resources_stats_profile_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_stats_profile_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_stats_profile_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_certificates_upload_file** -> poll_resources_tls_certificates_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_certificates_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_certificates_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_dhs_upload_file** -> poll_resources_tls_dhs_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_dhs_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_dhs_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_tls_keys_upload_file** -> poll_resources_tls_keys_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_tls_keys_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_tls_keys_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_user_defined_apps_export_all** -> AsyncContext poll_resources_user_defined_apps_export_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_resources_user_defined_apps_export_all(id) - print("The response of ApplicationResourcesApi->poll_resources_user_defined_apps_export_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_user_defined_apps_export_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_resources_user_defined_apps_upload_file** -> poll_resources_user_defined_apps_upload_file(upload_file_id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ApplicationResourcesApi(api_client) - upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. - - try: - api_instance.poll_resources_user_defined_apps_upload_file(upload_file_id) - except Exception as e: - print("Exception when calling ApplicationResourcesApi->poll_resources_user_defined_apps_upload_file: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **upload_file_id** | **str**| The ID of the uploadfile. | - -### Return type - -void (empty response body) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | -**500** | Unexpected error | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_resources_apps_export_all** > AsyncContext start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) diff --git a/docs/Attack.md b/docs/Attack.md index 7fe5d99..25e0e0d 100644 --- a/docs/Attack.md +++ b/docs/Attack.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] diff --git a/docs/AttackProfile.md b/docs/AttackProfile.md index 923e8bc..4d64831 100644 --- a/docs/AttackProfile.md +++ b/docs/AttackProfile.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **attacks** | [**List[Attack]**](Attack.md) | | [optional] diff --git a/docs/ConfigurationsApi.md b/docs/ConfigurationsApi.md index da5887d..5766462 100644 --- a/docs/ConfigurationsApi.md +++ b/docs/ConfigurationsApi.md @@ -11,10 +11,6 @@ Method | HTTP request | Description [**get_configs**](ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | [**get_resources_custom_import_operations**](ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | [**patch_config**](ConfigurationsApi.md#patch_config) | **PATCH** /api/v2/configs/{configId} | -[**poll_configs_batch_delete**](ConfigurationsApi.md#poll_configs_batch_delete) | **GET** /api/v2/configs/operations/batch-delete/{id} | -[**poll_configs_export_all**](ConfigurationsApi.md#poll_configs_export_all) | **GET** /api/v2/configs/operations/exportAll/{id} | -[**poll_configs_import**](ConfigurationsApi.md#poll_configs_import) | **GET** /api/v2/configs/operations/import/{id} | -[**poll_configs_import_all**](ConfigurationsApi.md#poll_configs_import_all) | **GET** /api/v2/configs/operations/importAll/{id} | [**start_configs_batch_delete**](ConfigurationsApi.md#start_configs_batch_delete) | **POST** /api/v2/configs/operations/batch-delete | [**start_configs_export_all**](ConfigurationsApi.md#start_configs_export_all) | **POST** /api/v2/configs/operations/exportAll | [**start_configs_import**](ConfigurationsApi.md#start_configs_import) | **POST** /api/v2/configs/operations/import | @@ -588,318 +584,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_configs_batch_delete** -> AsyncContext poll_configs_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_batch_delete(id) - print("The response of ConfigurationsApi->poll_configs_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_configs_export_all** -> AsyncContext poll_configs_export_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_export_all(id) - print("The response of ConfigurationsApi->poll_configs_export_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_export_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_configs_import** -> AsyncContext poll_configs_import(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_import(id) - print("The response of ConfigurationsApi->poll_configs_import:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_import: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_configs_import_all** -> AsyncContext poll_configs_import_all(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ConfigurationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_configs_import_all(id) - print("The response of ConfigurationsApi->poll_configs_import_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->poll_configs_import_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_configs_batch_delete** > AsyncContext start_configs_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) diff --git a/docs/CreateAppOperation.md b/docs/CreateAppOperation.md index ddbdac5..549b210 100644 --- a/docs/CreateAppOperation.md +++ b/docs/CreateAppOperation.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **actions** | [**List[ActionInput]**](ActionInput.md) | | [optional] **app_name** | **str** | | [optional] **app_type** | **str** | | [optional] +**description** | **str** | | [optional] **parameters** | [**List[Parameter]**](Parameter.md) | | [optional] ## Example diff --git a/docs/DataMigrationApi.md b/docs/DataMigrationApi.md index e2a0b64..cb37771 100644 --- a/docs/DataMigrationApi.md +++ b/docs/DataMigrationApi.md @@ -4,168 +4,10 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**poll_controller_migration_export**](DataMigrationApi.md#poll_controller_migration_export) | **GET** /api/v2/controller-migration/operations/export/{id} | -[**poll_controller_migration_import**](DataMigrationApi.md#poll_controller_migration_import) | **GET** /api/v2/controller-migration/operations/import/{id} | [**start_controller_migration_export**](DataMigrationApi.md#start_controller_migration_export) | **POST** /api/v2/controller-migration/operations/export | [**start_controller_migration_import**](DataMigrationApi.md#start_controller_migration_import) | **POST** /api/v2/controller-migration/operations/import | -# **poll_controller_migration_export** -> AsyncContext poll_controller_migration_export(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.DataMigrationApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controller_migration_export(id) - print("The response of DataMigrationApi->poll_controller_migration_export:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DataMigrationApi->poll_controller_migration_export: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_controller_migration_import** -> AsyncContext poll_controller_migration_import(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.DataMigrationApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_controller_migration_import(id) - print("The response of DataMigrationApi->poll_controller_migration_import:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DataMigrationApi->poll_controller_migration_import: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_controller_migration_export** > AsyncContext start_controller_migration_export(export_package_operation=export_package_operation) diff --git a/docs/EditAppOperation.md b/docs/EditAppOperation.md index c556303..0906600 100644 --- a/docs/EditAppOperation.md +++ b/docs/EditAppOperation.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **add_inputs** | [**List[AddInput]**](AddInput.md) | | [optional] +**app_description** | **str** | | [optional] **app_id** | **str** | | [optional] **app_name** | **str** | | [optional] **app_parameters** | [**List[Parameter]**](Parameter.md) | | [optional] diff --git a/docs/Metadata.md b/docs/Metadata.md index 5c57877..228d7c7 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -7,8 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **direction** | **str** | The direction of the strike | [optional] **is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] +**is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] **keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The keywords of the strike | [optional] **legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] +**no_multi_flow_support** | **bool** | If true, only a single application with this protocol id can be present in the configuration | [optional] **protocol** | **str** | The protocol of the strike | [optional] **rtp_profile_meta** | [**RTPProfileMeta**](RTPProfileMeta.md) | | [optional] **references** | [**List[Reference]**](Reference.md) | The references of the strike | [optional] diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index d9bb141..ef41a55 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -8,8 +8,6 @@ Method | HTTP request | Description [**get_notification_by_id**](NotificationsApi.md#get_notification_by_id) | **GET** /api/v2/notifications/{notificationId} | [**get_notification_counts**](NotificationsApi.md#get_notification_counts) | **GET** /api/v2/notification-counts | [**get_notifications**](NotificationsApi.md#get_notifications) | **GET** /api/v2/notifications | -[**poll_notifications_cleanup**](NotificationsApi.md#poll_notifications_cleanup) | **GET** /api/v2/notifications/operations/cleanup/{id} | -[**poll_notifications_dismiss**](NotificationsApi.md#poll_notifications_dismiss) | **GET** /api/v2/notifications/operations/dismiss/{id} | [**start_notifications_cleanup**](NotificationsApi.md#start_notifications_cleanup) | **POST** /api/v2/notifications/operations/cleanup | [**start_notifications_dismiss**](NotificationsApi.md#start_notifications_dismiss) | **POST** /api/v2/notifications/operations/dismiss | @@ -378,162 +376,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_notifications_cleanup** -> AsyncContext poll_notifications_cleanup(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.NotificationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_notifications_cleanup(id) - print("The response of NotificationsApi->poll_notifications_cleanup:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling NotificationsApi->poll_notifications_cleanup: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_notifications_dismiss** -> AsyncContext poll_notifications_dismiss(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.NotificationsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_notifications_dismiss(id) - print("The response of NotificationsApi->poll_notifications_dismiss:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling NotificationsApi->poll_notifications_dismiss: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_notifications_cleanup** > AsyncContext start_notifications_cleanup() diff --git a/docs/Parameter.md b/docs/Parameter.md index 0da9abe..4484128 100644 --- a/docs/Parameter.md +++ b/docs/Parameter.md @@ -5,16 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**default_array_elements** | **List[Dict[str, str]]** | The default values of the parameter | [optional] -**default_source** | **str** | The default source of the parameter | [optional] -**default_value** | **str** | The default value of the parameter | [optional] -**element_type** | **str** | The type of elements in the values array | [optional] -**metadata** | [**ParameterMetadata**](ParameterMetadata.md) | | [optional] -**sources** | **List[str]** | The sources of the parameter | [optional] -**type** | **str** | The type of the parameter | [optional] +**matches** | [**List[ParameterMatch]**](ParameterMatch.md) | | [optional] +**name** | **str** | | [optional] **var_field** | **str** | The name of the ES document field | [optional] -**id** | **str** | The unique identifier of the parameter | [optional] [readonly] -**links** | [**List[APILink]**](APILink.md) | | [optional] **operator** | **str** | The operator that the parameter supports | [optional] **query_param** | **str** | The corresponding query param | [optional] diff --git a/docs/QUICProfile.md b/docs/QUICProfile.md new file mode 100644 index 0000000..9473738 --- /dev/null +++ b/docs/QUICProfile.md @@ -0,0 +1,35 @@ +# QUICProfile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] +**min_rto** | **int** | | [optional] +**name** | **str** | The name of the QUIC profile. | [optional] +**quic_version** | [**QUICVersion**](QUICVersion.md) | | [optional] +**rx_buffer** | **int** | | [optional] +**server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.quic_profile import QUICProfile + +# TODO update the JSON string below +json = "{}" +# create an instance of QUICProfile from a JSON string +quic_profile_instance = QUICProfile.from_json(json) +# print the JSON string representation of the object +print(QUICProfile.to_json()) + +# convert the object into a dict +quic_profile_dict = quic_profile_instance.to_dict() +# create an instance of QUICProfile from a dict +quic_profile_from_dict = QUICProfile.from_dict(quic_profile_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QUICVersion.md b/docs/QUICVersion.md new file mode 100644 index 0000000..e4d44eb --- /dev/null +++ b/docs/QUICVersion.md @@ -0,0 +1,10 @@ +# QUICVersion + + +## Enum + +* `Q043` (value: `'Q043'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md index 19e9a35..58775af 100644 --- a/docs/ReportsApi.md +++ b/docs/ReportsApi.md @@ -6,8 +6,6 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**download_pdf**](ReportsApi.md#download_pdf) | **GET** /api/v2/results/{resultId}/download-pdf/{pdfId} | [**get_result_download_csv_by_id**](ReportsApi.md#get_result_download_csv_by_id) | **GET** /api/v2/results/{resultId}/download-csv/{downloadCsvId} | -[**poll_result_generate_csv**](ReportsApi.md#poll_result_generate_csv) | **GET** /api/v2/results/{resultId}/operations/generate-csv/{id} | -[**poll_result_generate_pdf**](ReportsApi.md#poll_result_generate_pdf) | **GET** /api/v2/results/{resultId}/operations/generate-pdf/{id} | [**start_result_generate_csv**](ReportsApi.md#start_result_generate_csv) | **POST** /api/v2/results/{resultId}/operations/generate-csv | [**start_result_generate_pdf**](ReportsApi.md#start_result_generate_pdf) | **POST** /api/v2/results/{resultId}/operations/generate-pdf | @@ -169,166 +167,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_result_generate_csv** -> AsyncContext poll_result_generate_csv(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ReportsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_csv(result_id, id) - print("The response of ReportsApi->poll_result_generate_csv:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportsApi->poll_result_generate_csv: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_result_generate_pdf** -> AsyncContext poll_result_generate_pdf(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.ReportsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_pdf(result_id, id) - print("The response of ReportsApi->poll_result_generate_pdf:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ReportsApi->poll_result_generate_pdf: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_result_generate_csv** > AsyncContext start_result_generate_csv(result_id, generate_csv_reports_operation=generate_csv_reports_operation) diff --git a/docs/Scenario.md b/docs/Scenario.md index 700d401..f019ab1 100644 --- a/docs/Scenario.md +++ b/docs/Scenario.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **action_timeout** | **int** | The action timeout value of the Scenario. | [optional] **active** | **bool** | Indicates whether the scenario is enabled or not. | [optional] **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **connections** | [**List[Connection]**](Connection.md) | | [optional] **connections_max_transactions** | **int** | The maximum number of transactions for all scenario connections. | [optional] **description** | **str** | The description of the Scenario. | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **external_resource_url** | **str** | The external resource URL of the Scenario. | [optional] **index** | **int** | The index of the scenario. | [optional] **inherit_http_profile** | **bool** | | [optional] +**inherit_quic_profile** | **bool** | | [optional] **ip_preference** | [**IpPreference**](IpPreference.md) | The Ip Preference. Must be one of: IPV4_ONLY, IPV6_ONLY, BOTH_IPV4_FIRST, BOTH_IPV6_FIRST or IP_PREF_MAX. | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **iteration_count** | **int** | The iteration counter of the Scenario. | [optional] @@ -29,6 +31,7 @@ Name | Type | Description | Notes **qos_flow_id** | **str** | | [optional] **readonly_max_trans** | **bool** | If true, ConnectionsMaxTransactions will be readonly. | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **supports_client_http_profile** | **bool** | Indicates if the scenario supports Client HTTP profile. | [optional] **supports_http_profiles** | **bool** | Indicates if the scenario supports HTTP profiles. | [optional] **supports_server_http_profile** | **bool** | Indicates if the scenario supports Server HTTP profile. | [optional] diff --git a/docs/SessionsApi.md b/docs/SessionsApi.md index 2a95787..f34d6a3 100644 --- a/docs/SessionsApi.md +++ b/docs/SessionsApi.md @@ -20,15 +20,6 @@ Method | HTTP request | Description [**patch_session**](SessionsApi.md#patch_session) | **PATCH** /api/v2/sessions/{sessionId} | [**patch_session_meta**](SessionsApi.md#patch_session_meta) | **PATCH** /api/v2/sessions/{sessionId}/meta/{metaId} | [**patch_session_test**](SessionsApi.md#patch_session_test) | **PATCH** /api/v2/sessions/{sessionId}/test | -[**poll_config_add_applications**](SessionsApi.md#poll_config_add_applications) | **GET** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications/{id} | -[**poll_session_config_granular_stats_default_dashboards**](SessionsApi.md#poll_session_config_granular_stats_default_dashboards) | **GET** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} | -[**poll_session_config_save**](SessionsApi.md#poll_session_config_save) | **GET** /api/v2/sessions/{sessionId}/config/operations/save/{id} | -[**poll_session_load_config**](SessionsApi.md#poll_session_load_config) | **GET** /api/v2/sessions/{sessionId}/operations/loadConfig/{id} | -[**poll_session_prepare_test**](SessionsApi.md#poll_session_prepare_test) | **GET** /api/v2/sessions/{sessionId}/operations/prepareTest/{id} | -[**poll_session_test_end**](SessionsApi.md#poll_session_test_end) | **GET** /api/v2/sessions/{sessionId}/operations/testEnd/{id} | -[**poll_session_test_init**](SessionsApi.md#poll_session_test_init) | **GET** /api/v2/sessions/{sessionId}/operations/testInit/{id} | -[**poll_session_touch**](SessionsApi.md#poll_session_touch) | **GET** /api/v2/sessions/{sessionId}/operations/touch/{id} | -[**poll_sessions_batch_delete**](SessionsApi.md#poll_sessions_batch_delete) | **GET** /api/v2/sessions/operations/batch-delete/{id} | [**start_config_add_applications**](SessionsApi.md#start_config_add_applications) | **POST** /api/v2/sessions/{sessionId}/config/config/TrafficProfiles/{trafficProfileId}/operations/add-applications | [**start_session_config_granular_stats_default_dashboards**](SessionsApi.md#start_session_config_granular_stats_default_dashboards) | **POST** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards | [**start_session_config_save**](SessionsApi.md#start_session_config_save) | **POST** /api/v2/sessions/{sessionId}/config/operations/save | @@ -1315,725 +1306,6 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_config_add_applications** -> AsyncContext poll_config_add_applications(session_id, traffic_profile_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - traffic_profile_id = 'traffic_profile_id_example' # str | The ID of the traffic profile. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_config_add_applications(session_id, traffic_profile_id, id) - print("The response of SessionsApi->poll_config_add_applications:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_config_add_applications: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **traffic_profile_id** | **str**| The ID of the traffic profile. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_config_granular_stats_default_dashboards** -> AsyncContext poll_session_config_granular_stats_default_dashboards(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_config_granular_stats_default_dashboards(session_id, id) - print("The response of SessionsApi->poll_session_config_granular_stats_default_dashboards:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_config_granular_stats_default_dashboards: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_config_save** -> AsyncContext poll_session_config_save(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_config_save(session_id, id) - print("The response of SessionsApi->poll_session_config_save:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_config_save: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_load_config** -> AsyncContext poll_session_load_config(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_load_config(session_id, id) - print("The response of SessionsApi->poll_session_load_config:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_load_config: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_prepare_test** -> AsyncContext poll_session_prepare_test(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_prepare_test(session_id, id) - print("The response of SessionsApi->poll_session_prepare_test:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_prepare_test: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_test_end** -> AsyncContext poll_session_test_end(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_test_end(session_id, id) - print("The response of SessionsApi->poll_session_test_end:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_test_end: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_test_init** -> AsyncContext poll_session_test_init(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_test_init(session_id, id) - print("The response of SessionsApi->poll_session_test_init:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_test_init: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_session_touch** -> AsyncContext poll_session_touch(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_session_touch(session_id, id) - print("The response of SessionsApi->poll_session_touch:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_session_touch: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_sessions_batch_delete** -> AsyncContext poll_sessions_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_sessions_batch_delete(id) - print("The response of SessionsApi->poll_sessions_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->poll_sessions_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_config_add_applications** > AsyncContext start_config_add_applications(session_id, traffic_profile_id, external_resource_info=external_resource_info) diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index 33fb993..e4b4b0b 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -9,7 +9,6 @@ Method | HTTP request | Description [**get_result_stat_by_id**](StatisticsApi.md#get_result_stat_by_id) | **GET** /api/v2/results/{resultId}/stats/{statId} | [**get_result_stats**](StatisticsApi.md#get_result_stats) | **GET** /api/v2/results/{resultId}/stats | [**get_stats_plugins**](StatisticsApi.md#get_stats_plugins) | **GET** /api/v2/stats/plugins | -[**poll_stats_plugins_ingest**](StatisticsApi.md#poll_stats_plugins_ingest) | **GET** /api/v2/stats/plugins/operations/ingest/{id} | [**start_stats_plugins_ingest**](StatisticsApi.md#start_stats_plugins_ingest) | **POST** /api/v2/stats/plugins/operations/ingest | @@ -421,84 +420,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_stats_plugins_ingest** -> AsyncContext poll_stats_plugins_ingest(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.StatisticsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_stats_plugins_ingest(id) - print("The response of StatisticsApi->poll_stats_plugins_ingest:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling StatisticsApi->poll_stats_plugins_ingest: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_stats_plugins_ingest** > AsyncContext start_stats_plugins_ingest(ingest_operation=ingest_operation) diff --git a/docs/SupportedGroupTLS13.md b/docs/SupportedGroupTLS13.md index 69e1439..9f5da16 100644 --- a/docs/SupportedGroupTLS13.md +++ b/docs/SupportedGroupTLS13.md @@ -44,6 +44,8 @@ The TLSv1.3 supported groups (default: P-256). * `P256_MLKEM512` (value: `'P256_MLKEM512'`) +* `X25519` (value: `'X25519'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestOperationsApi.md b/docs/TestOperationsApi.md index 2dd0003..f72b493 100644 --- a/docs/TestOperationsApi.md +++ b/docs/TestOperationsApi.md @@ -4,11 +4,6 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**poll_test_calibrate_start**](TestOperationsApi.md#poll_test_calibrate_start) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id} | -[**poll_test_calibrate_stop**](TestOperationsApi.md#poll_test_calibrate_stop) | **GET** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id} | -[**poll_test_run_abort**](TestOperationsApi.md#poll_test_run_abort) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/abort/{id} | -[**poll_test_run_start**](TestOperationsApi.md#poll_test_run_start) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/start/{id} | -[**poll_test_run_stop**](TestOperationsApi.md#poll_test_run_stop) | **GET** /api/v2/sessions/{sessionId}/test-run/operations/stop/{id} | [**start_test_calibrate_start**](TestOperationsApi.md#start_test_calibrate_start) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/start | [**start_test_calibrate_stop**](TestOperationsApi.md#start_test_calibrate_stop) | **POST** /api/v2/sessions/{sessionId}/test-calibrate/operations/stop | [**start_test_run_abort**](TestOperationsApi.md#start_test_run_abort) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/abort | @@ -16,406 +11,6 @@ Method | HTTP request | Description [**start_test_run_stop**](TestOperationsApi.md#start_test_run_stop) | **POST** /api/v2/sessions/{sessionId}/test-run/operations/stop | -# **poll_test_calibrate_start** -> AsyncContext poll_test_calibrate_start(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_calibrate_start(session_id, id) - print("The response of TestOperationsApi->poll_test_calibrate_start:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_calibrate_start: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_calibrate_stop** -> AsyncContext poll_test_calibrate_stop(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_calibrate_stop(session_id, id) - print("The response of TestOperationsApi->poll_test_calibrate_stop:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_calibrate_stop: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_abort** -> AsyncContext poll_test_run_abort(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_abort(session_id, id) - print("The response of TestOperationsApi->poll_test_run_abort:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_abort: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_start** -> AsyncContext poll_test_run_start(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_start(session_id, id) - print("The response of TestOperationsApi->poll_test_run_start:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_start: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_test_run_stop** -> AsyncContext poll_test_run_stop(session_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestOperationsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_test_run_stop(session_id, id) - print("The response of TestOperationsApi->poll_test_run_stop:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestOperationsApi->poll_test_run_stop: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_test_calibrate_start** > AsyncContext start_test_calibrate_start(session_id) diff --git a/docs/TestResultsApi.md b/docs/TestResultsApi.md index 6de66cb..7aff89c 100644 --- a/docs/TestResultsApi.md +++ b/docs/TestResultsApi.md @@ -14,10 +14,6 @@ Method | HTTP request | Description [**get_result_files**](TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | [**get_results**](TestResultsApi.md#get_results) | **GET** /api/v2/results | [**get_results_tags**](TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | -[**poll_result_generate_all**](TestResultsApi.md#poll_result_generate_all) | **GET** /api/v2/results/{resultId}/operations/generate-all/{id} | -[**poll_result_generate_results**](TestResultsApi.md#poll_result_generate_results) | **GET** /api/v2/results/{resultId}/operations/generate-results/{id} | -[**poll_result_load**](TestResultsApi.md#poll_result_load) | **GET** /api/v2/results/{resultId}/operations/load/{id} | -[**poll_results_batch_delete**](TestResultsApi.md#poll_results_batch_delete) | **GET** /api/v2/results/operations/batch-delete/{id} | [**start_result_generate_all**](TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | [**start_result_generate_results**](TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | [**start_result_load**](TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -821,324 +817,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_result_generate_all** -> AsyncContext poll_result_generate_all(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_all(result_id, id) - print("The response of TestResultsApi->poll_result_generate_all:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_result_generate_all: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_result_generate_results** -> AsyncContext poll_result_generate_results(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_generate_results(result_id, id) - print("The response of TestResultsApi->poll_result_generate_results:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_result_generate_results: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_result_load** -> AsyncContext poll_result_load(result_id, id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - result_id = 'result_id_example' # str | The ID of the result. - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_result_load(result_id, id) - print("The response of TestResultsApi->poll_result_load:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_result_load: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **result_id** | **str**| The ID of the result. | - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_results_batch_delete** -> AsyncContext poll_results_batch_delete(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.TestResultsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_results_batch_delete(id) - print("The response of TestResultsApi->poll_results_batch_delete:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling TestResultsApi->poll_results_batch_delete: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_result_generate_all** > AsyncContext start_result_generate_all(result_id, generate_all_operation=generate_all_operation) diff --git a/docs/TrafficProfileBase.md b/docs/TrafficProfileBase.md index 96f745f..31f48b9 100644 --- a/docs/TrafficProfileBase.md +++ b/docs/TrafficProfileBase.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] +**use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/TransportProfile.md b/docs/TransportProfile.md index 6341000..c774900 100644 --- a/docs/TransportProfile.md +++ b/docs/TransportProfile.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **client_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **ip_tos** | **int** | | [optional] **rtp_profile** | [**RTPProfile**](RTPProfile.md) | | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **server_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **udp_profile** | [**UdpProfile**](UdpProfile.md) | | [optional] diff --git a/docs/TransportProfileBase.md b/docs/TransportProfileBase.md index 9d21b20..7f9a509 100644 --- a/docs/TransportProfileBase.md +++ b/docs/TransportProfileBase.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The client HTTP profile used in the Scenario. | [optional] +**client_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **client_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **ip_tos** | **int** | | [optional] **rtp_profile** | [**RTPProfile**](RTPProfile.md) | | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] +**server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **server_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **udp_profile** | [**UdpProfile**](UdpProfile.md) | | [optional] diff --git a/docs/UtilsApi.md b/docs/UtilsApi.md index 3f6844d..22033a9 100644 --- a/docs/UtilsApi.md +++ b/docs/UtilsApi.md @@ -16,13 +16,6 @@ Method | HTTP request | Description [**get_log_config**](UtilsApi.md#get_log_config) | **GET** /api/v2/log-config | [**get_time**](UtilsApi.md#get_time) | **GET** /api/v2/time | [**list_eulas**](UtilsApi.md#list_eulas) | **GET** /eula/v1/eula | list of EULAs -[**poll_cert_manager_generate**](UtilsApi.md#poll_cert_manager_generate) | **GET** /api/v2/cert-manager/operations/generate/{id} | -[**poll_cert_manager_upload**](UtilsApi.md#poll_cert_manager_upload) | **GET** /api/v2/cert-manager/operations/upload/{id} | -[**poll_disk_usage_cleanup_diagnostics**](UtilsApi.md#poll_disk_usage_cleanup_diagnostics) | **GET** /api/v2/disk-usage/operations/cleanup-diagnostics/{id} | -[**poll_disk_usage_cleanup_logs**](UtilsApi.md#poll_disk_usage_cleanup_logs) | **GET** /api/v2/disk-usage/operations/cleanup-logs/{id} | -[**poll_disk_usage_cleanup_migration**](UtilsApi.md#poll_disk_usage_cleanup_migration) | **GET** /api/v2/disk-usage/operations/cleanup-migration/{id} | -[**poll_disk_usage_cleanup_notifications**](UtilsApi.md#poll_disk_usage_cleanup_notifications) | **GET** /api/v2/disk-usage/operations/cleanup-notifications/{id} | -[**poll_disk_usage_cleanup_results**](UtilsApi.md#poll_disk_usage_cleanup_results) | **GET** /api/v2/disk-usage/operations/cleanup-results/{id} | [**post_eula**](UtilsApi.md#post_eula) | **POST** /eula/v1/eula/CyPerf | Update properties an EULA [**start_cert_manager_generate**](UtilsApi.md#start_cert_manager_generate) | **POST** /api/v2/cert-manager/operations/generate | [**start_cert_manager_upload**](UtilsApi.md#start_cert_manager_upload) | **POST** /api/v2/cert-manager/operations/upload | @@ -922,552 +915,6 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **poll_cert_manager_generate** -> AsyncContext poll_cert_manager_generate(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_cert_manager_generate(id) - print("The response of UtilsApi->poll_cert_manager_generate:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_cert_manager_generate: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_cert_manager_upload** -> AsyncContext poll_cert_manager_upload(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_cert_manager_upload(id) - print("The response of UtilsApi->poll_cert_manager_upload:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_cert_manager_upload: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_diagnostics** -> AsyncContext poll_disk_usage_cleanup_diagnostics(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_diagnostics(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_diagnostics:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_diagnostics: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_logs** -> AsyncContext poll_disk_usage_cleanup_logs(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_logs(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_logs:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_logs: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_migration** -> AsyncContext poll_disk_usage_cleanup_migration(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_migration(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_migration:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_migration: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_notifications** -> AsyncContext poll_disk_usage_cleanup_notifications(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_notifications(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_notifications:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_notifications: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **poll_disk_usage_cleanup_results** -> AsyncContext poll_disk_usage_cleanup_results(id) - - - -Get the state of an ongoing operation. - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.UtilsApi(api_client) - id = 56 # int | The ID of the async operation. - - try: - api_response = api_instance.poll_disk_usage_cleanup_results(id) - print("The response of UtilsApi->poll_disk_usage_cleanup_results:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling UtilsApi->poll_disk_usage_cleanup_results: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| The ID of the async operation. | - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Details about the ongoing operation | - | -**400** | Bad request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **post_eula** > str post_eula(eula_summary=eula_summary) diff --git a/test/test_action.py b/test/test_action.py index 3518ac6..2406369 100644 --- a/test/test_action.py +++ b/test/test_action.py @@ -170,5 +170,6 @@ def testAction(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_action_base.py b/test/test_action_base.py index c5e72a9..11bcb07 100644 --- a/test/test_action_base.py +++ b/test/test_action_base.py @@ -170,5 +170,6 @@ def testActionBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_action_input.py b/test/test_action_input.py index 39c7b19..e29a19c 100644 --- a/test/test_action_input.py +++ b/test/test_action_input.py @@ -50,87 +50,19 @@ def make_instance(self, include_optional) -> ActionInput: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -145,5 +77,6 @@ def testActionInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_action_input_find_param.py b/test/test_action_input_find_param.py index 5b6e8a0..f1446ed 100644 --- a/test/test_action_input_find_param.py +++ b/test/test_action_input_find_param.py @@ -67,5 +67,6 @@ def testActionInputFindParam(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py index 0bd785a..752771c 100644 --- a/test/test_action_metadata.py +++ b/test/test_action_metadata.py @@ -116,87 +116,19 @@ def make_instance(self, include_optional) -> ActionMetadata: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -211,5 +143,6 @@ def testActionMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_activation_code_info.py b/test/test_activation_code_info.py index 77adae3..b3251c0 100644 --- a/test/test_activation_code_info.py +++ b/test/test_activation_code_info.py @@ -57,5 +57,6 @@ def testActivationCodeInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_activation_code_list_request.py b/test/test_activation_code_list_request.py index f4f2476..40288bc 100644 --- a/test/test_activation_code_list_request.py +++ b/test/test_activation_code_list_request.py @@ -50,5 +50,6 @@ def testActivationCodeListRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_activation_code_request.py b/test/test_activation_code_request.py index 4e44607..75bfa2f 100644 --- a/test/test_activation_code_request.py +++ b/test/test_activation_code_request.py @@ -49,5 +49,6 @@ def testActivationCodeRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_add_action_info.py b/test/test_add_action_info.py index c3dd4fe..977b55f 100644 --- a/test/test_add_action_info.py +++ b/test/test_add_action_info.py @@ -55,5 +55,6 @@ def testAddActionInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_add_input.py b/test/test_add_input.py index 8d0c9cc..e00bf60 100644 --- a/test/test_add_input.py +++ b/test/test_add_input.py @@ -53,87 +53,19 @@ def make_instance(self, include_optional) -> AddInput: flow_index_insert_at = 56, parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -149,5 +81,6 @@ def testAddInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_advanced_settings.py b/test/test_advanced_settings.py index d1d51e5..69a531f 100644 --- a/test/test_advanced_settings.py +++ b/test/test_advanced_settings.py @@ -53,5 +53,6 @@ def testAdvancedSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent.py b/test/test_agent.py index 7495dbd..1385468 100644 --- a/test/test_agent.py +++ b/test/test_agent.py @@ -142,5 +142,6 @@ def testAgent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_assignment_by_port.py b/test/test_agent_assignment_by_port.py index 127ec2d..6565e24 100644 --- a/test/test_agent_assignment_by_port.py +++ b/test/test_agent_assignment_by_port.py @@ -65,5 +65,6 @@ def testAgentAssignmentByPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_assignment_details.py b/test/test_agent_assignment_details.py index d01abda..db0bf5a 100644 --- a/test/test_agent_assignment_details.py +++ b/test/test_agent_assignment_details.py @@ -69,5 +69,6 @@ def testAgentAssignmentDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_assignments.py b/test/test_agent_assignments.py index a1ce132..14c3c92 100644 --- a/test/test_agent_assignments.py +++ b/test/test_agent_assignments.py @@ -69,5 +69,6 @@ def testAgentAssignments(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_cpu_info.py b/test/test_agent_cpu_info.py index 74a3d38..8e4453c 100644 --- a/test/test_agent_cpu_info.py +++ b/test/test_agent_cpu_info.py @@ -53,5 +53,6 @@ def testAgentCPUInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_features.py b/test/test_agent_features.py index e8cae7e..d22bc59 100644 --- a/test/test_agent_features.py +++ b/test/test_agent_features.py @@ -50,5 +50,6 @@ def testAgentFeatures(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_optimization_mode.py b/test/test_agent_optimization_mode.py index 07b5daf..2434525 100644 --- a/test/test_agent_optimization_mode.py +++ b/test/test_agent_optimization_mode.py @@ -30,5 +30,6 @@ def testAgentOptimizationMode(self): """Test AgentOptimizationMode""" # inst = AgentOptimizationMode() + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_release.py b/test/test_agent_release.py index 69559e8..cd48053 100644 --- a/test/test_agent_release.py +++ b/test/test_agent_release.py @@ -48,5 +48,6 @@ def testAgentRelease(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_reservation.py b/test/test_agent_reservation.py index cbfa0a8..25c38c6 100644 --- a/test/test_agent_reservation.py +++ b/test/test_agent_reservation.py @@ -57,5 +57,6 @@ def testAgentReservation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agent_to_be_rebooted.py b/test/test_agent_to_be_rebooted.py index dc591b4..a69e2fb 100644 --- a/test/test_agent_to_be_rebooted.py +++ b/test/test_agent_to_be_rebooted.py @@ -48,5 +48,6 @@ def testAgentToBeRebooted(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_agents_api.py b/test/test_agents_api.py index 3dd5c47..702c73f 100644 --- a/test/test_agents_api.py +++ b/test/test_agents_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_delete_agent(self) -> None: """Test case for delete_agent @@ -93,89 +94,19 @@ def test_patch_agent(self) -> None: """ pass - def test_poll_agents_batch_delete(self) -> None: - """Test case for poll_agents_batch_delete - """ - pass - - def test_poll_agents_export_files(self) -> None: - """Test case for poll_agents_export_files - - """ - pass - def test_poll_agents_reboot(self) -> None: - """Test case for poll_agents_reboot - """ - pass - - def test_poll_agents_release(self) -> None: - """Test case for poll_agents_release - - """ - pass - def test_poll_agents_reserve(self) -> None: - """Test case for poll_agents_reserve - """ - pass - def test_poll_agents_set_dpdk_mode(self) -> None: - """Test case for poll_agents_set_dpdk_mode - """ - pass - def test_poll_agents_set_ntp(self) -> None: - """Test case for poll_agents_set_ntp - """ - pass - def test_poll_agents_update(self) -> None: - """Test case for poll_agents_update - """ - pass - def test_poll_controllers_clear_port_ownership(self) -> None: - """Test case for poll_controllers_clear_port_ownership - """ - pass - - def test_poll_controllers_power_cycle_nodes(self) -> None: - """Test case for poll_controllers_power_cycle_nodes - - """ - pass - - def test_poll_controllers_reboot_port(self) -> None: - """Test case for poll_controllers_reboot_port - - """ - pass - - def test_poll_controllers_set_app(self) -> None: - """Test case for poll_controllers_set_app - - """ - pass - - def test_poll_controllers_set_node_aggregation(self) -> None: - """Test case for poll_controllers_set_node_aggregation - - """ - pass - - def test_poll_controllers_set_port_link_state(self) -> None: - """Test case for poll_controllers_set_port_link_state - - """ - pass def test_start_agents_batch_delete(self) -> None: """Test case for start_agents_batch_delete @@ -261,6 +192,5 @@ def test_start_controllers_set_port_link_state(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_agents_group.py b/test/test_agents_group.py index ce71987..aacc607 100644 --- a/test/test_agents_group.py +++ b/test/test_agents_group.py @@ -53,5 +53,6 @@ def testAgentsGroup(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_api_link.py b/test/test_api_link.py index 02936c3..5b231a7 100644 --- a/test/test_api_link.py +++ b/test/test_api_link.py @@ -54,5 +54,6 @@ def testAPILink(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_api_relationship.py b/test/test_api_relationship.py index 79ee5d5..f752f7f 100644 --- a/test/test_api_relationship.py +++ b/test/test_api_relationship.py @@ -30,5 +30,6 @@ def testAPIRelationship(self): """Test APIRelationship""" # inst = APIRelationship() + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_exchange.py b/test/test_app_exchange.py index 48d9a91..81bea07 100644 --- a/test/test_app_exchange.py +++ b/test/test_app_exchange.py @@ -111,5 +111,6 @@ def testAppExchange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_flow.py b/test/test_app_flow.py index 420faa7..d03db57 100644 --- a/test/test_app_flow.py +++ b/test/test_app_flow.py @@ -117,5 +117,6 @@ def testAppFlow(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_flow_desc.py b/test/test_app_flow_desc.py index 854b68e..3f12f7c 100644 --- a/test/test_app_flow_desc.py +++ b/test/test_app_flow_desc.py @@ -51,5 +51,6 @@ def testAppFlowDesc(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_flow_input.py b/test/test_app_flow_input.py index dd7ab1f..b062770 100644 --- a/test/test_app_flow_input.py +++ b/test/test_app_flow_input.py @@ -51,5 +51,6 @@ def testAppFlowInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_flow_input_find_param.py b/test/test_app_flow_input_find_param.py index c360adc..8a38529 100644 --- a/test/test_app_flow_input_find_param.py +++ b/test/test_app_flow_input_find_param.py @@ -59,5 +59,6 @@ def testAppFlowInputFindParam(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_id.py b/test/test_app_id.py index 5321903..6b7fe62 100644 --- a/test/test_app_id.py +++ b/test/test_app_id.py @@ -48,5 +48,6 @@ def testAppId(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_app_mode.py b/test/test_app_mode.py index 0227908..8ab87ed 100644 --- a/test/test_app_mode.py +++ b/test/test_app_mode.py @@ -49,5 +49,6 @@ def testAppMode(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_application.py b/test/test_application.py index 9b0e095..7e32b8c 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -145,6 +145,23 @@ def make_instance(self, include_optional) -> Application: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), connections = [ cyperf.models.connection.Connection( client_endpoint = '', @@ -202,6 +219,7 @@ def make_instance(self, include_optional) -> Application: external_resource_url = '', index = 56, inherit_http_profile = True, + inherit_quic_profile = True, ip_preference = 'IPV4_ONLY', is_deprecated = True, iteration_count = 56, @@ -422,6 +440,23 @@ def make_instance(self, include_optional) -> Application: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), supports_client_http_profile = True, supports_http_profiles = True, supports_server_http_profile = True, @@ -521,6 +556,7 @@ def make_instance(self, include_optional) -> Application: ], inherit_tls = True, is_stateless_stream = True, + is_streaming = True, objective_weight = 56, protocol_found = True, server_tls_profile = cyperf.models.tls_profile.TLSProfile( @@ -617,6 +653,7 @@ def make_instance(self, include_optional) -> Application: '' ], supports_calibration = True, + supports_multi_flow = True, supports_strikes = True, supports_tls = True, tracks = [ @@ -685,5 +722,6 @@ def testApplication(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_application_profile.py b/test/test_application_profile.py index 26cd298..bf198d1 100644 --- a/test/test_application_profile.py +++ b/test/test_application_profile.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> ApplicationProfile: rel = '', type = '', ) ], ), + use_all_source_ips_per_user = True, id = '', links = [ cyperf.models.api_link.APILink( @@ -157,5 +158,6 @@ def testApplicationProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py index 0bad3a7..2b794b6 100644 --- a/test/test_application_resources_api.py +++ b/test/test_application_resources_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_delete_resources_capture(self) -> None: """Test case for delete_resources_capture @@ -651,179 +652,34 @@ def test_get_resources_user_defined_apps_upload_file_result(self) -> None: """ pass - def test_poll_resources_apps_export_all(self) -> None: - """Test case for poll_resources_apps_export_all - """ - pass - - def test_poll_resources_captures_batch_delete(self) -> None: - """Test case for poll_resources_captures_batch_delete - - """ - pass - - def test_poll_resources_captures_upload_file(self) -> None: - """Test case for poll_resources_captures_upload_file - - """ - pass - - def test_poll_resources_certificates_upload_file(self) -> None: - """Test case for poll_resources_certificates_upload_file - - """ - pass - - def test_poll_resources_config_export_user_defined_apps(self) -> None: - """Test case for poll_resources_config_export_user_defined_apps - - """ - pass - - def test_poll_resources_create_app(self) -> None: - """Test case for poll_resources_create_app - - """ - pass - - def test_poll_resources_custom_fuzzing_scripts_upload_file(self) -> None: - """Test case for poll_resources_custom_fuzzing_scripts_upload_file - - """ - pass - - def test_poll_resources_edit_app(self) -> None: - """Test case for poll_resources_edit_app - - """ - pass - - def test_poll_resources_find_param_matches(self) -> None: - """Test case for poll_resources_find_param_matches - - """ - pass - - def test_poll_resources_flow_library_upload_file(self) -> None: - """Test case for poll_resources_flow_library_upload_file - - """ - pass - - def test_poll_resources_get_attack_categories(self) -> None: - """Test case for poll_resources_get_attack_categories - - """ - pass - - def test_poll_resources_get_attacks(self) -> None: - """Test case for poll_resources_get_attacks - - """ - pass - - def test_poll_resources_get_strike_categories(self) -> None: - """Test case for poll_resources_get_strike_categories - - """ - pass - - def test_poll_resources_get_strikes(self) -> None: - """Test case for poll_resources_get_strikes - - """ - pass - - def test_poll_resources_global_playlists_upload_file(self) -> None: - """Test case for poll_resources_global_playlists_upload_file - """ - pass - def test_poll_resources_http_library_upload_file(self) -> None: - """Test case for poll_resources_http_library_upload_file - """ - pass - def test_poll_resources_media_files_upload_file(self) -> None: - """Test case for poll_resources_media_files_upload_file - """ - pass - def test_poll_resources_media_library_upload_file(self) -> None: - """Test case for poll_resources_media_library_upload_file - """ - pass - - def test_poll_resources_other_library_upload_file(self) -> None: - """Test case for poll_resources_other_library_upload_file - - """ - pass - def test_poll_resources_payloads_upload_file(self) -> None: - """Test case for poll_resources_payloads_upload_file - """ - pass - def test_poll_resources_pcaps_upload_file(self) -> None: - """Test case for poll_resources_pcaps_upload_file - """ - pass - def test_poll_resources_playlists_upload_file(self) -> None: - """Test case for poll_resources_playlists_upload_file - """ - pass - def test_poll_resources_sip_library_upload_file(self) -> None: - """Test case for poll_resources_sip_library_upload_file - """ - pass - def test_poll_resources_stats_profile_upload_file(self) -> None: - """Test case for poll_resources_stats_profile_upload_file - """ - pass - def test_poll_resources_tls_certificates_upload_file(self) -> None: - """Test case for poll_resources_tls_certificates_upload_file - """ - pass - def test_poll_resources_tls_dhs_upload_file(self) -> None: - """Test case for poll_resources_tls_dhs_upload_file - """ - pass - def test_poll_resources_tls_keys_upload_file(self) -> None: - """Test case for poll_resources_tls_keys_upload_file - """ - pass - def test_poll_resources_user_defined_apps_export_all(self) -> None: - """Test case for poll_resources_user_defined_apps_export_all - """ - pass - def test_poll_resources_user_defined_apps_upload_file(self) -> None: - """Test case for poll_resources_user_defined_apps_upload_file - """ - pass def test_start_resources_apps_export_all(self) -> None: """Test case for start_resources_apps_export_all @@ -999,6 +855,5 @@ def test_start_resources_user_defined_apps_upload_file(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_application_type.py b/test/test_application_type.py index 184d3ad..14b2058 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -51,12 +51,14 @@ def make_instance(self, include_optional) -> ApplicationType: metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -83,29 +85,19 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -193,12 +185,14 @@ def make_instance(self, include_optional) -> ApplicationType: metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -225,87 +219,19 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -325,12 +251,14 @@ def make_instance(self, include_optional) -> ApplicationType: metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -357,29 +285,19 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -422,5 +340,6 @@ def testApplicationType(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index 1bcc761..f97a9dc 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -124,79 +124,27 @@ def make_instance(self, include_optional) -> AppsecApp: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ), @@ -225,5 +173,6 @@ def testAppsecApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index 23d1ea7..493d584 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -118,154 +118,38 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -280,5 +164,6 @@ def testAppsecAppMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_appsec_attack.py b/test/test_appsec_attack.py index f1c4d0f..a986c65 100644 --- a/test/test_appsec_attack.py +++ b/test/test_appsec_attack.py @@ -79,5 +79,6 @@ def testAppsecAttack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_appsec_config.py b/test/test_appsec_config.py index c8c2807..756d4c4 100644 --- a/test/test_appsec_config.py +++ b/test/test_appsec_config.py @@ -121,5 +121,6 @@ def testAppsecConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_archive_info.py b/test/test_archive_info.py index 4481c14..7566b54 100644 --- a/test/test_archive_info.py +++ b/test/test_archive_info.py @@ -62,5 +62,6 @@ def testArchiveInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_array_v2_element_metadata.py b/test/test_array_v2_element_metadata.py index 3c1fbef..5a95bd3 100644 --- a/test/test_array_v2_element_metadata.py +++ b/test/test_array_v2_element_metadata.py @@ -49,5 +49,6 @@ def testArrayV2ElementMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_async_context.py b/test/test_async_context.py index 4692da5..1850aaa 100644 --- a/test/test_async_context.py +++ b/test/test_async_context.py @@ -55,5 +55,6 @@ def testAsyncContext(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_async_operation_response.py b/test/test_async_operation_response.py index 8f981b1..f13001e 100644 --- a/test/test_async_operation_response.py +++ b/test/test_async_operation_response.py @@ -61,5 +61,6 @@ def testAsyncOperationResponse(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack.py b/test/test_attack.py index 7486b14..4123d93 100644 --- a/test/test_attack.py +++ b/test/test_attack.py @@ -145,6 +145,23 @@ def make_instance(self, include_optional) -> Attack: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), connections = [ cyperf.models.connection.Connection( client_endpoint = '', @@ -202,6 +219,7 @@ def make_instance(self, include_optional) -> Attack: external_resource_url = '', index = 56, inherit_http_profile = True, + inherit_quic_profile = True, ip_preference = 'IPV4_ONLY', is_deprecated = True, iteration_count = 56, @@ -422,6 +440,23 @@ def make_instance(self, include_optional) -> Attack: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), supports_client_http_profile = True, supports_http_profiles = True, supports_server_http_profile = True, @@ -662,5 +697,6 @@ def testAttack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_action.py b/test/test_attack_action.py index a763354..77c1235 100644 --- a/test/test_attack_action.py +++ b/test/test_attack_action.py @@ -170,5 +170,6 @@ def testAttackAction(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_metadata.py b/test/test_attack_metadata.py index fd5876a..bdfd6b1 100644 --- a/test/test_attack_metadata.py +++ b/test/test_attack_metadata.py @@ -62,5 +62,6 @@ def testAttackMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_metadata_keywords_inner.py b/test/test_attack_metadata_keywords_inner.py index bb36988..7268e1c 100644 --- a/test/test_attack_metadata_keywords_inner.py +++ b/test/test_attack_metadata_keywords_inner.py @@ -47,5 +47,6 @@ def testAttackMetadataKeywordsInner(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_objectives_and_timeline.py b/test/test_attack_objectives_and_timeline.py index 9370f21..8d9a02d 100644 --- a/test/test_attack_objectives_and_timeline.py +++ b/test/test_attack_objectives_and_timeline.py @@ -60,5 +60,6 @@ def testAttackObjectivesAndTimeline(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_profile.py b/test/test_attack_profile.py index 7064f97..a939f6f 100644 --- a/test/test_attack_profile.py +++ b/test/test_attack_profile.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> AttackProfile: rel = '', type = '', ) ], ), + use_all_source_ips_per_user = True, id = '', links = [ cyperf.models.api_link.APILink( @@ -133,5 +134,6 @@ def testAttackProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_timeline_segment.py b/test/test_attack_timeline_segment.py index 835188b..5cbc796 100644 --- a/test/test_attack_timeline_segment.py +++ b/test/test_attack_timeline_segment.py @@ -60,5 +60,6 @@ def testAttackTimelineSegment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_attack_track.py b/test/test_attack_track.py index 5e7665e..b9bc799 100644 --- a/test/test_attack_track.py +++ b/test/test_attack_track.py @@ -73,5 +73,6 @@ def testAttackTrack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_auth_method_type.py b/test/test_auth_method_type.py index 5ac9849..fadf297 100644 --- a/test/test_auth_method_type.py +++ b/test/test_auth_method_type.py @@ -30,5 +30,6 @@ def testAuthMethodType(self): """Test AuthMethodType""" # inst = AuthMethodType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py index 8607853..51c9aa1 100644 --- a/test/test_auth_profile.py +++ b/test/test_auth_profile.py @@ -113,87 +113,19 @@ def make_instance(self, include_optional) -> AuthProfile: sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -221,5 +153,6 @@ def testAuthProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_auth_profile_metadata.py b/test/test_auth_profile_metadata.py index e1ef241..4acf2af 100644 --- a/test/test_auth_profile_metadata.py +++ b/test/test_auth_profile_metadata.py @@ -69,5 +69,6 @@ def testAuthProfileMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_auth_settings.py b/test/test_auth_settings.py index 7e0296e..30392d8 100644 --- a/test/test_auth_settings.py +++ b/test/test_auth_settings.py @@ -530,5 +530,6 @@ def testAuthSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_authenticate200_response.py b/test/test_authenticate200_response.py index 296d0a7..c3cf86b 100644 --- a/test/test_authenticate200_response.py +++ b/test/test_authenticate200_response.py @@ -51,5 +51,6 @@ def testAuthenticate200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_authentication_settings.py b/test/test_authentication_settings.py index 91aad9d..62e8e3b 100644 --- a/test/test_authentication_settings.py +++ b/test/test_authentication_settings.py @@ -246,5 +246,6 @@ def testAuthenticationSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_authorization_api.py b/test/test_authorization_api.py index 8ccc12c..6c38f78 100644 --- a/test/test_authorization_api.py +++ b/test/test_authorization_api.py @@ -27,12 +27,12 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_authenticate(self) -> None: """Test case for authenticate """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_automatic_ip_type.py b/test/test_automatic_ip_type.py index 3220447..906050d 100644 --- a/test/test_automatic_ip_type.py +++ b/test/test_automatic_ip_type.py @@ -30,5 +30,6 @@ def testAutomaticIpType(self): """Test AutomaticIpType""" # inst = AutomaticIpType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_broker.py b/test/test_broker.py index e5121a2..6f0ee21 100644 --- a/test/test_broker.py +++ b/test/test_broker.py @@ -58,5 +58,6 @@ def testBroker(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_brokers_api.py b/test/test_brokers_api.py index 3a4ef8a..9c1859d 100644 --- a/test/test_brokers_api.py +++ b/test/test_brokers_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_brokers(self) -> None: """Test case for create_brokers @@ -57,6 +58,5 @@ def test_patch_broker(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_capture_input.py b/test/test_capture_input.py index d19bf6b..8206790 100644 --- a/test/test_capture_input.py +++ b/test/test_capture_input.py @@ -55,5 +55,6 @@ def testCaptureInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_capture_input_find_param.py b/test/test_capture_input_find_param.py index 15641e6..14725e9 100644 --- a/test/test_capture_input_find_param.py +++ b/test/test_capture_input_find_param.py @@ -63,5 +63,6 @@ def testCaptureInputFindParam(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_capture_settings.py b/test/test_capture_settings.py index 8338f6a..2cce494 100644 --- a/test/test_capture_settings.py +++ b/test/test_capture_settings.py @@ -53,5 +53,6 @@ def testCaptureSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_category.py b/test/test_category.py index 47e4026..69f858d 100644 --- a/test/test_category.py +++ b/test/test_category.py @@ -54,5 +54,6 @@ def testCategory(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_category_filter.py b/test/test_category_filter.py index f88a949..e737113 100644 --- a/test/test_category_filter.py +++ b/test/test_category_filter.py @@ -51,5 +51,6 @@ def testCategoryFilter(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_category_value.py b/test/test_category_value.py index 01c28c5..2acac89 100644 --- a/test/test_category_value.py +++ b/test/test_category_value.py @@ -49,5 +49,6 @@ def testCategoryValue(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_cert_config.py b/test/test_cert_config.py index 370819e..593648d 100644 --- a/test/test_cert_config.py +++ b/test/test_cert_config.py @@ -355,5 +355,6 @@ def testCertConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_certificate.py b/test/test_certificate.py index 8601cc3..7bb1ede 100644 --- a/test/test_certificate.py +++ b/test/test_certificate.py @@ -58,5 +58,6 @@ def testCertificate(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_chassis_info.py b/test/test_chassis_info.py index 8ef3816..cfc1697 100644 --- a/test/test_chassis_info.py +++ b/test/test_chassis_info.py @@ -50,5 +50,6 @@ def testChassisInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_choice.py b/test/test_choice.py index b8bde76..72a7347 100644 --- a/test/test_choice.py +++ b/test/test_choice.py @@ -51,5 +51,6 @@ def testChoice(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_cipher_tls12.py b/test/test_cipher_tls12.py index 8e92fea..c4ba3da 100644 --- a/test/test_cipher_tls12.py +++ b/test/test_cipher_tls12.py @@ -30,5 +30,6 @@ def testCipherTLS12(self): """Test CipherTLS12""" # inst = CipherTLS12() + if __name__ == '__main__': unittest.main() diff --git a/test/test_cipher_tls13.py b/test/test_cipher_tls13.py index ef4834e..8347bfe 100644 --- a/test/test_cipher_tls13.py +++ b/test/test_cipher_tls13.py @@ -30,5 +30,6 @@ def testCipherTLS13(self): """Test CipherTLS13""" # inst = CipherTLS13() + if __name__ == '__main__': unittest.main() diff --git a/test/test_cisco_any_connect_settings.py b/test/test_cisco_any_connect_settings.py index 006acb3..465bd02 100644 --- a/test/test_cisco_any_connect_settings.py +++ b/test/test_cisco_any_connect_settings.py @@ -197,5 +197,6 @@ def testCiscoAnyConnectSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_cisco_encapsulation.py b/test/test_cisco_encapsulation.py index db518fb..e9d88df 100644 --- a/test/test_cisco_encapsulation.py +++ b/test/test_cisco_encapsulation.py @@ -76,5 +76,6 @@ def testCiscoEncapsulation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_clear_ports_ownership_operation.py b/test/test_clear_ports_ownership_operation.py index 240fd43..133b66e 100644 --- a/test/test_clear_ports_ownership_operation.py +++ b/test/test_clear_ports_ownership_operation.py @@ -58,5 +58,6 @@ def testClearPortsOwnershipOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_command.py b/test/test_command.py index 6140bfb..562af7c 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -49,12 +49,14 @@ def make_instance(self, include_optional) -> Command: metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -81,87 +83,19 @@ def make_instance(self, include_optional) -> Command: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -186,5 +120,6 @@ def testCommand(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_compute_node.py b/test/test_compute_node.py index 3df2cf3..6b25d28 100644 --- a/test/test_compute_node.py +++ b/test/test_compute_node.py @@ -84,5 +84,6 @@ def testComputeNode(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config.py b/test/test_config.py index a3808ba..2b995f1 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -140,5 +140,6 @@ def testConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config_category.py b/test/test_config_category.py index 5eaf032..4a35c88 100644 --- a/test/test_config_category.py +++ b/test/test_config_category.py @@ -48,5 +48,6 @@ def testConfigCategory(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config_id.py b/test/test_config_id.py index c7e60c0..afac615 100644 --- a/test/test_config_id.py +++ b/test/test_config_id.py @@ -48,5 +48,6 @@ def testConfigId(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config_metadata.py b/test/test_config_metadata.py index 0358ee0..636a312 100644 --- a/test/test_config_metadata.py +++ b/test/test_config_metadata.py @@ -79,5 +79,6 @@ def testConfigMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_config_validation.py b/test/test_config_validation.py index b6fc329..1905fd6 100644 --- a/test/test_config_validation.py +++ b/test/test_config_validation.py @@ -64,5 +64,6 @@ def testConfigValidation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_configurations_api.py b/test/test_configurations_api.py index 66a82a6..1fae14c 100644 --- a/test/test_configurations_api.py +++ b/test/test_configurations_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_configs(self) -> None: """Test case for create_configs @@ -69,29 +70,9 @@ def test_patch_config(self) -> None: """ pass - def test_poll_configs_batch_delete(self) -> None: - """Test case for poll_configs_batch_delete - """ - pass - def test_poll_configs_export_all(self) -> None: - """Test case for poll_configs_export_all - """ - pass - - def test_poll_configs_import(self) -> None: - """Test case for poll_configs_import - - """ - pass - - def test_poll_configs_import_all(self) -> None: - """Test case for poll_configs_import_all - - """ - pass def test_start_configs_batch_delete(self) -> None: """Test case for start_configs_batch_delete @@ -123,6 +104,5 @@ def test_update_config(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_conflict.py b/test/test_conflict.py index 8e3115d..71d4253 100644 --- a/test/test_conflict.py +++ b/test/test_conflict.py @@ -57,5 +57,6 @@ def testConflict(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_connection.py b/test/test_connection.py index 36839f3..cf069f2 100644 --- a/test/test_connection.py +++ b/test/test_connection.py @@ -191,5 +191,6 @@ def testConnection(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_connection_persistence.py b/test/test_connection_persistence.py index 45fd368..f63efcc 100644 --- a/test/test_connection_persistence.py +++ b/test/test_connection_persistence.py @@ -30,5 +30,6 @@ def testConnectionPersistence(self): """Test ConnectionPersistence""" # inst = ConnectionPersistence() + if __name__ == '__main__': unittest.main() diff --git a/test/test_consumer.py b/test/test_consumer.py index 4afa9b6..5543eb7 100644 --- a/test/test_consumer.py +++ b/test/test_consumer.py @@ -50,5 +50,6 @@ def testConsumer(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_controller.py b/test/test_controller.py index 7f98509..12c1ab2 100644 --- a/test/test_controller.py +++ b/test/test_controller.py @@ -107,5 +107,6 @@ def testController(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_counted_feature_consumer.py b/test/test_counted_feature_consumer.py index c57cffc..28f7e41 100644 --- a/test/test_counted_feature_consumer.py +++ b/test/test_counted_feature_consumer.py @@ -59,5 +59,6 @@ def testCountedFeatureConsumer(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_counted_feature_stats.py b/test/test_counted_feature_stats.py index c024840..0298224 100644 --- a/test/test_counted_feature_stats.py +++ b/test/test_counted_feature_stats.py @@ -71,5 +71,6 @@ def testCountedFeatureStats(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_create_app_operation.py b/test/test_create_app_operation.py index b9dc5b1..4e52551 100644 --- a/test/test_create_app_operation.py +++ b/test/test_create_app_operation.py @@ -52,176 +52,41 @@ def make_instance(self, include_optional) -> CreateAppOperation: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], ) ], app_name = '', app_type = '', + description = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -236,5 +101,6 @@ def testCreateAppOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_create_app_or_attack_operation_input.py b/test/test_create_app_or_attack_operation_input.py index b848d70..1a1ac7e 100644 --- a/test/test_create_app_or_attack_operation_input.py +++ b/test/test_create_app_or_attack_operation_input.py @@ -62,5 +62,6 @@ def testCreateAppOrAttackOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_custom_dashboards.py b/test/test_custom_dashboards.py index 9e367f5..18d4f1a 100644 --- a/test/test_custom_dashboards.py +++ b/test/test_custom_dashboards.py @@ -69,5 +69,6 @@ def testCustomDashboards(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_custom_import_handler.py b/test/test_custom_import_handler.py index f687846..d1aa397 100644 --- a/test/test_custom_import_handler.py +++ b/test/test_custom_import_handler.py @@ -56,5 +56,6 @@ def testCustomImportHandler(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_custom_stat.py b/test/test_custom_stat.py index 206b1b8..2fd89b9 100644 --- a/test/test_custom_stat.py +++ b/test/test_custom_stat.py @@ -49,5 +49,6 @@ def testCustomStat(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dashboard.py b/test/test_dashboard.py index 2ecd60b..1b18219 100644 --- a/test/test_dashboard.py +++ b/test/test_dashboard.py @@ -49,5 +49,6 @@ def testDashboard(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_data_migration_api.py b/test/test_data_migration_api.py index d9cf667..9b43983 100644 --- a/test/test_data_migration_api.py +++ b/test/test_data_migration_api.py @@ -27,17 +27,8 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_poll_controller_migration_export(self) -> None: - """Test case for poll_controller_migration_export + - """ - pass - - def test_poll_controller_migration_import(self) -> None: - """Test case for poll_controller_migration_import - - """ - pass def test_start_controller_migration_export(self) -> None: """Test case for start_controller_migration_export @@ -51,6 +42,5 @@ def test_start_controller_migration_import(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_data_type.py b/test/test_data_type.py index 91530b9..446008e 100644 --- a/test/test_data_type.py +++ b/test/test_data_type.py @@ -53,5 +53,6 @@ def testDataType(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_data_type_values_inner.py b/test/test_data_type_values_inner.py index 4161c81..864d8e6 100644 --- a/test/test_data_type_values_inner.py +++ b/test/test_data_type_values_inner.py @@ -49,5 +49,6 @@ def testDataTypeValuesInner(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_definition.py b/test/test_definition.py index 180faa6..5bde617 100644 --- a/test/test_definition.py +++ b/test/test_definition.py @@ -48,5 +48,6 @@ def testDefinition(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_delete_input.py b/test/test_delete_input.py index 0f16040..e7ad4fc 100644 --- a/test/test_delete_input.py +++ b/test/test_delete_input.py @@ -51,5 +51,6 @@ def testDeleteInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dh_p1_group.py b/test/test_dh_p1_group.py index 3b91a6c..8850446 100644 --- a/test/test_dh_p1_group.py +++ b/test/test_dh_p1_group.py @@ -30,5 +30,6 @@ def testDhP1Group(self): """Test DhP1Group""" # inst = DhP1Group() + if __name__ == '__main__': unittest.main() diff --git a/test/test_diagnostic_component.py b/test/test_diagnostic_component.py index 0452351..a2a2790 100644 --- a/test/test_diagnostic_component.py +++ b/test/test_diagnostic_component.py @@ -66,5 +66,6 @@ def testDiagnosticComponent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_diagnostic_component_context.py b/test/test_diagnostic_component_context.py index 1c9e04d..1ffa41a 100644 --- a/test/test_diagnostic_component_context.py +++ b/test/test_diagnostic_component_context.py @@ -78,5 +78,6 @@ def testDiagnosticComponentContext(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_diagnostic_options.py b/test/test_diagnostic_options.py index 18453be..f9aa64a 100644 --- a/test/test_diagnostic_options.py +++ b/test/test_diagnostic_options.py @@ -49,5 +49,6 @@ def testDiagnosticOptions(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_diagnostics_api.py b/test/test_diagnostics_api.py index 11136fc..e7fbfb1 100644 --- a/test/test_diagnostics_api.py +++ b/test/test_diagnostics_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_api_v2_diagnostics_components_get(self) -> None: """Test case for api_v2_diagnostics_components_get @@ -69,6 +70,5 @@ def test_api_v2_diagnostics_operations_export_post(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_disk_usage.py b/test/test_disk_usage.py index f26f957..e2d7830 100644 --- a/test/test_disk_usage.py +++ b/test/test_disk_usage.py @@ -72,5 +72,6 @@ def testDiskUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dns_resolver.py b/test/test_dns_resolver.py index fd1ab28..c6abfb2 100644 --- a/test/test_dns_resolver.py +++ b/test/test_dns_resolver.py @@ -63,5 +63,6 @@ def testDNSResolver(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dns_server.py b/test/test_dns_server.py index 925f950..9b40409 100644 --- a/test/test_dns_server.py +++ b/test/test_dns_server.py @@ -53,5 +53,6 @@ def testDNSServer(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dtls_settings.py b/test/test_dtls_settings.py index 6ef06c5..235f214 100644 --- a/test/test_dtls_settings.py +++ b/test/test_dtls_settings.py @@ -139,5 +139,6 @@ def testDTLSSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_dut_network.py b/test/test_dut_network.py index 768d859..7100ee9 100644 --- a/test/test_dut_network.py +++ b/test/test_dut_network.py @@ -784,5 +784,6 @@ def testDUTNetwork(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_edit_action_input.py b/test/test_edit_action_input.py index 9850903..1e6d2d7 100644 --- a/test/test_edit_action_input.py +++ b/test/test_edit_action_input.py @@ -39,87 +39,19 @@ def make_instance(self, include_optional) -> EditActionInput: action_index = 56, parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ] @@ -134,5 +66,6 @@ def testEditActionInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_edit_app_operation.py b/test/test_edit_app_operation.py index d91e709..fdf3510 100644 --- a/test/test_edit_app_operation.py +++ b/test/test_edit_app_operation.py @@ -55,177 +55,42 @@ def make_instance(self, include_optional) -> EditAppOperation: flow_index_insert_at = 56, parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], type = '', ) ], + app_description = '', app_id = '', app_name = '', app_parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -241,87 +106,19 @@ def make_instance(self, include_optional) -> EditAppOperation: action_index = 56, parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], ) @@ -357,5 +154,6 @@ def testEditAppOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_effective_ports.py b/test/test_effective_ports.py index 246bbb0..d6c350d 100644 --- a/test/test_effective_ports.py +++ b/test/test_effective_ports.py @@ -52,5 +52,6 @@ def testEffectivePorts(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_emulated_router.py b/test/test_emulated_router.py index 85c22be..a7cc440 100644 --- a/test/test_emulated_router.py +++ b/test/test_emulated_router.py @@ -62,5 +62,6 @@ def testEmulatedRouter(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_emulated_router_range.py b/test/test_emulated_router_range.py index 989ff24..0a41ab4 100644 --- a/test/test_emulated_router_range.py +++ b/test/test_emulated_router_range.py @@ -115,5 +115,6 @@ def testEmulatedRouterRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_emulated_subnet_config.py b/test/test_emulated_subnet_config.py index b50c563..42a6a41 100644 --- a/test/test_emulated_subnet_config.py +++ b/test/test_emulated_subnet_config.py @@ -67,5 +67,6 @@ def testEmulatedSubnetConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_enc_p1_algorithm.py b/test/test_enc_p1_algorithm.py index 3d97088..ff4dfac 100644 --- a/test/test_enc_p1_algorithm.py +++ b/test/test_enc_p1_algorithm.py @@ -30,5 +30,6 @@ def testEncP1Algorithm(self): """Test EncP1Algorithm""" # inst = EncP1Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_enc_p2_algorithm.py b/test/test_enc_p2_algorithm.py index ed5c5a7..9ed9dab 100644 --- a/test/test_enc_p2_algorithm.py +++ b/test/test_enc_p2_algorithm.py @@ -30,5 +30,6 @@ def testEncP2Algorithm(self): """Test EncP2Algorithm""" # inst = EncP2Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_endpoint.py b/test/test_endpoint.py index 3f6185d..5d02f07 100644 --- a/test/test_endpoint.py +++ b/test/test_endpoint.py @@ -73,5 +73,6 @@ def testEndpoint(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_entitlement_code_info.py b/test/test_entitlement_code_info.py index 66cf031..2cb6e29 100644 --- a/test/test_entitlement_code_info.py +++ b/test/test_entitlement_code_info.py @@ -65,5 +65,6 @@ def testEntitlementCodeInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_entitlement_code_request.py b/test/test_entitlement_code_request.py index 18a3647..664d044 100644 --- a/test/test_entitlement_code_request.py +++ b/test/test_entitlement_code_request.py @@ -49,5 +49,6 @@ def testEntitlementCodeRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_enum.py b/test/test_enum.py index 213c1f9..5c1a63f 100644 --- a/test/test_enum.py +++ b/test/test_enum.py @@ -55,5 +55,6 @@ def testEnum(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_error_description.py b/test/test_error_description.py index e453080..4822994 100644 --- a/test/test_error_description.py +++ b/test/test_error_description.py @@ -49,5 +49,6 @@ def testErrorDescription(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_error_response.py b/test/test_error_response.py index a11a3b6..44c8cd8 100644 --- a/test/test_error_response.py +++ b/test/test_error_response.py @@ -48,5 +48,6 @@ def testErrorResponse(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_esp_over_udp_settings.py b/test/test_esp_over_udp_settings.py index 455597f..44a1666 100644 --- a/test/test_esp_over_udp_settings.py +++ b/test/test_esp_over_udp_settings.py @@ -65,5 +65,6 @@ def testESPOverUDPSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_eth_range.py b/test/test_eth_range.py index fa7c29c..e090676 100644 --- a/test/test_eth_range.py +++ b/test/test_eth_range.py @@ -74,5 +74,6 @@ def testEthRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_eula_details.py b/test/test_eula_details.py index faa31e3..a501789 100644 --- a/test/test_eula_details.py +++ b/test/test_eula_details.py @@ -52,5 +52,6 @@ def testEulaDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_eula_summary.py b/test/test_eula_summary.py index c49d562..2a6214b 100644 --- a/test/test_eula_summary.py +++ b/test/test_eula_summary.py @@ -50,5 +50,6 @@ def testEulaSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_exchange.py b/test/test_exchange.py index 3dcc3d1..fc42292 100644 --- a/test/test_exchange.py +++ b/test/test_exchange.py @@ -52,5 +52,6 @@ def testExchange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_exchange_order.py b/test/test_exchange_order.py index d4032bd..60401d0 100644 --- a/test/test_exchange_order.py +++ b/test/test_exchange_order.py @@ -49,5 +49,6 @@ def testExchangeOrder(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_exchange_payload.py b/test/test_exchange_payload.py index 20435dd..6547c53 100644 --- a/test/test_exchange_payload.py +++ b/test/test_exchange_payload.py @@ -49,5 +49,6 @@ def testExchangePayload(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_expected_disk_space.py b/test/test_expected_disk_space.py index ca83fda..de7986f 100644 --- a/test/test_expected_disk_space.py +++ b/test/test_expected_disk_space.py @@ -71,5 +71,6 @@ def testExpectedDiskSpace(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_expected_disk_space_message.py b/test/test_expected_disk_space_message.py index b48292d..54fb84d 100644 --- a/test/test_expected_disk_space_message.py +++ b/test/test_expected_disk_space_message.py @@ -53,5 +53,6 @@ def testExpectedDiskSpaceMessage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_expected_disk_space_pretty_size.py b/test/test_expected_disk_space_pretty_size.py index 0609a1c..fb5c6cf 100644 --- a/test/test_expected_disk_space_pretty_size.py +++ b/test/test_expected_disk_space_pretty_size.py @@ -53,5 +53,6 @@ def testExpectedDiskSpacePrettySize(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_expected_disk_space_size.py b/test/test_expected_disk_space_size.py index 7741b81..3bd9b3d 100644 --- a/test/test_expected_disk_space_size.py +++ b/test/test_expected_disk_space_size.py @@ -53,5 +53,6 @@ def testExpectedDiskSpaceSize(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_all_operation.py b/test/test_export_all_operation.py index 973b21b..04c8641 100644 --- a/test/test_export_all_operation.py +++ b/test/test_export_all_operation.py @@ -51,5 +51,6 @@ def testExportAllOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_apps_operation_input.py b/test/test_export_apps_operation_input.py index dbd1e68..6ebdc1c 100644 --- a/test/test_export_apps_operation_input.py +++ b/test/test_export_apps_operation_input.py @@ -51,5 +51,6 @@ def testExportAppsOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_files_operation_input.py b/test/test_export_files_operation_input.py index 881459e..990561f 100644 --- a/test/test_export_files_operation_input.py +++ b/test/test_export_files_operation_input.py @@ -60,5 +60,6 @@ def testExportFilesOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_files_request.py b/test/test_export_files_request.py index b052768..47787c8 100644 --- a/test/test_export_files_request.py +++ b/test/test_export_files_request.py @@ -54,5 +54,6 @@ def testExportFilesRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_export_package_operation.py b/test/test_export_package_operation.py index b27bd11..eb3302a 100644 --- a/test/test_export_package_operation.py +++ b/test/test_export_package_operation.py @@ -52,5 +52,6 @@ def testExportPackageOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_external_resource_info.py b/test/test_external_resource_info.py index 5b714d4..5acd989 100644 --- a/test/test_external_resource_info.py +++ b/test/test_external_resource_info.py @@ -48,5 +48,6 @@ def testExternalResourceInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_f5_encapsulation.py b/test/test_f5_encapsulation.py index 76c50e0..21c0677 100644 --- a/test/test_f5_encapsulation.py +++ b/test/test_f5_encapsulation.py @@ -76,5 +76,6 @@ def testF5Encapsulation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_f5_settings.py b/test/test_f5_settings.py index 57615f2..d82e209 100644 --- a/test/test_f5_settings.py +++ b/test/test_f5_settings.py @@ -191,5 +191,6 @@ def testF5Settings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py index 5602d98..282ee60 100644 --- a/test/test_feature.py +++ b/test/test_feature.py @@ -65,5 +65,6 @@ def testFeature(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_feature_reservation.py b/test/test_feature_reservation.py index 33e5757..c888b82 100644 --- a/test/test_feature_reservation.py +++ b/test/test_feature_reservation.py @@ -55,5 +55,6 @@ def testFeatureReservation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_feature_reservation_reserve.py b/test/test_feature_reservation_reserve.py index 527a240..3e706b6 100644 --- a/test/test_feature_reservation_reserve.py +++ b/test/test_feature_reservation_reserve.py @@ -53,5 +53,6 @@ def testFeatureReservationReserve(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_file_metadata.py b/test/test_file_metadata.py index b72421c..69239f4 100644 --- a/test/test_file_metadata.py +++ b/test/test_file_metadata.py @@ -49,5 +49,6 @@ def testFileMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_file_value.py b/test/test_file_value.py index d08420a..d8ea071 100644 --- a/test/test_file_value.py +++ b/test/test_file_value.py @@ -53,5 +53,6 @@ def testFileValue(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_filter.py b/test/test_filter.py index 7aed557..648f91e 100644 --- a/test/test_filter.py +++ b/test/test_filter.py @@ -49,5 +49,6 @@ def testFilter(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_filtered_stat.py b/test/test_filtered_stat.py index c03baf0..869cf3f 100644 --- a/test/test_filtered_stat.py +++ b/test/test_filtered_stat.py @@ -53,5 +53,6 @@ def testFilteredStat(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_find_param_matches_operation.py b/test/test_find_param_matches_operation.py index 539023a..2f515a0 100644 --- a/test/test_find_param_matches_operation.py +++ b/test/test_find_param_matches_operation.py @@ -75,5 +75,6 @@ def testFindParamMatchesOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_fortinet_encapsulation.py b/test/test_fortinet_encapsulation.py index 57fc05d..652cc5c 100644 --- a/test/test_fortinet_encapsulation.py +++ b/test/test_fortinet_encapsulation.py @@ -76,5 +76,6 @@ def testFortinetEncapsulation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_fortinet_settings.py b/test/test_fortinet_settings.py index f1e30ab..686bd84 100644 --- a/test/test_fortinet_settings.py +++ b/test/test_fortinet_settings.py @@ -191,5 +191,6 @@ def testFortinetSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_fulfillment_request.py b/test/test_fulfillment_request.py index 34f8f9d..f60d103 100644 --- a/test/test_fulfillment_request.py +++ b/test/test_fulfillment_request.py @@ -51,5 +51,6 @@ def testFulfillmentRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_generate_all_operation.py b/test/test_generate_all_operation.py index e6291c7..1805517 100644 --- a/test/test_generate_all_operation.py +++ b/test/test_generate_all_operation.py @@ -48,5 +48,6 @@ def testGenerateAllOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_generate_csv_reports_operation.py b/test/test_generate_csv_reports_operation.py index 84a926b..81f1f97 100644 --- a/test/test_generate_csv_reports_operation.py +++ b/test/test_generate_csv_reports_operation.py @@ -61,5 +61,6 @@ def testGenerateCSVReportsOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_generate_pdf_report_operation.py b/test/test_generate_pdf_report_operation.py index ba80ec2..d78459c 100644 --- a/test/test_generate_pdf_report_operation.py +++ b/test/test_generate_pdf_report_operation.py @@ -49,5 +49,6 @@ def testGeneratePDFReportOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_generic_file.py b/test/test_generic_file.py index b11eb37..c4b10c6 100644 --- a/test/test_generic_file.py +++ b/test/test_generic_file.py @@ -65,5 +65,6 @@ def testGenericFile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_agents200_response.py b/test/test_get_agents200_response.py index f67eaa7..11d00ad 100644 --- a/test/test_get_agents200_response.py +++ b/test/test_get_agents200_response.py @@ -134,5 +134,6 @@ def testGetAgents200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_agents200_response_one_of.py b/test/test_get_agents200_response_one_of.py index 9cb8a6b..4e45330 100644 --- a/test/test_get_agents200_response_one_of.py +++ b/test/test_get_agents200_response_one_of.py @@ -134,5 +134,6 @@ def testGetAgents200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_agents_tags200_response.py b/test/test_get_agents_tags200_response.py index 5c63afa..129ed22 100644 --- a/test/test_get_agents_tags200_response.py +++ b/test/test_get_agents_tags200_response.py @@ -57,5 +57,6 @@ def testGetAgentsTags200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_agents_tags200_response_one_of.py b/test/test_get_agents_tags200_response_one_of.py index d4eea38..6ca13d5 100644 --- a/test/test_get_agents_tags200_response_one_of.py +++ b/test/test_get_agents_tags200_response_one_of.py @@ -57,5 +57,6 @@ def testGetAgentsTags200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_async_operation_result200_response.py b/test/test_get_async_operation_result200_response.py index c500665..ed8812b 100644 --- a/test/test_get_async_operation_result200_response.py +++ b/test/test_get_async_operation_result200_response.py @@ -99,5 +99,6 @@ def testGetAsyncOperationResult200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_attacks_operation.py b/test/test_get_attacks_operation.py index 6e3571d..bcf1f0d 100644 --- a/test/test_get_attacks_operation.py +++ b/test/test_get_attacks_operation.py @@ -68,5 +68,6 @@ def testGetAttacksOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_brokers200_response.py b/test/test_get_brokers200_response.py index 2109755..55b2cb3 100644 --- a/test/test_get_brokers200_response.py +++ b/test/test_get_brokers200_response.py @@ -62,5 +62,6 @@ def testGetBrokers200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_brokers200_response_one_of.py b/test/test_get_brokers200_response_one_of.py index 62fbc07..ba56136 100644 --- a/test/test_get_brokers200_response_one_of.py +++ b/test/test_get_brokers200_response_one_of.py @@ -62,5 +62,6 @@ def testGetBrokers200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_categories_operation.py b/test/test_get_categories_operation.py index 3fcee63..da2d217 100644 --- a/test/test_get_categories_operation.py +++ b/test/test_get_categories_operation.py @@ -54,5 +54,6 @@ def testGetCategoriesOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_config_categories200_response.py b/test/test_get_config_categories200_response.py index 23fea41..c236f10 100644 --- a/test/test_get_config_categories200_response.py +++ b/test/test_get_config_categories200_response.py @@ -52,5 +52,6 @@ def testGetConfigCategories200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_config_categories200_response_one_of.py b/test/test_get_config_categories200_response_one_of.py index d1a36a4..93f1d59 100644 --- a/test/test_get_config_categories200_response_one_of.py +++ b/test/test_get_config_categories200_response_one_of.py @@ -52,5 +52,6 @@ def testGetConfigCategories200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_configs200_response.py b/test/test_get_configs200_response.py index 8a89d14..c0f4ea2 100644 --- a/test/test_get_configs200_response.py +++ b/test/test_get_configs200_response.py @@ -83,5 +83,6 @@ def testGetConfigs200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_configs200_response_one_of.py b/test/test_get_configs200_response_one_of.py index 0530958..cd8ed17 100644 --- a/test/test_get_configs200_response_one_of.py +++ b/test/test_get_configs200_response_one_of.py @@ -83,5 +83,6 @@ def testGetConfigs200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_controllers200_response.py b/test/test_get_controllers200_response.py index 252e7b0..f5e63b8 100644 --- a/test/test_get_controllers200_response.py +++ b/test/test_get_controllers200_response.py @@ -111,5 +111,6 @@ def testGetControllers200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_controllers200_response_one_of.py b/test/test_get_controllers200_response_one_of.py index 6818dde..d0f6a78 100644 --- a/test/test_get_controllers200_response_one_of.py +++ b/test/test_get_controllers200_response_one_of.py @@ -111,5 +111,6 @@ def testGetControllers200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response.py b/test/test_get_disk_usage_consumers200_response.py index b4eab85..c6be685 100644 --- a/test/test_get_disk_usage_consumers200_response.py +++ b/test/test_get_disk_usage_consumers200_response.py @@ -54,5 +54,6 @@ def testGetDiskUsageConsumers200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response_one_of.py b/test/test_get_disk_usage_consumers200_response_one_of.py index 5ecfddb..6c399df 100644 --- a/test/test_get_disk_usage_consumers200_response_one_of.py +++ b/test/test_get_disk_usage_consumers200_response_one_of.py @@ -54,5 +54,6 @@ def testGetDiskUsageConsumers200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_license_async_operation_result200_response.py b/test/test_get_license_async_operation_result200_response.py index 9b9c4e7..76f3335 100644 --- a/test/test_get_license_async_operation_result200_response.py +++ b/test/test_get_license_async_operation_result200_response.py @@ -101,5 +101,6 @@ def testGetLicenseAsyncOperationResult200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_license_servers200_response.py b/test/test_get_license_servers200_response.py index ca1da80..dfa1c7d 100644 --- a/test/test_get_license_servers200_response.py +++ b/test/test_get_license_servers200_response.py @@ -62,5 +62,6 @@ def testGetLicenseServers200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_license_servers200_response_one_of.py b/test/test_get_license_servers200_response_one_of.py index daa2ada..4074a90 100644 --- a/test/test_get_license_servers200_response_one_of.py +++ b/test/test_get_license_servers200_response_one_of.py @@ -62,5 +62,6 @@ def testGetLicenseServers200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_notifications200_response.py b/test/test_get_notifications200_response.py index 5ec4b3f..731272c 100644 --- a/test/test_get_notifications200_response.py +++ b/test/test_get_notifications200_response.py @@ -63,5 +63,6 @@ def testGetNotifications200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_notifications200_response_one_of.py b/test/test_get_notifications200_response_one_of.py index e0bec16..4b56725 100644 --- a/test/test_get_notifications200_response_one_of.py +++ b/test/test_get_notifications200_response_one_of.py @@ -63,5 +63,6 @@ def testGetNotifications200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index 99acfc4..56ec99c 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -53,12 +53,14 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -85,30 +87,19 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -176,6 +167,8 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, + no_multi_flow_support = True, protocol = '', requires_uniqueness = True, severity = '', @@ -186,12 +179,8 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], @@ -210,7 +199,16 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = , ) + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ) ], total_count = 56 ) @@ -224,5 +222,6 @@ def testGetResourcesApplicationTypes200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index 959477f..e8f5923 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -53,12 +53,14 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -85,30 +87,19 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -176,6 +167,8 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp metadata = cyperf.models.metadata.Metadata( direction = '', is_banner = True, + is_streaming = True, + no_multi_flow_support = True, protocol = '', requires_uniqueness = True, severity = '', @@ -186,12 +179,8 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], @@ -210,7 +199,16 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = , ) + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ) ], total_count = 56 ) @@ -224,5 +222,6 @@ def testGetResourcesApplicationTypes200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index 1b8b5fb..d1a439f 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -126,79 +126,27 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ), @@ -229,5 +177,6 @@ def testGetResourcesApps200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index 81c64f7..5645b95 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -126,79 +126,27 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: name = '', parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ) ], app_parameters = [ cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], ), @@ -229,5 +177,6 @@ def testGetResourcesApps200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_attacks200_response.py b/test/test_get_resources_attacks200_response.py index 902aa81..e35ea31 100644 --- a/test/test_get_resources_attacks200_response.py +++ b/test/test_get_resources_attacks200_response.py @@ -83,5 +83,6 @@ def testGetResourcesAttacks200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_attacks200_response_one_of.py b/test/test_get_resources_attacks200_response_one_of.py index 7ca5d7b..c1a3b9f 100644 --- a/test/test_get_resources_attacks200_response_one_of.py +++ b/test/test_get_resources_attacks200_response_one_of.py @@ -83,5 +83,6 @@ def testGetResourcesAttacks200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response.py b/test/test_get_resources_auth_profiles200_response.py index 0493f11..e9ee5cc 100644 --- a/test/test_get_resources_auth_profiles200_response.py +++ b/test/test_get_resources_auth_profiles200_response.py @@ -105,20 +105,19 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], @@ -148,5 +147,6 @@ def testGetResourcesAuthProfiles200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response_one_of.py b/test/test_get_resources_auth_profiles200_response_one_of.py index ce9adaa..3fb465c 100644 --- a/test/test_get_resources_auth_profiles200_response_one_of.py +++ b/test/test_get_resources_auth_profiles200_response_one_of.py @@ -105,20 +105,19 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', + name = '', field = '', - id = '', operator = '', query_param = '', ) ], @@ -148,5 +147,6 @@ def testGetResourcesAuthProfiles200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_certificates200_response.py b/test/test_get_resources_certificates200_response.py index 84f6279..855d3ac 100644 --- a/test/test_get_resources_certificates200_response.py +++ b/test/test_get_resources_certificates200_response.py @@ -69,5 +69,6 @@ def testGetResourcesCertificates200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_certificates200_response_one_of.py b/test/test_get_resources_certificates200_response_one_of.py index 7754505..3e82134 100644 --- a/test/test_get_resources_certificates200_response_one_of.py +++ b/test/test_get_resources_certificates200_response_one_of.py @@ -69,5 +69,6 @@ def testGetResourcesCertificates200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response.py b/test/test_get_resources_custom_import_operations200_response.py index 4ebb793..a956bbd 100644 --- a/test/test_get_resources_custom_import_operations200_response.py +++ b/test/test_get_resources_custom_import_operations200_response.py @@ -60,5 +60,6 @@ def testGetResourcesCustomImportOperations200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response_one_of.py b/test/test_get_resources_custom_import_operations200_response_one_of.py index 05ac38b..797d9a2 100644 --- a/test/test_get_resources_custom_import_operations200_response_one_of.py +++ b/test/test_get_resources_custom_import_operations200_response_one_of.py @@ -60,5 +60,6 @@ def testGetResourcesCustomImportOperations200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_http_profiles200_response.py b/test/test_get_resources_http_profiles200_response.py index 22d0279..602dc05 100644 --- a/test/test_get_resources_http_profiles200_response.py +++ b/test/test_get_resources_http_profiles200_response.py @@ -158,5 +158,6 @@ def testGetResourcesHttpProfiles200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_resources_http_profiles200_response_one_of.py b/test/test_get_resources_http_profiles200_response_one_of.py index 3376080..1c6c226 100644 --- a/test/test_get_resources_http_profiles200_response_one_of.py +++ b/test/test_get_resources_http_profiles200_response_one_of.py @@ -158,5 +158,6 @@ def testGetResourcesHttpProfiles200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_result_files200_response.py b/test/test_get_result_files200_response.py index 9822b3a..8dc73f3 100644 --- a/test/test_get_result_files200_response.py +++ b/test/test_get_result_files200_response.py @@ -57,5 +57,6 @@ def testGetResultFiles200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_result_files200_response_one_of.py b/test/test_get_result_files200_response_one_of.py index 26e8942..85dad76 100644 --- a/test/test_get_result_files200_response_one_of.py +++ b/test/test_get_result_files200_response_one_of.py @@ -57,5 +57,6 @@ def testGetResultFiles200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py index df09589..29d3660 100644 --- a/test/test_get_result_stats200_response.py +++ b/test/test_get_result_stats200_response.py @@ -40,87 +40,19 @@ def make_instance(self, include_optional) -> GetResultStats200Response: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -150,5 +82,6 @@ def testGetResultStats200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py index 8774204..d11f673 100644 --- a/test/test_get_result_stats200_response_one_of.py +++ b/test/test_get_result_stats200_response_one_of.py @@ -40,87 +40,19 @@ def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -150,5 +82,6 @@ def testGetResultStats200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_results200_response.py b/test/test_get_results200_response.py index 2285aef..279668e 100644 --- a/test/test_get_results200_response.py +++ b/test/test_get_results200_response.py @@ -106,5 +106,6 @@ def testGetResults200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_results200_response_one_of.py b/test/test_get_results200_response_one_of.py index 4f03e95..95acfd6 100644 --- a/test/test_get_results200_response_one_of.py +++ b/test/test_get_results200_response_one_of.py @@ -106,5 +106,6 @@ def testGetResults200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_results_tags200_response.py b/test/test_get_results_tags200_response.py index 1d518fe..8939c6c 100644 --- a/test/test_get_results_tags200_response.py +++ b/test/test_get_results_tags200_response.py @@ -55,5 +55,6 @@ def testGetResultsTags200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_results_tags200_response_one_of.py b/test/test_get_results_tags200_response_one_of.py index a58de49..986b528 100644 --- a/test/test_get_results_tags200_response_one_of.py +++ b/test/test_get_results_tags200_response_one_of.py @@ -55,5 +55,6 @@ def testGetResultsTags200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_session_meta200_response.py b/test/test_get_session_meta200_response.py index 4bab425..fba290f 100644 --- a/test/test_get_session_meta200_response.py +++ b/test/test_get_session_meta200_response.py @@ -54,5 +54,6 @@ def testGetSessionMeta200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_session_meta200_response_one_of.py b/test/test_get_session_meta200_response_one_of.py index 41661b8..e3fee4e 100644 --- a/test/test_get_session_meta200_response_one_of.py +++ b/test/test_get_session_meta200_response_one_of.py @@ -54,5 +54,6 @@ def testGetSessionMeta200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_sessions200_response.py b/test/test_get_sessions200_response.py index 2be6c15..678e203 100644 --- a/test/test_get_sessions200_response.py +++ b/test/test_get_sessions200_response.py @@ -152,5 +152,6 @@ def testGetSessions200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_sessions200_response_one_of.py b/test/test_get_sessions200_response_one_of.py index 47f91d7..2588528 100644 --- a/test/test_get_sessions200_response_one_of.py +++ b/test/test_get_sessions200_response_one_of.py @@ -152,5 +152,6 @@ def testGetSessions200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_stats_plugins200_response.py b/test/test_get_stats_plugins200_response.py index 4ed3f4a..76ac2fd 100644 --- a/test/test_get_stats_plugins200_response.py +++ b/test/test_get_stats_plugins200_response.py @@ -57,5 +57,6 @@ def testGetStatsPlugins200Response(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_stats_plugins200_response_one_of.py b/test/test_get_stats_plugins200_response_one_of.py index 51326f0..e5fdf1f 100644 --- a/test/test_get_stats_plugins200_response_one_of.py +++ b/test/test_get_stats_plugins200_response_one_of.py @@ -57,5 +57,6 @@ def testGetStatsPlugins200ResponseOneOf(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_get_strikes_operation.py b/test/test_get_strikes_operation.py index 4b594e6..2c3d489 100644 --- a/test/test_get_strikes_operation.py +++ b/test/test_get_strikes_operation.py @@ -69,5 +69,6 @@ def testGetStrikesOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_hash_p1_algorithm.py b/test/test_hash_p1_algorithm.py index 64ace79..f1575ec 100644 --- a/test/test_hash_p1_algorithm.py +++ b/test/test_hash_p1_algorithm.py @@ -30,5 +30,6 @@ def testHashP1Algorithm(self): """Test HashP1Algorithm""" # inst = HashP1Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_hash_p2_algorithm.py b/test/test_hash_p2_algorithm.py index 4e546e5..d79d206 100644 --- a/test/test_hash_p2_algorithm.py +++ b/test/test_hash_p2_algorithm.py @@ -30,5 +30,6 @@ def testHashP2Algorithm(self): """Test HashP2Algorithm""" # inst = HashP2Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_health_check_config.py b/test/test_health_check_config.py index 06a21ec..bf2f4d2 100644 --- a/test/test_health_check_config.py +++ b/test/test_health_check_config.py @@ -154,5 +154,6 @@ def testHealthCheckConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_health_issue.py b/test/test_health_issue.py index 836a822..14fbeff 100644 --- a/test/test_health_issue.py +++ b/test/test_health_issue.py @@ -49,5 +49,6 @@ def testHealthIssue(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_host_id.py b/test/test_host_id.py index 52e0b32..951b9b2 100644 --- a/test/test_host_id.py +++ b/test/test_host_id.py @@ -48,5 +48,6 @@ def testHostID(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_http_profile.py b/test/test_http_profile.py index aa70248..a0c4cad 100644 --- a/test/test_http_profile.py +++ b/test/test_http_profile.py @@ -348,5 +348,6 @@ def testHTTPProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_http_req_meta.py b/test/test_http_req_meta.py index 232ecc6..ab22267 100644 --- a/test/test_http_req_meta.py +++ b/test/test_http_req_meta.py @@ -57,5 +57,6 @@ def testHTTPReqMeta(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_http_res_meta.py b/test/test_http_res_meta.py index f040dca..7d78155 100644 --- a/test/test_http_res_meta.py +++ b/test/test_http_res_meta.py @@ -56,5 +56,6 @@ def testHTTPResMeta(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_http_version.py b/test/test_http_version.py index 54e866a..f0ee508 100644 --- a/test/test_http_version.py +++ b/test/test_http_version.py @@ -30,5 +30,6 @@ def testHTTPVersion(self): """Test HTTPVersion""" # inst = HTTPVersion() + if __name__ == '__main__': unittest.main() diff --git a/test/test_id_p_signature_algo.py b/test/test_id_p_signature_algo.py index 2e1c990..77da5e9 100644 --- a/test/test_id_p_signature_algo.py +++ b/test/test_id_p_signature_algo.py @@ -30,5 +30,6 @@ def testIdPSignatureAlgo(self): """Test IdPSignatureAlgo""" # inst = IdPSignatureAlgo() + if __name__ == '__main__': unittest.main() diff --git a/test/test_import_all_operation.py b/test/test_import_all_operation.py index 5586973..398a84b 100644 --- a/test/test_import_all_operation.py +++ b/test/test_import_all_operation.py @@ -82,5 +82,6 @@ def testImportAllOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_import_offline_license_result.py b/test/test_import_offline_license_result.py index 9344fc3..60ef1de 100644 --- a/test/test_import_offline_license_result.py +++ b/test/test_import_offline_license_result.py @@ -117,5 +117,6 @@ def testImportOfflineLicenseResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ingest_operation.py b/test/test_ingest_operation.py index 84a26d2..9b82c9b 100644 --- a/test/test_ingest_operation.py +++ b/test/test_ingest_operation.py @@ -55,5 +55,6 @@ def testIngestOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_inner_ip_range.py b/test/test_inner_ip_range.py index 363a0e4..d93cf12 100644 --- a/test/test_inner_ip_range.py +++ b/test/test_inner_ip_range.py @@ -50,5 +50,6 @@ def testInnerIPRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_interface.py b/test/test_interface.py index 0fe5b5e..5bb9321 100644 --- a/test/test_interface.py +++ b/test/test_interface.py @@ -55,5 +55,6 @@ def testInterface(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_mask.py b/test/test_ip_mask.py index 5551f9e..af46945 100644 --- a/test/test_ip_mask.py +++ b/test/test_ip_mask.py @@ -49,5 +49,6 @@ def testIpMask(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_network.py b/test/test_ip_network.py index d766f96..3d4a7a9 100644 --- a/test/test_ip_network.py +++ b/test/test_ip_network.py @@ -229,5 +229,6 @@ def testIPNetwork(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_preference.py b/test/test_ip_preference.py index 61305ac..df96485 100644 --- a/test/test_ip_preference.py +++ b/test/test_ip_preference.py @@ -30,5 +30,6 @@ def testIpPreference(self): """Test IpPreference""" # inst = IpPreference() + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_range.py b/test/test_ip_range.py index e4bb376..2144764 100644 --- a/test/test_ip_range.py +++ b/test/test_ip_range.py @@ -113,5 +113,6 @@ def testIPRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_sec_range.py b/test/test_ip_sec_range.py index db8a832..6b469db 100644 --- a/test/test_ip_sec_range.py +++ b/test/test_ip_sec_range.py @@ -124,5 +124,6 @@ def testIPSecRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_sec_stack.py b/test/test_ip_sec_stack.py index 07f98fd..2fe2c21 100644 --- a/test/test_ip_sec_stack.py +++ b/test/test_ip_sec_stack.py @@ -255,5 +255,6 @@ def testIPSecStack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ip_ver.py b/test/test_ip_ver.py index 6c65b16..0f2b8d3 100644 --- a/test/test_ip_ver.py +++ b/test/test_ip_ver.py @@ -30,5 +30,6 @@ def testIpVer(self): """Test IpVer""" # inst = IpVer() + if __name__ == '__main__': unittest.main() diff --git a/test/test_license.py b/test/test_license.py index cf72d4b..cafb6a9 100644 --- a/test/test_license.py +++ b/test/test_license.py @@ -101,5 +101,6 @@ def testLicense(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_license_receipt.py b/test/test_license_receipt.py index 97da96e..053b21c 100644 --- a/test/test_license_receipt.py +++ b/test/test_license_receipt.py @@ -111,5 +111,6 @@ def testLicenseReceipt(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_license_server_metadata.py b/test/test_license_server_metadata.py index 679a3ae..d444697 100644 --- a/test/test_license_server_metadata.py +++ b/test/test_license_server_metadata.py @@ -58,5 +58,6 @@ def testLicenseServerMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_license_servers_api.py b/test/test_license_servers_api.py index 7a46f03..ace6bb9 100644 --- a/test/test_license_servers_api.py +++ b/test/test_license_servers_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_license_servers(self) -> None: """Test case for create_license_servers @@ -57,6 +58,5 @@ def test_patch_license_server(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_licensing_api.py b/test/test_licensing_api.py index 4487903..d3946f5 100644 --- a/test/test_licensing_api.py +++ b/test/test_licensing_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_activate_licenses(self) -> None: """Test case for activate_licenses @@ -160,6 +161,5 @@ def test_update_reservation(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_link.py b/test/test_link.py index b8ca676..83418dc 100644 --- a/test/test_link.py +++ b/test/test_link.py @@ -53,5 +53,6 @@ def testLink(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_load_config_operation.py b/test/test_load_config_operation.py index 10afb43..7138c11 100644 --- a/test/test_load_config_operation.py +++ b/test/test_load_config_operation.py @@ -48,5 +48,6 @@ def testLoadConfigOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_local_subnet_config.py b/test/test_local_subnet_config.py index 2299c33..61a181a 100644 --- a/test/test_local_subnet_config.py +++ b/test/test_local_subnet_config.py @@ -67,5 +67,6 @@ def testLocalSubnetConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_log_config.py b/test/test_log_config.py index 175212f..33f838e 100644 --- a/test/test_log_config.py +++ b/test/test_log_config.py @@ -48,5 +48,6 @@ def testLogConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_log_level.py b/test/test_log_level.py index 23faf5d..04cb031 100644 --- a/test/test_log_level.py +++ b/test/test_log_level.py @@ -30,5 +30,6 @@ def testLogLevel(self): """Test LogLevel""" # inst = LogLevel() + if __name__ == '__main__': unittest.main() diff --git a/test/test_mac_dtls_stack.py b/test/test_mac_dtls_stack.py index ae70a03..744943b 100644 --- a/test/test_mac_dtls_stack.py +++ b/test/test_mac_dtls_stack.py @@ -153,5 +153,6 @@ def testMacDtlsStack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_mapping_type.py b/test/test_mapping_type.py index 7cdd7ab..46bfe08 100644 --- a/test/test_mapping_type.py +++ b/test/test_mapping_type.py @@ -30,5 +30,6 @@ def testMappingType(self): """Test MappingType""" # inst = MappingType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_marked_as_deleted.py b/test/test_marked_as_deleted.py index fe18eb4..d7d8ab4 100644 --- a/test/test_marked_as_deleted.py +++ b/test/test_marked_as_deleted.py @@ -49,5 +49,6 @@ def testMarkedAsDeleted(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_media_file.py b/test/test_media_file.py index 4f876ec..da6543d 100644 --- a/test/test_media_file.py +++ b/test/test_media_file.py @@ -75,5 +75,6 @@ def testMediaFile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_media_track.py b/test/test_media_track.py index 3331ab7..3fd5d2e 100644 --- a/test/test_media_track.py +++ b/test/test_media_track.py @@ -57,5 +57,6 @@ def testMediaTrack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_metadata.py b/test/test_metadata.py index 60f1493..a45b674 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -38,12 +38,14 @@ def make_instance(self, include_optional) -> Metadata: return Metadata( direction = '', is_banner = True, + is_streaming = True, keywords = [ null ], legacy_names = [ '' ], + no_multi_flow_support = True, protocol = '', rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( custom_header_len_offset = 56, @@ -78,5 +80,6 @@ def testMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_mos_mode.py b/test/test_mos_mode.py index cdceeea..28d0255 100644 --- a/test/test_mos_mode.py +++ b/test/test_mos_mode.py @@ -30,5 +30,6 @@ def testMosMode(self): """Test MosMode""" # inst = MosMode() + if __name__ == '__main__': unittest.main() diff --git a/test/test_name_id_format.py b/test/test_name_id_format.py index 590f379..e9babba 100644 --- a/test/test_name_id_format.py +++ b/test/test_name_id_format.py @@ -30,5 +30,6 @@ def testNameIdFormat(self): """Test NameIdFormat""" # inst = NameIdFormat() + if __name__ == '__main__': unittest.main() diff --git a/test/test_name_server.py b/test/test_name_server.py index e6e3818..b8b81d8 100644 --- a/test/test_name_server.py +++ b/test/test_name_server.py @@ -48,5 +48,6 @@ def testNameServer(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_network_mapping.py b/test/test_network_mapping.py index 428b824..7e72866 100644 --- a/test/test_network_mapping.py +++ b/test/test_network_mapping.py @@ -62,5 +62,6 @@ def testNetworkMapping(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_network_meshing.py b/test/test_network_meshing.py index 9a8c032..3a9d68b 100644 --- a/test/test_network_meshing.py +++ b/test/test_network_meshing.py @@ -50,5 +50,6 @@ def testNetworkMeshing(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_network_profile.py b/test/test_network_profile.py index a63a040..2c4c8bc 100644 --- a/test/test_network_profile.py +++ b/test/test_network_profile.py @@ -65,5 +65,6 @@ def testNetworkProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_network_segment_base.py b/test/test_network_segment_base.py index e5dfa9d..b1b9c1c 100644 --- a/test/test_network_segment_base.py +++ b/test/test_network_segment_base.py @@ -54,5 +54,6 @@ def testNetworkSegmentBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_nodes_by_controller.py b/test/test_nodes_by_controller.py index 098a652..806af26 100644 --- a/test/test_nodes_by_controller.py +++ b/test/test_nodes_by_controller.py @@ -51,5 +51,6 @@ def testNodesByController(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_nodes_power_cycle_operation.py b/test/test_nodes_power_cycle_operation.py index 3b2caaf..d4ae2ff 100644 --- a/test/test_nodes_power_cycle_operation.py +++ b/test/test_nodes_power_cycle_operation.py @@ -54,5 +54,6 @@ def testNodesPowerCycleOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_notification.py b/test/test_notification.py index ecf5233..b1e9fca 100644 --- a/test/test_notification.py +++ b/test/test_notification.py @@ -59,5 +59,6 @@ def testNotification(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_notification_counts.py b/test/test_notification_counts.py index 6ecab87..2e8972c 100644 --- a/test/test_notification_counts.py +++ b/test/test_notification_counts.py @@ -51,5 +51,6 @@ def testNotificationCounts(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_notifications_api.py b/test/test_notifications_api.py index b6946d8..8e9988e 100644 --- a/test/test_notifications_api.py +++ b/test/test_notifications_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_delete_notification(self) -> None: """Test case for delete_notification @@ -51,17 +52,7 @@ def test_get_notifications(self) -> None: """ pass - def test_poll_notifications_cleanup(self) -> None: - """Test case for poll_notifications_cleanup - """ - pass - - def test_poll_notifications_dismiss(self) -> None: - """Test case for poll_notifications_dismiss - - """ - pass def test_start_notifications_cleanup(self) -> None: """Test case for start_notifications_cleanup @@ -75,6 +66,5 @@ def test_start_notifications_dismiss(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_ntp_info.py b/test/test_ntp_info.py index 2487c42..d6498ff 100644 --- a/test/test_ntp_info.py +++ b/test/test_ntp_info.py @@ -52,5 +52,6 @@ def testNtpInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_objective_type.py b/test/test_objective_type.py index 8c917d4..282044e 100644 --- a/test/test_objective_type.py +++ b/test/test_objective_type.py @@ -30,5 +30,6 @@ def testObjectiveType(self): """Test ObjectiveType""" # inst = ObjectiveType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_objective_unit.py b/test/test_objective_unit.py index 81cddbb..cd44560 100644 --- a/test/test_objective_unit.py +++ b/test/test_objective_unit.py @@ -30,5 +30,6 @@ def testObjectiveUnit(self): """Test ObjectiveUnit""" # inst = ObjectiveUnit() + if __name__ == '__main__': unittest.main() diff --git a/test/test_objective_value_entry.py b/test/test_objective_value_entry.py index 1c3e8fb..9c81df8 100644 --- a/test/test_objective_value_entry.py +++ b/test/test_objective_value_entry.py @@ -52,5 +52,6 @@ def testObjectiveValueEntry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_objectives_and_timeline.py b/test/test_objectives_and_timeline.py index 0afc88d..7a84d3b 100644 --- a/test/test_objectives_and_timeline.py +++ b/test/test_objectives_and_timeline.py @@ -113,5 +113,6 @@ def testObjectivesAndTimeline(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_open_api_definitions.py b/test/test_open_api_definitions.py index 9ecd15e..3eadcc9 100644 --- a/test/test_open_api_definitions.py +++ b/test/test_open_api_definitions.py @@ -50,5 +50,6 @@ def testOpenAPIDefinitions(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_p1_config.py b/test/test_p1_config.py index 3986ddd..f98460b 100644 --- a/test/test_p1_config.py +++ b/test/test_p1_config.py @@ -59,5 +59,6 @@ def testP1Config(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_p2_config.py b/test/test_p2_config.py index c93e556..b580fe4 100644 --- a/test/test_p2_config.py +++ b/test/test_p2_config.py @@ -59,5 +59,6 @@ def testP2Config(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pair.py b/test/test_pair.py index 346c4bb..8e0d795 100644 --- a/test/test_pair.py +++ b/test/test_pair.py @@ -50,5 +50,6 @@ def testPair(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pangp_encapsulation.py b/test/test_pangp_encapsulation.py index c7e3b35..1262637 100644 --- a/test/test_pangp_encapsulation.py +++ b/test/test_pangp_encapsulation.py @@ -75,5 +75,6 @@ def testPANGPEncapsulation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pangp_settings.py b/test/test_pangp_settings.py index 893aa83..b89e576 100644 --- a/test/test_pangp_settings.py +++ b/test/test_pangp_settings.py @@ -203,5 +203,6 @@ def testPANGPSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata.py b/test/test_param_metadata.py index 93a6575..671456e 100644 --- a/test/test_param_metadata.py +++ b/test/test_param_metadata.py @@ -64,5 +64,6 @@ def testParamMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info.py b/test/test_param_metadata_type_info.py index 4f24ec5..16afc83 100644 --- a/test/test_param_metadata_type_info.py +++ b/test/test_param_metadata_type_info.py @@ -63,5 +63,6 @@ def testParamMetadataTypeInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2.py b/test/test_param_metadata_type_info_array_v2.py index a7c4abd..320889d 100644 --- a/test/test_param_metadata_type_info_array_v2.py +++ b/test/test_param_metadata_type_info_array_v2.py @@ -52,5 +52,6 @@ def testParamMetadataTypeInfoArrayV2(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2_elements_inner.py b/test/test_param_metadata_type_info_array_v2_elements_inner.py index da57742..78d5d80 100644 --- a/test/test_param_metadata_type_info_array_v2_elements_inner.py +++ b/test/test_param_metadata_type_info_array_v2_elements_inner.py @@ -49,5 +49,6 @@ def testParamMetadataTypeInfoArrayV2ElementsInner(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_int.py b/test/test_param_metadata_type_info_int.py index 2d83a79..26867ce 100644 --- a/test/test_param_metadata_type_info_int.py +++ b/test/test_param_metadata_type_info_int.py @@ -49,5 +49,6 @@ def testParamMetadataTypeInfoInt(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_media.py b/test/test_param_metadata_type_info_media.py index 97ae37d..2c155ab 100644 --- a/test/test_param_metadata_type_info_media.py +++ b/test/test_param_metadata_type_info_media.py @@ -49,5 +49,6 @@ def testParamMetadataTypeInfoMedia(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_metadata_type_info_string.py b/test/test_param_metadata_type_info_string.py index 02e9038..232aa16 100644 --- a/test/test_param_metadata_type_info_string.py +++ b/test/test_param_metadata_type_info_string.py @@ -50,5 +50,6 @@ def testParamMetadataTypeInfoString(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_source_type.py b/test/test_param_source_type.py index b70f824..863519f 100644 --- a/test/test_param_source_type.py +++ b/test/test_param_source_type.py @@ -30,5 +30,6 @@ def testParamSourceType(self): """Test ParamSourceType""" # inst = ParamSourceType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_param_type.py b/test/test_param_type.py index aa32223..74786e6 100644 --- a/test/test_param_type.py +++ b/test/test_param_type.py @@ -30,5 +30,6 @@ def testParamType(self): """Test ParamType""" # inst = ParamType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_parameter.py b/test/test_parameter.py index 0e68c9d..851ed72 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -36,87 +36,19 @@ def make_instance(self, include_optional) -> Parameter: model = Parameter() if include_optional: return Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', var_field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '' ) @@ -130,5 +62,6 @@ def testParameter(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_parameter_match.py b/test/test_parameter_match.py index 0b86ae0..b365033 100644 --- a/test/test_parameter_match.py +++ b/test/test_parameter_match.py @@ -55,5 +55,6 @@ def testParameterMatch(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_parameter_metadata.py b/test/test_parameter_metadata.py index 8755f14..64e15c4 100644 --- a/test/test_parameter_metadata.py +++ b/test/test_parameter_metadata.py @@ -103,5 +103,6 @@ def testParameterMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_params.py b/test/test_params.py index abfce3c..90c8570 100644 --- a/test/test_params.py +++ b/test/test_params.py @@ -147,5 +147,6 @@ def testParams(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_params_enum.py b/test/test_params_enum.py index 0305d82..47ac4f7 100644 --- a/test/test_params_enum.py +++ b/test/test_params_enum.py @@ -54,5 +54,6 @@ def testParamsEnum(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_payload_meta.py b/test/test_payload_meta.py index fa751ad..8a48d0d 100644 --- a/test/test_payload_meta.py +++ b/test/test_payload_meta.py @@ -53,5 +53,6 @@ def testPayloadMeta(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_payload_metadata.py b/test/test_payload_metadata.py index 38d6d5f..6f53040 100644 --- a/test/test_payload_metadata.py +++ b/test/test_payload_metadata.py @@ -51,5 +51,6 @@ def testPayloadMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pep_dut.py b/test/test_pep_dut.py index de969ef..ac5940f 100644 --- a/test/test_pep_dut.py +++ b/test/test_pep_dut.py @@ -367,5 +367,6 @@ def testPepDUT(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_pfs_p2_group.py b/test/test_pfs_p2_group.py index 93259d4..fd35cad 100644 --- a/test/test_pfs_p2_group.py +++ b/test/test_pfs_p2_group.py @@ -30,5 +30,6 @@ def testPfsP2Group(self): """Test PfsP2Group""" # inst = PfsP2Group() + if __name__ == '__main__': unittest.main() diff --git a/test/test_plugin.py b/test/test_plugin.py index 2b9e0b8..3c160a7 100644 --- a/test/test_plugin.py +++ b/test/test_plugin.py @@ -53,5 +53,6 @@ def testPlugin(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_plugin_stats.py b/test/test_plugin_stats.py index 94ab15d..4eee84e 100644 --- a/test/test_plugin_stats.py +++ b/test/test_plugin_stats.py @@ -54,5 +54,6 @@ def testPluginStats(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_port.py b/test/test_port.py index 8593898..ff52958 100644 --- a/test/test_port.py +++ b/test/test_port.py @@ -55,5 +55,6 @@ def testPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_port_settings.py b/test/test_port_settings.py index f898387..7960e20 100644 --- a/test/test_port_settings.py +++ b/test/test_port_settings.py @@ -74,5 +74,6 @@ def testPortSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ports_by_controller.py b/test/test_ports_by_controller.py index db5ecf2..931f38b 100644 --- a/test/test_ports_by_controller.py +++ b/test/test_ports_by_controller.py @@ -55,5 +55,6 @@ def testPortsByController(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_ports_by_node.py b/test/test_ports_by_node.py index 6e69c4e..7c0e989 100644 --- a/test/test_ports_by_node.py +++ b/test/test_ports_by_node.py @@ -51,5 +51,6 @@ def testPortsByNode(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_prepare_test_operation.py b/test/test_prepare_test_operation.py index 3fb392e..84a3983 100644 --- a/test/test_prepare_test_operation.py +++ b/test/test_prepare_test_operation.py @@ -70,5 +70,6 @@ def testPrepareTestOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_prepared_test_options.py b/test/test_prepared_test_options.py index a2a3135..4a09fd5 100644 --- a/test/test_prepared_test_options.py +++ b/test/test_prepared_test_options.py @@ -61,5 +61,6 @@ def testPreparedTestOptions(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_prf_p1_algorithm.py b/test/test_prf_p1_algorithm.py index 3a19c0e..7767976 100644 --- a/test/test_prf_p1_algorithm.py +++ b/test/test_prf_p1_algorithm.py @@ -30,5 +30,6 @@ def testPrfP1Algorithm(self): """Test PrfP1Algorithm""" # inst = PrfP1Algorithm() + if __name__ == '__main__': unittest.main() diff --git a/test/test_protected_subnet_config.py b/test/test_protected_subnet_config.py index 8e0d55f..f9d0eff 100644 --- a/test/test_protected_subnet_config.py +++ b/test/test_protected_subnet_config.py @@ -61,5 +61,6 @@ def testProtectedSubnetConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_quic_profile.py b/test/test_quic_profile.py new file mode 100644 index 0000000..24a5c88 --- /dev/null +++ b/test/test_quic_profile.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.quic_profile import QUICProfile + +class TestQUICProfile(unittest.TestCase): + """QUICProfile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QUICProfile: + """Test QUICProfile + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `QUICProfile` + """ + model = QUICProfile() + if include_optional: + return QUICProfile( + client_tls_profile = cyperf.models.tls_profile.TLSProfile( + certificate_file = null, + cipher = null, + cipher12 = null, + cipher13 = null, + ciphers12 = [ + 'ECDHE-RSA-AES256-GCM-SHA384' + ], + ciphers13 = [ + 'AES-256-GCM-SHA384' + ], + dh_file = null, + get_tls_conflicts = [ + 'YQ==' + ], + immediate_close = True, + key_file = null, + key_file_password = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + middle_box_enabled = True, + profile_id = '', + resolve_tls_conflicts = [ + cyperf.models.conflict.Conflict( + name = '', + path_to_target = '', + path_vars = { + 'key' : '' + }, ) + ], + send_close_notify = True, + session_reuse_count = 56, + session_reuse_method = null, + session_reuse_method12 = null, + session_reuse_method13 = null, + sni_cert_configs = [ + cyperf.models.cert_config.CertConfig( + certificate_file = null, + dh_file = null, + get_sni_conflicts = [ + 'YQ==' + ], + id = '', + is_playlist = True, + key_file = null, + key_file_password = '', + playlist_column_name = '', + playlist_filename = '', + resolve_sni_conflicts = [ + cyperf.models.conflict.Conflict( + name = '', + path_to_target = '', + path_vars = { + 'key' : '' + }, ) + ], + sni_hostname = '', ) + ], + sni_enabled = True, + supported_groups13 = [ + 'P-256' + ], + tls12_enabled = True, + tls13_enabled = True, + use_tls_profile = True, + version = 'NONE', ), + min_rto = 56, + name = '', + quic_version = 'Q043', + rx_buffer = 56, + server_tls_profile = cyperf.models.tls_profile.TLSProfile( + certificate_file = null, + cipher = null, + cipher12 = null, + cipher13 = null, + ciphers12 = [ + 'ECDHE-RSA-AES256-GCM-SHA384' + ], + ciphers13 = [ + 'AES-256-GCM-SHA384' + ], + dh_file = null, + get_tls_conflicts = [ + 'YQ==' + ], + immediate_close = True, + key_file = null, + key_file_password = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + middle_box_enabled = True, + profile_id = '', + resolve_tls_conflicts = [ + cyperf.models.conflict.Conflict( + name = '', + path_to_target = '', + path_vars = { + 'key' : '' + }, ) + ], + send_close_notify = True, + session_reuse_count = 56, + session_reuse_method = null, + session_reuse_method12 = null, + session_reuse_method13 = null, + sni_cert_configs = [ + cyperf.models.cert_config.CertConfig( + certificate_file = null, + dh_file = null, + get_sni_conflicts = [ + 'YQ==' + ], + id = '', + is_playlist = True, + key_file = null, + key_file_password = '', + playlist_column_name = '', + playlist_filename = '', + resolve_sni_conflicts = [ + cyperf.models.conflict.Conflict( + name = '', + path_to_target = '', + path_vars = { + 'key' : '' + }, ) + ], + sni_hostname = '', ) + ], + sni_enabled = True, + supported_groups13 = [ + 'P-256' + ], + tls12_enabled = True, + tls13_enabled = True, + use_tls_profile = True, + version = 'NONE', ), + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ] + ) + else: + return QUICProfile( + ) + """ + + def testQUICProfile(self): + """Test QUICProfile""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_quic_version.py b/test/test_quic_version.py new file mode 100644 index 0000000..274a51c --- /dev/null +++ b/test/test_quic_version.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.quic_version import QUICVersion + +class TestQUICVersion(unittest.TestCase): + """QUICVersion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQUICVersion(self): + """Test QUICVersion""" + # inst = QUICVersion() + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reboot_operation_input.py b/test/test_reboot_operation_input.py index baa9fc0..272a6d0 100644 --- a/test/test_reboot_operation_input.py +++ b/test/test_reboot_operation_input.py @@ -52,5 +52,6 @@ def testRebootOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reboot_ports_operation.py b/test/test_reboot_ports_operation.py index 7801173..a59b4a6 100644 --- a/test/test_reboot_ports_operation.py +++ b/test/test_reboot_ports_operation.py @@ -58,5 +58,6 @@ def testRebootPortsOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reference.py b/test/test_reference.py index c8ab40c..b0e506d 100644 --- a/test/test_reference.py +++ b/test/test_reference.py @@ -49,5 +49,6 @@ def testReference(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_regex_match.py b/test/test_regex_match.py index 057ab0e..b7348ba 100644 --- a/test/test_regex_match.py +++ b/test/test_regex_match.py @@ -50,5 +50,6 @@ def testRegexMatch(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_release_operation_input.py b/test/test_release_operation_input.py index 12acc4c..ed92eff 100644 --- a/test/test_release_operation_input.py +++ b/test/test_release_operation_input.py @@ -52,5 +52,6 @@ def testReleaseOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_remote_access.py b/test/test_remote_access.py index 0c0094d..d6e9077 100644 --- a/test/test_remote_access.py +++ b/test/test_remote_access.py @@ -52,5 +52,6 @@ def testRemoteAccess(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_remote_subnet_config.py b/test/test_remote_subnet_config.py index aba3aa0..14424a9 100644 --- a/test/test_remote_subnet_config.py +++ b/test/test_remote_subnet_config.py @@ -61,5 +61,6 @@ def testRemoteSubnetConfig(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_rename_input.py b/test/test_rename_input.py index 5961d32..c21c1bd 100644 --- a/test/test_rename_input.py +++ b/test/test_rename_input.py @@ -49,5 +49,6 @@ def testRenameInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reorder_action_input.py b/test/test_reorder_action_input.py index 75dbebf..6a09a71 100644 --- a/test/test_reorder_action_input.py +++ b/test/test_reorder_action_input.py @@ -49,5 +49,6 @@ def testReorderActionInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reorder_exchanges_input.py b/test/test_reorder_exchanges_input.py index 3946765..e39345a 100644 --- a/test/test_reorder_exchanges_input.py +++ b/test/test_reorder_exchanges_input.py @@ -54,5 +54,6 @@ def testReorderExchangesInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_replay_capture.py b/test/test_replay_capture.py index 50fc4dc..b89b0ae 100644 --- a/test/test_replay_capture.py +++ b/test/test_replay_capture.py @@ -134,5 +134,6 @@ def testReplayCapture(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reports_api.py b/test/test_reports_api.py index 51b86ab..d193b45 100644 --- a/test/test_reports_api.py +++ b/test/test_reports_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_download_pdf(self) -> None: """Test case for download_pdf @@ -39,17 +40,7 @@ def test_get_result_download_csv_by_id(self) -> None: """ pass - def test_poll_result_generate_csv(self) -> None: - """Test case for poll_result_generate_csv - """ - pass - - def test_poll_result_generate_pdf(self) -> None: - """Test case for poll_result_generate_pdf - - """ - pass def test_start_result_generate_csv(self) -> None: """Test case for start_result_generate_csv @@ -63,6 +54,5 @@ def test_start_result_generate_pdf(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_required_file_types.py b/test/test_required_file_types.py index e9f600b..ccfeeba 100644 --- a/test/test_required_file_types.py +++ b/test/test_required_file_types.py @@ -51,5 +51,6 @@ def testRequiredFileTypes(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_reserve_operation_input.py b/test/test_reserve_operation_input.py index 3c21316..24be352 100644 --- a/test/test_reserve_operation_input.py +++ b/test/test_reserve_operation_input.py @@ -74,5 +74,6 @@ def testReserveOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_result_file_metadata.py b/test/test_result_file_metadata.py index eebd4ad..e9b71f8 100644 --- a/test/test_result_file_metadata.py +++ b/test/test_result_file_metadata.py @@ -53,5 +53,6 @@ def testResultFileMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_result_metadata.py b/test/test_result_metadata.py index ec67e6d..58163aa 100644 --- a/test/test_result_metadata.py +++ b/test/test_result_metadata.py @@ -102,5 +102,6 @@ def testResultMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_results_group.py b/test/test_results_group.py index 7ff2d8f..87f4108 100644 --- a/test/test_results_group.py +++ b/test/test_results_group.py @@ -51,5 +51,6 @@ def testResultsGroup(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_rtp_encryption_mode.py b/test/test_rtp_encryption_mode.py index 7d41eae..d1bd493 100644 --- a/test/test_rtp_encryption_mode.py +++ b/test/test_rtp_encryption_mode.py @@ -30,5 +30,6 @@ def testRTPEncryptionMode(self): """Test RTPEncryptionMode""" # inst = RTPEncryptionMode() + if __name__ == '__main__': unittest.main() diff --git a/test/test_rtp_profile.py b/test/test_rtp_profile.py index 68ddc5e..0916121 100644 --- a/test/test_rtp_profile.py +++ b/test/test_rtp_profile.py @@ -53,5 +53,6 @@ def testRTPProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_rtp_profile_meta.py b/test/test_rtp_profile_meta.py index 52f6a5a..6b48767 100644 --- a/test/test_rtp_profile_meta.py +++ b/test/test_rtp_profile_meta.py @@ -54,5 +54,6 @@ def testRTPProfileMeta(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_save_config_operation.py b/test/test_save_config_operation.py index 6204a5b..ab5c4ad 100644 --- a/test/test_save_config_operation.py +++ b/test/test_save_config_operation.py @@ -48,5 +48,6 @@ def testSaveConfigOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_scenario.py b/test/test_scenario.py index 4bd549c..5c32226 100644 --- a/test/test_scenario.py +++ b/test/test_scenario.py @@ -145,6 +145,23 @@ def make_instance(self, include_optional) -> Scenario: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), connections = [ cyperf.models.connection.Connection( client_endpoint = '', @@ -202,6 +219,7 @@ def make_instance(self, include_optional) -> Scenario: external_resource_url = '', index = 56, inherit_http_profile = True, + inherit_quic_profile = True, ip_preference = 'IPV4_ONLY', is_deprecated = True, iteration_count = 56, @@ -422,6 +440,23 @@ def make_instance(self, include_optional) -> Scenario: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), supports_client_http_profile = True, supports_http_profiles = True, supports_server_http_profile = True, @@ -447,5 +482,6 @@ def testScenario(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_secondary_objective.py b/test/test_secondary_objective.py index b085c58..871bee3 100644 --- a/test/test_secondary_objective.py +++ b/test/test_secondary_objective.py @@ -58,5 +58,6 @@ def testSecondaryObjective(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_segment_type.py b/test/test_segment_type.py index 5126fb8..6deee34 100644 --- a/test/test_segment_type.py +++ b/test/test_segment_type.py @@ -30,5 +30,6 @@ def testSegmentType(self): """Test SegmentType""" # inst = SegmentType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_selected_env.py b/test/test_selected_env.py index 19cf20f..bce8dce 100644 --- a/test/test_selected_env.py +++ b/test/test_selected_env.py @@ -60,5 +60,6 @@ def testSelectedEnv(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_session.py b/test/test_session.py index 8ab680f..ef1ddf5 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -157,5 +157,6 @@ def testSession(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_session_reuse_method_tls12.py b/test/test_session_reuse_method_tls12.py index ffcf13e..cba922c 100644 --- a/test/test_session_reuse_method_tls12.py +++ b/test/test_session_reuse_method_tls12.py @@ -30,5 +30,6 @@ def testSessionReuseMethodTLS12(self): """Test SessionReuseMethodTLS12""" # inst = SessionReuseMethodTLS12() + if __name__ == '__main__': unittest.main() diff --git a/test/test_session_reuse_method_tls13.py b/test/test_session_reuse_method_tls13.py index 925b372..da12401 100644 --- a/test/test_session_reuse_method_tls13.py +++ b/test/test_session_reuse_method_tls13.py @@ -30,5 +30,6 @@ def testSessionReuseMethodTLS13(self): """Test SessionReuseMethodTLS13""" # inst = SessionReuseMethodTLS13() + if __name__ == '__main__': unittest.main() diff --git a/test/test_sessions_api.py b/test/test_sessions_api.py index a806656..28b8619 100644 --- a/test/test_sessions_api.py +++ b/test/test_sessions_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_session_meta(self) -> None: """Test case for create_session_meta @@ -123,59 +124,14 @@ def test_patch_session_test(self) -> None: """ pass - def test_poll_config_add_applications(self) -> None: - """Test case for poll_config_add_applications - """ - pass - - def test_poll_session_config_granular_stats_default_dashboards(self) -> None: - """Test case for poll_session_config_granular_stats_default_dashboards - - """ - pass - - def test_poll_session_config_save(self) -> None: - """Test case for poll_session_config_save - - """ - pass - - def test_poll_session_load_config(self) -> None: - """Test case for poll_session_load_config - - """ - pass - def test_poll_session_prepare_test(self) -> None: - """Test case for poll_session_prepare_test - """ - pass - - def test_poll_session_test_end(self) -> None: - """Test case for poll_session_test_end - - """ - pass - - def test_poll_session_test_init(self) -> None: - """Test case for poll_session_test_init - """ - pass - def test_poll_session_touch(self) -> None: - """Test case for poll_session_touch - """ - pass - def test_poll_sessions_batch_delete(self) -> None: - """Test case for poll_sessions_batch_delete - """ - pass def test_start_config_add_applications(self) -> None: """Test case for start_config_add_applications @@ -255,6 +211,5 @@ def test_update_session_test(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_set_aggregation_mode_operation.py b/test/test_set_aggregation_mode_operation.py index 2cfc0af..5a26a7e 100644 --- a/test/test_set_aggregation_mode_operation.py +++ b/test/test_set_aggregation_mode_operation.py @@ -55,5 +55,6 @@ def testSetAggregationModeOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_set_app_operation.py b/test/test_set_app_operation.py index 2df4c77..eb8b9c8 100644 --- a/test/test_set_app_operation.py +++ b/test/test_set_app_operation.py @@ -52,5 +52,6 @@ def testSetAppOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_set_dpdk_mode_operation_input.py b/test/test_set_dpdk_mode_operation_input.py index 86a72fc..511a024 100644 --- a/test/test_set_dpdk_mode_operation_input.py +++ b/test/test_set_dpdk_mode_operation_input.py @@ -51,5 +51,6 @@ def testSetDpdkModeOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_set_link_state_operation.py b/test/test_set_link_state_operation.py index 899ea85..3be18a3 100644 --- a/test/test_set_link_state_operation.py +++ b/test/test_set_link_state_operation.py @@ -59,5 +59,6 @@ def testSetLinkStateOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_set_ntp_operation_input.py b/test/test_set_ntp_operation_input.py index ac6adea..f30d79f 100644 --- a/test/test_set_ntp_operation_input.py +++ b/test/test_set_ntp_operation_input.py @@ -53,5 +53,6 @@ def testSetNtpOperationInput(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_simulated_id_p.py b/test/test_simulated_id_p.py index e62e30d..2eee503 100644 --- a/test/test_simulated_id_p.py +++ b/test/test_simulated_id_p.py @@ -102,5 +102,6 @@ def testSimulatedIdP(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_snapshot.py b/test/test_snapshot.py index 0c67c07..9fff965 100644 --- a/test/test_snapshot.py +++ b/test/test_snapshot.py @@ -53,5 +53,6 @@ def testSnapshot(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_sort_body_field.py b/test/test_sort_body_field.py index 8d8d7b7..286e0d0 100644 --- a/test/test_sort_body_field.py +++ b/test/test_sort_body_field.py @@ -49,5 +49,6 @@ def testSortBodyField(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_specific_objective.py b/test/test_specific_objective.py index 2aabbd5..6e26e9e 100644 --- a/test/test_specific_objective.py +++ b/test/test_specific_objective.py @@ -69,5 +69,6 @@ def testSpecificObjective(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_start_agents_batch_delete_request_inner.py b/test/test_start_agents_batch_delete_request_inner.py index dd914f4..d634b29 100644 --- a/test/test_start_agents_batch_delete_request_inner.py +++ b/test/test_start_agents_batch_delete_request_inner.py @@ -48,5 +48,6 @@ def testStartAgentsBatchDeleteRequestInner(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_stateless_stream.py b/test/test_stateless_stream.py index 8ff35ba..a6f22ae 100644 --- a/test/test_stateless_stream.py +++ b/test/test_stateless_stream.py @@ -73,5 +73,6 @@ def testStatelessStream(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_static_arp_entry.py b/test/test_static_arp_entry.py index cf7456f..c7d3f71 100644 --- a/test/test_static_arp_entry.py +++ b/test/test_static_arp_entry.py @@ -56,5 +56,6 @@ def testStaticARPEntry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_statistics_api.py b/test/test_statistics_api.py index db67bac..7ffc06e 100644 --- a/test/test_statistics_api.py +++ b/test/test_statistics_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_stats_plugins(self) -> None: """Test case for create_stats_plugins @@ -57,11 +58,6 @@ def test_get_stats_plugins(self) -> None: """ pass - def test_poll_stats_plugins_ingest(self) -> None: - """Test case for poll_stats_plugins_ingest - - """ - pass def test_start_stats_plugins_ingest(self) -> None: """Test case for start_stats_plugins_ingest @@ -69,6 +65,5 @@ def test_start_stats_plugins_ingest(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_stats_result.py b/test/test_stats_result.py index dd36631..f1c2522 100644 --- a/test/test_stats_result.py +++ b/test/test_stats_result.py @@ -38,87 +38,19 @@ def make_instance(self, include_optional) -> StatsResult: return StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) ], - type = '', + name = '', field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], operator = '', query_param = '', ) ], @@ -146,5 +78,6 @@ def testStatsResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_steady_segment.py b/test/test_steady_segment.py index 9484c92..7dcbfbb 100644 --- a/test/test_steady_segment.py +++ b/test/test_steady_segment.py @@ -58,5 +58,6 @@ def testSteadySegment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_step_segment.py b/test/test_step_segment.py index 0d7b4a2..c7c6c6f 100644 --- a/test/test_step_segment.py +++ b/test/test_step_segment.py @@ -58,5 +58,6 @@ def testStepSegment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_stream_direction.py b/test/test_stream_direction.py index 912b0e7..1674185 100644 --- a/test/test_stream_direction.py +++ b/test/test_stream_direction.py @@ -30,5 +30,6 @@ def testStreamDirection(self): """Test StreamDirection""" # inst = StreamDirection() + if __name__ == '__main__': unittest.main() diff --git a/test/test_stream_payload_type.py b/test/test_stream_payload_type.py index b046e00..4393a67 100644 --- a/test/test_stream_payload_type.py +++ b/test/test_stream_payload_type.py @@ -30,5 +30,6 @@ def testStreamPayloadType(self): """Test StreamPayloadType""" # inst = StreamPayloadType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_stream_profile.py b/test/test_stream_profile.py index 34940ab..0036cd3 100644 --- a/test/test_stream_profile.py +++ b/test/test_stream_profile.py @@ -56,5 +56,6 @@ def testStreamProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_supported_group_tls13.py b/test/test_supported_group_tls13.py index 622a5e6..a67e43a 100644 --- a/test/test_supported_group_tls13.py +++ b/test/test_supported_group_tls13.py @@ -30,5 +30,6 @@ def testSupportedGroupTLS13(self): """Test SupportedGroupTLS13""" # inst = SupportedGroupTLS13() + if __name__ == '__main__': unittest.main() diff --git a/test/test_system_info.py b/test/test_system_info.py index c65a468..432c630 100644 --- a/test/test_system_info.py +++ b/test/test_system_info.py @@ -59,5 +59,6 @@ def testSystemInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tcp_profile.py b/test/test_tcp_profile.py index 24ecc87..fd8a9b7 100644 --- a/test/test_tcp_profile.py +++ b/test/test_tcp_profile.py @@ -72,5 +72,6 @@ def testTcpProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_test_info.py b/test/test_test_info.py index 8e2bc02..f4c4c2d 100644 --- a/test/test_test_info.py +++ b/test/test_test_info.py @@ -62,5 +62,6 @@ def testTestInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_test_operations_api.py b/test/test_test_operations_api.py index a3aa4af..3983674 100644 --- a/test/test_test_operations_api.py +++ b/test/test_test_operations_api.py @@ -27,35 +27,11 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_poll_test_calibrate_start(self) -> None: - """Test case for poll_test_calibrate_start + - """ - pass - - def test_poll_test_calibrate_stop(self) -> None: - """Test case for poll_test_calibrate_stop - - """ - pass - - def test_poll_test_run_abort(self) -> None: - """Test case for poll_test_run_abort - - """ - pass - def test_poll_test_run_start(self) -> None: - """Test case for poll_test_run_start - - """ - pass - def test_poll_test_run_stop(self) -> None: - """Test case for poll_test_run_stop - """ - pass def test_start_test_calibrate_start(self) -> None: """Test case for start_test_calibrate_start @@ -87,6 +63,5 @@ def test_start_test_run_stop(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_test_results_api.py b/test/test_test_results_api.py index 1ddff41..6520aaa 100644 --- a/test/test_test_results_api.py +++ b/test/test_test_results_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_delete_result(self) -> None: """Test case for delete_result @@ -87,29 +88,9 @@ def test_get_results_tags(self) -> None: """ pass - def test_poll_result_generate_all(self) -> None: - """Test case for poll_result_generate_all - """ - pass - def test_poll_result_generate_results(self) -> None: - """Test case for poll_result_generate_results - """ - pass - - def test_poll_result_load(self) -> None: - """Test case for poll_result_load - - """ - pass - - def test_poll_results_batch_delete(self) -> None: - """Test case for poll_results_batch_delete - - """ - pass def test_start_result_generate_all(self) -> None: """Test case for start_result_generate_all @@ -135,6 +116,5 @@ def test_start_results_batch_delete(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_test_state_changed_operation.py b/test/test_test_state_changed_operation.py index 6c4bd99..1b704a4 100644 --- a/test/test_test_state_changed_operation.py +++ b/test/test_test_state_changed_operation.py @@ -55,5 +55,6 @@ def testTestStateChangedOperation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_time_value.py b/test/test_time_value.py index ef84f2f..7722e44 100644 --- a/test/test_time_value.py +++ b/test/test_time_value.py @@ -48,5 +48,6 @@ def testTimeValue(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_timeline_segment.py b/test/test_timeline_segment.py index eec679f..57e53ce 100644 --- a/test/test_timeline_segment.py +++ b/test/test_timeline_segment.py @@ -76,5 +76,6 @@ def testTimelineSegment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_timeline_segment_base.py b/test/test_timeline_segment_base.py index 1987aa6..fe3ec69 100644 --- a/test/test_timeline_segment_base.py +++ b/test/test_timeline_segment_base.py @@ -54,5 +54,6 @@ def testTimelineSegmentBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_timeline_segment_union.py b/test/test_timeline_segment_union.py index 91792b1..451bd08 100644 --- a/test/test_timeline_segment_union.py +++ b/test/test_timeline_segment_union.py @@ -62,5 +62,6 @@ def testTimelineSegmentUnion(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_timers.py b/test/test_timers.py index 7de77c3..2ac147f 100644 --- a/test/test_timers.py +++ b/test/test_timers.py @@ -53,5 +53,6 @@ def testTimers(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tls_profile.py b/test/test_tls_profile.py index a84939e..e9b4c48 100644 --- a/test/test_tls_profile.py +++ b/test/test_tls_profile.py @@ -410,5 +410,6 @@ def testTLSProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_track.py b/test/test_track.py index 41eee21..b440b47 100644 --- a/test/test_track.py +++ b/test/test_track.py @@ -73,5 +73,6 @@ def testTrack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_track_type.py b/test/test_track_type.py index b61cd48..7f080ac 100644 --- a/test/test_track_type.py +++ b/test/test_track_type.py @@ -30,5 +30,6 @@ def testTrackType(self): """Test TrackType""" # inst = TrackType() + if __name__ == '__main__': unittest.main() diff --git a/test/test_traffic_agent_info.py b/test/test_traffic_agent_info.py index 9b4a058..d3e9933 100644 --- a/test/test_traffic_agent_info.py +++ b/test/test_traffic_agent_info.py @@ -49,5 +49,6 @@ def testTrafficAgentInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_traffic_profile_base.py b/test/test_traffic_profile_base.py index e11605e..40e3173 100644 --- a/test/test_traffic_profile_base.py +++ b/test/test_traffic_profile_base.py @@ -49,6 +49,7 @@ def make_instance(self, include_optional) -> TrafficProfileBase: rel = '', type = '', ) ], ), + use_all_source_ips_per_user = True, id = '', links = [ cyperf.models.api_link.APILink( @@ -71,5 +72,6 @@ def testTrafficProfileBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_traffic_settings.py b/test/test_traffic_settings.py index db5e37a..a3a70ed 100644 --- a/test/test_traffic_settings.py +++ b/test/test_traffic_settings.py @@ -58,5 +58,6 @@ def testTrafficSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py index c9f7a01..fe38473 100644 --- a/test/test_transport_profile.py +++ b/test/test_transport_profile.py @@ -143,6 +143,23 @@ def make_instance(self, include_optional) -> TransportProfile: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), client_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -349,6 +366,23 @@ def make_instance(self, include_optional) -> TransportProfile: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), server_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -475,5 +509,6 @@ def testTransportProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py index c7807db..c98e998 100644 --- a/test/test_transport_profile_base.py +++ b/test/test_transport_profile_base.py @@ -143,6 +143,23 @@ def make_instance(self, include_optional) -> TransportProfileBase: ], use_application_server_headers = True, links = , ), + client_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), client_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -349,6 +366,23 @@ def make_instance(self, include_optional) -> TransportProfileBase: ], use_application_server_headers = True, links = , ), + server_quic_profile = cyperf.models.quic_profile.QUICProfile( + client_tls_profile = null, + min_rto = 56, + name = '', + quic_version = null, + rx_buffer = 56, + server_tls_profile = null, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), server_tls_profile = cyperf.models.tls_profile.TLSProfile( certificate_file = null, cipher = null, @@ -473,5 +507,6 @@ def testTransportProfileBase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tunnel_range.py b/test/test_tunnel_range.py index 14255fe..fadb734 100644 --- a/test/test_tunnel_range.py +++ b/test/test_tunnel_range.py @@ -86,5 +86,6 @@ def testTunnelRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tunnel_settings.py b/test/test_tunnel_settings.py index e23b58c..587d9b4 100644 --- a/test/test_tunnel_settings.py +++ b/test/test_tunnel_settings.py @@ -101,5 +101,6 @@ def testTunnelSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_tunnel_stack.py b/test/test_tunnel_stack.py index edb794e..fc4c8ba 100644 --- a/test/test_tunnel_stack.py +++ b/test/test_tunnel_stack.py @@ -118,5 +118,6 @@ def testTunnelStack(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_array_v2_metadata.py b/test/test_type_array_v2_metadata.py index 77c42f0..06b7249 100644 --- a/test/test_type_array_v2_metadata.py +++ b/test/test_type_array_v2_metadata.py @@ -52,5 +52,6 @@ def testTypeArrayV2Metadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_info_metadata.py b/test/test_type_info_metadata.py index cab6652..16c248c 100644 --- a/test/test_type_info_metadata.py +++ b/test/test_type_info_metadata.py @@ -63,5 +63,6 @@ def testTypeInfoMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_int_metadata.py b/test/test_type_int_metadata.py index 8f178a8..2b800c6 100644 --- a/test/test_type_int_metadata.py +++ b/test/test_type_int_metadata.py @@ -49,5 +49,6 @@ def testTypeIntMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_media_metadata.py b/test/test_type_media_metadata.py index 4a52ef3..d9cbce2 100644 --- a/test/test_type_media_metadata.py +++ b/test/test_type_media_metadata.py @@ -49,5 +49,6 @@ def testTypeMediaMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_type_string_metadata.py b/test/test_type_string_metadata.py index 91c9f9c..91468e1 100644 --- a/test/test_type_string_metadata.py +++ b/test/test_type_string_metadata.py @@ -50,5 +50,6 @@ def testTypeStringMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_udp_profile.py b/test/test_udp_profile.py index 2be5772..a68e473 100644 --- a/test/test_udp_profile.py +++ b/test/test_udp_profile.py @@ -54,5 +54,6 @@ def testUdpProfile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_update_network_mapping.py b/test/test_update_network_mapping.py index 92abc06..ca2dc09 100644 --- a/test/test_update_network_mapping.py +++ b/test/test_update_network_mapping.py @@ -57,5 +57,6 @@ def testUpdateNetworkMapping(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_utils_api.py b/test/test_utils_api.py index 6e77767..1e32d81 100644 --- a/test/test_utils_api.py +++ b/test/test_utils_api.py @@ -27,6 +27,7 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_check_eulas(self) -> None: """Test case for check_eulas @@ -102,47 +103,12 @@ def test_list_eulas(self) -> None: """ pass - def test_poll_cert_manager_generate(self) -> None: - """Test case for poll_cert_manager_generate - """ - pass - - def test_poll_cert_manager_upload(self) -> None: - """Test case for poll_cert_manager_upload - - """ - pass - - def test_poll_disk_usage_cleanup_diagnostics(self) -> None: - """Test case for poll_disk_usage_cleanup_diagnostics - - """ - pass - - def test_poll_disk_usage_cleanup_logs(self) -> None: - """Test case for poll_disk_usage_cleanup_logs - """ - pass - def test_poll_disk_usage_cleanup_migration(self) -> None: - """Test case for poll_disk_usage_cleanup_migration - """ - pass - def test_poll_disk_usage_cleanup_notifications(self) -> None: - """Test case for poll_disk_usage_cleanup_notifications - """ - pass - - def test_poll_disk_usage_cleanup_results(self) -> None: - """Test case for poll_disk_usage_cleanup_results - - """ - pass def test_post_eula(self) -> None: """Test case for post_eula @@ -199,6 +165,5 @@ def test_update_log_config(self) -> None: """ pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_validation_message.py b/test/test_validation_message.py index b94cce6..ed38104 100644 --- a/test/test_validation_message.py +++ b/test/test_validation_message.py @@ -51,5 +51,6 @@ def testValidationMessage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_version.py b/test/test_version.py index 31568bf..e2b6089 100644 --- a/test/test_version.py +++ b/test/test_version.py @@ -49,5 +49,6 @@ def testVersion(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() diff --git a/test/test_vlan_range.py b/test/test_vlan_range.py index 16c3d8f..ddc7df5 100644 --- a/test/test_vlan_range.py +++ b/test/test_vlan_range.py @@ -77,5 +77,6 @@ def testVLANRange(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) + if __name__ == '__main__': unittest.main() From 3959b1dffbe86d76b86ac636992fe458ff49b8b3 Mon Sep 17 00:00:00 2001 From: AndreiTeodor Boieriu Date: Mon, 1 Sep 2025 03:10:13 -0600 Subject: [PATCH 12/53] Pull request #36: ISGAPPSEC2-34390 Regenerate wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-34390-add-tag-support-to-ports to main Squashed commit of the following: commit 2e53af0c028d95ef69ff41e18cbb4cdb0984c3a9 Author: AndreiTeodor Boieriu Date: Wed Aug 27 18:52:33 2025 +0300 Regenerate wrapper --- README.md | 2 + cyperf/__init__.py | 1 + cyperf/api/agents_api.py | 276 ++++++++++++++++++ cyperf/dynamic_models/__init__.py | 1 + cyperf/models/__init__.py | 1 + cyperf/models/port.py | 4 +- cyperf/models/update_port_tags_operation.py | 105 +++++++ cyperf/utils.py | 2 +- docs/AgentsApi.md | 79 +++++ docs/Port.md | 1 + docs/UpdatePortTagsOperation.md | 31 ++ test/test_agents_api.py | 7 + test/test_compute_node.py | 3 + test/test_controller.py | 3 + test/test_get_controllers200_response.py | 3 + ...test_get_controllers200_response_one_of.py | 3 + test/test_port.py | 3 + test/test_update_port_tags_operation.py | 69 +++++ 18 files changed, 592 insertions(+), 2 deletions(-) create mode 100644 cyperf/models/update_port_tags_operation.py create mode 100644 docs/UpdatePortTagsOperation.md create mode 100644 test/test_update_port_tags_operation.py diff --git a/README.md b/README.md index 00b16d6..662a171 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ Class | Method | HTTP request | Description *AgentsApi* | [**start_controllers_set_app**](docs/AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | *AgentsApi* | [**start_controllers_set_node_aggregation**](docs/AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | *AgentsApi* | [**start_controllers_set_port_link_state**](docs/AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | +*AgentsApi* | [**start_controllers_update_port_tags**](docs/AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | *ApplicationResourcesApi* | [**delete_resources_capture**](docs/ApplicationResourcesApi.md#delete_resources_capture) | **DELETE** /api/v2/resources/captures/{captureId} | *ApplicationResourcesApi* | [**delete_resources_certificate**](docs/ApplicationResourcesApi.md#delete_resources_certificate) | **DELETE** /api/v2/resources/certificates/{certificateId} | *ApplicationResourcesApi* | [**delete_resources_custom_fuzzing_script**](docs/ApplicationResourcesApi.md#delete_resources_custom_fuzzing_script) | **DELETE** /api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId} | @@ -740,6 +741,7 @@ Class | Method | HTTP request | Description - [TypeStringMetadata](docs/TypeStringMetadata.md) - [UdpProfile](docs/UdpProfile.md) - [UpdateNetworkMapping](docs/UpdateNetworkMapping.md) + - [UpdatePortTagsOperation](docs/UpdatePortTagsOperation.md) - [VLANRange](docs/VLANRange.md) - [ValidationMessage](docs/ValidationMessage.md) - [Version](docs/Version.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 94c7838..2082c0a 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -418,6 +418,7 @@ from cyperf.models.type_string_metadata import TypeStringMetadata from cyperf.models.udp_profile import UdpProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index b5c3097..43ce379 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -41,6 +41,7 @@ from cyperf.models.set_link_state_operation import SetLinkStateOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf import DynamicModel from cyperf.api_client import ApiClient, RequestSerialized @@ -3296,6 +3297,16 @@ def _patch_agent_serialize( + + + + + + + + + + @@ -6988,3 +6999,268 @@ def _start_controllers_set_port_link_state_serialize( ) + + + @validate_call + def start_controllers_update_port_tags( + self, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_controllers_update_port_tags + + Update port tags. + + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_update_port_tags_with_http_info( + self, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_controllers_update_port_tags + + Update port tags. + + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_update_port_tags_without_preload_content( + self, + update_port_tags_operation: Optional[UpdatePortTagsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_controllers_update_port_tags + + Update port tags. + + :param update_port_tags_operation: + :type update_port_tags_operation: UpdatePortTagsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_update_port_tags_serialize( + update_port_tags_operation=update_port_tags_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_controllers_update_port_tags_serialize( + self, + update_port_tags_operation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_port_tags_operation is not None: + _body_params = update_port_tags_operation + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/controllers/operations/update-port-tags', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 3fdf669..91fe831 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -384,6 +384,7 @@ TypeStringMetadata = DynamicModel('TypeStringMetadata', (), {} ) UdpProfile = DynamicModel('UdpProfile', (), {} ) UpdateNetworkMapping = DynamicModel('UpdateNetworkMapping', (), {} ) +UpdatePortTagsOperation = DynamicModel('UpdatePortTagsOperation', (), {} ) VLANRange = DynamicModel('VLANRange', (), {} ) ValidationMessage = DynamicModel('ValidationMessage', (), {} ) Version = DynamicModel('Version', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index d6851fc..24eccd3 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -384,6 +384,7 @@ class LinkNameException(Exception): from cyperf.models.type_string_metadata import TypeStringMetadata from cyperf.models.udp_profile import UdpProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version diff --git a/cyperf/models/port.py b/cyperf/models/port.py index a1e9c61..0312f09 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -35,8 +35,9 @@ class Port(BaseModel): reserved_by: Optional[StrictStr] = Field(default=None, description="The owner of the port", alias="reservedBy") speed: Optional[StrictStr] = Field(default=None, description="The port's speed") status: Optional[StrictStr] = Field(default=None, description="The current status of the port: ready or not ready") + tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags") traffic_status: Optional[StrictStr] = Field(default=None, description="The traffic status of the port", alias="trafficStatus") - __properties: ClassVar[List[str]] = ["disabled", "id", "link", "name", "reservedBy", "speed", "status", "trafficStatus"] + __properties: ClassVar[List[str]] = ["disabled", "id", "link", "name", "reservedBy", "speed", "status", "tags", "trafficStatus"] model_config = ConfigDict( populate_by_name=True, @@ -98,6 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reservedBy": obj.get("reservedBy"), "speed": obj.get("speed"), "status": obj.get("status"), + "tags": obj.get("tags"), "trafficStatus": obj.get("trafficStatus") , "links": obj.get("links") diff --git a/cyperf/models/update_port_tags_operation.py b/cyperf/models/update_port_tags_operation.py new file mode 100644 index 0000000..9970794 --- /dev/null +++ b/cyperf/models/update_port_tags_operation.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.ports_by_controller import PortsByController +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class UpdatePortTagsOperation(BaseModel): + """ + UpdatePortTagsOperation + """ # noqa: E501 + controllers: Optional[List[PortsByController]] = Field(default=None, description="The controllers that the ports are part of.") + tags_to_add: Optional[List[StrictStr]] = Field(default=None, description="The list of tags to add to the port selection", alias="tagsToAdd") + tags_to_remove: Optional[List[StrictStr]] = Field(default=None, description="The list of tags to remove from the port selection", alias="tagsToRemove") + __properties: ClassVar[List[str]] = ["controllers", "tagsToAdd", "tagsToRemove"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdatePortTagsOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdatePortTagsOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, + "tagsToAdd": obj.get("tagsToAdd"), + "tagsToRemove": obj.get("tagsToRemove") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/utils.py b/cyperf/utils.py index c4b8c1c..e21e874 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -175,7 +175,7 @@ def assign_agents(self, session, agent_map=None, augment=False, auto_assign=Fals else: ip_net.agent_assignments.by_id = agent_details ip_net.update() - + def wait_until_agents_released(self, agents): timeout = 180 poll_interval = 3 diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index dfe18d8..4fb119c 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -29,6 +29,7 @@ Method | HTTP request | Description [**start_controllers_set_app**](AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | [**start_controllers_set_node_aggregation**](AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | [**start_controllers_set_port_link_state**](AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | +[**start_controllers_update_port_tags**](AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | # **delete_agent** @@ -2002,3 +2003,81 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_controllers_update_port_tags** +> AsyncContext start_controllers_update_port_tags(update_port_tags_operation=update_port_tags_operation) + + + +Update port tags. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + update_port_tags_operation = cyperf.UpdatePortTagsOperation() # UpdatePortTagsOperation | (optional) + + try: + api_response = api_instance.start_controllers_update_port_tags(update_port_tags_operation=update_port_tags_operation) + print("The response of AgentsApi->start_controllers_update_port_tags:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->start_controllers_update_port_tags: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_port_tags_operation** | [**UpdatePortTagsOperation**](UpdatePortTagsOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Port.md b/docs/Port.md index bb8a495..9fa8994 100644 --- a/docs/Port.md +++ b/docs/Port.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **reserved_by** | **str** | The owner of the port | [optional] **speed** | **str** | The port's speed | [optional] **status** | **str** | The current status of the port: ready or not ready | [optional] +**tags** | **List[str]** | A list of tags | [optional] **traffic_status** | **str** | The traffic status of the port | [optional] ## Example diff --git a/docs/UpdatePortTagsOperation.md b/docs/UpdatePortTagsOperation.md new file mode 100644 index 0000000..ecdf4a6 --- /dev/null +++ b/docs/UpdatePortTagsOperation.md @@ -0,0 +1,31 @@ +# UpdatePortTagsOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**List[PortsByController]**](PortsByController.md) | The controllers that the ports are part of. | [optional] +**tags_to_add** | **List[str]** | The list of tags to add to the port selection | [optional] +**tags_to_remove** | **List[str]** | The list of tags to remove from the port selection | [optional] + +## Example + +```python +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdatePortTagsOperation from a JSON string +update_port_tags_operation_instance = UpdatePortTagsOperation.from_json(json) +# print the JSON string representation of the object +print(UpdatePortTagsOperation.to_json()) + +# convert the object into a dict +update_port_tags_operation_dict = update_port_tags_operation_instance.to_dict() +# create an instance of UpdatePortTagsOperation from a dict +update_port_tags_operation_from_dict = UpdatePortTagsOperation.from_dict(update_port_tags_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/test/test_agents_api.py b/test/test_agents_api.py index 702c73f..a4ace3f 100644 --- a/test/test_agents_api.py +++ b/test/test_agents_api.py @@ -108,6 +108,7 @@ def test_patch_agent(self) -> None: + def test_start_agents_batch_delete(self) -> None: """Test case for start_agents_batch_delete @@ -192,5 +193,11 @@ def test_start_controllers_set_port_link_state(self) -> None: """ pass + def test_start_controllers_update_port_tags(self) -> None: + """Test case for start_controllers_update_port_tags + + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_compute_node.py b/test/test_compute_node.py index 6b25d28..afbd44c 100644 --- a/test/test_compute_node.py +++ b/test/test_compute_node.py @@ -67,6 +67,9 @@ def make_instance(self, include_optional) -> ComputeNode: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '', ) ], serial = '', diff --git a/test/test_controller.py b/test/test_controller.py index 12c1ab2..d986e8b 100644 --- a/test/test_controller.py +++ b/test/test_controller.py @@ -69,6 +69,9 @@ def make_instance(self, include_optional) -> Controller: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '', ) ], serial = '', diff --git a/test/test_get_controllers200_response.py b/test/test_get_controllers200_response.py index f5e63b8..8da8882 100644 --- a/test/test_get_controllers200_response.py +++ b/test/test_get_controllers200_response.py @@ -71,6 +71,9 @@ def make_instance(self, include_optional) -> GetControllers200Response: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '', ) ], serial = '', diff --git a/test/test_get_controllers200_response_one_of.py b/test/test_get_controllers200_response_one_of.py index d0f6a78..6d28d36 100644 --- a/test/test_get_controllers200_response_one_of.py +++ b/test/test_get_controllers200_response_one_of.py @@ -71,6 +71,9 @@ def make_instance(self, include_optional) -> GetControllers200ResponseOneOf: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '', ) ], serial = '', diff --git a/test/test_port.py b/test/test_port.py index ff52958..9721884 100644 --- a/test/test_port.py +++ b/test/test_port.py @@ -43,6 +43,9 @@ def make_instance(self, include_optional) -> Port: reserved_by = '', speed = '', status = '', + tags = [ + '' + ], traffic_status = '' ) else: diff --git a/test/test_update_port_tags_operation.py b/test/test_update_port_tags_operation.py new file mode 100644 index 0000000..54d34b9 --- /dev/null +++ b/test/test_update_port_tags_operation.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation + +class TestUpdatePortTagsOperation(unittest.TestCase): + """UpdatePortTagsOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdatePortTagsOperation: + """Test UpdatePortTagsOperation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdatePortTagsOperation` + """ + model = UpdatePortTagsOperation() + if include_optional: + return UpdatePortTagsOperation( + controllers = [ + cyperf.models.ports_by_controller.PortsByController( + compute_nodes = [ + cyperf.models.ports_by_node.PortsByNode( + compute_node_id = '', + ports = [ + '' + ], ) + ], + controller_id = '', ) + ], + tags_to_add = [ + '' + ], + tags_to_remove = [ + '' + ] + ) + else: + return UpdatePortTagsOperation( + ) + """ + + def testUpdatePortTagsOperation(self): + """Test UpdatePortTagsOperation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() From ba9806297509810b13cb5fd6077e60d5b902e959 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 17 Sep 2025 02:34:07 -0600 Subject: [PATCH 13/53] Pull request #37: ISGAPPSEC2-35552 API Wrapper issue with EthRange support Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-35552-api-wrapper-issue-with-ethrange-support to main Squashed commit of the following: commit b5451bc6ac103683c26b4564e1ec8ad3f9217002 Author: iustmitu Date: Mon Sep 15 13:06:26 2025 +0300 renaming Parameter commit 7673b1a7637b7dce33994c91ef8d8811e665e671 Author: iustmitu Date: Mon Sep 8 12:21:03 2025 +0300 fix EthRange and EmulatedRouter classes --- README.md | 1 + cyperf/__init__.py | 1 + cyperf/dynamic_models/__init__.py | 1 + cyperf/models/__init__.py | 1 + cyperf/models/action_input.py | 6 +- cyperf/models/action_metadata.py | 6 +- cyperf/models/add_input.py | 6 +- cyperf/models/appsec_app_metadata.py | 6 +- cyperf/models/create_app_operation.py | 6 +- cyperf/models/edit_action_input.py | 6 +- cyperf/models/edit_app_operation.py | 6 +- cyperf/models/ip_network.py | 16 +- cyperf/models/parameter.py | 40 +++-- cyperf/models/parameter_meta.py | 103 ++++++++++++ docs/ActionInput.md | 2 +- docs/ActionMetadata.md | 2 +- docs/AddInput.md | 2 +- docs/AppsecAppMetadata.md | 2 +- docs/CreateAppOperation.md | 2 +- docs/EditActionInput.md | 2 +- docs/EditAppOperation.md | 2 +- docs/IPNetwork.md | 4 +- docs/Parameter.md | 11 +- docs/ParameterMeta.md | 30 ++++ test/test_action_input.py | 7 +- test/test_action_metadata.py | 7 +- test/test_add_input.py | 7 +- test/test_application_type.py | 152 ++++++++++++++---- test/test_appsec_app.py | 14 +- test/test_appsec_app_metadata.py | 14 +- test/test_auth_profile.py | 88 ++++++++-- test/test_command.py | 88 ++++++++-- test/test_create_app_operation.py | 14 +- test/test_edit_action_input.py | 7 +- test/test_edit_app_operation.py | 21 +-- ...resources_application_types200_response.py | 50 +++--- ...es_application_types200_response_one_of.py | 50 +++--- test/test_get_resources_apps200_response.py | 14 +- ...t_get_resources_apps200_response_one_of.py | 14 +- ...get_resources_auth_profiles200_response.py | 23 +-- ...ources_auth_profiles200_response_one_of.py | 23 +-- test/test_get_result_stats200_response.py | 88 ++++++++-- ...est_get_result_stats200_response_one_of.py | 88 ++++++++-- test/test_ip_network.py | 44 ++++- test/test_parameter.py | 88 ++++++++-- test/test_parameter_meta.py | 64 ++++++++ test/test_stats_result.py | 88 ++++++++-- 47 files changed, 1026 insertions(+), 291 deletions(-) create mode 100644 cyperf/models/parameter_meta.py create mode 100644 docs/ParameterMeta.md create mode 100644 test/test_parameter_meta.py diff --git a/README.md b/README.md index 662a171..9e73bd0 100644 --- a/README.md +++ b/README.md @@ -649,6 +649,7 @@ Class | Method | HTTP request | Description - [ParamType](docs/ParamType.md) - [Parameter](docs/Parameter.md) - [ParameterMatch](docs/ParameterMatch.md) + - [ParameterMeta](docs/ParameterMeta.md) - [ParameterMetadata](docs/ParameterMetadata.md) - [Params](docs/Params.md) - [ParamsEnum](docs/ParamsEnum.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 2082c0a..f7ad52c 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -326,6 +326,7 @@ from cyperf.models.param_type import ParamType from cyperf.models.parameter import Parameter from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.parameter_metadata import ParameterMetadata from cyperf.models.params import Params from cyperf.models.params_enum import ParamsEnum diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 91fe831..f37c97f 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -292,6 +292,7 @@ ParamType = DynamicModel('ParamType', (), {} ) Parameter = DynamicModel('Parameter', (), {} ) ParameterMatch = DynamicModel('ParameterMatch', (), {} ) +ParameterMeta = DynamicModel('ParameterMeta', (), {} ) ParameterMetadata = DynamicModel('ParameterMetadata', (), {} ) Params = DynamicModel('Params', (), {} ) ParamsEnum = DynamicModel('ParamsEnum', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 24eccd3..8524eef 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -292,6 +292,7 @@ class LinkNameException(Exception): from cyperf.models.param_type import ParamType from cyperf.models.parameter import Parameter from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.parameter_metadata import ParameterMetadata from cyperf.models.params import Params from cyperf.models.params_enum import ParamsEnum diff --git a/cyperf/models/action_input.py b/cyperf/models/action_input.py index 70c9016..176e258 100644 --- a/cyperf/models/action_input.py +++ b/cyperf/models/action_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -32,7 +32,7 @@ class ActionInput(BaseModel): """ # noqa: E501 captures: Optional[List[CaptureInput]] = Field(default=None, alias="Captures") name: Optional[StrictStr] = Field(default=None, alias="Name") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["Captures", "Name", "Parameters"] model_config = ConfigDict( @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/action_metadata.py b/cyperf/models/action_metadata.py index ea4cb22..78dab27 100644 --- a/cyperf/models/action_metadata.py +++ b/cyperf/models/action_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow import AppFlow -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -34,7 +34,7 @@ class ActionMetadata(BaseModel): flows: Optional[List[AppFlow]] = Field(default=None, alias="Flows") index: Optional[StrictInt] = Field(default=None, alias="Index") name: Optional[StrictStr] = Field(default=None, alias="Name") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["FlowIndex", "Flows", "Index", "Name", "Parameters"] model_config = ConfigDict( @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Flows": [AppFlow.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None, "Index": obj.get("Index"), "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/add_input.py b/cyperf/models/add_input.py index d70090e..63473ba 100644 --- a/cyperf/models/add_input.py +++ b/cyperf/models/add_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -35,7 +35,7 @@ class AddInput(BaseModel): captures: Optional[List[CaptureInput]] = Field(default=None, alias="Captures") exchange_index_insert_at: Optional[StrictInt] = Field(default=None, alias="ExchangeIndexInsertAt") flow_index_insert_at: Optional[StrictInt] = Field(default=None, alias="FlowIndexInsertAt") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") type: Optional[StrictStr] = Field(default=None, alias="Type") __properties: ClassVar[List[str]] = ["ActionIndex", "ActionName", "Captures", "ExchangeIndexInsertAt", "FlowIndexInsertAt", "Parameters", "Type"] @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, "ExchangeIndexInsertAt": obj.get("ExchangeIndexInsertAt"), "FlowIndexInsertAt": obj.get("FlowIndexInsertAt"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, "Type": obj.get("Type") , "links": obj.get("links") diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index ac589a0..d48b9b2 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_metadata import ActionMetadata -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -31,7 +31,7 @@ class AppsecAppMetadata(BaseModel): AppsecAppMetadata """ # noqa: E501 actions_metadata: Optional[List[ActionMetadata]] = Field(default=None, alias="ActionsMetadata") - app_parameters: Optional[List[Parameter]] = Field(default=None, alias="AppParameters") + app_parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="AppParameters") __properties: ClassVar[List[str]] = ["ActionsMetadata", "AppParameters"] model_config = ConfigDict( @@ -102,7 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionsMetadata": [ActionMetadata.from_dict(_item) for _item in obj["ActionsMetadata"]] if obj.get("ActionsMetadata") is not None else None, - "AppParameters": [Parameter.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None + "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index b9d51a4..0336667 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_input import ActionInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -34,7 +34,7 @@ class CreateAppOperation(BaseModel): app_name: Optional[StrictStr] = Field(default=None, alias="AppName") app_type: Optional[StrictStr] = Field(default=None, alias="AppType") description: Optional[StrictStr] = Field(default=None, alias="Description") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["Actions", "AppName", "AppType", "Description", "Parameters"] model_config = ConfigDict( @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "AppName": obj.get("AppName"), "AppType": obj.get("AppType"), "Description": obj.get("Description"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/edit_action_input.py b/cyperf/models/edit_action_input.py index 2366de1..ce06678 100644 --- a/cyperf/models/edit_action_input.py +++ b/cyperf/models/edit_action_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class EditActionInput(BaseModel): EditActionInput """ # noqa: E501 action_index: Optional[StrictInt] = Field(default=None, alias="ActionIndex") - parameters: Optional[List[Parameter]] = Field(default=None, alias="Parameters") + parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="Parameters") __properties: ClassVar[List[str]] = ["ActionIndex", "Parameters"] model_config = ConfigDict( @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionIndex": obj.get("ActionIndex"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 9d73af5..6609901 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -23,7 +23,7 @@ from cyperf.models.add_input import AddInput from cyperf.models.delete_input import DeleteInput from cyperf.models.edit_action_input import EditActionInput -from cyperf.models.parameter import Parameter +from cyperf.models.parameter_meta import ParameterMeta from cyperf.models.rename_input import RenameInput from cyperf.models.reorder_action_input import ReorderActionInput from cyperf.models.reorder_exchanges_input import ReorderExchangesInput @@ -39,7 +39,7 @@ class EditAppOperation(BaseModel): app_description: Optional[StrictStr] = Field(default=None, alias="AppDescription") app_id: Optional[StrictStr] = Field(default=None, alias="AppId") app_name: Optional[StrictStr] = Field(default=None, alias="AppName") - app_parameters: Optional[List[Parameter]] = Field(default=None, alias="AppParameters") + app_parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="AppParameters") delete_inputs: Optional[List[DeleteInput]] = Field(default=None, alias="DeleteInputs") edit_action_inputs: Optional[List[EditActionInput]] = Field(default=None, alias="EditActionInputs") rename_inputs: Optional[List[RenameInput]] = Field(default=None, alias="RenameInputs") @@ -153,7 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "AppDescription": obj.get("AppDescription"), "AppId": obj.get("AppId"), "AppName": obj.get("AppName"), - "AppParameters": [Parameter.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, + "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, "DeleteInputs": [DeleteInput.from_dict(_item) for _item in obj["DeleteInputs"]] if obj.get("DeleteInputs") is not None else None, "EditActionInputs": [EditActionInput.from_dict(_item) for _item in obj["EditActionInputs"]] if obj.get("EditActionInputs") is not None else None, "RenameInputs": [RenameInput.from_dict(_item) for _item in obj["RenameInputs"]] if obj.get("RenameInputs") is not None else None, diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 6c0865e..ada8ae9 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -25,6 +25,8 @@ from cyperf.models.api_link import APILink from cyperf.models.dns_resolver import DNSResolver from cyperf.models.dns_server import DNSServer +from cyperf.models.emulated_router import EmulatedRouter +from cyperf.models.eth_range import EthRange from cyperf.models.ip_range import IPRange from cyperf.models.ip_sec_stack import IPSecStack from cyperf.models.mac_dtls_stack import MacDtlsStack @@ -43,8 +45,8 @@ class IPNetwork(BaseModel): dns_resolver: Optional[DNSResolver] = Field(default=None, alias="DNSResolver") dns_server: Optional[DNSServer] = Field(default=None, description="The DNS Server configuration for Network Segment", alias="DNSServer") dut_connections: Optional[List[StrictStr]] = Field(default=None, description="The connected DUT network segments.", alias="DUTConnections") - emulated_router: Optional[Dict[str, Any]] = Field(default=None, alias="EmulatedRouter") - eth_range: Optional[Dict[str, Any]] = Field(default=None, alias="EthRange") + emulated_router: Optional[EmulatedRouter] = Field(default=None, alias="EmulatedRouter") + eth_range: Optional[EthRange] = Field(default=None, alias="EthRange") ip_ranges: Optional[List[IPRange]] = Field(default=None, alias="IPRanges") ip_sec_stacks: Optional[List[IPSecStack]] = Field(default=None, alias="IPSecStacks") mac_dtls_stacks: Optional[List[MacDtlsStack]] = Field(default=None, alias="MacDtlsStacks") @@ -107,6 +109,12 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of dns_server if self.dns_server: _dict['DNSServer'] = self.dns_server.to_dict() + # override the default output from pydantic by calling `to_dict()` of emulated_router + if self.emulated_router: + _dict['EmulatedRouter'] = self.emulated_router.to_dict() + # override the default output from pydantic by calling `to_dict()` of eth_range + if self.eth_range: + _dict['EthRange'] = self.eth_range.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in ip_ranges (list) _items = [] if self.ip_ranges: @@ -165,8 +173,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DNSResolver": DNSResolver.from_dict(obj["DNSResolver"]) if obj.get("DNSResolver") is not None else None, "DNSServer": DNSServer.from_dict(obj["DNSServer"]) if obj.get("DNSServer") is not None else None, "DUTConnections": obj.get("DUTConnections"), - "EmulatedRouter": obj.get("EmulatedRouter"), - "EthRange": obj.get("EthRange"), + "EmulatedRouter": EmulatedRouter.from_dict(obj["EmulatedRouter"]) if obj.get("EmulatedRouter") is not None else None, + "EthRange": EthRange.from_dict(obj["EthRange"]) if obj.get("EthRange") is not None else None, "IPRanges": [IPRange.from_dict(_item) for _item in obj["IPRanges"]] if obj.get("IPRanges") is not None else None, "IPSecStacks": [IPSecStack.from_dict(_item) for _item in obj["IPSecStacks"]] if obj.get("IPSecStacks") is not None else None, "MacDtlsStacks": [MacDtlsStack.from_dict(_item) for _item in obj["MacDtlsStacks"]] if obj.get("MacDtlsStacks") is not None else None, diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index 3540950..a30f21b 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -20,7 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.parameter_match import ParameterMatch +from cyperf.models.api_link import APILink +from cyperf.models.parameter_metadata import ParameterMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,12 +30,19 @@ class Parameter(BaseModel): """ Parameter """ # noqa: E501 - matches: Optional[List[ParameterMatch]] = Field(default=None, alias="Matches") - name: Optional[StrictStr] = Field(default=None, alias="Name") + default_array_elements: Optional[List[Dict[str, StrictStr]]] = Field(default=None, description="The default values of the parameter", alias="DefaultArrayElements") + default_source: Optional[StrictStr] = Field(default=None, description="The default source of the parameter", alias="DefaultSource") + default_value: Optional[StrictStr] = Field(default=None, description="The default value of the parameter", alias="DefaultValue") + element_type: Optional[StrictStr] = Field(default=None, description="The type of elements in the values array", alias="ElementType") + metadata: Optional[ParameterMetadata] = Field(default=None, alias="Metadata") + sources: Optional[List[StrictStr]] = Field(default=None, description="The sources of the parameter", alias="Sources") + type: Optional[StrictStr] = Field(default=None, description="The type of the parameter", alias="Type") var_field: Optional[StrictStr] = Field(default=None, description="The name of the ES document field", alias="field") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the parameter") + links: Optional[List[APILink]] = None operator: Optional[StrictStr] = Field(default=None, description="The operator that the parameter supports") query_param: Optional[StrictStr] = Field(default=None, description="The corresponding query param", alias="queryParam") - __properties: ClassVar[List[str]] = ["Matches", "Name", "field", "operator", "queryParam"] + __properties: ClassVar[List[str]] = ["DefaultArrayElements", "DefaultSource", "DefaultValue", "ElementType", "Metadata", "Sources", "Type", "field", "id", "links", "operator", "queryParam"] model_config = ConfigDict( populate_by_name=True, @@ -66,8 +74,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "id", ]) _dict = self.model_dump( @@ -75,13 +85,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + # override the default output from pydantic by calling `to_dict()` of metadata + if self.metadata: + _dict['Metadata'] = self.metadata.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] - if self.matches: - for _item in self.matches: + if self.links: + for _item in self.links: if _item: _items.append(_item.to_dict()) - _dict['Matches'] = _items + _dict['links'] = _items return _dict @classmethod @@ -96,9 +109,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, - "Name": obj.get("Name"), + "DefaultArrayElements": obj.get("DefaultArrayElements"), + "DefaultSource": obj.get("DefaultSource"), + "DefaultValue": obj.get("DefaultValue"), + "ElementType": obj.get("ElementType"), + "Metadata": ParameterMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, + "Sources": obj.get("Sources"), + "Type": obj.get("Type"), "field": obj.get("field"), + "id": obj.get("id"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "operator": obj.get("operator"), "queryParam": obj.get("queryParam") , diff --git a/cyperf/models/parameter_meta.py b/cyperf/models/parameter_meta.py new file mode 100644 index 0000000..51df58f --- /dev/null +++ b/cyperf/models/parameter_meta.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.parameter_match import ParameterMatch +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ParameterMeta(BaseModel): + """ + ParameterMeta + """ # noqa: E501 + matches: Optional[List[ParameterMatch]] = Field(default=None, alias="Matches") + name: Optional[StrictStr] = Field(default=None, alias="Name") + __properties: ClassVar[List[str]] = ["Matches", "Name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ParameterMeta from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + _items = [] + if self.matches: + for _item in self.matches: + if _item: + _items.append(_item.to_dict()) + _dict['Matches'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ParameterMeta from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, + "Name": obj.get("Name") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/ActionInput.md b/docs/ActionInput.md index 76b49cd..a7971a5 100644 --- a/docs/ActionInput.md +++ b/docs/ActionInput.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **captures** | [**List[CaptureInput]**](CaptureInput.md) | | [optional] **name** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/ActionMetadata.md b/docs/ActionMetadata.md index c5d49a2..a4fb2d2 100644 --- a/docs/ActionMetadata.md +++ b/docs/ActionMetadata.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **flows** | [**List[AppFlow]**](AppFlow.md) | | [optional] **index** | **int** | | [optional] **name** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/AddInput.md b/docs/AddInput.md index 4158602..da45384 100644 --- a/docs/AddInput.md +++ b/docs/AddInput.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **captures** | [**List[CaptureInput]**](CaptureInput.md) | | [optional] **exchange_index_insert_at** | **int** | | [optional] **flow_index_insert_at** | **int** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] **type** | **str** | | [optional] ## Example diff --git a/docs/AppsecAppMetadata.md b/docs/AppsecAppMetadata.md index 744f25a..c98596e 100644 --- a/docs/AppsecAppMetadata.md +++ b/docs/AppsecAppMetadata.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions_metadata** | [**List[ActionMetadata]**](ActionMetadata.md) | | [optional] -**app_parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**app_parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/CreateAppOperation.md b/docs/CreateAppOperation.md index 549b210..f4f0b30 100644 --- a/docs/CreateAppOperation.md +++ b/docs/CreateAppOperation.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **app_name** | **str** | | [optional] **app_type** | **str** | | [optional] **description** | **str** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/EditActionInput.md b/docs/EditActionInput.md index d9139ea..45cefc8 100644 --- a/docs/EditActionInput.md +++ b/docs/EditActionInput.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action_index** | **int** | | [optional] -**parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] ## Example diff --git a/docs/EditAppOperation.md b/docs/EditAppOperation.md index 0906600..4f57f8c 100644 --- a/docs/EditAppOperation.md +++ b/docs/EditAppOperation.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **app_description** | **str** | | [optional] **app_id** | **str** | | [optional] **app_name** | **str** | | [optional] -**app_parameters** | [**List[Parameter]**](Parameter.md) | | [optional] +**app_parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] **delete_inputs** | [**List[DeleteInput]**](DeleteInput.md) | | [optional] **edit_action_inputs** | [**List[EditActionInput]**](EditActionInput.md) | | [optional] **rename_inputs** | [**List[RenameInput]**](RenameInput.md) | | [optional] diff --git a/docs/IPNetwork.md b/docs/IPNetwork.md index dc57edb..580d099 100644 --- a/docs/IPNetwork.md +++ b/docs/IPNetwork.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **dns_resolver** | [**DNSResolver**](DNSResolver.md) | | [optional] **dns_server** | [**DNSServer**](DNSServer.md) | The DNS Server configuration for Network Segment | [optional] **dut_connections** | **List[str]** | The connected DUT network segments. | [optional] -**emulated_router** | **object** | | [optional] -**eth_range** | **object** | | [optional] +**emulated_router** | [**EmulatedRouter**](EmulatedRouter.md) | | [optional] +**eth_range** | [**EthRange**](EthRange.md) | | [optional] **ip_ranges** | [**List[IPRange]**](IPRange.md) | | [optional] **ip_sec_stacks** | [**List[IPSecStack]**](IPSecStack.md) | | [optional] **mac_dtls_stacks** | [**List[MacDtlsStack]**](MacDtlsStack.md) | | [optional] diff --git a/docs/Parameter.md b/docs/Parameter.md index 4484128..0da9abe 100644 --- a/docs/Parameter.md +++ b/docs/Parameter.md @@ -5,9 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**matches** | [**List[ParameterMatch]**](ParameterMatch.md) | | [optional] -**name** | **str** | | [optional] +**default_array_elements** | **List[Dict[str, str]]** | The default values of the parameter | [optional] +**default_source** | **str** | The default source of the parameter | [optional] +**default_value** | **str** | The default value of the parameter | [optional] +**element_type** | **str** | The type of elements in the values array | [optional] +**metadata** | [**ParameterMetadata**](ParameterMetadata.md) | | [optional] +**sources** | **List[str]** | The sources of the parameter | [optional] +**type** | **str** | The type of the parameter | [optional] **var_field** | **str** | The name of the ES document field | [optional] +**id** | **str** | The unique identifier of the parameter | [optional] [readonly] +**links** | [**List[APILink]**](APILink.md) | | [optional] **operator** | **str** | The operator that the parameter supports | [optional] **query_param** | **str** | The corresponding query param | [optional] diff --git a/docs/ParameterMeta.md b/docs/ParameterMeta.md new file mode 100644 index 0000000..cbb043c --- /dev/null +++ b/docs/ParameterMeta.md @@ -0,0 +1,30 @@ +# ParameterMeta + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matches** | [**List[ParameterMatch]**](ParameterMatch.md) | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from cyperf.models.parameter_meta import ParameterMeta + +# TODO update the JSON string below +json = "{}" +# create an instance of ParameterMeta from a JSON string +parameter_meta_instance = ParameterMeta.from_json(json) +# print the JSON string representation of the object +print(ParameterMeta.to_json()) + +# convert the object into a dict +parameter_meta_dict = parameter_meta_instance.to_dict() +# create an instance of ParameterMeta from a dict +parameter_meta_from_dict = ParameterMeta.from_dict(parameter_meta_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/test/test_action_input.py b/test/test_action_input.py index e29a19c..cceb7d6 100644 --- a/test/test_action_input.py +++ b/test/test_action_input.py @@ -49,7 +49,7 @@ def make_instance(self, include_optional) -> ActionInput: ], name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -61,10 +61,7 @@ def make_instance(self, include_optional) -> ActionInput: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py index 752771c..4352fde 100644 --- a/test/test_action_metadata.py +++ b/test/test_action_metadata.py @@ -115,7 +115,7 @@ def make_instance(self, include_optional) -> ActionMetadata: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -127,10 +127,7 @@ def make_instance(self, include_optional) -> ActionMetadata: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_add_input.py b/test/test_add_input.py index e00bf60..2da2f78 100644 --- a/test/test_add_input.py +++ b/test/test_add_input.py @@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> AddInput: exchange_index_insert_at = 56, flow_index_insert_at = 56, parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -64,10 +64,7 @@ def make_instance(self, include_optional) -> AddInput: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], type = '' ) diff --git a/test/test_application_type.py b/test/test_application_type.py index 14b2058..05249b8 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -85,19 +85,29 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -219,19 +229,87 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -285,19 +363,29 @@ def make_instance(self, include_optional) -> ApplicationType: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index f97a9dc..4a2e261 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -123,7 +123,7 @@ def make_instance(self, include_optional) -> AppsecApp: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -135,18 +135,12 @@ def make_instance(self, include_optional) -> AppsecApp: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_parameters = [ - cyperf.models.parameter.Parameter( - name = '', - field = '', - operator = '', - query_param = '', ) + cyperf.models.parameter_meta.ParameterMeta( + name = '', ) ], ), id = '', last_modified = 56, diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index 493d584..c1af2a6 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -117,7 +117,7 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -129,14 +129,11 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -148,10 +145,7 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py index 51c9aa1..1db12f8 100644 --- a/test/test_auth_profile.py +++ b/test/test_auth_profile.py @@ -113,19 +113,87 @@ def make_instance(self, include_optional) -> AuthProfile: sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_command.py b/test/test_command.py index 562af7c..a4fabc5 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -83,19 +83,87 @@ def make_instance(self, include_optional) -> Command: name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_create_app_operation.py b/test/test_create_app_operation.py index 4e52551..4d07f50 100644 --- a/test/test_create_app_operation.py +++ b/test/test_create_app_operation.py @@ -51,7 +51,7 @@ def make_instance(self, include_optional) -> CreateAppOperation: ], name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -63,17 +63,14 @@ def make_instance(self, include_optional) -> CreateAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_name = '', app_type = '', description = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -85,10 +82,7 @@ def make_instance(self, include_optional) -> CreateAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_edit_action_input.py b/test/test_edit_action_input.py index 1e6d2d7..93f8415 100644 --- a/test/test_edit_action_input.py +++ b/test/test_edit_action_input.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> EditActionInput: return EditActionInput( action_index = 56, parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -50,10 +50,7 @@ def make_instance(self, include_optional) -> EditActionInput: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ] ) else: diff --git a/test/test_edit_app_operation.py b/test/test_edit_app_operation.py index fdf3510..ee70f2c 100644 --- a/test/test_edit_app_operation.py +++ b/test/test_edit_app_operation.py @@ -54,7 +54,7 @@ def make_instance(self, include_optional) -> EditAppOperation: exchange_index_insert_at = 56, flow_index_insert_at = 56, parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -66,10 +66,7 @@ def make_instance(self, include_optional) -> EditAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], type = '', ) ], @@ -77,7 +74,7 @@ def make_instance(self, include_optional) -> EditAppOperation: app_id = '', app_name = '', app_parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -89,10 +86,7 @@ def make_instance(self, include_optional) -> EditAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], delete_inputs = [ cyperf.models.delete_input.DeleteInput( @@ -105,7 +99,7 @@ def make_instance(self, include_optional) -> EditAppOperation: cyperf.models.edit_action_input.EditActionInput( action_index = 56, parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -117,10 +111,7 @@ def make_instance(self, include_optional) -> EditAppOperation: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], rename_inputs = [ diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index 56ec99c..79f2f14 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -87,19 +87,30 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -179,8 +190,12 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], @@ -199,16 +214,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) + links = , ) ], total_count = 56 ) diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index e8f5923..baae382 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -87,19 +87,30 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], @@ -179,8 +190,12 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp name = '', parameters = [ cyperf.models.parameter.Parameter( - name = '', + default_source = '', + default_value = '', + element_type = '', + type = '', field = '', + id = '', operator = '', query_param = '', ) ], @@ -199,16 +214,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supports_strikes = True, supports_tls = True, id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) + links = , ) ], total_count = 56 ) diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index d1a439f..639dafc 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -125,7 +125,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -137,18 +137,12 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_parameters = [ - cyperf.models.parameter.Parameter( - name = '', - field = '', - operator = '', - query_param = '', ) + cyperf.models.parameter_meta.ParameterMeta( + name = '', ) ], ), id = '', last_modified = 56, diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index 5645b95..7620947 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -125,7 +125,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: index = 56, name = '', parameters = [ - cyperf.models.parameter.Parameter( + cyperf.models.parameter_meta.ParameterMeta( matches = [ cyperf.models.parameter_match.ParameterMatch( match_location = [ @@ -137,18 +137,12 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: '' ], ), ) ], - name = '', - field = '', - operator = '', - query_param = '', ) + name = '', ) ], ) ], app_parameters = [ - cyperf.models.parameter.Parameter( - name = '', - field = '', - operator = '', - query_param = '', ) + cyperf.models.parameter_meta.ParameterMeta( + name = '', ) ], ), id = '', last_modified = 56, diff --git a/test/test_get_resources_auth_profiles200_response.py b/test/test_get_resources_auth_profiles200_response.py index e9ee5cc..96f8b17 100644 --- a/test/test_get_resources_auth_profiles200_response.py +++ b/test/test_get_resources_auth_profiles200_response.py @@ -105,19 +105,20 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', operator = '', query_param = '', ) ], diff --git a/test/test_get_resources_auth_profiles200_response_one_of.py b/test/test_get_resources_auth_profiles200_response_one_of.py index 3fb465c..7eadb17 100644 --- a/test/test_get_resources_auth_profiles200_response_one_of.py +++ b/test/test_get_resources_auth_profiles200_response_one_of.py @@ -105,19 +105,20 @@ def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response sgw_type_value = '', ), parameters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default_array_elements = [ + { + 'key' : '' + } ], - name = '', + default_source = '', + default_value = '', + element_type = '', + sources = [ + '' + ], + type = '', field = '', + id = '', operator = '', query_param = '', ) ], diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py index 29d3660..97be044 100644 --- a/test/test_get_result_stats200_response.py +++ b/test/test_get_result_stats200_response.py @@ -40,19 +40,87 @@ def make_instance(self, include_optional) -> GetResultStats200Response: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py index d11f673..7dbc345 100644 --- a/test/test_get_result_stats200_response_one_of.py +++ b/test/test_get_result_stats200_response_one_of.py @@ -40,19 +40,87 @@ def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: cyperf.models.stats_result.StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], diff --git a/test/test_ip_network.py b/test/test_ip_network.py index 3d4a7a9..a59542c 100644 --- a/test/test_ip_network.py +++ b/test/test_ip_network.py @@ -66,8 +66,48 @@ def make_instance(self, include_optional) -> IPNetwork: dut_connections = [ '' ], - emulated_router = None, - eth_range = None, + emulated_router = cyperf.models.emulated_router.EmulatedRouter( + emulated_router_ranges = [ + null + ], + enabled = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + eth_range = cyperf.models.eth_range.EthRange( + count = 56, + mac_auto = True, + mac_incr = '2E-B0-08-29:0c:01', + mac_start = '2E-B0-08-29:0c:01', + one_mac_per_ip = True, + static_arp_table = [ + cyperf.models.static_arp_entry.StaticARPEntry( + count = 56, + remote_ip = '::02:84:9:0cc0:F:CCf', + remote_ip_incr = '::02:84:9:0cc0:F:CCf', + remote_mac = '2E-B0-08-29:0c:01', + remote_mac_incr = '2E-B0-08-29:0c:01', + static_arp_entry_name = 'YBuLd', + id = '', ) + ], + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + max_count_per_agent = 56, ), ip_ranges = [ cyperf.models.ip_range.IPRange( automatic_ip_type = null, diff --git a/test/test_parameter.py b/test/test_parameter.py index 851ed72..5e4425c 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -36,19 +36,87 @@ def make_instance(self, include_optional) -> Parameter: model = Parameter() if include_optional: return Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', var_field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '' ) diff --git a/test/test_parameter_meta.py b/test/test_parameter_meta.py new file mode 100644 index 0000000..1052ca1 --- /dev/null +++ b/test/test_parameter_meta.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.parameter_meta import ParameterMeta + +class TestParameterMeta(unittest.TestCase): + """ParameterMeta unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ParameterMeta: + """Test ParameterMeta + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ParameterMeta` + """ + model = ParameterMeta() + if include_optional: + return ParameterMeta( + matches = [ + cyperf.models.parameter_match.ParameterMatch( + match_location = [ + '' + ], + match_type = '', + regex_match = cyperf.models.regex_match.RegexMatch( + patterns = [ + '' + ], ), ) + ], + name = '' + ) + else: + return ParameterMeta( + ) + """ + + def testParameterMeta(self): + """Test ParameterMeta""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_stats_result.py b/test/test_stats_result.py index f1c2522..0f8c171 100644 --- a/test/test_stats_result.py +++ b/test/test_stats_result.py @@ -38,19 +38,87 @@ def make_instance(self, include_optional) -> StatsResult: return StatsResult( available_filters = [ cyperf.models.parameter.Parameter( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' + default_array_elements = [ + { + 'key' : '' + } + ], + default_source = '', + default_value = '', + element_type = '', + metadata = cyperf.models.parameter_metadata.ParameterMetadata( + category = '', + category_index = 56, + default = '', + description = '', + display_name = '', + enum = cyperf.models.enum.Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) + default = '', ), + flow_identifier = True, + input = '', + legacy_names = [ + '' + ], + mandatory = True, + payload = cyperf.models.payload_metadata.PayloadMetadata( + file_extension = '', + file_name = '', + file_type = '', + file_url = '', ), + readonly = True, + shared = True, + type = '', + type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( + array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( + elements = [ + cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( + id = '', + type = '', ) + ], ), + int = cyperf.models.type_int_metadata.TypeIntMetadata( + max_value = 56, + min_value = 56, ), + media = cyperf.models.type_media_metadata.TypeMediaMetadata( + track_id = '', + track_type = '', ), + string = cyperf.models.type_string_metadata.TypeStringMetadata( + charset = '', + max_length = 56, + min_length = 56, ), ), + unique_value = True, + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + sources = [ + '' ], - name = '', + type = '', field = '', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], operator = '', query_param = '', ) ], From fa791a549e01569614e5807193512462f5f889d1 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 24 Sep 2025 01:53:20 -0600 Subject: [PATCH 14/53] Pull request #40: ISGAPPSEC2-35640 Accessing client_stream_profile settings in UDP stream app results in exception Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-35640-accessing-client_stream_profile-settings-in-udp-stream-app-results-in to main Squashed commit of the following: commit 83fded9a32a9c5961ba2c2a8c73b181ac0fd0c1d Author: iustmitu Date: Tue Sep 23 16:29:23 2025 +0300 changed LESS_THAN_NIL_GREATER_THAN -> NULL attribute --- cyperf/models/stream_payload_type.py | 2 +- docs/StreamPayloadType.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cyperf/models/stream_payload_type.py b/cyperf/models/stream_payload_type.py index 0845462..a25e924 100644 --- a/cyperf/models/stream_payload_type.py +++ b/cyperf/models/stream_payload_type.py @@ -29,7 +29,7 @@ class StreamPayloadType(str, Enum): """ RANDOM = 'RANDOM' PSEUDORANDOM = 'PSEUDORANDOM' - LESS_THAN_NIL_GREATER_THAN = '' + NULL = 'NULL' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/docs/StreamPayloadType.md b/docs/StreamPayloadType.md index f31e2ff..7564319 100644 --- a/docs/StreamPayloadType.md +++ b/docs/StreamPayloadType.md @@ -7,7 +7,7 @@ * `PSEUDORANDOM` (value: `'PSEUDORANDOM'`) -* `LESS_THAN_NIL_GREATER_THAN` (value: `''`) +* `NULL` (value: `'NULL'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) From 3a37c05c908d45db64193aff418111a83f7dc179 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 1 Oct 2025 02:27:23 -0600 Subject: [PATCH 15/53] Pull request #41: ISGAPPSEC2 35734 licensingapi.get counted feature stats always returns none wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-35734-licensingapi.get_counted_feature_stats-always-returns-none to main Squashed commit of the following: commit 908e267837666c2fbc5ec595219d304869ce1e9c Author: iustmitu Date: Fri Sep 26 15:31:03 2025 +0300 removed async-operation-response commit 074dd5261338c53d344ac594f6709585e2563527 Author: iustmitu Date: Fri Sep 26 14:56:28 2025 +0300 removed AsyncOperationResponse commit 0d649c03ee7a398af77a5c7430eb1d0ff9f99dbe Author: iustmitu Date: Thu Sep 25 14:12:34 2025 +0300 regenerated wrapper with mdw's AsyncContext and eula --- .openapi-generator/FILES | 1 - README.md | 1 - cyperf/__init__.py | 1 - cyperf/api/diagnostics_api.py | 22 ++-- cyperf/api/licensing_api.py | 122 +++++++++++----------- cyperf/dynamic_models/__init__.py | 1 - cyperf/models/__init__.py | 1 - cyperf/models/async_operation_response.py | 105 ------------------- cyperf/models/eula_details.py | 14 +-- cyperf/models/eula_summary.py | 8 +- docs/AsyncOperationResponse.md | 36 ------- docs/DiagnosticsApi.md | 12 +-- docs/EulaDetails.md | 4 +- docs/EulaSummary.md | 2 +- docs/LicensingApi.md | 92 ++++++++-------- test/test_async_operation_response.py | 66 ------------ test/test_eula_details.py | 6 +- test/test_eula_summary.py | 4 +- 18 files changed, 143 insertions(+), 355 deletions(-) delete mode 100644 cyperf/models/async_operation_response.py delete mode 100644 docs/AsyncOperationResponse.md delete mode 100644 test/test_async_operation_response.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c80429b..fce2375 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -397,7 +397,6 @@ docs/AppsecConfig.md docs/ArchiveInfo.md docs/ArrayV2ElementMetadata.md docs/AsyncContext.md -docs/AsyncOperationResponse.md docs/Attack.md docs/AttackAction.md docs/AttackObjectivesAndTimeline.md diff --git a/README.md b/README.md index 9e73bd0..ac54eb9 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,6 @@ Class | Method | HTTP request | Description - [ArchiveInfo](docs/ArchiveInfo.md) - [ArrayV2ElementMetadata](docs/ArrayV2ElementMetadata.md) - [AsyncContext](docs/AsyncContext.md) - - [AsyncOperationResponse](docs/AsyncOperationResponse.md) - [Attack](docs/Attack.md) - [AttackAction](docs/AttackAction.md) - [AttackMetadata](docs/AttackMetadata.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index f7ad52c..a82dbbf 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -93,7 +93,6 @@ from cyperf.models.archive_info import ArchiveInfo from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata from cyperf.models.async_context import AsyncContext -from cyperf.models.async_operation_response import AsyncOperationResponse from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata diff --git a/cyperf/api/diagnostics_api.py b/cyperf/api/diagnostics_api.py index 9351718..5a59367 100644 --- a/cyperf/api/diagnostics_api.py +++ b/cyperf/api/diagnostics_api.py @@ -21,7 +21,7 @@ from typing import List, Optional, Union from typing_extensions import Annotated from cyperf.models.archive_info import ArchiveInfo -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.diagnostic_component import DiagnosticComponent from cyperf.models.diagnostic_component_context import DiagnosticComponentContext @@ -1026,7 +1026,7 @@ def api_v2_diagnostics_operations_export_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """api_v2_diagnostics_operations_export_id_get Get the state of an ongoing operation. @@ -1064,7 +1064,7 @@ def api_v2_diagnostics_operations_export_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1090,7 +1090,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """api_v2_diagnostics_operations_export_id_get Get the state of an ongoing operation. @@ -1128,7 +1128,7 @@ def api_v2_diagnostics_operations_export_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1192,7 +1192,7 @@ def api_v2_diagnostics_operations_export_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1536,7 +1536,7 @@ def api_v2_diagnostics_operations_export_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """api_v2_diagnostics_operations_export_post Start the diagnostic export operation. @@ -1574,7 +1574,7 @@ def api_v2_diagnostics_operations_export_post( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1600,7 +1600,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """api_v2_diagnostics_operations_export_post Start the diagnostic export operation. @@ -1638,7 +1638,7 @@ def api_v2_diagnostics_operations_export_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( @@ -1702,7 +1702,7 @@ def api_v2_diagnostics_operations_export_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '202': "AsyncContext", '500': None, } return self.api_client.call_api( diff --git a/cyperf/api/licensing_api.py b/cyperf/api/licensing_api.py index b487458..ba1a2c5 100644 --- a/cyperf/api/licensing_api.py +++ b/cyperf/api/licensing_api.py @@ -22,7 +22,7 @@ from typing_extensions import Annotated from cyperf.models.activation_code_list_request import ActivationCodeListRequest from cyperf.models.activation_code_request import ActivationCodeRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.entitlement_code_request import EntitlementCodeRequest from cyperf.models.feature_reservation_reserve import FeatureReservationReserve from cyperf.models.fulfillment_request import FulfillmentRequest @@ -67,7 +67,7 @@ def activate_licenses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Performs an online request to KSM and activates the requested licenses. @@ -104,7 +104,7 @@ def activate_licenses( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -130,7 +130,7 @@ def activate_licenses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Performs an online request to KSM and activates the requested licenses. @@ -167,7 +167,7 @@ def activate_licenses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -230,7 +230,7 @@ def activate_licenses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -333,7 +333,7 @@ def deactivate_licenses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Performs an online request to KSM to deactivate the requested licenses. @@ -370,7 +370,7 @@ def deactivate_licenses( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -396,7 +396,7 @@ def deactivate_licenses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Performs an online request to KSM to deactivate the requested licenses. @@ -433,7 +433,7 @@ def deactivate_licenses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -496,7 +496,7 @@ def deactivate_licenses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -837,7 +837,7 @@ def get_activation_code_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the activation code info from KSM. @@ -874,7 +874,7 @@ def get_activation_code_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -900,7 +900,7 @@ def get_activation_code_info_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the activation code info from KSM. @@ -937,7 +937,7 @@ def get_activation_code_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1000,7 +1000,7 @@ def get_activation_code_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1102,7 +1102,7 @@ def get_activation_code_info_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the activation code info list from KSM. @@ -1139,7 +1139,7 @@ def get_activation_code_info_list( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1165,7 +1165,7 @@ def get_activation_code_info_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the activation code info list from KSM. @@ -1202,7 +1202,7 @@ def get_activation_code_info_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1265,7 +1265,7 @@ def get_activation_code_info_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1635,7 +1635,7 @@ def get_async_operation_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Returns the status of an ongoing async operation. @@ -1675,7 +1675,7 @@ def get_async_operation_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1702,7 +1702,7 @@ def get_async_operation_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Returns the status of an ongoing async operation. @@ -1742,7 +1742,7 @@ def get_async_operation_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1809,7 +1809,7 @@ def get_async_operation_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1900,7 +1900,7 @@ def get_counted_feature_stats( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the counted feature stats. @@ -1934,7 +1934,7 @@ def get_counted_feature_stats( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -1959,7 +1959,7 @@ def get_counted_feature_stats_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the counted feature stats. @@ -1993,7 +1993,7 @@ def get_counted_feature_stats_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2052,7 +2052,7 @@ def get_counted_feature_stats_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2138,7 +2138,7 @@ def get_entitlement_code_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retrieves the activations codes of the supplied entitlement code from KSM. @@ -2175,7 +2175,7 @@ def get_entitlement_code_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2201,7 +2201,7 @@ def get_entitlement_code_info_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retrieves the activations codes of the supplied entitlement code from KSM. @@ -2238,7 +2238,7 @@ def get_entitlement_code_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -2301,7 +2301,7 @@ def get_entitlement_code_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -3413,7 +3413,7 @@ def get_license_async_operation_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Returns the status of an ongoing async operation. @@ -3456,7 +3456,7 @@ def get_license_async_operation_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -3484,7 +3484,7 @@ def get_license_async_operation_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Returns the status of an ongoing async operation. @@ -3527,7 +3527,7 @@ def get_license_async_operation_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -3598,7 +3598,7 @@ def get_license_async_operation_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -3959,7 +3959,7 @@ def remove_reservation( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Remove previously reserved features, thus making them available for checkout by other users. @@ -3999,7 +3999,7 @@ def remove_reservation( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4026,7 +4026,7 @@ def remove_reservation_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Remove previously reserved features, thus making them available for checkout by other users. @@ -4066,7 +4066,7 @@ def remove_reservation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4133,7 +4133,7 @@ def remove_reservation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4238,7 +4238,7 @@ def sync_licenses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Synchronize local licenses with KSM. @@ -4272,7 +4272,7 @@ def sync_licenses( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4297,7 +4297,7 @@ def sync_licenses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Synchronize local licenses with KSM. @@ -4331,7 +4331,7 @@ def sync_licenses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4390,7 +4390,7 @@ def sync_licenses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4475,7 +4475,7 @@ def test_backend_connectivity( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Tests connection of the license server with KSM. @@ -4509,7 +4509,7 @@ def test_backend_connectivity( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4534,7 +4534,7 @@ def test_backend_connectivity_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Tests connection of the license server with KSM. @@ -4568,7 +4568,7 @@ def test_backend_connectivity_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4627,7 +4627,7 @@ def test_backend_connectivity_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4714,7 +4714,7 @@ def update_reservation( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncOperationResponse: + ) -> AsyncContext: """Retain over a period of time specific counts of installed features, that can be consumed only by current user. @@ -4754,7 +4754,7 @@ def update_reservation( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4781,7 +4781,7 @@ def update_reservation_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncOperationResponse]: + ) -> ApiResponse[AsyncContext]: """Retain over a period of time specific counts of installed features, that can be consumed only by current user. @@ -4821,7 +4821,7 @@ def update_reservation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( @@ -4888,7 +4888,7 @@ def update_reservation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncOperationResponse", + '200': "AsyncContext", '500': "ErrorDescription", } return self.api_client.call_api( diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index f37c97f..215a909 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -59,7 +59,6 @@ ArchiveInfo = DynamicModel('ArchiveInfo', (), {} ) ArrayV2ElementMetadata = DynamicModel('ArrayV2ElementMetadata', (), {} ) AsyncContext = DynamicModel('AsyncContext', (), {} ) -AsyncOperationResponse = DynamicModel('AsyncOperationResponse', (), {} ) Attack = DynamicModel('Attack', (), {} ) AttackAction = DynamicModel('AttackAction', (), {} ) AttackMetadata = DynamicModel('AttackMetadata', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 8524eef..078454c 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -59,7 +59,6 @@ class LinkNameException(Exception): from cyperf.models.archive_info import ArchiveInfo from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata from cyperf.models.async_context import AsyncContext -from cyperf.models.async_operation_response import AsyncOperationResponse from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata diff --git a/cyperf/models/async_operation_response.py b/cyperf/models/async_operation_response.py deleted file mode 100644 index 4167394..0000000 --- a/cyperf/models/async_operation_response.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field, PrivateAttr - -class AsyncOperationResponse(BaseModel): - """ - The POST response for an async operation. - """ # noqa: E501 - id: StrictInt = Field(description="The subresource id of the status.") - message: StrictStr = Field(description="A message from the operation (optional).") - progress: StrictInt = Field(description="The progress of the operation (percent).") - result_url: StrictStr = Field(description="The URL where the archive is available.", alias="resultUrl") - state: StrictStr = Field(description="The state of the operation.") - type: StrictStr = Field(description="The name of the operation.") - url: StrictStr = Field(description="The status URI of the operation.") - __properties: ClassVar[List[str]] = ["id", "message", "progress", "resultUrl", "state", "type", "url"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AsyncOperationResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AsyncOperationResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "id": obj.get("id"), - "message": obj.get("message"), - "progress": obj.get("progress"), - "resultUrl": obj.get("resultUrl"), - "state": obj.get("state"), - "type": obj.get("type"), - "url": obj.get("url") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/eula_details.py b/cyperf/models/eula_details.py index acf5afb..93c4f29 100644 --- a/cyperf/models/eula_details.py +++ b/cyperf/models/eula_details.py @@ -28,11 +28,11 @@ class EulaDetails(BaseModel): """ EulaDetails """ # noqa: E501 - id: Optional[StrictStr] = None accepted: StrictBool - text: Optional[StrictStr] = None + id: Optional[StrictStr] = None html: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "accepted", "text", "html"] + text: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["accepted", "id", "html", "text"] model_config = ConfigDict( populate_by_name=True, @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "id": obj.get("id"), - "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, - "text": obj.get("text"), - "html": obj.get("html") + "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, + "id": obj.get("id"), + "html": obj.get("html"), + "text": obj.get("text") , "links": obj.get("links") }) diff --git a/cyperf/models/eula_summary.py b/cyperf/models/eula_summary.py index f217a69..61648f1 100644 --- a/cyperf/models/eula_summary.py +++ b/cyperf/models/eula_summary.py @@ -28,9 +28,9 @@ class EulaSummary(BaseModel): """ EulaSummary """ # noqa: E501 - id: Optional[StrictStr] = None accepted: StrictBool - __properties: ClassVar[List[str]] = ["id", "accepted"] + id: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["accepted", "id"] model_config = ConfigDict( populate_by_name=True, @@ -85,8 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "id": obj.get("id"), - "accepted": obj.get("accepted") if obj.get("accepted") is not None else False + "accepted": obj.get("accepted") if obj.get("accepted") is not None else False, + "id": obj.get("id") , "links": obj.get("links") }) diff --git a/docs/AsyncOperationResponse.md b/docs/AsyncOperationResponse.md deleted file mode 100644 index d563d94..0000000 --- a/docs/AsyncOperationResponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# AsyncOperationResponse - -The POST response for an async operation. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | The subresource id of the status. | -**message** | **str** | A message from the operation (optional). | -**progress** | **int** | The progress of the operation (percent). | -**result_url** | **str** | The URL where the archive is available. | -**state** | **str** | The state of the operation. | -**type** | **str** | The name of the operation. | -**url** | **str** | The status URI of the operation. | - -## Example - -```python -from cyperf.models.async_operation_response import AsyncOperationResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AsyncOperationResponse from a JSON string -async_operation_response_instance = AsyncOperationResponse.from_json(json) -# print the JSON string representation of the object -print(AsyncOperationResponse.to_json()) - -# convert the object into a dict -async_operation_response_dict = async_operation_response_instance.to_dict() -# create an instance of AsyncOperationResponse from a dict -async_operation_response_from_dict = AsyncOperationResponse.from_dict(async_operation_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DiagnosticsApi.md b/docs/DiagnosticsApi.md index 879c205..7c591fd 100644 --- a/docs/DiagnosticsApi.md +++ b/docs/DiagnosticsApi.md @@ -306,7 +306,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_v2_diagnostics_operations_export_id_get** -> AsyncOperationResponse api_v2_diagnostics_operations_export_id_get(id) +> AsyncContext api_v2_diagnostics_operations_export_id_get(id) @@ -319,7 +319,7 @@ Get the state of an ongoing operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -363,7 +363,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -461,7 +461,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_v2_diagnostics_operations_export_post** -> AsyncOperationResponse api_v2_diagnostics_operations_export_post(diagnostic_component_context=diagnostic_component_context) +> AsyncContext api_v2_diagnostics_operations_export_post(diagnostic_component_context=diagnostic_component_context) @@ -474,7 +474,7 @@ Start the diagnostic export operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.diagnostic_component_context import DiagnosticComponentContext from cyperf.rest import ApiException from pprint import pprint @@ -519,7 +519,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization diff --git a/docs/EulaDetails.md b/docs/EulaDetails.md index d5a9ab9..ede2e91 100644 --- a/docs/EulaDetails.md +++ b/docs/EulaDetails.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] **accepted** | **bool** | | [default to False] -**text** | **str** | | [optional] +**id** | **str** | | [optional] **html** | **str** | | [optional] +**text** | **str** | | [optional] ## Example diff --git a/docs/EulaSummary.md b/docs/EulaSummary.md index f9f76d7..e4aff1d 100644 --- a/docs/EulaSummary.md +++ b/docs/EulaSummary.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] **accepted** | **bool** | | [default to False] +**id** | **str** | | [optional] ## Example diff --git a/docs/LicensingApi.md b/docs/LicensingApi.md index 306c35e..fbdb093 100644 --- a/docs/LicensingApi.md +++ b/docs/LicensingApi.md @@ -26,7 +26,7 @@ Method | HTTP request | Description # **activate_licenses** -> AsyncOperationResponse activate_licenses(fulfillment_request=fulfillment_request) +> AsyncContext activate_licenses(fulfillment_request=fulfillment_request) Performs an online request to KSM and activates the requested licenses. @@ -37,7 +37,7 @@ Performs an online request to KSM and activates the requested licenses. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.rest import ApiException from pprint import pprint @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -98,13 +98,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deactivate_licenses** -> AsyncOperationResponse deactivate_licenses(fulfillment_request=fulfillment_request) +> AsyncContext deactivate_licenses(fulfillment_request=fulfillment_request) Performs an online request to KSM to deactivate the requested licenses. @@ -115,7 +115,7 @@ Performs an online request to KSM to deactivate the requested licenses. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.rest import ApiException from pprint import pprint @@ -161,7 +161,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -176,7 +176,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -254,7 +254,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_activation_code_info** -> AsyncOperationResponse get_activation_code_info(activation_code_request=activation_code_request) +> AsyncContext get_activation_code_info(activation_code_request=activation_code_request) Retrieves the activation code info from KSM. @@ -266,7 +266,7 @@ Retrieves the activation code info from KSM. ```python import cyperf from cyperf.models.activation_code_request import ActivationCodeRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -311,7 +311,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -326,13 +326,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_activation_code_info_list** -> AsyncOperationResponse get_activation_code_info_list(activation_code_list_request=activation_code_list_request) +> AsyncContext get_activation_code_info_list(activation_code_list_request=activation_code_list_request) Retrieves the activation code info list from KSM. @@ -344,7 +344,7 @@ Retrieves the activation code info list from KSM. ```python import cyperf from cyperf.models.activation_code_list_request import ActivationCodeListRequest -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -389,7 +389,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -404,7 +404,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -489,7 +489,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_async_operation_status** -> AsyncOperationResponse get_async_operation_status(operation_type, id) +> AsyncContext get_async_operation_status(operation_type, id) Returns the status of an ongoing async operation. @@ -500,7 +500,7 @@ Returns the status of an ongoing async operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -547,7 +547,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -568,7 +568,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_counted_feature_stats** -> AsyncOperationResponse get_counted_feature_stats() +> AsyncContext get_counted_feature_stats() Retrieves the counted feature stats. @@ -579,7 +579,7 @@ Retrieves the counted feature stats. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -620,7 +620,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -635,13 +635,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_entitlement_code_info** -> AsyncOperationResponse get_entitlement_code_info(entitlement_code_request=entitlement_code_request) +> AsyncContext get_entitlement_code_info(entitlement_code_request=entitlement_code_request) Retrieves the activations codes of the supplied entitlement code from KSM. @@ -652,7 +652,7 @@ Retrieves the activations codes of the supplied entitlement code from KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.entitlement_code_request import EntitlementCodeRequest from cyperf.rest import ApiException from pprint import pprint @@ -698,7 +698,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -713,7 +713,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1023,7 +1023,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_license_async_operation_status** -> AsyncOperationResponse get_license_async_operation_status(license_id, operation_type, id) +> AsyncContext get_license_async_operation_status(license_id, operation_type, id) Returns the status of an ongoing async operation. @@ -1034,7 +1034,7 @@ Returns the status of an ongoing async operation. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1083,7 +1083,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1181,7 +1181,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **remove_reservation** -> AsyncOperationResponse remove_reservation(license_id, request_body=request_body) +> AsyncContext remove_reservation(license_id, request_body=request_body) Remove previously reserved features, thus making them available for checkout by other users. @@ -1192,7 +1192,7 @@ Remove previously reserved features, thus making them available for checkout by ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1239,7 +1239,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1254,13 +1254,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occurred. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **sync_licenses** -> AsyncOperationResponse sync_licenses() +> AsyncContext sync_licenses() Synchronize local licenses with KSM. @@ -1271,7 +1271,7 @@ Synchronize local licenses with KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1312,7 +1312,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1327,13 +1327,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test_backend_connectivity** -> AsyncOperationResponse test_backend_connectivity() +> AsyncContext test_backend_connectivity() Tests connection of the license server with KSM. @@ -1344,7 +1344,7 @@ Tests connection of the license server with KSM. ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -1385,7 +1385,7 @@ This endpoint does not need any parameter. ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1400,13 +1400,13 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occured. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_reservation** -> AsyncOperationResponse update_reservation(license_id, feature_reservation_reserve=feature_reservation_reserve) +> AsyncContext update_reservation(license_id, feature_reservation_reserve=feature_reservation_reserve) Retain over a period of time specific counts of installed features, that can be consumed only by current user. @@ -1417,7 +1417,7 @@ Retain over a period of time specific counts of installed features, that can be ```python import cyperf -from cyperf.models.async_operation_response import AsyncOperationResponse +from cyperf.models.async_context import AsyncContext from cyperf.models.feature_reservation_reserve import FeatureReservationReserve from cyperf.rest import ApiException from pprint import pprint @@ -1465,7 +1465,7 @@ Name | Type | Description | Notes ### Return type -[**AsyncOperationResponse**](AsyncOperationResponse.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -1480,7 +1480,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Accepted. | - | +**200** | Accepted. | - | **500** | An error occurred. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/test/test_async_operation_response.py b/test/test_async_operation_response.py deleted file mode 100644 index f13001e..0000000 --- a/test/test_async_operation_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.async_operation_response import AsyncOperationResponse - -class TestAsyncOperationResponse(unittest.TestCase): - """AsyncOperationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AsyncOperationResponse: - """Test AsyncOperationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AsyncOperationResponse` - """ - model = AsyncOperationResponse() - if include_optional: - return AsyncOperationResponse( - id = 56, - message = '', - progress = 56, - result_url = '', - state = '', - type = '', - url = '' - ) - else: - return AsyncOperationResponse( - id = 56, - message = '', - progress = 56, - result_url = '', - state = '', - type = '', - url = '', - ) - """ - - def testAsyncOperationResponse(self): - """Test AsyncOperationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eula_details.py b/test/test_eula_details.py index a501789..d1a8c1b 100644 --- a/test/test_eula_details.py +++ b/test/test_eula_details.py @@ -36,10 +36,10 @@ def make_instance(self, include_optional) -> EulaDetails: model = EulaDetails() if include_optional: return EulaDetails( - id = '', accepted = True, - text = '', - html = '' + id = '', + html = '', + text = '' ) else: return EulaDetails( diff --git a/test/test_eula_summary.py b/test/test_eula_summary.py index 2a6214b..29bf48b 100644 --- a/test/test_eula_summary.py +++ b/test/test_eula_summary.py @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> EulaSummary: model = EulaSummary() if include_optional: return EulaSummary( - id = '', - accepted = True + accepted = True, + id = '' ) else: return EulaSummary( From 4a7ecea0f48d8b28e5caca196de1b2b4aac0f653 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 2 Oct 2025 02:52:32 -0600 Subject: [PATCH 16/53] Pull request #42: migration new integration tests Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-35526-switch-to-new-wrapper-for-integration-tests to main Squashed commit of the following: commit f6fab58b109d2ce7bd1914c5f9e42d4ce9bb409c Author: iustmitu Date: Thu Oct 2 10:45:30 2025 +0300 fix get_first_N_http_standalone_strikes commit e3babe0ca1cccb65aaf918217d4e7a6a62cb26cb Author: iustmitu Date: Wed Oct 1 11:12:48 2025 +0300 get one strike per api call commit 770cd80bd83e037e9f819b467ddb686073ab14c5 Author: iustmitu Date: Mon Sep 29 16:56:05 2025 +0300 updated wrapper utils file --- cyperf/utils.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/cyperf/utils.py b/cyperf/utils.py index e21e874..821c7ba 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -204,6 +204,28 @@ def disable_automatic_network(self, session): ip_net.ip_ranges[0].ip_auto = False ip_net.update() + def get_first_N_http_standalone_strikes(self, n): + application_api_instance = cyperf.ApplicationResourcesApi(self.api_client) + http_strikes = [] + skip = 0 + + while len(http_strikes) < n: + take = min(50, n - len(http_strikes)) + strike_batch = application_api_instance.get_resources_strikes(take=take, skip=skip).data + + for strike in strike_batch: + protocol = strike.metadata.protocol + supported_apps = strike.metadata.supported_apps + + if protocol.lower() == 'http' and supported_apps == None: + http_strikes.append(strike) + if len(http_strikes) == n: + break + + skip += take + + return http_strikes + def add_apps(self, session, appNames): # Retrieve the app from precanned Apps resource_api = cyperf.ApplicationResourcesApi(self.api_client) @@ -329,7 +351,7 @@ def format_stats_dict_as_table(self, stats_dict={}): lines = ['|'.join([f'{val:^{col_width}}' for val, col_width in zip(item, col_widths)]) for item in zip(*stats_dict.values())] return [line_delim, header, line_delim] + lines + [line_delim] - + def parse_cli_options(extra_options=[]): """Can be used to get parameters from the CLI or env vars that are broadly useful for CLI tests""" import argparse From 138e33d7a2b8bf6e72371e3c5efdaf8a7142ae51 Mon Sep 17 00:00:00 2001 From: Tudor Simionescu Date: Wed, 12 Nov 2025 04:23:03 -0700 Subject: [PATCH 17/53] Pull request #44: Never use an empty alias Merge in ISGAPPSEC/cyperf-api-wrapper from fix-empty-alias to main Squashed commit of the following: commit e58ab64af1d64be67ef833436ba99c2c3ca0c13b Author: Tudor Simionescu Date: Wed Nov 12 13:15:59 2025 +0200 Never use an empty alias Why: - if the field.alias property is empty, then we should use the key name; the current code sets the field name to "None" --- cyperf/dynamic_model_meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyperf/dynamic_model_meta.py b/cyperf/dynamic_model_meta.py index dacfc41..e45cc20 100644 --- a/cyperf/dynamic_model_meta.py +++ b/cyperf/dynamic_model_meta.py @@ -381,7 +381,7 @@ def update(cls, self): del d[key] else: field = self.base_model.__fields__[key] - field_name = field.alias if 'alias' in dir(field) else key + field_name = field.alias if 'alias' in dir(field) and field.alias else key if field_name != key: del d[key] d[field_name] = getattr(self.base_model, key) From 45a9bc63ae03f90cbddaca4d4da1bc3525885d59 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Fri, 14 Nov 2025 01:22:50 -0700 Subject: [PATCH 18/53] Pull request #43: ISGAPPSEC2-35886 - allow only 1 network profile and regenerated docs Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-35886-allow-only-one-network-profile to main Squashed commit of the following: commit 161dd71f76ed0bff6beebf03eb1d712bbd33d997 Author: iustmitu Date: Thu Nov 6 16:45:22 2025 +0200 regenerated wrapper and fixed sample script --- README.md | 7 + cyperf/__init__.py | 4 + cyperf/api/application_resources_api.py | 554 +++++++++++++++++- cyperf/api/test_results_api.py | 262 +++++++++ cyperf/dynamic_models/__init__.py | 4 + cyperf/models/__init__.py | 4 + cyperf/models/app_flow.py | 4 +- cyperf/models/app_flow_desc.py | 4 +- cyperf/models/chassis_info.py | 6 +- cyperf/models/file_value.py | 4 +- cyperf/models/ip_network.py | 18 +- cyperf/models/md2_tlv.py | 99 ++++ cyperf/models/secondary_objective.py | 2 +- cyperf/models/specific_objective.py | 2 +- cyperf/models/vx_lan_range.py | 190 ++++++ cyperf/models/vx_lan_stack.py | 130 ++++ cyperf/models/vx_lanid.py | 95 +++ cyperf/utils.py | 2 +- docs/AppFlow.md | 1 + docs/AppFlowDesc.md | 1 + docs/ApplicationResourcesApi.md | 153 +++++ docs/ChassisInfo.md | 2 + docs/FileValue.md | 1 + docs/IPNetwork.md | 3 + docs/Md2Tlv.md | 32 + docs/SecondaryObjective.md | 2 +- docs/SpecificObjective.md | 2 +- docs/TestResultsApi.md | 78 +++ docs/VxLANId.md | 30 + docs/VxLANRange.md | 45 ++ docs/VxLANStack.md | 35 ++ .../sample_create_save_and_export_config.py | 6 - test/test_action_input_find_param.py | 1 + test/test_action_metadata.py | 1 + test/test_agent.py | 2 + test/test_app_flow.py | 1 + test/test_app_flow_desc.py | 1 + test/test_app_flow_input_find_param.py | 1 + test/test_application_profile.py | 2 +- test/test_application_resources_api.py | 13 + test/test_appsec_app.py | 1 + test/test_appsec_app_metadata.py | 1 + test/test_capture_input_find_param.py | 1 + test/test_chassis_info.py | 2 + test/test_file_value.py | 1 + test/test_find_param_matches_operation.py | 1 + test/test_get_agents200_response.py | 2 + test/test_get_agents200_response_one_of.py | 2 + test/test_get_resources_apps200_response.py | 1 + ...t_get_resources_apps200_response_one_of.py | 1 + test/test_ip_network.py | 22 +- test/test_md2_tlv.py | 60 ++ test/test_media_file.py | 1 + test/test_objectives_and_timeline.py | 6 +- test/test_params.py | 1 + test/test_replay_capture.py | 1 + test/test_system_info.py | 2 + test/test_test_results_api.py | 7 + test/test_vx_lan_range.py | 100 ++++ test/test_vx_lan_stack.py | 166 ++++++ test/test_vx_lanid.py | 56 ++ 61 files changed, 2208 insertions(+), 31 deletions(-) create mode 100644 cyperf/models/md2_tlv.py create mode 100644 cyperf/models/vx_lan_range.py create mode 100644 cyperf/models/vx_lan_stack.py create mode 100644 cyperf/models/vx_lanid.py create mode 100644 docs/Md2Tlv.md create mode 100644 docs/VxLANId.md create mode 100644 docs/VxLANRange.md create mode 100644 docs/VxLANStack.md create mode 100644 test/test_md2_tlv.py create mode 100644 test/test_vx_lan_range.py create mode 100644 test/test_vx_lan_stack.py create mode 100644 test/test_vx_lanid.py diff --git a/README.md b/README.md index ac54eb9..3b2ee6d 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_auth_profiles**](docs/ApplicationResourcesApi.md#get_resources_auth_profiles) | **GET** /api/v2/resources/auth-profiles | *ApplicationResourcesApi* | [**get_resources_capture_by_id**](docs/ApplicationResourcesApi.md#get_resources_capture_by_id) | **GET** /api/v2/resources/captures/{captureId} | *ApplicationResourcesApi* | [**get_resources_captures**](docs/ApplicationResourcesApi.md#get_resources_captures) | **GET** /api/v2/resources/captures | +*ApplicationResourcesApi* | [**get_resources_captures_encrypted_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_captures_encrypted_upload_file_result) | **GET** /api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_captures_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_captures_upload_file_result) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_certificate_by_id**](docs/ApplicationResourcesApi.md#get_resources_certificate_by_id) | **GET** /api/v2/resources/certificates/{certificateId} | *ApplicationResourcesApi* | [**get_resources_certificate_content_file**](docs/ApplicationResourcesApi.md#get_resources_certificate_content_file) | **GET** /api/v2/resources/certificates/{certificateId}/contentFile | @@ -208,6 +209,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_user_defined_apps_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**start_resources_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | +*ApplicationResourcesApi* | [**start_resources_captures_encrypted_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_captures_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_certificates_upload_file**](docs/ApplicationResourcesApi.md#start_resources_certificates_upload_file) | **POST** /api/v2/resources/certificates/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_config_export_user_defined_apps**](docs/ApplicationResourcesApi.md#start_resources_config_export_user_defined_apps) | **POST** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps | @@ -346,6 +348,7 @@ Class | Method | HTTP request | Description *TestResultsApi* | [**get_result_files**](docs/TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | *TestResultsApi* | [**get_results**](docs/TestResultsApi.md#get_results) | **GET** /api/v2/results | *TestResultsApi* | [**get_results_tags**](docs/TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | +*TestResultsApi* | [**start_result_export_events**](docs/TestResultsApi.md#start_result_export_events) | **POST** /api/v2/results/{resultId}/operations/export-events | *TestResultsApi* | [**start_result_generate_all**](docs/TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | *TestResultsApi* | [**start_result_generate_results**](docs/TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | *TestResultsApi* | [**start_result_load**](docs/TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -612,6 +615,7 @@ Class | Method | HTTP request | Description - [MacDtlsStack](docs/MacDtlsStack.md) - [MappingType](docs/MappingType.md) - [MarkedAsDeleted](docs/MarkedAsDeleted.md) + - [Md2Tlv](docs/Md2Tlv.md) - [MediaFile](docs/MediaFile.md) - [MediaTrack](docs/MediaTrack.md) - [Metadata](docs/Metadata.md) @@ -745,6 +749,9 @@ Class | Method | HTTP request | Description - [VLANRange](docs/VLANRange.md) - [ValidationMessage](docs/ValidationMessage.md) - [Version](docs/Version.md) + - [VxLANId](docs/VxLANId.md) + - [VxLANRange](docs/VxLANRange.md) + - [VxLANStack](docs/VxLANStack.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index a82dbbf..d81f674 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -289,6 +289,7 @@ from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.mapping_type import MappingType from cyperf.models.marked_as_deleted import MarkedAsDeleted +from cyperf.models.md2_tlv import Md2Tlv from cyperf.models.media_file import MediaFile from cyperf.models.media_track import MediaTrack from cyperf.models.metadata import Metadata @@ -422,3 +423,6 @@ from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version +from cyperf.models.vx_lanid import VxLANId +from cyperf.models.vx_lan_range import VxLANRange +from cyperf.models.vx_lan_stack import VxLANStack diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index da3c6ef..3643744 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -8391,6 +8391,264 @@ def _get_resources_captures_serialize( + @validate_call + def get_resources_captures_encrypted_upload_file_result( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """get_resources_captures_encrypted_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_captures_encrypted_upload_file_result_with_http_info( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """get_resources_captures_encrypted_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_captures_encrypted_upload_file_result_without_preload_content( + self, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_captures_encrypted_upload_file_result + + Get the result of the upload file operation. + + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_captures_encrypted_upload_file_result_serialize( + self, + upload_file_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_resources_captures_upload_file_result( self, @@ -28012,15 +28270,25 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( - @validate_call - def start_resources_apps_export_all( - self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], + + + + + + + + + + + @validate_call + def start_resources_apps_export_all( + self, + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, @@ -28514,6 +28782,274 @@ def _start_resources_captures_batch_delete_serialize( + @validate_call + def start_resources_captures_encrypted_upload_file( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """start_resources_captures_encrypted_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_captures_encrypted_upload_file_with_http_info( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """start_resources_captures_encrypted_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_captures_encrypted_upload_file_without_preload_content( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_resources_captures_encrypted_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_resources_captures_encrypted_upload_file_serialize( + self, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def start_resources_captures_upload_file( self, diff --git a/cyperf/api/test_results_api.py b/cyperf/api/test_results_api.py index e6a095e..aed223e 100644 --- a/cyperf/api/test_results_api.py +++ b/cyperf/api/test_results_api.py @@ -2855,6 +2855,268 @@ def _get_results_tags_serialize( + + + + + + + + + + + + + + + @validate_call + def start_result_export_events( + self, + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_result_export_events + + Export events file. + + :param result_id: The ID of the result. (required) + :type result_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_result_export_events_serialize( + result_id=result_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_result_export_events_with_http_info( + self, + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_result_export_events + + Export events file. + + :param result_id: The ID of the result. (required) + :type result_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_result_export_events_serialize( + result_id=result_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_result_export_events_without_preload_content( + self, + result_id: Annotated[StrictStr, Field(description="The ID of the result.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_result_export_events + + Export events file. + + :param result_id: The ID of the result. (required) + :type result_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_result_export_events_serialize( + result_id=result_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_result_export_events_serialize( + self, + result_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if result_id is not None: + _path_params['resultId'] = result_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/results/{resultId}/operations/export-events', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 215a909..b8e637d 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -255,6 +255,7 @@ MacDtlsStack = DynamicModel('MacDtlsStack', (), {} ) MappingType = DynamicModel('MappingType', (), {} ) MarkedAsDeleted = DynamicModel('MarkedAsDeleted', (), {} ) +Md2Tlv = DynamicModel('Md2Tlv', (), {} ) MediaFile = DynamicModel('MediaFile', (), {} ) MediaTrack = DynamicModel('MediaTrack', (), {} ) Metadata = DynamicModel('Metadata', (), {} ) @@ -388,3 +389,6 @@ VLANRange = DynamicModel('VLANRange', (), {} ) ValidationMessage = DynamicModel('ValidationMessage', (), {} ) Version = DynamicModel('Version', (), {} ) +VxLANId = DynamicModel('VxLANId', (), {} ) +VxLANRange = DynamicModel('VxLANRange', (), {} ) +VxLANStack = DynamicModel('VxLANStack', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 078454c..254e219 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -255,6 +255,7 @@ class LinkNameException(Exception): from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.mapping_type import MappingType from cyperf.models.marked_as_deleted import MarkedAsDeleted +from cyperf.models.md2_tlv import Md2Tlv from cyperf.models.media_file import MediaFile from cyperf.models.media_track import MediaTrack from cyperf.models.metadata import Metadata @@ -388,3 +389,6 @@ class LinkNameException(Exception): from cyperf.models.vlan_range import VLANRange from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version +from cyperf.models.vx_lanid import VxLANId +from cyperf.models.vx_lan_range import VxLANRange +from cyperf.models.vx_lan_stack import VxLANStack diff --git a/cyperf/models/app_flow.py b/cyperf/models/app_flow.py index 0fa6de8..8f33d2c 100644 --- a/cyperf/models/app_flow.py +++ b/cyperf/models/app_flow.py @@ -34,12 +34,13 @@ class AppFlow(BaseModel): dst_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="dstAddress") dst_port: Optional[StrictInt] = Field(default=None, alias="dstPort") exchanges: Optional[List[AppExchange]] = Field(default=None, description="The list of exchanges") + http_host: Optional[StrictStr] = Field(default=None, alias="httpHost") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None src_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="srcAddress") src_port: Optional[StrictInt] = Field(default=None, alias="srcPort") transport_type: Optional[StrictStr] = Field(default=None, alias="transportType") - __properties: ClassVar[List[str]] = ["displayId", "dstAddress", "dstPort", "exchanges", "id", "links", "srcAddress", "srcPort", "transportType"] + __properties: ClassVar[List[str]] = ["displayId", "dstAddress", "dstPort", "exchanges", "httpHost", "id", "links", "srcAddress", "srcPort", "transportType"] model_config = ConfigDict( populate_by_name=True, @@ -116,6 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "dstAddress": obj.get("dstAddress"), "dstPort": obj.get("dstPort"), "exchanges": [AppExchange.from_dict(_item) for _item in obj["exchanges"]] if obj.get("exchanges") is not None else None, + "httpHost": obj.get("httpHost"), "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "srcAddress": obj.get("srcAddress"), diff --git a/cyperf/models/app_flow_desc.py b/cyperf/models/app_flow_desc.py index 3f39e41..314b556 100644 --- a/cyperf/models/app_flow_desc.py +++ b/cyperf/models/app_flow_desc.py @@ -30,9 +30,10 @@ class AppFlowDesc(BaseModel): """ # noqa: E501 dst_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="dstAddress") dst_port: Optional[StrictInt] = Field(default=None, alias="dstPort") + http_host: Optional[StrictStr] = Field(default=None, alias="httpHost") src_address: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="srcAddress") src_port: Optional[StrictInt] = Field(default=None, alias="srcPort") - __properties: ClassVar[List[str]] = ["dstAddress", "dstPort", "srcAddress", "srcPort"] + __properties: ClassVar[List[str]] = ["dstAddress", "dstPort", "httpHost", "srcAddress", "srcPort"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "dstAddress": obj.get("dstAddress"), "dstPort": obj.get("dstPort"), + "httpHost": obj.get("httpHost"), "srcAddress": obj.get("srcAddress"), "srcPort": obj.get("srcPort") , diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index f500f9c..45702d2 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -30,8 +30,10 @@ class ChassisInfo(BaseModel): """ # noqa: E501 checkout_id: Optional[StrictInt] = Field(default=None, description="The id of the compute node used for checkout licenses", alias="checkoutID") compute_node_id: Optional[StrictStr] = Field(default=None, description="The id of the compute node where the agent is running", alias="computeNodeID") + hw_platform: Optional[StrictStr] = Field(default=None, alias="hwPlatform") + hw_revision: Optional[StrictStr] = Field(default=None, alias="hwRevision") port_id: Optional[StrictStr] = Field(default=None, description="The id of the corresponding port", alias="portID") - __properties: ClassVar[List[str]] = ["checkoutID", "computeNodeID", "portID"] + __properties: ClassVar[List[str]] = ["checkoutID", "computeNodeID", "hwPlatform", "hwRevision", "portID"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "checkoutID": obj.get("checkoutID"), "computeNodeID": obj.get("computeNodeID"), + "hwPlatform": obj.get("hwPlatform"), + "hwRevision": obj.get("hwRevision"), "portID": obj.get("portID") , "links": obj.get("links") diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index 62c7a57..69162ea 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -29,10 +29,11 @@ class FileValue(BaseModel): FileValue """ # noqa: E501 file_name: Optional[StrictStr] = Field(default=None, description="The name of the file.", alias="fileName") + md5_sum: Optional[StrictStr] = Field(default=None, description="The MD5 sum of the file", alias="md5Sum") payload: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, description="The payload value of the file.") resource_url: Optional[StrictStr] = Field(default=None, description="The resource URL of the file.", alias="resourceURL") value: Optional[StrictStr] = Field(default=None, description="Selected column name of the file (playlist type).") - __properties: ClassVar[List[str]] = ["fileName", "payload", "resourceURL", "value"] + __properties: ClassVar[List[str]] = ["fileName", "md5Sum", "payload", "resourceURL", "value"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "fileName": obj.get("fileName"), + "md5Sum": obj.get("md5Sum"), "payload": obj.get("payload"), "resourceURL": obj.get("resourceURL"), "value": obj.get("value") diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index ada8ae9..e06651f 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -31,6 +31,7 @@ from cyperf.models.ip_sec_stack import IPSecStack from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.tunnel_stack import TunnelStack +from cyperf.models.vx_lan_stack import VxLANStack from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -51,11 +52,14 @@ class IPNetwork(BaseModel): ip_sec_stacks: Optional[List[IPSecStack]] = Field(default=None, alias="IPSecStacks") mac_dtls_stacks: Optional[List[MacDtlsStack]] = Field(default=None, alias="MacDtlsStacks") tunnel_stacks: Optional[List[TunnelStack]] = Field(default=None, alias="TunnelStacks") + vx_lan_stacks: Optional[List[VxLANStack]] = Field(default=None, alias="VxLANStacks") active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the network segment is active.(default: true)") agent_assignments: Optional[AgentAssignments] = Field(default=None, alias="agentAssignments") + inherit_streaming_cpu_allocation: Optional[StrictBool] = Field(default=None, description="A flag indicating if the CPU percentage used by agents assigned to this network segment for streaming purposes will be inherited from the objective settings (default: true).", alias="inheritStreamingCPUAllocation") links: Optional[List[APILink]] = None min_agents: Optional[StrictInt] = Field(default=None, description="The minimum number of agents that should be assigned to this network segment in a valid test (default: 1).", alias="minAgents") - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "DNSResolver", "DNSServer", "DUTConnections", "EmulatedRouter", "EthRange", "IPRanges", "IPSecStacks", "MacDtlsStacks", "TunnelStacks", "active", "agentAssignments", "links", "minAgents"] + streaming_cpu_allocation: Optional[StrictInt] = Field(default=None, description="The CPU percentage used by agents assigned to this network segment for streaming purposes (default: 25).", alias="streamingCPUAllocation") + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "DNSResolver", "DNSServer", "DUTConnections", "EmulatedRouter", "EthRange", "IPRanges", "IPSecStacks", "MacDtlsStacks", "TunnelStacks", "VxLANStacks", "active", "agentAssignments", "inheritStreamingCPUAllocation", "links", "minAgents", "streamingCPUAllocation"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -143,6 +147,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['TunnelStacks'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in vx_lan_stacks (list) + _items = [] + if self.vx_lan_stacks: + for _item in self.vx_lan_stacks: + if _item: + _items.append(_item.to_dict()) + _dict['VxLANStacks'] = _items # override the default output from pydantic by calling `to_dict()` of agent_assignments if self.agent_assignments: _dict['agentAssignments'] = self.agent_assignments.to_dict() @@ -179,10 +190,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IPSecStacks": [IPSecStack.from_dict(_item) for _item in obj["IPSecStacks"]] if obj.get("IPSecStacks") is not None else None, "MacDtlsStacks": [MacDtlsStack.from_dict(_item) for _item in obj["MacDtlsStacks"]] if obj.get("MacDtlsStacks") is not None else None, "TunnelStacks": [TunnelStack.from_dict(_item) for _item in obj["TunnelStacks"]] if obj.get("TunnelStacks") is not None else None, + "VxLANStacks": [VxLANStack.from_dict(_item) for _item in obj["VxLANStacks"]] if obj.get("VxLANStacks") is not None else None, "active": obj.get("active"), "agentAssignments": AgentAssignments.from_dict(obj["agentAssignments"]) if obj.get("agentAssignments") is not None else None, + "inheritStreamingCPUAllocation": obj.get("inheritStreamingCPUAllocation"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "minAgents": obj.get("minAgents") + "minAgents": obj.get("minAgents"), + "streamingCPUAllocation": obj.get("streamingCPUAllocation") , "links": obj.get("links") }) diff --git a/cyperf/models/md2_tlv.py b/cyperf/models/md2_tlv.py new file mode 100644 index 0000000..af3e8f4 --- /dev/null +++ b/cyperf/models/md2_tlv.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class Md2Tlv(BaseModel): + """ + Md2Tlv + """ # noqa: E501 + md2_class: StrictInt = Field(alias="Md2Class") + md2_type: StrictInt = Field(alias="Md2Type") + md2_value: StrictInt = Field(alias="Md2Value") + id: StrictStr + __properties: ClassVar[List[str]] = ["Md2Class", "Md2Type", "Md2Value", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Md2Tlv from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Md2Tlv from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Md2Class": obj.get("Md2Class"), + "Md2Type": obj.get("Md2Type"), + "Md2Value": obj.get("Md2Value"), + "id": obj.get("id") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/secondary_objective.py b/cyperf/models/secondary_objective.py index 3a939fe..5039a92 100644 --- a/cyperf/models/secondary_objective.py +++ b/cyperf/models/secondary_objective.py @@ -35,7 +35,7 @@ class SecondaryObjective(BaseModel): max_simulated_users_per_interval: Optional[StrictInt] = Field(default=None, description="Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit)", alias="MaxSimulatedUsersPerInterval") objective_unit: StrictStr = Field(description="The objective's unit.", alias="ObjectiveUnit") objective_value: Union[StrictFloat, StrictInt] = Field(description="The value of the secondary objective. This value will be used for the whole duration of the test.", alias="ObjectiveValue") - type: ObjectiveType = Field(description="The objective's type (default: SimulatedUsers).", alias="Type") + type: ObjectiveType = Field(alias="Type") __properties: ClassVar[List[str]] = ["Enabled", "MaxPendingSimulatedUsers", "MaxSimulatedUsersPerInterval", "ObjectiveUnit", "ObjectiveValue", "Type"] @field_validator('max_pending_simulated_users') diff --git a/cyperf/models/specific_objective.py b/cyperf/models/specific_objective.py index d9f246a..3bb8ee7 100644 --- a/cyperf/models/specific_objective.py +++ b/cyperf/models/specific_objective.py @@ -36,7 +36,7 @@ class SpecificObjective(BaseModel): max_pending_simulated_users: Annotated[str, Field(strict=True)] = Field(description="Only applies if Type is SimulatedUsers. The maximum number or percentage of users that can be in the pending state (not yet connected and sending traffic) at any time. You can either specify a number or a percentage using the % sign.", alias="MaxPendingSimulatedUsers") max_simulated_users_per_interval: Optional[StrictInt] = Field(default=None, description="Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit)", alias="MaxSimulatedUsersPerInterval") timeline: Optional[List[TimelineSegmentUnion]] = Field(default=None, description="The timeline of this objective.", alias="Timeline") - type: ObjectiveType = Field(description="The objective's type (default: Throughput).", alias="Type") + type: ObjectiveType = Field(alias="Type") unit: ObjectiveUnit = Field(description="The objective's unit. Must be one of: bps or ''.", alias="Unit") id: StrictStr links: Optional[List[APILink]] = None diff --git a/cyperf/models/vx_lan_range.py b/cyperf/models/vx_lan_range.py new file mode 100644 index 0000000..6d83bcc --- /dev/null +++ b/cyperf/models/vx_lan_range.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.md2_tlv import Md2Tlv +from cyperf.models.vx_lanid import VxLANId +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANRange(BaseModel): + """ + The VxLAN IP Ranges assigned to the current test configuration + """ # noqa: E501 + hacked_inner_remote_ip_incr: Annotated[str, Field(strict=True)] = Field(alias="HackedInnerRemoteIpIncr") + hacked_inner_remote_ip_start: Annotated[str, Field(strict=True)] = Field(alias="HackedInnerRemoteIpStart") + md2_tlvs: Optional[List[Md2Tlv]] = Field(default=None, alias="Md2Tlvs") + remote_vtep_ip_local_count: StrictInt = Field(description="The number of remote VTEP IPs generated (default: 1).", alias="RemoteVtepIpLocalCount") + remote_vtep_ip_local_incr: Annotated[str, Field(strict=True)] = Field(description="The remote VTEP IP incrementation rule (default: 0.0.0.1).", alias="RemoteVtepIpLocalIncr") + remote_vtep_ip_range_incr: Annotated[str, Field(strict=True)] = Field(description="The remote VTEP IP range incrementation rule (default: 0.0.1.0).", alias="RemoteVtepIpRangeIncr") + remote_vtep_ip_start: Annotated[str, Field(strict=True)] = Field(description="The start IP for the remote VTEP (default: 10.0.0.10).", alias="RemoteVtepIpStart") + total_tunnel_count: StrictInt = Field(description="Outer IP Count * Remote VTEP IP Local Count * VxLAN ID per VTEP Pair Count", alias="TotalTunnelCount") + use_vx_lan_ids: StrictBool = Field(alias="UseVxLANIds") + vx_lanid_incr: StrictInt = Field(description="The VxLAN id incrementation rule (default: 1).", alias="VxLANIdIncr") + vx_lanid_per_vtep_pair_count: StrictInt = Field(alias="VxLANIdPerVtepPairCount") + vx_lanid_start: StrictInt = Field(description="The VxLAN start identifier (default: 1).", alias="VxLANIdStart") + vx_lan_ids: Optional[List[VxLANId]] = Field(default=None, alias="VxLANIds") + vx_lan_range_name: Annotated[str, Field(strict=True)] = Field(alias="VxLANRangeName") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["HackedInnerRemoteIpIncr", "HackedInnerRemoteIpStart", "Md2Tlvs", "RemoteVtepIpLocalCount", "RemoteVtepIpLocalIncr", "RemoteVtepIpRangeIncr", "RemoteVtepIpStart", "TotalTunnelCount", "UseVxLANIds", "VxLANIdIncr", "VxLANIdPerVtepPairCount", "VxLANIdStart", "VxLANIds", "VxLANRangeName", "id", "links"] + + @field_validator('hacked_inner_remote_ip_incr') + def hacked_inner_remote_ip_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('hacked_inner_remote_ip_start') + def hacked_inner_remote_ip_start_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_local_incr') + def remote_vtep_ip_local_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_range_incr') + def remote_vtep_ip_range_incr_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('remote_vtep_ip_start') + def remote_vtep_ip_start_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$/") + return value + + @field_validator('vx_lan_range_name') + def vx_lan_range_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANRange from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in md2_tlvs (list) + _items = [] + if self.md2_tlvs: + for _item in self.md2_tlvs: + if _item: + _items.append(_item.to_dict()) + _dict['Md2Tlvs'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in vx_lan_ids (list) + _items = [] + if self.vx_lan_ids: + for _item in self.vx_lan_ids: + if _item: + _items.append(_item.to_dict()) + _dict['VxLANIds'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANRange from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "HackedInnerRemoteIpIncr": obj.get("HackedInnerRemoteIpIncr"), + "HackedInnerRemoteIpStart": obj.get("HackedInnerRemoteIpStart"), + "Md2Tlvs": [Md2Tlv.from_dict(_item) for _item in obj["Md2Tlvs"]] if obj.get("Md2Tlvs") is not None else None, + "RemoteVtepIpLocalCount": obj.get("RemoteVtepIpLocalCount"), + "RemoteVtepIpLocalIncr": obj.get("RemoteVtepIpLocalIncr"), + "RemoteVtepIpRangeIncr": obj.get("RemoteVtepIpRangeIncr"), + "RemoteVtepIpStart": obj.get("RemoteVtepIpStart"), + "TotalTunnelCount": obj.get("TotalTunnelCount"), + "UseVxLANIds": obj.get("UseVxLANIds"), + "VxLANIdIncr": obj.get("VxLANIdIncr"), + "VxLANIdPerVtepPairCount": obj.get("VxLANIdPerVtepPairCount"), + "VxLANIdStart": obj.get("VxLANIdStart"), + "VxLANIds": [VxLANId.from_dict(_item) for _item in obj["VxLANIds"]] if obj.get("VxLANIds") is not None else None, + "VxLANRangeName": obj.get("VxLANRangeName"), + "id": obj.get("id"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/vx_lan_stack.py b/cyperf/models/vx_lan_stack.py new file mode 100644 index 0000000..5a60da0 --- /dev/null +++ b/cyperf/models/vx_lan_stack.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.ip_range import IPRange +from cyperf.models.vx_lan_range import VxLANRange +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANStack(BaseModel): + """ + The VxLAN stack assigned to the current test configuration + """ # noqa: E501 + inner_ip_range: Optional[IPRange] = Field(default=None, alias="InnerIPRange") + outer_ip_range: Optional[IPRange] = Field(default=None, alias="OuterIPRange") + vx_lan_range: Optional[VxLANRange] = Field(default=None, alias="VxLANRange") + vx_lan_stack_name: Annotated[str, Field(strict=True)] = Field(alias="VxLANStackName") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["InnerIPRange", "OuterIPRange", "VxLANRange", "VxLANStackName", "id", "links"] + + @field_validator('vx_lan_stack_name') + def vx_lan_stack_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANStack from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of inner_ip_range + if self.inner_ip_range: + _dict['InnerIPRange'] = self.inner_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of outer_ip_range + if self.outer_ip_range: + _dict['OuterIPRange'] = self.outer_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of vx_lan_range + if self.vx_lan_range: + _dict['VxLANRange'] = self.vx_lan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANStack from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "InnerIPRange": IPRange.from_dict(obj["InnerIPRange"]) if obj.get("InnerIPRange") is not None else None, + "OuterIPRange": IPRange.from_dict(obj["OuterIPRange"]) if obj.get("OuterIPRange") is not None else None, + "VxLANRange": VxLANRange.from_dict(obj["VxLANRange"]) if obj.get("VxLANRange") is not None else None, + "VxLANStackName": obj.get("VxLANStackName"), + "id": obj.get("id"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/vx_lanid.py b/cyperf/models/vx_lanid.py new file mode 100644 index 0000000..6e1b964 --- /dev/null +++ b/cyperf/models/vx_lanid.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class VxLANId(BaseModel): + """ + VxLANId + """ # noqa: E501 + vx_lan_id: StrictInt = Field(alias="VxLanId") + id: StrictStr + __properties: ClassVar[List[str]] = ["VxLanId", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of VxLANId from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of VxLANId from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "VxLanId": obj.get("VxLanId"), + "id": obj.get("id") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/utils.py b/cyperf/utils.py index 821c7ba..c020965 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -351,7 +351,7 @@ def format_stats_dict_as_table(self, stats_dict={}): lines = ['|'.join([f'{val:^{col_width}}' for val, col_width in zip(item, col_widths)]) for item in zip(*stats_dict.values())] return [line_delim, header, line_delim] + lines + [line_delim] - + def parse_cli_options(extra_options=[]): """Can be used to get parameters from the CLI or env vars that are broadly useful for CLI tests""" import argparse diff --git a/docs/AppFlow.md b/docs/AppFlow.md index d137b61..6b71bd5 100644 --- a/docs/AppFlow.md +++ b/docs/AppFlow.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **dst_address** | **bytearray** | | [optional] **dst_port** | **int** | | [optional] **exchanges** | [**List[AppExchange]**](AppExchange.md) | The list of exchanges | [optional] +**http_host** | **str** | | [optional] **id** | **str** | | [optional] [readonly] **links** | [**List[APILink]**](APILink.md) | | [optional] **src_address** | **bytearray** | | [optional] diff --git a/docs/AppFlowDesc.md b/docs/AppFlowDesc.md index f21db9a..285d515 100644 --- a/docs/AppFlowDesc.md +++ b/docs/AppFlowDesc.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dst_address** | **bytearray** | | [optional] **dst_port** | **int** | | [optional] +**http_host** | **str** | | [optional] **src_address** | **bytearray** | | [optional] **src_port** | **int** | | [optional] diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index 78b3044..1bac8fd 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -35,6 +35,7 @@ Method | HTTP request | Description [**get_resources_auth_profiles**](ApplicationResourcesApi.md#get_resources_auth_profiles) | **GET** /api/v2/resources/auth-profiles | [**get_resources_capture_by_id**](ApplicationResourcesApi.md#get_resources_capture_by_id) | **GET** /api/v2/resources/captures/{captureId} | [**get_resources_captures**](ApplicationResourcesApi.md#get_resources_captures) | **GET** /api/v2/resources/captures | +[**get_resources_captures_encrypted_upload_file_result**](ApplicationResourcesApi.md#get_resources_captures_encrypted_upload_file_result) | **GET** /api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result | [**get_resources_captures_upload_file_result**](ApplicationResourcesApi.md#get_resources_captures_upload_file_result) | **GET** /api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result | [**get_resources_certificate_by_id**](ApplicationResourcesApi.md#get_resources_certificate_by_id) | **GET** /api/v2/resources/certificates/{certificateId} | [**get_resources_certificate_content_file**](ApplicationResourcesApi.md#get_resources_certificate_content_file) | **GET** /api/v2/resources/certificates/{certificateId}/contentFile | @@ -110,6 +111,7 @@ Method | HTTP request | Description [**get_resources_user_defined_apps_upload_file_result**](ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | [**start_resources_apps_export_all**](ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | [**start_resources_captures_batch_delete**](ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | +[**start_resources_captures_encrypted_upload_file**](ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | [**start_resources_captures_upload_file**](ApplicationResourcesApi.md#start_resources_captures_upload_file) | **POST** /api/v2/resources/captures/operations/uploadFile | [**start_resources_certificates_upload_file**](ApplicationResourcesApi.md#start_resources_certificates_upload_file) | **POST** /api/v2/resources/certificates/operations/uploadFile | [**start_resources_config_export_user_defined_apps**](ApplicationResourcesApi.md#start_resources_config_export_user_defined_apps) | **POST** /api/v2/resources/configs/{configId}/operations/export-user-defined-apps | @@ -2562,6 +2564,82 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_resources_captures_encrypted_upload_file_result** +> get_resources_captures_encrypted_upload_file_result(upload_file_id) + + + +Get the result of the upload file operation. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + + try: + api_instance.get_resources_captures_encrypted_upload_file_result(upload_file_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_captures_encrypted_upload_file_result: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **upload_file_id** | **str**| The ID of the uploadfile. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The payload file that was added | - | +**400** | Bad request | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_resources_captures_upload_file_result** > get_resources_captures_upload_file_result(upload_file_id) @@ -8453,6 +8531,81 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_resources_captures_encrypted_upload_file** +> start_resources_captures_encrypted_upload_file(file=file) + + + +Upload a file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + file = None # bytearray | (optional) + + try: + api_instance.start_resources_captures_encrypted_upload_file(file=file) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_captures_encrypted_upload_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_resources_captures_upload_file** > AsyncContext start_resources_captures_upload_file(file=file) diff --git a/docs/ChassisInfo.md b/docs/ChassisInfo.md index bfc265c..5cc85f3 100644 --- a/docs/ChassisInfo.md +++ b/docs/ChassisInfo.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **checkout_id** | **int** | The id of the compute node used for checkout licenses | [optional] [readonly] **compute_node_id** | **str** | The id of the compute node where the agent is running | [optional] [readonly] +**hw_platform** | **str** | | [optional] +**hw_revision** | **str** | | [optional] **port_id** | **str** | The id of the corresponding port | [optional] [readonly] ## Example diff --git a/docs/FileValue.md b/docs/FileValue.md index b98581b..7284b39 100644 --- a/docs/FileValue.md +++ b/docs/FileValue.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | The name of the file. | [optional] +**md5_sum** | **str** | The MD5 sum of the file | [optional] **payload** | **List[bytearray]** | The payload value of the file. | [optional] **resource_url** | **str** | The resource URL of the file. | [optional] **value** | **str** | Selected column name of the file (playlist type). | [optional] diff --git a/docs/IPNetwork.md b/docs/IPNetwork.md index 580d099..dc15acf 100644 --- a/docs/IPNetwork.md +++ b/docs/IPNetwork.md @@ -18,10 +18,13 @@ Name | Type | Description | Notes **ip_sec_stacks** | [**List[IPSecStack]**](IPSecStack.md) | | [optional] **mac_dtls_stacks** | [**List[MacDtlsStack]**](MacDtlsStack.md) | | [optional] **tunnel_stacks** | [**List[TunnelStack]**](TunnelStack.md) | | [optional] +**vx_lan_stacks** | [**List[VxLANStack]**](VxLANStack.md) | | [optional] **active** | **bool** | A flag indicating if the network segment is active.(default: true) | [optional] **agent_assignments** | [**AgentAssignments**](AgentAssignments.md) | | [optional] +**inherit_streaming_cpu_allocation** | **bool** | A flag indicating if the CPU percentage used by agents assigned to this network segment for streaming purposes will be inherited from the objective settings (default: true). | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **min_agents** | **int** | The minimum number of agents that should be assigned to this network segment in a valid test (default: 1). | [optional] +**streaming_cpu_allocation** | **int** | The CPU percentage used by agents assigned to this network segment for streaming purposes (default: 25). | [optional] ## Example diff --git a/docs/Md2Tlv.md b/docs/Md2Tlv.md new file mode 100644 index 0000000..6a72839 --- /dev/null +++ b/docs/Md2Tlv.md @@ -0,0 +1,32 @@ +# Md2Tlv + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**md2_class** | **int** | | +**md2_type** | **int** | | +**md2_value** | **int** | | +**id** | **str** | | + +## Example + +```python +from cyperf.models.md2_tlv import Md2Tlv + +# TODO update the JSON string below +json = "{}" +# create an instance of Md2Tlv from a JSON string +md2_tlv_instance = Md2Tlv.from_json(json) +# print the JSON string representation of the object +print(Md2Tlv.to_json()) + +# convert the object into a dict +md2_tlv_dict = md2_tlv_instance.to_dict() +# create an instance of Md2Tlv from a dict +md2_tlv_from_dict = Md2Tlv.from_dict(md2_tlv_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecondaryObjective.md b/docs/SecondaryObjective.md index d4a1535..3dad129 100644 --- a/docs/SecondaryObjective.md +++ b/docs/SecondaryObjective.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **max_simulated_users_per_interval** | **int** | Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit) | [optional] **objective_unit** | **str** | The objective's unit. | **objective_value** | **float** | The value of the secondary objective. This value will be used for the whole duration of the test. | -**type** | [**ObjectiveType**](ObjectiveType.md) | The objective's type (default: SimulatedUsers). | +**type** | [**ObjectiveType**](ObjectiveType.md) | | ## Example diff --git a/docs/SpecificObjective.md b/docs/SpecificObjective.md index 858c0a7..132edc6 100644 --- a/docs/SpecificObjective.md +++ b/docs/SpecificObjective.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **max_pending_simulated_users** | **str** | Only applies if Type is SimulatedUsers. The maximum number or percentage of users that can be in the pending state (not yet connected and sending traffic) at any time. You can either specify a number or a percentage using the % sign. | **max_simulated_users_per_interval** | **int** | Only applies if Type is SimulatedUsers. The maximum number of simulated users at which new users are initiated and teardown per interval(1 second). Default value is 0 (no limit) | [optional] **timeline** | [**List[TimelineSegmentUnion]**](TimelineSegmentUnion.md) | The timeline of this objective. | [optional] -**type** | [**ObjectiveType**](ObjectiveType.md) | The objective's type (default: Throughput). | +**type** | [**ObjectiveType**](ObjectiveType.md) | | **unit** | [**ObjectiveUnit**](ObjectiveUnit.md) | The objective's unit. Must be one of: bps or ''. | **id** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/TestResultsApi.md b/docs/TestResultsApi.md index 7aff89c..e9463f9 100644 --- a/docs/TestResultsApi.md +++ b/docs/TestResultsApi.md @@ -14,6 +14,7 @@ Method | HTTP request | Description [**get_result_files**](TestResultsApi.md#get_result_files) | **GET** /api/v2/results/{resultId}/files | [**get_results**](TestResultsApi.md#get_results) | **GET** /api/v2/results | [**get_results_tags**](TestResultsApi.md#get_results_tags) | **GET** /api/v2/results/tags | +[**start_result_export_events**](TestResultsApi.md#start_result_export_events) | **POST** /api/v2/results/{resultId}/operations/export-events | [**start_result_generate_all**](TestResultsApi.md#start_result_generate_all) | **POST** /api/v2/results/{resultId}/operations/generate-all | [**start_result_generate_results**](TestResultsApi.md#start_result_generate_results) | **POST** /api/v2/results/{resultId}/operations/generate-results | [**start_result_load**](TestResultsApi.md#start_result_load) | **POST** /api/v2/results/{resultId}/operations/load | @@ -817,6 +818,83 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_result_export_events** +> AsyncContext start_result_export_events(result_id) + + + +Export events file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.TestResultsApi(api_client) + result_id = 'result_id_example' # str | The ID of the result. + + try: + api_response = api_instance.start_result_export_events(result_id) + print("The response of TestResultsApi->start_result_export_events:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TestResultsApi->start_result_export_events: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **result_id** | **str**| The ID of the result. | + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_result_generate_all** > AsyncContext start_result_generate_all(result_id, generate_all_operation=generate_all_operation) diff --git a/docs/VxLANId.md b/docs/VxLANId.md new file mode 100644 index 0000000..58d2b24 --- /dev/null +++ b/docs/VxLANId.md @@ -0,0 +1,30 @@ +# VxLANId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vx_lan_id** | **int** | | +**id** | **str** | | + +## Example + +```python +from cyperf.models.vx_lanid import VxLANId + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANId from a JSON string +vx_lanid_instance = VxLANId.from_json(json) +# print the JSON string representation of the object +print(VxLANId.to_json()) + +# convert the object into a dict +vx_lanid_dict = vx_lanid_instance.to_dict() +# create an instance of VxLANId from a dict +vx_lanid_from_dict = VxLANId.from_dict(vx_lanid_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VxLANRange.md b/docs/VxLANRange.md new file mode 100644 index 0000000..0c3a9c8 --- /dev/null +++ b/docs/VxLANRange.md @@ -0,0 +1,45 @@ +# VxLANRange + +The VxLAN IP Ranges assigned to the current test configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hacked_inner_remote_ip_incr** | **str** | | +**hacked_inner_remote_ip_start** | **str** | | +**md2_tlvs** | [**List[Md2Tlv]**](Md2Tlv.md) | | [optional] +**remote_vtep_ip_local_count** | **int** | The number of remote VTEP IPs generated (default: 1). | +**remote_vtep_ip_local_incr** | **str** | The remote VTEP IP incrementation rule (default: 0.0.0.1). | +**remote_vtep_ip_range_incr** | **str** | The remote VTEP IP range incrementation rule (default: 0.0.1.0). | +**remote_vtep_ip_start** | **str** | The start IP for the remote VTEP (default: 10.0.0.10). | +**total_tunnel_count** | **int** | Outer IP Count * Remote VTEP IP Local Count * VxLAN ID per VTEP Pair Count | +**use_vx_lan_ids** | **bool** | | +**vx_lanid_incr** | **int** | The VxLAN id incrementation rule (default: 1). | +**vx_lanid_per_vtep_pair_count** | **int** | | +**vx_lanid_start** | **int** | The VxLAN start identifier (default: 1). | +**vx_lan_ids** | [**List[VxLANId]**](VxLANId.md) | | [optional] +**vx_lan_range_name** | **str** | | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.vx_lan_range import VxLANRange + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANRange from a JSON string +vx_lan_range_instance = VxLANRange.from_json(json) +# print the JSON string representation of the object +print(VxLANRange.to_json()) + +# convert the object into a dict +vx_lan_range_dict = vx_lan_range_instance.to_dict() +# create an instance of VxLANRange from a dict +vx_lan_range_from_dict = VxLANRange.from_dict(vx_lan_range_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VxLANStack.md b/docs/VxLANStack.md new file mode 100644 index 0000000..571b277 --- /dev/null +++ b/docs/VxLANStack.md @@ -0,0 +1,35 @@ +# VxLANStack + +The VxLAN stack assigned to the current test configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inner_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**outer_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**vx_lan_range** | [**VxLANRange**](VxLANRange.md) | | [optional] +**vx_lan_stack_name** | **str** | | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.vx_lan_stack import VxLANStack + +# TODO update the JSON string below +json = "{}" +# create an instance of VxLANStack from a JSON string +vx_lan_stack_instance = VxLANStack.from_json(json) +# print the JSON string representation of the object +print(VxLANStack.to_json()) + +# convert the object into a dict +vx_lan_stack_dict = vx_lan_stack_instance.to_dict() +# create an instance of VxLANStack from a dict +vx_lan_stack_from_dict = VxLANStack.from_dict(vx_lan_stack_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/sample_create_save_and_export_config.py b/samples/sample_create_save_and_export_config.py index a0dc980..74db18a 100644 --- a/samples/sample_create_save_and_export_config.py +++ b/samples/sample_create_save_and_export_config.py @@ -84,12 +84,6 @@ api_session_response.await_completion() print("Applications added successfully.\n") - # Create a Network Profile - print("Adding network elements...") - network_profile = NetworkProfile(IPNetworkSegment=[], id="1") - session.config.config.network_profiles.append(network_profile) - session.config.config.network_profiles.update() - # Create IP Networks client_ip_network = IPNetwork(name="IP Network 1", id="1", agentAssignments=AgentAssignments(by_tag=[]), minAgents=1) server_ip_network = IPNetwork(name="IP Network 2", id="2", agentAssignments=AgentAssignments(by_tag=[]), minAgents=1) diff --git a/test/test_action_input_find_param.py b/test/test_action_input_find_param.py index f1446ed..2b37f35 100644 --- a/test/test_action_input_find_param.py +++ b/test/test_action_input_find_param.py @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> ActionInputFindParam: app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56, ), app_flow_id = '', diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py index 4352fde..2c54fa7 100644 --- a/test/test_action_metadata.py +++ b/test/test_action_metadata.py @@ -97,6 +97,7 @@ def make_instance(self, include_optional) -> ActionMetadata: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_agent.py b/test/test_agent.py index 1385468..3c84577 100644 --- a/test/test_agent.py +++ b/test/test_agent.py @@ -112,6 +112,8 @@ def make_instance(self, include_optional) -> Agent: chassis_info = cyperf.models.chassis_info.ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '', ), kernel_version = '', os_name = '', diff --git a/test/test_app_flow.py b/test/test_app_flow.py index d03db57..a767bc8 100644 --- a/test/test_app_flow.py +++ b/test/test_app_flow.py @@ -92,6 +92,7 @@ def make_instance(self, include_optional) -> AppFlow: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_app_flow_desc.py b/test/test_app_flow_desc.py index 3f12f7c..c4b2dba 100644 --- a/test/test_app_flow_desc.py +++ b/test/test_app_flow_desc.py @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> AppFlowDesc: return AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56 ) diff --git a/test/test_app_flow_input_find_param.py b/test/test_app_flow_input_find_param.py index 8a38529..c53fbf2 100644 --- a/test/test_app_flow_input_find_param.py +++ b/test/test_app_flow_input_find_param.py @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AppFlowInputFindParam: app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56, ), app_flow_id = '', diff --git a/test/test_application_profile.py b/test/test_application_profile.py index bf198d1..f08fa69 100644 --- a/test/test_application_profile.py +++ b/test/test_application_profile.py @@ -86,7 +86,7 @@ def make_instance(self, include_optional) -> ApplicationProfile: timeline = [ null ], - type = null, + type = 'Simulated users', unit = null, id = '', links = [ diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py index 2b794b6..c780ed6 100644 --- a/test/test_application_resources_api.py +++ b/test/test_application_resources_api.py @@ -214,6 +214,12 @@ def test_get_resources_captures(self) -> None: """ pass + def test_get_resources_captures_encrypted_upload_file_result(self) -> None: + """Test case for get_resources_captures_encrypted_upload_file_result + + """ + pass + def test_get_resources_captures_upload_file_result(self) -> None: """Test case for get_resources_captures_upload_file_result @@ -679,6 +685,7 @@ def test_get_resources_user_defined_apps_upload_file_result(self) -> None: + def test_start_resources_apps_export_all(self) -> None: @@ -693,6 +700,12 @@ def test_start_resources_captures_batch_delete(self) -> None: """ pass + def test_start_resources_captures_encrypted_upload_file(self) -> None: + """Test case for start_resources_captures_encrypted_upload_file + + """ + pass + def test_start_resources_captures_upload_file(self) -> None: """Test case for start_resources_captures_upload_file diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index 4a2e261..3cebc8b 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -105,6 +105,7 @@ def make_instance(self, include_optional) -> AppsecApp: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index c1af2a6..cf92393 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -99,6 +99,7 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_capture_input_find_param.py b/test/test_capture_input_find_param.py index 14725e9..951cf83 100644 --- a/test/test_capture_input_find_param.py +++ b/test/test_capture_input_find_param.py @@ -42,6 +42,7 @@ def make_instance(self, include_optional) -> CaptureInputFindParam: app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56, ), app_flow_id = '', diff --git a/test/test_chassis_info.py b/test/test_chassis_info.py index cfc1697..b4a2047 100644 --- a/test/test_chassis_info.py +++ b/test/test_chassis_info.py @@ -38,6 +38,8 @@ def make_instance(self, include_optional) -> ChassisInfo: return ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '' ) else: diff --git a/test/test_file_value.py b/test/test_file_value.py index d8ea071..9ba8448 100644 --- a/test/test_file_value.py +++ b/test/test_file_value.py @@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> FileValue: if include_optional: return FileValue( file_name = '', + md5_sum = '', payload = [ 'YQ==' ], diff --git a/test/test_find_param_matches_operation.py b/test/test_find_param_matches_operation.py index 2f515a0..69cd9ba 100644 --- a/test/test_find_param_matches_operation.py +++ b/test/test_find_param_matches_operation.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> FindParamMatchesOperation: app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( dst_address = 'YQ==', dst_port = 56, + http_host = '', src_address = 'YQ==', src_port = 56, ), app_flow_id = '', diff --git a/test/test_get_agents200_response.py b/test/test_get_agents200_response.py index 11d00ad..1e3789a 100644 --- a/test/test_get_agents200_response.py +++ b/test/test_get_agents200_response.py @@ -102,6 +102,8 @@ def make_instance(self, include_optional) -> GetAgents200Response: chassis_info = cyperf.models.chassis_info.ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '', ), kernel_version = '', os_name = '', diff --git a/test/test_get_agents200_response_one_of.py b/test/test_get_agents200_response_one_of.py index 4e45330..9118001 100644 --- a/test/test_get_agents200_response_one_of.py +++ b/test/test_get_agents200_response_one_of.py @@ -102,6 +102,8 @@ def make_instance(self, include_optional) -> GetAgents200ResponseOneOf: chassis_info = cyperf.models.chassis_info.ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '', ), kernel_version = '', os_name = '', diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index 639dafc..b3ae529 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -107,6 +107,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index 7620947..29bd111 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -107,6 +107,7 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_ip_network.py b/test/test_ip_network.py index a59542c..950edea 100644 --- a/test/test_ip_network.py +++ b/test/test_ip_network.py @@ -224,6 +224,24 @@ def make_instance(self, include_optional) -> IPNetwork: type = '', ) ], ) ], + vx_lan_stacks = [ + cyperf.models.vx_lan_stack.VxLANStack( + inner_ip_range = null, + outer_ip_range = null, + vx_lan_range = null, + vx_lan_stack_name = 'YBuLd', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ) + ], active = True, agent_assignments = cyperf.models.agent_assignments.AgentAssignments( by_id = [ @@ -245,6 +263,7 @@ def make_instance(self, include_optional) -> IPNetwork: rel = '', type = '', ) ], ), + inherit_streaming_cpu_allocation = True, links = [ cyperf.models.api_link.APILink( content_type = '', @@ -255,7 +274,8 @@ def make_instance(self, include_optional) -> IPNetwork: rel = '', type = '', ) ], - min_agents = 56 + min_agents = 56, + streaming_cpu_allocation = 56 ) else: return IPNetwork( diff --git a/test/test_md2_tlv.py b/test/test_md2_tlv.py new file mode 100644 index 0000000..8b8b018 --- /dev/null +++ b/test/test_md2_tlv.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.md2_tlv import Md2Tlv + +class TestMd2Tlv(unittest.TestCase): + """Md2Tlv unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Md2Tlv: + """Test Md2Tlv + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Md2Tlv` + """ + model = Md2Tlv() + if include_optional: + return Md2Tlv( + md2_class = 56, + md2_type = 56, + md2_value = 56, + id = '' + ) + else: + return Md2Tlv( + md2_class = 56, + md2_type = 56, + md2_value = 56, + id = '', + ) + """ + + def testMd2Tlv(self): + """Test Md2Tlv""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_media_file.py b/test/test_media_file.py index da6543d..64a5041 100644 --- a/test/test_media_file.py +++ b/test/test_media_file.py @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> MediaFile: return MediaFile( file_value = cyperf.models.file_value.FileValue( file_name = '', + md5_sum = '', payload = [ 'YQ==' ], diff --git a/test/test_objectives_and_timeline.py b/test/test_objectives_and_timeline.py index 7a84d3b..cc49bb0 100644 --- a/test/test_objectives_and_timeline.py +++ b/test/test_objectives_and_timeline.py @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> ObjectivesAndTimeline: timeline = [ null ], - type = null, + type = 'Simulated users', unit = null, id = '', links = [ @@ -67,7 +67,7 @@ def make_instance(self, include_optional) -> ObjectivesAndTimeline: max_simulated_users_per_interval = 56, objective_unit = '', objective_value = 1.337, - type = null, ), + type = 'Simulated users', ), secondary_objectives = [ cyperf.models.specific_objective.SpecificObjective( max_pending_simulated_users = '80728', @@ -75,7 +75,7 @@ def make_instance(self, include_optional) -> ObjectivesAndTimeline: timeline = [ null ], - type = null, + type = 'Simulated users', unit = null, id = '', links = [ diff --git a/test/test_params.py b/test/test_params.py index 90c8570..7bdb54b 100644 --- a/test/test_params.py +++ b/test/test_params.py @@ -59,6 +59,7 @@ def make_instance(self, include_optional) -> Params: ], ), file_value = cyperf.models.file_value.FileValue( file_name = '', + md5_sum = '', payload = [ 'YQ==' ], diff --git a/test/test_replay_capture.py b/test/test_replay_capture.py index b89b0ae..d4f9440 100644 --- a/test/test_replay_capture.py +++ b/test/test_replay_capture.py @@ -94,6 +94,7 @@ def make_instance(self, include_optional) -> ReplayCapture: size = 56, type = '', ), ) ], + http_host = '', id = '', links = [ cyperf.models.api_link.APILink( diff --git a/test/test_system_info.py b/test/test_system_info.py index 432c630..37e5280 100644 --- a/test/test_system_info.py +++ b/test/test_system_info.py @@ -39,6 +39,8 @@ def make_instance(self, include_optional) -> SystemInfo: chassis_info = cyperf.models.chassis_info.ChassisInfo( checkout_id = 56, compute_node_id = '', + hw_platform = '', + hw_revision = '', port_id = '', ), kernel_version = '', os_name = '', diff --git a/test/test_test_results_api.py b/test/test_test_results_api.py index 6520aaa..7384694 100644 --- a/test/test_test_results_api.py +++ b/test/test_test_results_api.py @@ -92,6 +92,13 @@ def test_get_results_tags(self) -> None: + + def test_start_result_export_events(self) -> None: + """Test case for start_result_export_events + + """ + pass + def test_start_result_generate_all(self) -> None: """Test case for start_result_generate_all diff --git a/test/test_vx_lan_range.py b/test/test_vx_lan_range.py new file mode 100644 index 0000000..8511ecf --- /dev/null +++ b/test/test_vx_lan_range.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.vx_lan_range import VxLANRange + +class TestVxLANRange(unittest.TestCase): + """VxLANRange unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VxLANRange: + """Test VxLANRange + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `VxLANRange` + """ + model = VxLANRange() + if include_optional: + return VxLANRange( + hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', + hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', + md2_tlvs = [ + cyperf.models.md2_tlv.Md2Tlv( + md2_class = 56, + md2_type = 56, + md2_value = 56, + id = '', ) + ], + remote_vtep_ip_local_count = 56, + remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', + total_tunnel_count = 56, + use_vx_lan_ids = True, + vx_lanid_incr = 56, + vx_lanid_per_vtep_pair_count = 56, + vx_lanid_start = 56, + vx_lan_ids = [ + cyperf.models.vx_lanid.VxLANId( + vx_lan_id = 56, + id = '', ) + ], + vx_lan_range_name = 'YBuLd', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ] + ) + else: + return VxLANRange( + hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', + hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_local_count = 56, + remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', + total_tunnel_count = 56, + use_vx_lan_ids = True, + vx_lanid_incr = 56, + vx_lanid_per_vtep_pair_count = 56, + vx_lanid_start = 56, + vx_lan_range_name = 'YBuLd', + id = '', + ) + """ + + def testVxLANRange(self): + """Test VxLANRange""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vx_lan_stack.py b/test/test_vx_lan_stack.py new file mode 100644 index 0000000..18232fa --- /dev/null +++ b/test/test_vx_lan_stack.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.vx_lan_stack import VxLANStack + +class TestVxLANStack(unittest.TestCase): + """VxLANStack unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VxLANStack: + """Test VxLANStack + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `VxLANStack` + """ + model = VxLANStack() + if include_optional: + return VxLANStack( + inner_ip_range = cyperf.models.ip_range.IPRange( + automatic_ip_type = null, + count = 56, + gw_auto = True, + gw_start = '::02:84:9:0cc0:F:CCf', + host_count = 56, + inner_vlan_range = null, + ip_auto = True, + ip_incr = '::02:84:9:0cc0:F:CCf', + ip_range_name = 'YBuLd', + ip_start = '::02:84:9:0cc0:F:CCf', + ip_ver = null, + is_emulated_router = True, + mss = 56, + mss_auto = True, + net_mask = 56, + net_mask_auto = True, + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + max_count_per_agent = 56, + network_tags = [ + '' + ], ), + outer_ip_range = cyperf.models.ip_range.IPRange( + automatic_ip_type = null, + count = 56, + gw_auto = True, + gw_start = '::02:84:9:0cc0:F:CCf', + host_count = 56, + inner_vlan_range = null, + ip_auto = True, + ip_incr = '::02:84:9:0cc0:F:CCf', + ip_range_name = 'YBuLd', + ip_start = '::02:84:9:0cc0:F:CCf', + ip_ver = null, + is_emulated_router = True, + mss = 56, + mss_auto = True, + net_mask = 56, + net_mask_auto = True, + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + max_count_per_agent = 56, + network_tags = [ + '' + ], ), + vx_lan_range = cyperf.models.vx_lan_range.VxLANRange( + hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', + hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', + md2_tlvs = [ + cyperf.models.md2_tlv.Md2Tlv( + md2_class = 56, + md2_type = 56, + md2_value = 56, + id = '', ) + ], + remote_vtep_ip_local_count = 56, + remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', + remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', + total_tunnel_count = 56, + use_vx_lan_ids = True, + vx_lanid_incr = 56, + vx_lanid_per_vtep_pair_count = 56, + vx_lanid_start = 56, + vx_lan_ids = [ + cyperf.models.vx_lanid.VxLANId( + vx_lan_id = 56, + id = '', ) + ], + vx_lan_range_name = 'YBuLd', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), + vx_lan_stack_name = 'YBuLd', + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ] + ) + else: + return VxLANStack( + vx_lan_stack_name = 'YBuLd', + id = '', + ) + """ + + def testVxLANStack(self): + """Test VxLANStack""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_vx_lanid.py b/test/test_vx_lanid.py new file mode 100644 index 0000000..9e71968 --- /dev/null +++ b/test/test_vx_lanid.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.vx_lanid import VxLANId + +class TestVxLANId(unittest.TestCase): + """VxLANId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VxLANId: + """Test VxLANId + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `VxLANId` + """ + model = VxLANId() + if include_optional: + return VxLANId( + vx_lan_id = 56, + id = '' + ) + else: + return VxLANId( + vx_lan_id = 56, + id = '', + ) + """ + + def testVxLANId(self): + """Test VxLANId""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() From 454f342d0c43af6b221eb3907ff7f7c08b132153 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 19 Nov 2025 06:45:31 -0700 Subject: [PATCH 19/53] Pull request #48: fix-wrapper-version-integration-tests Merge in ISGAPPSEC/cyperf-api-wrapper from fix-wrapper-version-integration-tests to main Squashed commit of the following: commit 498a9257094abcfdaa912d4a3c95856c70f4227a Author: iustmitu Date: Wed Nov 19 14:28:31 2025 +0200 regenerated wrapper --- README.md | 12 +- cyperf/__init__.py | 7 +- cyperf/api/application_resources_api.py | 4598 ++++++++++------- cyperf/api/configurations_api.py | 546 ++ cyperf/dynamic_models/__init__.py | 7 +- cyperf/models/__init__.py | 7 +- cyperf/models/appsec_app_metadata.py | 14 +- .../appsec_app_metadata_keywords_inner.py | 208 + cyperf/models/attack_metadata.py | 6 +- cyperf/models/command.py | 6 +- cyperf/models/command_metadata.py | 145 + cyperf/models/config_category.py | 24 +- cyperf/models/config_metadata.py | 6 +- cyperf/models/config_sub_category.py | 93 + cyperf/models/generic_file.py | 6 +- cyperf/models/get_apps_operation.py | 121 + ...fig_categorie_subcategories200_response.py | 143 + ...egorie_subcategories200_response_one_of.py | 103 + cyperf/models/metadata.py | 6 +- cyperf/models/open_api_definitions.py | 6 +- cyperf/models/plugin_stats.py | 6 +- cyperf/models/snapshot.py | 6 +- docs/ApplicationResourcesApi.md | 244 +- docs/AppsecAppMetadata.md | 1 + docs/AppsecAppMetadataKeywordsInner.md | 28 + docs/AttackMetadata.md | 2 +- docs/Command.md | 2 +- docs/CommandMetadata.md | 45 + docs/ConfigCategory.md | 2 + docs/ConfigMetadata.md | 2 +- docs/ConfigSubCategory.md | 29 + docs/ConfigurationsApi.md | 161 + docs/GenericFile.md | 2 +- docs/GetAppsOperation.md | 35 + ...ConfigCategorieSubcategories200Response.md | 30 + ...gCategorieSubcategories200ResponseOneOf.md | 30 + docs/Metadata.md | 2 +- docs/OpenAPIDefinitions.md | 2 +- docs/PluginStats.md | 2 +- docs/Snapshot.md | 2 +- test/test_application_resources_api.py | 20 + test/test_application_type.py | 6 +- test/test_appsec_app.py | 3 + test/test_appsec_app_metadata.py | 3 + ...test_appsec_app_metadata_keywords_inner.py | 52 + test/test_command.py | 3 +- test/test_command_metadata.py | 86 + test/test_config_category.py | 16 +- test/test_config_sub_category.py | 53 + test/test_configurations_api.py | 12 + test/test_get_apps_operation.py | 73 + ...fig_categorie_subcategories200_response.py | 57 + ...egorie_subcategories200_response_one_of.py | 57 + .../test_get_config_categories200_response.py | 16 +- ...et_config_categories200_response_one_of.py | 16 +- ...resources_application_types200_response.py | 3 +- ...es_application_types200_response_one_of.py | 3 +- test/test_get_resources_apps200_response.py | 3 + ...t_get_resources_apps200_response_one_of.py | 3 + 59 files changed, 5254 insertions(+), 1928 deletions(-) create mode 100644 cyperf/models/appsec_app_metadata_keywords_inner.py create mode 100644 cyperf/models/command_metadata.py create mode 100644 cyperf/models/config_sub_category.py create mode 100644 cyperf/models/get_apps_operation.py create mode 100644 cyperf/models/get_config_categorie_subcategories200_response.py create mode 100644 cyperf/models/get_config_categorie_subcategories200_response_one_of.py create mode 100644 docs/AppsecAppMetadataKeywordsInner.md create mode 100644 docs/CommandMetadata.md create mode 100644 docs/ConfigSubCategory.md create mode 100644 docs/GetAppsOperation.md create mode 100644 docs/GetConfigCategorieSubcategories200Response.md create mode 100644 docs/GetConfigCategorieSubcategories200ResponseOneOf.md create mode 100644 test/test_appsec_app_metadata_keywords_inner.py create mode 100644 test/test_command_metadata.py create mode 100644 test/test_config_sub_category.py create mode 100644 test/test_get_apps_operation.py create mode 100644 test/test_get_config_categorie_subcategories200_response.py create mode 100644 test/test_get_config_categorie_subcategories200_response_one_of.py diff --git a/README.md b/README.md index 3b2ee6d..99bd935 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_capture_flows**](docs/ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | *ApplicationResourcesApi* | [**get_flow_exchanges**](docs/ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | *ApplicationResourcesApi* | [**get_resources_app_by_id**](docs/ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | +*ApplicationResourcesApi* | [**get_resources_app_categories**](docs/ApplicationResourcesApi.md#get_resources_app_categories) | **GET** /api/v2/resources/app-categories | *ApplicationResourcesApi* | [**get_resources_application_type_by_id**](docs/ApplicationResourcesApi.md#get_resources_application_type_by_id) | **GET** /api/v2/resources/application-types/{applicationTypeId} | *ApplicationResourcesApi* | [**get_resources_application_types**](docs/ApplicationResourcesApi.md#get_resources_application_types) | **GET** /api/v2/resources/application-types | *ApplicationResourcesApi* | [**get_resources_apps**](docs/ApplicationResourcesApi.md#get_resources_apps) | **GET** /api/v2/resources/apps | @@ -218,6 +219,8 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**start_resources_edit_app**](docs/ApplicationResourcesApi.md#start_resources_edit_app) | **POST** /api/v2/resources/operations/edit-app | *ApplicationResourcesApi* | [**start_resources_find_param_matches**](docs/ApplicationResourcesApi.md#start_resources_find_param_matches) | **POST** /api/v2/resources/operations/find-param-matches | *ApplicationResourcesApi* | [**start_resources_flow_library_upload_file**](docs/ApplicationResourcesApi.md#start_resources_flow_library_upload_file) | **POST** /api/v2/resources/flow-library/operations/uploadFile | +*ApplicationResourcesApi* | [**start_resources_get_app_categories**](docs/ApplicationResourcesApi.md#start_resources_get_app_categories) | **POST** /api/v2/resources/operations/get-app-categories | +*ApplicationResourcesApi* | [**start_resources_get_apps**](docs/ApplicationResourcesApi.md#start_resources_get_apps) | **POST** /api/v2/resources/operations/get-apps | *ApplicationResourcesApi* | [**start_resources_get_attack_categories**](docs/ApplicationResourcesApi.md#start_resources_get_attack_categories) | **POST** /api/v2/resources/operations/get-attack-categories | *ApplicationResourcesApi* | [**start_resources_get_attacks**](docs/ApplicationResourcesApi.md#start_resources_get_attacks) | **POST** /api/v2/resources/operations/get-attacks | *ApplicationResourcesApi* | [**start_resources_get_strike_categories**](docs/ApplicationResourcesApi.md#start_resources_get_strike_categories) | **POST** /api/v2/resources/operations/get-strike-categories | @@ -246,6 +249,8 @@ Class | Method | HTTP request | Description *ConfigurationsApi* | [**create_configs**](docs/ConfigurationsApi.md#create_configs) | **POST** /api/v2/configs | *ConfigurationsApi* | [**delete_config**](docs/ConfigurationsApi.md#delete_config) | **DELETE** /api/v2/configs/{configId} | *ConfigurationsApi* | [**get_config_by_id**](docs/ConfigurationsApi.md#get_config_by_id) | **GET** /api/v2/configs/{configId} | +*ConfigurationsApi* | [**get_config_categorie_by_id**](docs/ConfigurationsApi.md#get_config_categorie_by_id) | **GET** /api/v2/config-categories/{configCategorieId} | +*ConfigurationsApi* | [**get_config_categorie_subcategories**](docs/ConfigurationsApi.md#get_config_categorie_subcategories) | **GET** /api/v2/config-categories/{configCategorieId}/subcategories | *ConfigurationsApi* | [**get_config_categories**](docs/ConfigurationsApi.md#get_config_categories) | **GET** /api/v2/config-categories | *ConfigurationsApi* | [**get_configs**](docs/ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | *ConfigurationsApi* | [**get_resources_custom_import_operations**](docs/ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | @@ -414,6 +419,7 @@ Class | Method | HTTP request | Description - [ApplicationType](docs/ApplicationType.md) - [AppsecApp](docs/AppsecApp.md) - [AppsecAppMetadata](docs/AppsecAppMetadata.md) + - [AppsecAppMetadataKeywordsInner](docs/AppsecAppMetadataKeywordsInner.md) - [AppsecAttack](docs/AppsecAttack.md) - [AppsecConfig](docs/AppsecConfig.md) - [ArchiveInfo](docs/ArchiveInfo.md) @@ -422,7 +428,6 @@ Class | Method | HTTP request | Description - [Attack](docs/Attack.md) - [AttackAction](docs/AttackAction.md) - [AttackMetadata](docs/AttackMetadata.md) - - [AttackMetadataKeywordsInner](docs/AttackMetadataKeywordsInner.md) - [AttackObjectivesAndTimeline](docs/AttackObjectivesAndTimeline.md) - [AttackProfile](docs/AttackProfile.md) - [AttackTimelineSegment](docs/AttackTimelineSegment.md) @@ -451,11 +456,13 @@ Class | Method | HTTP request | Description - [CiscoEncapsulation](docs/CiscoEncapsulation.md) - [ClearPortsOwnershipOperation](docs/ClearPortsOwnershipOperation.md) - [Command](docs/Command.md) + - [CommandMetadata](docs/CommandMetadata.md) - [ComputeNode](docs/ComputeNode.md) - [Config](docs/Config.md) - [ConfigCategory](docs/ConfigCategory.md) - [ConfigId](docs/ConfigId.md) - [ConfigMetadata](docs/ConfigMetadata.md) + - [ConfigSubCategory](docs/ConfigSubCategory.md) - [ConfigValidation](docs/ConfigValidation.md) - [Conflict](docs/Conflict.md) - [Connection](docs/Connection.md) @@ -535,11 +542,14 @@ Class | Method | HTTP request | Description - [GetAgents200ResponseOneOf](docs/GetAgents200ResponseOneOf.md) - [GetAgentsTags200Response](docs/GetAgentsTags200Response.md) - [GetAgentsTags200ResponseOneOf](docs/GetAgentsTags200ResponseOneOf.md) + - [GetAppsOperation](docs/GetAppsOperation.md) - [GetAsyncOperationResult200Response](docs/GetAsyncOperationResult200Response.md) - [GetAttacksOperation](docs/GetAttacksOperation.md) - [GetBrokers200Response](docs/GetBrokers200Response.md) - [GetBrokers200ResponseOneOf](docs/GetBrokers200ResponseOneOf.md) - [GetCategoriesOperation](docs/GetCategoriesOperation.md) + - [GetConfigCategorieSubcategories200Response](docs/GetConfigCategorieSubcategories200Response.md) + - [GetConfigCategorieSubcategories200ResponseOneOf](docs/GetConfigCategorieSubcategories200ResponseOneOf.md) - [GetConfigCategories200Response](docs/GetConfigCategories200Response.md) - [GetConfigCategories200ResponseOneOf](docs/GetConfigCategories200ResponseOneOf.md) - [GetConfigs200Response](docs/GetConfigs200Response.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index d81f674..23fa2e8 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -88,6 +88,7 @@ from cyperf.models.application_type import ApplicationType from cyperf.models.appsec_app import AppsecApp from cyperf.models.appsec_app_metadata import AppsecAppMetadata +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.appsec_attack import AppsecAttack from cyperf.models.appsec_config import AppsecConfig from cyperf.models.archive_info import ArchiveInfo @@ -96,7 +97,6 @@ from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.attack_profile import AttackProfile from cyperf.models.attack_timeline_segment import AttackTimelineSegment @@ -125,11 +125,13 @@ from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.compute_node import ComputeNode from cyperf.models.config import Config from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId from cyperf.models.config_metadata import ConfigMetadata +from cyperf.models.config_sub_category import ConfigSubCategory from cyperf.models.config_validation import ConfigValidation from cyperf.models.conflict import Conflict from cyperf.models.connection import Connection @@ -209,11 +211,14 @@ from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf from cyperf.models.get_configs200_response import GetConfigs200Response diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index 3643744..26c605a 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -33,6 +33,7 @@ from cyperf.models.export_apps_operation_input import ExportAppsOperationInput from cyperf.models.find_param_matches_operation import FindParamMatchesOperation from cyperf.models.generic_file import GenericFile +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_categories_operation import GetCategoriesOperation from cyperf.models.get_resources_application_types200_response import GetResourcesApplicationTypes200Response @@ -5557,9 +5558,10 @@ def _get_resources_app_by_id_serialize( @validate_call - def get_resources_application_type_by_id( + def get_resources_app_categories( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5572,13 +5574,14 @@ def get_resources_application_type_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApplicationType: - """get_resources_application_type_by_id + ) -> List[Category]: + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5601,8 +5604,9 @@ def get_resources_application_type_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5610,7 +5614,7 @@ def get_resources_application_type_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5621,9 +5625,10 @@ def get_resources_application_type_by_id( @validate_call - def get_resources_application_type_by_id_with_http_info( + def get_resources_app_categories_with_http_info( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5636,13 +5641,14 @@ def get_resources_application_type_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ApplicationType]: - """get_resources_application_type_by_id + ) -> ApiResponse[List[Category]]: + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5665,8 +5671,9 @@ def get_resources_application_type_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5674,7 +5681,7 @@ def get_resources_application_type_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5685,9 +5692,10 @@ def get_resources_application_type_by_id_with_http_info( @validate_call - def get_resources_application_type_by_id_without_preload_content( + def get_resources_app_categories_without_preload_content( self, - application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5701,12 +5709,13 @@ def get_resources_application_type_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_application_type_by_id + """get_resources_app_categories - Get a particular application. - :param application_type_id: The ID of the application type. (required) - :type application_type_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5729,8 +5738,9 @@ def get_resources_application_type_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_type_by_id_serialize( - application_type_id=application_type_id, + _param = self._get_resources_app_categories_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5738,7 +5748,7 @@ def get_resources_application_type_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5748,9 +5758,10 @@ def get_resources_application_type_by_id_without_preload_content( ) - def _get_resources_application_type_by_id_serialize( + def _get_resources_app_categories_serialize( self, - application_type_id, + take, + skip, _request_auth, _content_type, _headers, @@ -5770,9 +5781,15 @@ def _get_resources_application_type_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if application_type_id is not None: - _path_params['applicationTypeId'] = application_type_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -5795,7 +5812,7 @@ def _get_resources_application_type_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/application-types/{applicationTypeId}', + resource_path='/api/v2/resources/app-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5812,10 +5829,9 @@ def _get_resources_application_type_by_id_serialize( @validate_call - def get_resources_application_types( + def get_resources_application_type_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5828,15 +5844,13 @@ def get_resources_application_types( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApplicationTypes200Response: - """get_resources_application_types + ) -> ApplicationType: + """get_resources_application_type_by_id - Get all the available applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5859,9 +5873,8 @@ def get_resources_application_types( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( - take=take, - skip=skip, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5869,7 +5882,7 @@ def get_resources_application_types( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5880,10 +5893,9 @@ def get_resources_application_types( @validate_call - def get_resources_application_types_with_http_info( + def get_resources_application_type_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5896,15 +5908,13 @@ def get_resources_application_types_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApplicationTypes200Response]: - """get_resources_application_types + ) -> ApiResponse[ApplicationType]: + """get_resources_application_type_by_id - Get all the available applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5927,9 +5937,8 @@ def get_resources_application_types_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( - take=take, - skip=skip, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5937,7 +5946,7 @@ def get_resources_application_types_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -5948,10 +5957,9 @@ def get_resources_application_types_with_http_info( @validate_call - def get_resources_application_types_without_preload_content( + def get_resources_application_type_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + application_type_id: Annotated[StrictStr, Field(description="The ID of the application type.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5965,14 +5973,12 @@ def get_resources_application_types_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_application_types + """get_resources_application_type_by_id - Get all the available applications. + Get a particular application. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param application_type_id: The ID of the application type. (required) + :type application_type_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5995,9 +6001,8 @@ def get_resources_application_types_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_application_types_serialize( - take=take, - skip=skip, + _param = self._get_resources_application_type_by_id_serialize( + application_type_id=application_type_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6005,7 +6010,7 @@ def get_resources_application_types_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': "ApplicationType", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6015,10 +6020,9 @@ def get_resources_application_types_without_preload_content( ) - def _get_resources_application_types_serialize( + def _get_resources_application_type_by_id_serialize( self, - take, - skip, + application_type_id, _request_auth, _content_type, _headers, @@ -6038,15 +6042,9 @@ def _get_resources_application_types_serialize( _body_params: Optional[bytes] = None # process the path parameters + if application_type_id is not None: + _path_params['applicationTypeId'] = application_type_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -6069,7 +6067,7 @@ def _get_resources_application_types_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/application-types', + resource_path='/api/v2/resources/application-types/{applicationTypeId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6086,14 +6084,10 @@ def _get_resources_application_types_serialize( @validate_call - def get_resources_apps( + def get_resources_application_types( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6106,23 +6100,15 @@ def get_resources_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApps200Response: - """get_resources_apps + ) -> GetResourcesApplicationTypes200Response: + """get_resources_application_types - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6145,13 +6131,9 @@ def get_resources_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_apps_serialize( + _param = self._get_resources_application_types_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6159,8 +6141,7 @@ def get_resources_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '401': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6171,14 +6152,10 @@ def get_resources_apps( @validate_call - def get_resources_apps_with_http_info( + def get_resources_application_types_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6191,23 +6168,15 @@ def get_resources_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApps200Response]: - """get_resources_apps + ) -> ApiResponse[GetResourcesApplicationTypes200Response]: + """get_resources_application_types - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6230,13 +6199,9 @@ def get_resources_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_apps_serialize( + _param = self._get_resources_application_types_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6244,8 +6209,7 @@ def get_resources_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '401': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6256,14 +6220,10 @@ def get_resources_apps_with_http_info( @validate_call - def get_resources_apps_without_preload_content( + def get_resources_application_types_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6277,22 +6237,14 @@ def get_resources_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_apps + """get_resources_application_types - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6315,13 +6267,9 @@ def get_resources_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_apps_serialize( + _param = self._get_resources_application_types_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6329,8 +6277,7 @@ def get_resources_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApps200Response", - '401': "ErrorResponse", + '200': "GetResourcesApplicationTypes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6340,14 +6287,10 @@ def get_resources_apps_without_preload_content( ) - def _get_resources_apps_serialize( + def _get_resources_application_types_serialize( self, take, skip, - search_col, - search_val, - filter_mode, - sort, _request_auth, _content_type, _headers, @@ -6376,22 +6319,6 @@ def _get_resources_apps_serialize( _query_params.append(('skip', skip)) - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - # process the header parameters # process the form parameters # process the body parameter @@ -6414,7 +6341,7 @@ def _get_resources_apps_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/apps', + resource_path='/api/v2/resources/application-types', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6431,9 +6358,15 @@ def _get_resources_apps_serialize( @validate_call - def get_resources_attack_by_id( + def get_resources_apps( self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6446,13 +6379,25 @@ def get_resources_attack_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppsecAttack: - """get_resources_attack_by_id + ) -> GetResourcesApps200Response: + """get_resources_apps - Get a particular CyPerf attack. + Get all the available CyPerf applications. - :param attack_id: The ID of the attack. (required) - :type attack_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6475,8 +6420,14 @@ def get_resources_attack_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_by_id_serialize( - attack_id=attack_id, + _param = self._get_resources_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6484,9 +6435,9 @@ def get_resources_attack_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6497,9 +6448,15 @@ def get_resources_attack_by_id( @validate_call - def get_resources_attack_by_id_with_http_info( + def get_resources_apps_with_http_info( self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6512,13 +6469,25 @@ def get_resources_attack_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AppsecAttack]: - """get_resources_attack_by_id + ) -> ApiResponse[GetResourcesApps200Response]: + """get_resources_apps - Get a particular CyPerf attack. + Get all the available CyPerf applications. - :param attack_id: The ID of the attack. (required) - :type attack_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6541,8 +6510,14 @@ def get_resources_attack_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_by_id_serialize( - attack_id=attack_id, + _param = self._get_resources_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6550,9 +6525,9 @@ def get_resources_attack_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6563,9 +6538,15 @@ def get_resources_attack_by_id_with_http_info( @validate_call - def get_resources_attack_by_id_without_preload_content( + def get_resources_apps_without_preload_content( self, - attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of applications by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6579,12 +6560,24 @@ def get_resources_attack_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_attack_by_id + """get_resources_apps - Get a particular CyPerf attack. + Get all the available CyPerf applications. - :param attack_id: The ID of the attack. (required) - :type attack_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6607,8 +6600,14 @@ def get_resources_attack_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_by_id_serialize( - attack_id=attack_id, + _param = self._get_resources_apps_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6616,9 +6615,9 @@ def get_resources_attack_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppsecAttack", + '200': "GetResourcesApps200Response", + '400': "ErrorResponse", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6628,9 +6627,15 @@ def get_resources_attack_by_id_without_preload_content( ) - def _get_resources_attack_by_id_serialize( + def _get_resources_apps_serialize( self, - attack_id, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + categories, _request_auth, _content_type, _headers, @@ -6650,9 +6655,35 @@ def _get_resources_attack_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if attack_id is not None: - _path_params['attackId'] = attack_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if categories is not None: + + _query_params.append(('categories', categories)) + # process the header parameters # process the form parameters # process the body parameter @@ -6675,7 +6706,7 @@ def _get_resources_attack_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/attacks/{attackId}', + resource_path='/api/v2/resources/apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6692,10 +6723,9 @@ def _get_resources_attack_by_id_serialize( @validate_call - def get_resources_attack_categories( + def get_resources_attack_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6708,14 +6738,13 @@ def get_resources_attack_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Category]: - """get_resources_attack_categories + ) -> AppsecAttack: + """get_resources_attack_by_id + Get a particular CyPerf attack. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6738,9 +6767,8 @@ def get_resources_attack_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6748,7 +6776,9 @@ def get_resources_attack_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "AppsecAttack", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6759,10 +6789,9 @@ def get_resources_attack_categories( @validate_call - def get_resources_attack_categories_with_http_info( + def get_resources_attack_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6775,14 +6804,13 @@ def get_resources_attack_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Category]]: - """get_resources_attack_categories + ) -> ApiResponse[AppsecAttack]: + """get_resources_attack_by_id + Get a particular CyPerf attack. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6805,9 +6833,8 @@ def get_resources_attack_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6815,7 +6842,9 @@ def get_resources_attack_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "AppsecAttack", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -6826,10 +6855,9 @@ def get_resources_attack_categories_with_http_info( @validate_call - def get_resources_attack_categories_without_preload_content( + def get_resources_attack_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + attack_id: Annotated[StrictStr, Field(description="The ID of the attack.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6843,13 +6871,12 @@ def get_resources_attack_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_attack_categories + """get_resources_attack_by_id + Get a particular CyPerf attack. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param attack_id: The ID of the attack. (required) + :type attack_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6872,9 +6899,8 @@ def get_resources_attack_categories_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attack_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_attack_by_id_serialize( + attack_id=attack_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6882,8 +6908,10 @@ def get_resources_attack_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", - '500': "ErrorResponse", + '200': "AppsecAttack", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -6892,10 +6920,9 @@ def get_resources_attack_categories_without_preload_content( ) - def _get_resources_attack_categories_serialize( + def _get_resources_attack_by_id_serialize( self, - take, - skip, + attack_id, _request_auth, _content_type, _headers, @@ -6915,15 +6942,9 @@ def _get_resources_attack_categories_serialize( _body_params: Optional[bytes] = None # process the path parameters + if attack_id is not None: + _path_params['attackId'] = attack_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -6946,7 +6967,7 @@ def _get_resources_attack_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/attack-categories', + resource_path='/api/v2/resources/attacks/{attackId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6963,15 +6984,10 @@ def _get_resources_attack_categories_serialize( @validate_call - def get_resources_attacks( + def get_resources_attack_categories( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6984,25 +7000,14 @@ def get_resources_attacks( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesAttacks200Response: - """get_resources_attacks + ) -> List[Category]: + """get_resources_attack_categories - Get all the available CyPerf attacks. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7025,14 +7030,9 @@ def get_resources_attacks( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attacks_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7040,9 +7040,7 @@ def get_resources_attacks( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7053,15 +7051,10 @@ def get_resources_attacks( @validate_call - def get_resources_attacks_with_http_info( + def get_resources_attack_categories_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7074,25 +7067,14 @@ def get_resources_attacks_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesAttacks200Response]: - """get_resources_attacks + ) -> ApiResponse[List[Category]]: + """get_resources_attack_categories - Get all the available CyPerf attacks. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7115,14 +7097,9 @@ def get_resources_attacks_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attacks_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7130,9 +7107,7 @@ def get_resources_attacks_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7143,15 +7118,10 @@ def get_resources_attacks_with_http_info( @validate_call - def get_resources_attacks_without_preload_content( + def get_resources_attack_categories_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7165,24 +7135,13 @@ def get_resources_attacks_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_attacks + """get_resources_attack_categories - Get all the available CyPerf attacks. :param take: The number of search results to return :type take: int :param skip: The number of search results to skip :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... - :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7205,14 +7164,9 @@ def get_resources_attacks_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_attacks_serialize( + _param = self._get_resources_attack_categories_serialize( take=take, skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7220,9 +7174,7 @@ def get_resources_attacks_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAttacks200Response", - '400': "ErrorResponse", - '401': "ErrorResponse", + '200': "List[Category]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7232,15 +7184,10 @@ def get_resources_attacks_without_preload_content( ) - def _get_resources_attacks_serialize( + def _get_resources_attack_categories_serialize( self, take, skip, - search_col, - search_val, - filter_mode, - sort, - categories, _request_auth, _content_type, _headers, @@ -7269,26 +7216,6 @@ def _get_resources_attacks_serialize( _query_params.append(('skip', skip)) - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - - if categories is not None: - - _query_params.append(('categories', categories)) - # process the header parameters # process the form parameters # process the body parameter @@ -7311,7 +7238,7 @@ def _get_resources_attacks_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/attacks', + resource_path='/api/v2/resources/attack-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7328,9 +7255,15 @@ def _get_resources_attacks_serialize( @validate_call - def get_resources_auth_profile_by_id( + def get_resources_attacks( self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7343,13 +7276,25 @@ def get_resources_auth_profile_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AuthProfile: - """get_resources_auth_profile_by_id + ) -> GetResourcesAttacks200Response: + """get_resources_attacks - Get a particular Auth profile. + Get all the available CyPerf attacks. - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7372,8 +7317,14 @@ def get_resources_auth_profile_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7381,8 +7332,9 @@ def get_resources_auth_profile_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '404': "ErrorResponse", + '200': "GetResourcesAttacks200Response", + '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7393,9 +7345,15 @@ def get_resources_auth_profile_by_id( @validate_call - def get_resources_auth_profile_by_id_with_http_info( + def get_resources_attacks_with_http_info( self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7408,13 +7366,25 @@ def get_resources_auth_profile_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AuthProfile]: - """get_resources_auth_profile_by_id + ) -> ApiResponse[GetResourcesAttacks200Response]: + """get_resources_attacks - Get a particular Auth profile. + Get all the available CyPerf attacks. - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7437,8 +7407,14 @@ def get_resources_auth_profile_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7446,8 +7422,9 @@ def get_resources_auth_profile_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '404': "ErrorResponse", + '200': "GetResourcesAttacks200Response", + '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7458,9 +7435,15 @@ def get_resources_auth_profile_by_id_with_http_info( @validate_call - def get_resources_auth_profile_by_id_without_preload_content( + def get_resources_attacks_without_preload_content( self, - auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of attacks by categories. The format is categories=category1:value1|...,....")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7474,12 +7457,24 @@ def get_resources_auth_profile_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_auth_profile_by_id + """get_resources_attacks - Get a particular Auth profile. + Get all the available CyPerf attacks. - :param auth_profile_id: The ID of the auth profile. (required) - :type auth_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param categories: A string which filters the list of attacks by categories. The format is categories=category1:value1|...,.... + :type categories: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7502,8 +7497,14 @@ def get_resources_auth_profile_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profile_by_id_serialize( - auth_profile_id=auth_profile_id, + _param = self._get_resources_attacks_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + categories=categories, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7511,8 +7512,9 @@ def get_resources_auth_profile_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthProfile", - '404': "ErrorResponse", + '200': "GetResourcesAttacks200Response", + '400': "ErrorResponse", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7522,9 +7524,15 @@ def get_resources_auth_profile_by_id_without_preload_content( ) - def _get_resources_auth_profile_by_id_serialize( + def _get_resources_attacks_serialize( self, - auth_profile_id, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + categories, _request_auth, _content_type, _headers, @@ -7544,9 +7552,35 @@ def _get_resources_auth_profile_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if auth_profile_id is not None: - _path_params['authProfileId'] = auth_profile_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if categories is not None: + + _query_params.append(('categories', categories)) + # process the header parameters # process the form parameters # process the body parameter @@ -7569,7 +7603,7 @@ def _get_resources_auth_profile_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/auth-profiles/{authProfileId}', + resource_path='/api/v2/resources/attacks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7586,10 +7620,9 @@ def _get_resources_auth_profile_by_id_serialize( @validate_call - def get_resources_auth_profiles( + def get_resources_auth_profile_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7602,15 +7635,13 @@ def get_resources_auth_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesAuthProfiles200Response: - """get_resources_auth_profiles + ) -> AuthProfile: + """get_resources_auth_profile_by_id - Get all the available Auth profiles. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7633,9 +7664,8 @@ def get_resources_auth_profiles( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7643,7 +7673,8 @@ def get_resources_auth_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAuthProfiles200Response", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7654,10 +7685,9 @@ def get_resources_auth_profiles( @validate_call - def get_resources_auth_profiles_with_http_info( + def get_resources_auth_profile_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7670,15 +7700,13 @@ def get_resources_auth_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesAuthProfiles200Response]: - """get_resources_auth_profiles + ) -> ApiResponse[AuthProfile]: + """get_resources_auth_profile_by_id - Get all the available Auth profiles. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7701,9 +7729,8 @@ def get_resources_auth_profiles_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7711,7 +7738,8 @@ def get_resources_auth_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAuthProfiles200Response", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7722,10 +7750,9 @@ def get_resources_auth_profiles_with_http_info( @validate_call - def get_resources_auth_profiles_without_preload_content( + def get_resources_auth_profile_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + auth_profile_id: Annotated[StrictStr, Field(description="The ID of the auth profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7739,14 +7766,12 @@ def get_resources_auth_profiles_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_auth_profiles + """get_resources_auth_profile_by_id - Get all the available Auth profiles. + Get a particular Auth profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param auth_profile_id: The ID of the auth profile. (required) + :type auth_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7769,9 +7794,8 @@ def get_resources_auth_profiles_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_auth_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_auth_profile_by_id_serialize( + auth_profile_id=auth_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7779,7 +7803,8 @@ def get_resources_auth_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesAuthProfiles200Response", + '200': "AuthProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7789,10 +7814,9 @@ def get_resources_auth_profiles_without_preload_content( ) - def _get_resources_auth_profiles_serialize( + def _get_resources_auth_profile_by_id_serialize( self, - take, - skip, + auth_profile_id, _request_auth, _content_type, _headers, @@ -7812,15 +7836,9 @@ def _get_resources_auth_profiles_serialize( _body_params: Optional[bytes] = None # process the path parameters + if auth_profile_id is not None: + _path_params['authProfileId'] = auth_profile_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -7843,7 +7861,7 @@ def _get_resources_auth_profiles_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/auth-profiles', + resource_path='/api/v2/resources/auth-profiles/{authProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7860,9 +7878,10 @@ def _get_resources_auth_profiles_serialize( @validate_call - def get_resources_capture_by_id( + def get_resources_auth_profiles( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7875,13 +7894,15 @@ def get_resources_capture_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReplayCapture: - """get_resources_capture_by_id + ) -> GetResourcesAuthProfiles200Response: + """get_resources_auth_profiles - Get a particular CyPerf capture loaded by the user. + Get all the available Auth profiles. - :param capture_id: The ID of the capture. (required) - :type capture_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7904,8 +7925,9 @@ def get_resources_capture_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_capture_by_id_serialize( - capture_id=capture_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7913,9 +7935,7 @@ def get_resources_capture_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7926,9 +7946,10 @@ def get_resources_capture_by_id( @validate_call - def get_resources_capture_by_id_with_http_info( + def get_resources_auth_profiles_with_http_info( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7941,13 +7962,15 @@ def get_resources_capture_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReplayCapture]: - """get_resources_capture_by_id + ) -> ApiResponse[GetResourcesAuthProfiles200Response]: + """get_resources_auth_profiles - Get a particular CyPerf capture loaded by the user. + Get all the available Auth profiles. - :param capture_id: The ID of the capture. (required) - :type capture_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7970,8 +7993,9 @@ def get_resources_capture_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_capture_by_id_serialize( - capture_id=capture_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7979,9 +8003,7 @@ def get_resources_capture_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -7992,9 +8014,10 @@ def get_resources_capture_by_id_with_http_info( @validate_call - def get_resources_capture_by_id_without_preload_content( + def get_resources_auth_profiles_without_preload_content( self, - capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8008,12 +8031,14 @@ def get_resources_capture_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_capture_by_id + """get_resources_auth_profiles - Get a particular CyPerf capture loaded by the user. + Get all the available Auth profiles. - :param capture_id: The ID of the capture. (required) - :type capture_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8036,8 +8061,9 @@ def get_resources_capture_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_capture_by_id_serialize( - capture_id=capture_id, + _param = self._get_resources_auth_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8045,9 +8071,7 @@ def get_resources_capture_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReplayCapture", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesAuthProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8057,9 +8081,10 @@ def get_resources_capture_by_id_without_preload_content( ) - def _get_resources_capture_by_id_serialize( + def _get_resources_auth_profiles_serialize( self, - capture_id, + take, + skip, _request_auth, _content_type, _headers, @@ -8079,9 +8104,15 @@ def _get_resources_capture_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if capture_id is not None: - _path_params['captureId'] = capture_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -8104,7 +8135,7 @@ def _get_resources_capture_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/{captureId}', + resource_path='/api/v2/resources/auth-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8121,10 +8152,9 @@ def _get_resources_capture_by_id_serialize( @validate_call - def get_resources_captures( + def get_resources_capture_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8137,14 +8167,13 @@ def get_resources_captures( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ReplayCapture]: - """get_resources_captures + ) -> ReplayCapture: + """get_resources_capture_by_id + Get a particular CyPerf capture loaded by the user. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param capture_id: The ID of the capture. (required) + :type capture_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8167,9 +8196,8 @@ def get_resources_captures( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_serialize( - take=take, - skip=skip, + _param = self._get_resources_capture_by_id_serialize( + capture_id=capture_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8177,7 +8205,9 @@ def get_resources_captures( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", + '200': "ReplayCapture", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8188,10 +8218,9 @@ def get_resources_captures( @validate_call - def get_resources_captures_with_http_info( + def get_resources_capture_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8204,14 +8233,13 @@ def get_resources_captures_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ReplayCapture]]: - """get_resources_captures + ) -> ApiResponse[ReplayCapture]: + """get_resources_capture_by_id + Get a particular CyPerf capture loaded by the user. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param capture_id: The ID of the capture. (required) + :type capture_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8234,9 +8262,8 @@ def get_resources_captures_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_serialize( - take=take, - skip=skip, + _param = self._get_resources_capture_by_id_serialize( + capture_id=capture_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8244,7 +8271,9 @@ def get_resources_captures_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", + '200': "ReplayCapture", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8255,10 +8284,9 @@ def get_resources_captures_with_http_info( @validate_call - def get_resources_captures_without_preload_content( + def get_resources_capture_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + capture_id: Annotated[StrictStr, Field(description="The ID of the capture.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8272,13 +8300,12 @@ def get_resources_captures_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_captures + """get_resources_capture_by_id + Get a particular CyPerf capture loaded by the user. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param capture_id: The ID of the capture. (required) + :type capture_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8301,9 +8328,8 @@ def get_resources_captures_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_serialize( - take=take, - skip=skip, + _param = self._get_resources_capture_by_id_serialize( + capture_id=capture_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8311,7 +8337,9 @@ def get_resources_captures_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ReplayCapture]", + '200': "ReplayCapture", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8321,10 +8349,9 @@ def get_resources_captures_without_preload_content( ) - def _get_resources_captures_serialize( + def _get_resources_capture_by_id_serialize( self, - take, - skip, + capture_id, _request_auth, _content_type, _headers, @@ -8344,15 +8371,9 @@ def _get_resources_captures_serialize( _body_params: Optional[bytes] = None # process the path parameters + if capture_id is not None: + _path_params['captureId'] = capture_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -8375,7 +8396,7 @@ def _get_resources_captures_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures', + resource_path='/api/v2/resources/captures/{captureId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8392,9 +8413,10 @@ def _get_resources_captures_serialize( @validate_call - def get_resources_captures_encrypted_upload_file_result( + def get_resources_captures( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8407,13 +8429,14 @@ def get_resources_captures_encrypted_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_captures_encrypted_upload_file_result + ) -> List[ReplayCapture]: + """get_resources_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8436,8 +8459,9 @@ def get_resources_captures_encrypted_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_encrypted_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8445,8 +8469,7 @@ def get_resources_captures_encrypted_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8457,9 +8480,10 @@ def get_resources_captures_encrypted_upload_file_result( @validate_call - def get_resources_captures_encrypted_upload_file_result_with_http_info( + def get_resources_captures_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8472,13 +8496,14 @@ def get_resources_captures_encrypted_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_captures_encrypted_upload_file_result + ) -> ApiResponse[List[ReplayCapture]]: + """get_resources_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8501,8 +8526,9 @@ def get_resources_captures_encrypted_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_encrypted_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8510,8 +8536,7 @@ def get_resources_captures_encrypted_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8522,9 +8547,10 @@ def get_resources_captures_encrypted_upload_file_result_with_http_info( @validate_call - def get_resources_captures_encrypted_upload_file_result_without_preload_content( + def get_resources_captures_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8538,12 +8564,13 @@ def get_resources_captures_encrypted_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_captures_encrypted_upload_file_result + """get_resources_captures - Get the result of the upload file operation. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8566,8 +8593,9 @@ def get_resources_captures_encrypted_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_encrypted_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_captures_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8575,8 +8603,7 @@ def get_resources_captures_encrypted_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "List[ReplayCapture]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8586,9 +8613,10 @@ def get_resources_captures_encrypted_upload_file_result_without_preload_content( ) - def _get_resources_captures_encrypted_upload_file_result_serialize( + def _get_resources_captures_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -8608,9 +8636,15 @@ def _get_resources_captures_encrypted_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -8633,7 +8667,7 @@ def _get_resources_captures_encrypted_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/captures', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8650,7 +8684,7 @@ def _get_resources_captures_encrypted_upload_file_result_serialize( @validate_call - def get_resources_captures_upload_file_result( + def get_resources_captures_encrypted_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -8666,7 +8700,7 @@ def get_resources_captures_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_captures_upload_file_result + """get_resources_captures_encrypted_upload_file_result Get the result of the upload file operation. @@ -8694,7 +8728,7 @@ def get_resources_captures_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_upload_file_result_serialize( + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8715,7 +8749,7 @@ def get_resources_captures_upload_file_result( @validate_call - def get_resources_captures_upload_file_result_with_http_info( + def get_resources_captures_encrypted_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -8731,7 +8765,7 @@ def get_resources_captures_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_captures_upload_file_result + """get_resources_captures_encrypted_upload_file_result Get the result of the upload file operation. @@ -8759,7 +8793,7 @@ def get_resources_captures_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_upload_file_result_serialize( + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8780,7 +8814,7 @@ def get_resources_captures_upload_file_result_with_http_info( @validate_call - def get_resources_captures_upload_file_result_without_preload_content( + def get_resources_captures_encrypted_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -8796,7 +8830,7 @@ def get_resources_captures_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_captures_upload_file_result + """get_resources_captures_encrypted_upload_file_result Get the result of the upload file operation. @@ -8824,7 +8858,7 @@ def get_resources_captures_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_captures_upload_file_result_serialize( + _param = self._get_resources_captures_encrypted_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -8844,7 +8878,7 @@ def get_resources_captures_upload_file_result_without_preload_content( ) - def _get_resources_captures_upload_file_result_serialize( + def _get_resources_captures_encrypted_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -8891,7 +8925,7 @@ def _get_resources_captures_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8908,9 +8942,9 @@ def _get_resources_captures_upload_file_result_serialize( @validate_call - def get_resources_certificate_by_id( + def get_resources_captures_upload_file_result( self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8923,13 +8957,13 @@ def get_resources_certificate_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_certificate_by_id + ) -> None: + """get_resources_captures_upload_file_result - Get a particular certificates archive file. + Get the result of the upload file operation. - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8952,8 +8986,8 @@ def get_resources_certificate_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_by_id_serialize( - certificate_id=certificate_id, + _param = self._get_resources_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8961,9 +8995,8 @@ def get_resources_certificate_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -8974,9 +9007,9 @@ def get_resources_certificate_by_id( @validate_call - def get_resources_certificate_by_id_with_http_info( + def get_resources_captures_upload_file_result_with_http_info( self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8989,13 +9022,13 @@ def get_resources_certificate_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_certificate_by_id + ) -> ApiResponse[None]: + """get_resources_captures_upload_file_result - Get a particular certificates archive file. + Get the result of the upload file operation. - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9018,8 +9051,8 @@ def get_resources_certificate_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_by_id_serialize( - certificate_id=certificate_id, + _param = self._get_resources_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9027,9 +9060,8 @@ def get_resources_certificate_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9040,9 +9072,9 @@ def get_resources_certificate_by_id_with_http_info( @validate_call - def get_resources_certificate_by_id_without_preload_content( + def get_resources_captures_upload_file_result_without_preload_content( self, - certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9056,12 +9088,12 @@ def get_resources_certificate_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_certificate_by_id + """get_resources_captures_upload_file_result - Get a particular certificates archive file. + Get the result of the upload file operation. - :param certificate_id: The ID of the certificate. (required) - :type certificate_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9084,8 +9116,8 @@ def get_resources_certificate_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_by_id_serialize( - certificate_id=certificate_id, + _param = self._get_resources_captures_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9093,9 +9125,8 @@ def get_resources_certificate_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9105,9 +9136,9 @@ def get_resources_certificate_by_id_without_preload_content( ) - def _get_resources_certificate_by_id_serialize( + def _get_resources_captures_upload_file_result_serialize( self, - certificate_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -9127,8 +9158,8 @@ def _get_resources_certificate_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if certificate_id is not None: - _path_params['certificateId'] = certificate_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -9152,7 +9183,7 @@ def _get_resources_certificate_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates/{certificateId}', + resource_path='/api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9169,7 +9200,7 @@ def _get_resources_certificate_by_id_serialize( @validate_call - def get_resources_certificate_content_file( + def get_resources_certificate_by_id( self, certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ @@ -9184,10 +9215,10 @@ def get_resources_certificate_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_certificate_content_file + ) -> GenericFile: + """get_resources_certificate_by_id - Get the content of a particular certificate archive file. + Get a particular certificates archive file. :param certificate_id: The ID of the certificate. (required) :type certificate_id: str @@ -9213,7 +9244,7 @@ def get_resources_certificate_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_content_file_serialize( + _param = self._get_resources_certificate_by_id_serialize( certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9222,8 +9253,10 @@ def get_resources_certificate_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9233,7 +9266,7 @@ def get_resources_certificate_content_file( @validate_call - def get_resources_certificate_content_file_with_http_info( + def get_resources_certificate_by_id_with_http_info( self, certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ @@ -9248,10 +9281,10 @@ def get_resources_certificate_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_certificate_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_certificate_by_id - Get the content of a particular certificate archive file. + Get a particular certificates archive file. :param certificate_id: The ID of the certificate. (required) :type certificate_id: str @@ -9277,7 +9310,7 @@ def get_resources_certificate_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_content_file_serialize( + _param = self._get_resources_certificate_by_id_serialize( certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9286,8 +9319,10 @@ def get_resources_certificate_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9297,7 +9332,7 @@ def get_resources_certificate_content_file_with_http_info( @validate_call - def get_resources_certificate_content_file_without_preload_content( + def get_resources_certificate_by_id_without_preload_content( self, certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ @@ -9313,9 +9348,9 @@ def get_resources_certificate_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_certificate_content_file + """get_resources_certificate_by_id - Get the content of a particular certificate archive file. + Get a particular certificates archive file. :param certificate_id: The ID of the certificate. (required) :type certificate_id: str @@ -9341,7 +9376,7 @@ def get_resources_certificate_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificate_content_file_serialize( + _param = self._get_resources_certificate_by_id_serialize( certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9350,8 +9385,10 @@ def get_resources_certificate_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9360,7 +9397,7 @@ def get_resources_certificate_content_file_without_preload_content( ) - def _get_resources_certificate_content_file_serialize( + def _get_resources_certificate_by_id_serialize( self, certificate_id, _request_auth, @@ -9394,7 +9431,6 @@ def _get_resources_certificate_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -9408,7 +9444,7 @@ def _get_resources_certificate_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates/{certificateId}/contentFile', + resource_path='/api/v2/resources/certificates/{certificateId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9425,10 +9461,9 @@ def _get_resources_certificate_content_file_serialize( @validate_call - def get_resources_certificates( + def get_resources_certificate_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9441,15 +9476,13 @@ def get_resources_certificates( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_certificates + ) -> bytearray: + """get_resources_certificate_content_file - Get all the available certificates files. + Get the content of a particular certificate archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9472,9 +9505,8 @@ def get_resources_certificates( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9482,9 +9514,8 @@ def get_resources_certificates( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9494,10 +9525,9 @@ def get_resources_certificates( @validate_call - def get_resources_certificates_with_http_info( + def get_resources_certificate_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9510,15 +9540,13 @@ def get_resources_certificates_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_certificates + ) -> ApiResponse[bytearray]: + """get_resources_certificate_content_file - Get all the available certificates files. + Get the content of a particular certificate archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9541,9 +9569,8 @@ def get_resources_certificates_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9551,9 +9578,8 @@ def get_resources_certificates_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9563,10 +9589,9 @@ def get_resources_certificates_with_http_info( @validate_call - def get_resources_certificates_without_preload_content( + def get_resources_certificate_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + certificate_id: Annotated[StrictStr, Field(description="The ID of the certificate.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9580,14 +9605,12 @@ def get_resources_certificates_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_certificates + """get_resources_certificate_content_file - Get all the available certificates files. + Get the content of a particular certificate archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param certificate_id: The ID of the certificate. (required) + :type certificate_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9610,9 +9633,8 @@ def get_resources_certificates_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_serialize( - take=take, - skip=skip, + _param = self._get_resources_certificate_content_file_serialize( + certificate_id=certificate_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9620,9 +9642,8 @@ def get_resources_certificates_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -9631,10 +9652,9 @@ def get_resources_certificates_without_preload_content( ) - def _get_resources_certificates_serialize( + def _get_resources_certificate_content_file_serialize( self, - take, - skip, + certificate_id, _request_auth, _content_type, _headers, @@ -9654,15 +9674,9 @@ def _get_resources_certificates_serialize( _body_params: Optional[bytes] = None # process the path parameters + if certificate_id is not None: + _path_params['certificateId'] = certificate_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -9672,6 +9686,7 @@ def _get_resources_certificates_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -9685,7 +9700,7 @@ def _get_resources_certificates_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates', + resource_path='/api/v2/resources/certificates/{certificateId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9702,9 +9717,10 @@ def _get_resources_certificates_serialize( @validate_call - def get_resources_certificates_upload_file_result( + def get_resources_certificates( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9717,13 +9733,15 @@ def get_resources_certificates_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_certificates_upload_file_result + ) -> GetResourcesCertificates200Response: + """get_resources_certificates - Get the result of the upload file operation. + Get all the available certificates files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9746,8 +9764,9 @@ def get_resources_certificates_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9755,8 +9774,8 @@ def get_resources_certificates_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9767,9 +9786,10 @@ def get_resources_certificates_upload_file_result( @validate_call - def get_resources_certificates_upload_file_result_with_http_info( + def get_resources_certificates_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9782,13 +9802,15 @@ def get_resources_certificates_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_certificates_upload_file_result + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_certificates - Get the result of the upload file operation. + Get all the available certificates files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9811,8 +9833,9 @@ def get_resources_certificates_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9820,8 +9843,8 @@ def get_resources_certificates_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9832,9 +9855,10 @@ def get_resources_certificates_upload_file_result_with_http_info( @validate_call - def get_resources_certificates_upload_file_result_without_preload_content( + def get_resources_certificates_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9848,12 +9872,14 @@ def get_resources_certificates_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_certificates_upload_file_result + """get_resources_certificates - Get the result of the upload file operation. + Get all the available certificates files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9876,8 +9902,9 @@ def get_resources_certificates_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_certificates_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_certificates_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9885,8 +9912,8 @@ def get_resources_certificates_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -9896,9 +9923,10 @@ def get_resources_certificates_upload_file_result_without_preload_content( ) - def _get_resources_certificates_upload_file_result_serialize( + def _get_resources_certificates_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -9918,9 +9946,15 @@ def _get_resources_certificates_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -9943,7 +9977,7 @@ def _get_resources_certificates_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/certificates/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/certificates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9960,9 +9994,9 @@ def _get_resources_certificates_upload_file_result_serialize( @validate_call - def get_resources_custom_fuzzing_script_by_id( + def get_resources_certificates_upload_file_result( self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9975,13 +10009,13 @@ def get_resources_custom_fuzzing_script_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_custom_fuzzing_script_by_id + ) -> None: + """get_resources_certificates_upload_file_result - Get a particular custom fuzzing script. + Get the result of the upload file operation. - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10004,8 +10038,8 @@ def get_resources_custom_fuzzing_script_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_id, + _param = self._get_resources_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10013,9 +10047,8 @@ def get_resources_custom_fuzzing_script_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10026,9 +10059,9 @@ def get_resources_custom_fuzzing_script_by_id( @validate_call - def get_resources_custom_fuzzing_script_by_id_with_http_info( + def get_resources_certificates_upload_file_result_with_http_info( self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10041,13 +10074,13 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_custom_fuzzing_script_by_id + ) -> ApiResponse[None]: + """get_resources_certificates_upload_file_result - Get a particular custom fuzzing script. + Get the result of the upload file operation. - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10070,8 +10103,8 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_id, + _param = self._get_resources_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10079,9 +10112,8 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10092,9 +10124,9 @@ def get_resources_custom_fuzzing_script_by_id_with_http_info( @validate_call - def get_resources_custom_fuzzing_script_by_id_without_preload_content( + def get_resources_certificates_upload_file_result_without_preload_content( self, - custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10108,12 +10140,12 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_fuzzing_script_by_id + """get_resources_certificates_upload_file_result - Get a particular custom fuzzing script. + Get the result of the upload file operation. - :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) - :type custom_fuzzing_script_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10136,8 +10168,8 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_by_id_serialize( - custom_fuzzing_script_id=custom_fuzzing_script_id, + _param = self._get_resources_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10145,9 +10177,8 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10157,9 +10188,9 @@ def get_resources_custom_fuzzing_script_by_id_without_preload_content( ) - def _get_resources_custom_fuzzing_script_by_id_serialize( + def _get_resources_certificates_upload_file_result_serialize( self, - custom_fuzzing_script_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -10179,8 +10210,8 @@ def _get_resources_custom_fuzzing_script_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if custom_fuzzing_script_id is not None: - _path_params['customFuzzingScriptId'] = custom_fuzzing_script_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -10204,7 +10235,7 @@ def _get_resources_custom_fuzzing_script_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}', + resource_path='/api/v2/resources/certificates/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10221,7 +10252,7 @@ def _get_resources_custom_fuzzing_script_by_id_serialize( @validate_call - def get_resources_custom_fuzzing_script_content_file( + def get_resources_custom_fuzzing_script_by_id( self, custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ @@ -10236,10 +10267,10 @@ def get_resources_custom_fuzzing_script_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_custom_fuzzing_script_content_file + ) -> GenericFile: + """get_resources_custom_fuzzing_script_by_id - Get the content of a particular custom fuzzing script file. + Get a particular custom fuzzing script. :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) :type custom_fuzzing_script_id: str @@ -10265,7 +10296,7 @@ def get_resources_custom_fuzzing_script_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10274,8 +10305,10 @@ def get_resources_custom_fuzzing_script_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10285,7 +10318,7 @@ def get_resources_custom_fuzzing_script_content_file( @validate_call - def get_resources_custom_fuzzing_script_content_file_with_http_info( + def get_resources_custom_fuzzing_script_by_id_with_http_info( self, custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ @@ -10300,10 +10333,10 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_custom_fuzzing_script_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_custom_fuzzing_script_by_id - Get the content of a particular custom fuzzing script file. + Get a particular custom fuzzing script. :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) :type custom_fuzzing_script_id: str @@ -10329,7 +10362,7 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10338,8 +10371,10 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10349,7 +10384,7 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( @validate_call - def get_resources_custom_fuzzing_script_content_file_without_preload_content( + def get_resources_custom_fuzzing_script_by_id_without_preload_content( self, custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ @@ -10365,9 +10400,9 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_fuzzing_script_content_file + """get_resources_custom_fuzzing_script_by_id - Get the content of a particular custom fuzzing script file. + Get a particular custom fuzzing script. :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) :type custom_fuzzing_script_id: str @@ -10393,7 +10428,7 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + _param = self._get_resources_custom_fuzzing_script_by_id_serialize( custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, @@ -10402,8 +10437,10 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10412,7 +10449,7 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( ) - def _get_resources_custom_fuzzing_script_content_file_serialize( + def _get_resources_custom_fuzzing_script_by_id_serialize( self, custom_fuzzing_script_id, _request_auth, @@ -10446,7 +10483,6 @@ def _get_resources_custom_fuzzing_script_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -10460,7 +10496,7 @@ def _get_resources_custom_fuzzing_script_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}/contentFile', + resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10477,10 +10513,9 @@ def _get_resources_custom_fuzzing_script_content_file_serialize( @validate_call - def get_resources_custom_fuzzing_scripts( + def get_resources_custom_fuzzing_script_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10493,15 +10528,13 @@ def get_resources_custom_fuzzing_scripts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_custom_fuzzing_scripts + ) -> bytearray: + """get_resources_custom_fuzzing_script_content_file - Get all the available custom fuzzing scripts. + Get the content of a particular custom fuzzing script file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10524,9 +10557,8 @@ def get_resources_custom_fuzzing_scripts( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10534,9 +10566,8 @@ def get_resources_custom_fuzzing_scripts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10546,10 +10577,9 @@ def get_resources_custom_fuzzing_scripts( @validate_call - def get_resources_custom_fuzzing_scripts_with_http_info( + def get_resources_custom_fuzzing_script_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10562,15 +10592,13 @@ def get_resources_custom_fuzzing_scripts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_custom_fuzzing_scripts + ) -> ApiResponse[bytearray]: + """get_resources_custom_fuzzing_script_content_file - Get all the available custom fuzzing scripts. + Get the content of a particular custom fuzzing script file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10593,9 +10621,8 @@ def get_resources_custom_fuzzing_scripts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10603,9 +10630,8 @@ def get_resources_custom_fuzzing_scripts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10615,10 +10641,9 @@ def get_resources_custom_fuzzing_scripts_with_http_info( @validate_call - def get_resources_custom_fuzzing_scripts_without_preload_content( + def get_resources_custom_fuzzing_script_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + custom_fuzzing_script_id: Annotated[StrictStr, Field(description="The ID of the custom fuzzing script.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10632,14 +10657,12 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_fuzzing_scripts + """get_resources_custom_fuzzing_script_content_file - Get all the available custom fuzzing scripts. + Get the content of a particular custom fuzzing script file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param custom_fuzzing_script_id: The ID of the custom fuzzing script. (required) + :type custom_fuzzing_script_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10662,9 +10685,8 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_script_content_file_serialize( + custom_fuzzing_script_id=custom_fuzzing_script_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10672,9 +10694,8 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -10683,10 +10704,9 @@ def get_resources_custom_fuzzing_scripts_without_preload_content( ) - def _get_resources_custom_fuzzing_scripts_serialize( + def _get_resources_custom_fuzzing_script_content_file_serialize( self, - take, - skip, + custom_fuzzing_script_id, _request_auth, _content_type, _headers, @@ -10706,15 +10726,9 @@ def _get_resources_custom_fuzzing_scripts_serialize( _body_params: Optional[bytes] = None # process the path parameters + if custom_fuzzing_script_id is not None: + _path_params['customFuzzingScriptId'] = custom_fuzzing_script_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -10724,6 +10738,7 @@ def _get_resources_custom_fuzzing_scripts_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -10737,7 +10752,7 @@ def _get_resources_custom_fuzzing_scripts_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts', + resource_path='/api/v2/resources/custom-fuzzing-scripts/{customFuzzingScriptId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10754,9 +10769,10 @@ def _get_resources_custom_fuzzing_scripts_serialize( @validate_call - def get_resources_custom_fuzzing_scripts_upload_file_result( + def get_resources_custom_fuzzing_scripts( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10769,13 +10785,15 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_custom_fuzzing_scripts_upload_file_result + ) -> GetResourcesCertificates200Response: + """get_resources_custom_fuzzing_scripts - Get the result of the upload file operation. + Get all the available custom fuzzing scripts. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10798,8 +10816,9 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10807,8 +10826,8 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10819,9 +10838,10 @@ def get_resources_custom_fuzzing_scripts_upload_file_result( @validate_call - def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( + def get_resources_custom_fuzzing_scripts_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10834,13 +10854,15 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_custom_fuzzing_scripts_upload_file_result + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_custom_fuzzing_scripts - Get the result of the upload file operation. + Get all the available custom fuzzing scripts. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10863,8 +10885,9 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10872,8 +10895,8 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10884,9 +10907,10 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( @validate_call - def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_content( + def get_resources_custom_fuzzing_scripts_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10900,12 +10924,14 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_custom_fuzzing_scripts_upload_file_result + """get_resources_custom_fuzzing_scripts - Get the result of the upload file operation. + Get all the available custom fuzzing scripts. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10928,8 +10954,9 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_custom_fuzzing_scripts_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10937,8 +10964,8 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -10948,9 +10975,10 @@ def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_cont ) - def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( + def _get_resources_custom_fuzzing_scripts_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -10970,9 +10998,15 @@ def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -10995,7 +11029,7 @@ def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/custom-fuzzing-scripts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11012,10 +11046,9 @@ def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( @validate_call - def get_resources_flow_library( + def get_resources_custom_fuzzing_scripts_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11028,15 +11061,13 @@ def get_resources_flow_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_flow_library + ) -> None: + """get_resources_custom_fuzzing_scripts_upload_file_result - Get all the available flow library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11059,9 +11090,8 @@ def get_resources_flow_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11069,8 +11099,8 @@ def get_resources_flow_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11081,10 +11111,9 @@ def get_resources_flow_library( @validate_call - def get_resources_flow_library_with_http_info( + def get_resources_custom_fuzzing_scripts_upload_file_result_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11097,15 +11126,13 @@ def get_resources_flow_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_flow_library + ) -> ApiResponse[None]: + """get_resources_custom_fuzzing_scripts_upload_file_result - Get all the available flow library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11128,9 +11155,8 @@ def get_resources_flow_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11138,8 +11164,8 @@ def get_resources_flow_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11150,10 +11176,9 @@ def get_resources_flow_library_with_http_info( @validate_call - def get_resources_flow_library_without_preload_content( + def get_resources_custom_fuzzing_scripts_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11167,14 +11192,12 @@ def get_resources_flow_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library + """get_resources_custom_fuzzing_scripts_upload_file_result - Get all the available flow library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11197,9 +11220,8 @@ def get_resources_flow_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_custom_fuzzing_scripts_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11207,8 +11229,8 @@ def get_resources_flow_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11218,10 +11240,9 @@ def get_resources_flow_library_without_preload_content( ) - def _get_resources_flow_library_serialize( + def _get_resources_custom_fuzzing_scripts_upload_file_result_serialize( self, - take, - skip, + upload_file_id, _request_auth, _content_type, _headers, @@ -11241,15 +11262,9 @@ def _get_resources_flow_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -11272,7 +11287,7 @@ def _get_resources_flow_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11289,9 +11304,10 @@ def _get_resources_flow_library_serialize( @validate_call - def get_resources_flow_library_by_id( + def get_resources_flow_library( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11304,13 +11320,15 @@ def get_resources_flow_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_flow_library_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_flow_library - Get a particular flow library file. + Get all the available flow library files. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11333,8 +11351,9 @@ def get_resources_flow_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11342,9 +11361,8 @@ def get_resources_flow_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11355,9 +11373,10 @@ def get_resources_flow_library_by_id( @validate_call - def get_resources_flow_library_by_id_with_http_info( + def get_resources_flow_library_with_http_info( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11370,13 +11389,15 @@ def get_resources_flow_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_flow_library_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_flow_library - Get a particular flow library file. + Get all the available flow library files. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11399,8 +11420,9 @@ def get_resources_flow_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11408,9 +11430,8 @@ def get_resources_flow_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11421,9 +11442,10 @@ def get_resources_flow_library_by_id_with_http_info( @validate_call - def get_resources_flow_library_by_id_without_preload_content( + def get_resources_flow_library_without_preload_content( self, - flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11437,12 +11459,14 @@ def get_resources_flow_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_by_id + """get_resources_flow_library - Get a particular flow library file. + Get all the available flow library files. - :param flow_library_id: The ID of the flow library. (required) - :type flow_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11465,8 +11489,9 @@ def get_resources_flow_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_by_id_serialize( - flow_library_id=flow_library_id, + _param = self._get_resources_flow_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11474,9 +11499,8 @@ def get_resources_flow_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -11486,9 +11510,10 @@ def get_resources_flow_library_by_id_without_preload_content( ) - def _get_resources_flow_library_by_id_serialize( + def _get_resources_flow_library_serialize( self, - flow_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -11508,9 +11533,15 @@ def _get_resources_flow_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if flow_library_id is not None: - _path_params['flowLibraryId'] = flow_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -11533,7 +11564,7 @@ def _get_resources_flow_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/{flowLibraryId}', + resource_path='/api/v2/resources/flow-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11550,7 +11581,7 @@ def _get_resources_flow_library_by_id_serialize( @validate_call - def get_resources_flow_library_content_file( + def get_resources_flow_library_by_id( self, flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ @@ -11565,10 +11596,10 @@ def get_resources_flow_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_flow_library_content_file + ) -> GenericFile: + """get_resources_flow_library_by_id - Get the content of a particular flow library file. + Get a particular flow library file. :param flow_library_id: The ID of the flow library. (required) :type flow_library_id: str @@ -11594,7 +11625,7 @@ def get_resources_flow_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( + _param = self._get_resources_flow_library_by_id_serialize( flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11603,8 +11634,10 @@ def get_resources_flow_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11614,7 +11647,7 @@ def get_resources_flow_library_content_file( @validate_call - def get_resources_flow_library_content_file_with_http_info( + def get_resources_flow_library_by_id_with_http_info( self, flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ @@ -11629,10 +11662,10 @@ def get_resources_flow_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_flow_library_content_file - - Get the content of a particular flow library file. + ) -> ApiResponse[GenericFile]: + """get_resources_flow_library_by_id + + Get a particular flow library file. :param flow_library_id: The ID of the flow library. (required) :type flow_library_id: str @@ -11658,7 +11691,7 @@ def get_resources_flow_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( + _param = self._get_resources_flow_library_by_id_serialize( flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11667,8 +11700,10 @@ def get_resources_flow_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11678,7 +11713,7 @@ def get_resources_flow_library_content_file_with_http_info( @validate_call - def get_resources_flow_library_content_file_without_preload_content( + def get_resources_flow_library_by_id_without_preload_content( self, flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ @@ -11694,9 +11729,9 @@ def get_resources_flow_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_content_file + """get_resources_flow_library_by_id - Get the content of a particular flow library file. + Get a particular flow library file. :param flow_library_id: The ID of the flow library. (required) :type flow_library_id: str @@ -11722,7 +11757,7 @@ def get_resources_flow_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_content_file_serialize( + _param = self._get_resources_flow_library_by_id_serialize( flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -11731,8 +11766,10 @@ def get_resources_flow_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11741,7 +11778,7 @@ def get_resources_flow_library_content_file_without_preload_content( ) - def _get_resources_flow_library_content_file_serialize( + def _get_resources_flow_library_by_id_serialize( self, flow_library_id, _request_auth, @@ -11775,7 +11812,6 @@ def _get_resources_flow_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -11789,7 +11825,7 @@ def _get_resources_flow_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/{flowLibraryId}/contentFile', + resource_path='/api/v2/resources/flow-library/{flowLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11806,9 +11842,9 @@ def _get_resources_flow_library_content_file_serialize( @validate_call - def get_resources_flow_library_upload_file_result( + def get_resources_flow_library_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11821,13 +11857,13 @@ def get_resources_flow_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_flow_library_upload_file_result + ) -> bytearray: + """get_resources_flow_library_content_file - Get the result of the upload file operation. + Get the content of a particular flow library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11850,8 +11886,8 @@ def get_resources_flow_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11859,9 +11895,8 @@ def get_resources_flow_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11871,9 +11906,9 @@ def get_resources_flow_library_upload_file_result( @validate_call - def get_resources_flow_library_upload_file_result_with_http_info( + def get_resources_flow_library_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11886,13 +11921,13 @@ def get_resources_flow_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_flow_library_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_flow_library_content_file - Get the result of the upload file operation. + Get the content of a particular flow library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11915,8 +11950,8 @@ def get_resources_flow_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11924,9 +11959,8 @@ def get_resources_flow_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -11936,9 +11970,9 @@ def get_resources_flow_library_upload_file_result_with_http_info( @validate_call - def get_resources_flow_library_upload_file_result_without_preload_content( + def get_resources_flow_library_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + flow_library_id: Annotated[StrictStr, Field(description="The ID of the flow library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11952,12 +11986,12 @@ def get_resources_flow_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_flow_library_upload_file_result + """get_resources_flow_library_content_file - Get the result of the upload file operation. + Get the content of a particular flow library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param flow_library_id: The ID of the flow library. (required) + :type flow_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11980,8 +12014,8 @@ def get_resources_flow_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_flow_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_flow_library_content_file_serialize( + flow_library_id=flow_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11989,9 +12023,8 @@ def get_resources_flow_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12000,9 +12033,9 @@ def get_resources_flow_library_upload_file_result_without_preload_content( ) - def _get_resources_flow_library_upload_file_result_serialize( + def _get_resources_flow_library_content_file_serialize( self, - upload_file_id, + flow_library_id, _request_auth, _content_type, _headers, @@ -12022,8 +12055,8 @@ def _get_resources_flow_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if flow_library_id is not None: + _path_params['flowLibraryId'] = flow_library_id # process the query parameters # process the header parameters # process the form parameters @@ -12034,6 +12067,7 @@ def _get_resources_flow_library_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -12047,7 +12081,7 @@ def _get_resources_flow_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/flow-library/{flowLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12064,9 +12098,9 @@ def _get_resources_flow_library_upload_file_result_serialize( @validate_call - def get_resources_global_playlist_by_id( + def get_resources_flow_library_upload_file_result( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12079,13 +12113,13 @@ def get_resources_global_playlist_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_global_playlist_by_id + ) -> None: + """get_resources_flow_library_upload_file_result - Get a particular global playlists archive file. + Get the result of the upload file operation. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12108,8 +12142,8 @@ def get_resources_global_playlist_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12117,9 +12151,8 @@ def get_resources_global_playlist_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12130,9 +12163,9 @@ def get_resources_global_playlist_by_id( @validate_call - def get_resources_global_playlist_by_id_with_http_info( + def get_resources_flow_library_upload_file_result_with_http_info( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12145,13 +12178,13 @@ def get_resources_global_playlist_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_global_playlist_by_id + ) -> ApiResponse[None]: + """get_resources_flow_library_upload_file_result - Get a particular global playlists archive file. + Get the result of the upload file operation. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12174,8 +12207,8 @@ def get_resources_global_playlist_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12183,9 +12216,8 @@ def get_resources_global_playlist_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12196,9 +12228,9 @@ def get_resources_global_playlist_by_id_with_http_info( @validate_call - def get_resources_global_playlist_by_id_without_preload_content( + def get_resources_flow_library_upload_file_result_without_preload_content( self, - global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12212,12 +12244,12 @@ def get_resources_global_playlist_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlist_by_id + """get_resources_flow_library_upload_file_result - Get a particular global playlists archive file. + Get the result of the upload file operation. - :param global_playlist_id: The ID of the global playlist. (required) - :type global_playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12240,8 +12272,8 @@ def get_resources_global_playlist_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_by_id_serialize( - global_playlist_id=global_playlist_id, + _param = self._get_resources_flow_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12249,9 +12281,8 @@ def get_resources_global_playlist_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12261,9 +12292,9 @@ def get_resources_global_playlist_by_id_without_preload_content( ) - def _get_resources_global_playlist_by_id_serialize( + def _get_resources_flow_library_upload_file_result_serialize( self, - global_playlist_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -12283,8 +12314,8 @@ def _get_resources_global_playlist_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if global_playlist_id is not None: - _path_params['globalPlaylistId'] = global_playlist_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -12308,7 +12339,7 @@ def _get_resources_global_playlist_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}', + resource_path='/api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12325,7 +12356,7 @@ def _get_resources_global_playlist_by_id_serialize( @validate_call - def get_resources_global_playlist_content_file( + def get_resources_global_playlist_by_id( self, global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ @@ -12340,10 +12371,10 @@ def get_resources_global_playlist_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_global_playlist_content_file + ) -> GenericFile: + """get_resources_global_playlist_by_id - Get the content of a particular global playlists archive file. + Get a particular global playlists archive file. :param global_playlist_id: The ID of the global playlist. (required) :type global_playlist_id: str @@ -12369,7 +12400,7 @@ def get_resources_global_playlist_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( + _param = self._get_resources_global_playlist_by_id_serialize( global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12378,8 +12409,10 @@ def get_resources_global_playlist_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12389,7 +12422,7 @@ def get_resources_global_playlist_content_file( @validate_call - def get_resources_global_playlist_content_file_with_http_info( + def get_resources_global_playlist_by_id_with_http_info( self, global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ @@ -12404,10 +12437,10 @@ def get_resources_global_playlist_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_global_playlist_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_global_playlist_by_id - Get the content of a particular global playlists archive file. + Get a particular global playlists archive file. :param global_playlist_id: The ID of the global playlist. (required) :type global_playlist_id: str @@ -12433,7 +12466,7 @@ def get_resources_global_playlist_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( + _param = self._get_resources_global_playlist_by_id_serialize( global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12442,8 +12475,10 @@ def get_resources_global_playlist_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12453,7 +12488,7 @@ def get_resources_global_playlist_content_file_with_http_info( @validate_call - def get_resources_global_playlist_content_file_without_preload_content( + def get_resources_global_playlist_by_id_without_preload_content( self, global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ @@ -12469,9 +12504,9 @@ def get_resources_global_playlist_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlist_content_file + """get_resources_global_playlist_by_id - Get the content of a particular global playlists archive file. + Get a particular global playlists archive file. :param global_playlist_id: The ID of the global playlist. (required) :type global_playlist_id: str @@ -12497,7 +12532,7 @@ def get_resources_global_playlist_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlist_content_file_serialize( + _param = self._get_resources_global_playlist_by_id_serialize( global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, @@ -12506,8 +12541,10 @@ def get_resources_global_playlist_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12516,7 +12553,7 @@ def get_resources_global_playlist_content_file_without_preload_content( ) - def _get_resources_global_playlist_content_file_serialize( + def _get_resources_global_playlist_by_id_serialize( self, global_playlist_id, _request_auth, @@ -12550,7 +12587,6 @@ def _get_resources_global_playlist_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -12564,7 +12600,7 @@ def _get_resources_global_playlist_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}/contentFile', + resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12581,10 +12617,9 @@ def _get_resources_global_playlist_content_file_serialize( @validate_call - def get_resources_global_playlists( + def get_resources_global_playlist_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12597,15 +12632,13 @@ def get_resources_global_playlists( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_global_playlists + ) -> bytearray: + """get_resources_global_playlist_content_file - Get all the available global playlists files. + Get the content of a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12628,9 +12661,8 @@ def get_resources_global_playlists( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12638,9 +12670,8 @@ def get_resources_global_playlists( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12650,10 +12681,9 @@ def get_resources_global_playlists( @validate_call - def get_resources_global_playlists_with_http_info( + def get_resources_global_playlist_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12666,15 +12696,13 @@ def get_resources_global_playlists_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_global_playlists + ) -> ApiResponse[bytearray]: + """get_resources_global_playlist_content_file - Get all the available global playlists files. + Get the content of a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12697,9 +12725,8 @@ def get_resources_global_playlists_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12707,9 +12734,8 @@ def get_resources_global_playlists_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12719,10 +12745,9 @@ def get_resources_global_playlists_with_http_info( @validate_call - def get_resources_global_playlists_without_preload_content( + def get_resources_global_playlist_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + global_playlist_id: Annotated[StrictStr, Field(description="The ID of the global playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12736,14 +12761,12 @@ def get_resources_global_playlists_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlists + """get_resources_global_playlist_content_file - Get all the available global playlists files. + Get the content of a particular global playlists archive file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param global_playlist_id: The ID of the global playlist. (required) + :type global_playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12766,9 +12789,8 @@ def get_resources_global_playlists_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlist_content_file_serialize( + global_playlist_id=global_playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12776,9 +12798,8 @@ def get_resources_global_playlists_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -12787,10 +12808,9 @@ def get_resources_global_playlists_without_preload_content( ) - def _get_resources_global_playlists_serialize( + def _get_resources_global_playlist_content_file_serialize( self, - take, - skip, + global_playlist_id, _request_auth, _content_type, _headers, @@ -12810,15 +12830,9 @@ def _get_resources_global_playlists_serialize( _body_params: Optional[bytes] = None # process the path parameters + if global_playlist_id is not None: + _path_params['globalPlaylistId'] = global_playlist_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -12828,6 +12842,7 @@ def _get_resources_global_playlists_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -12841,7 +12856,7 @@ def _get_resources_global_playlists_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists', + resource_path='/api/v2/resources/global-playlists/{globalPlaylistId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12858,9 +12873,10 @@ def _get_resources_global_playlists_serialize( @validate_call - def get_resources_global_playlists_upload_file_result( + def get_resources_global_playlists( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12873,13 +12889,15 @@ def get_resources_global_playlists_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_global_playlists_upload_file_result + ) -> GetResourcesCertificates200Response: + """get_resources_global_playlists - Get the result of the upload file operation. + Get all the available global playlists files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12902,8 +12920,9 @@ def get_resources_global_playlists_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12911,8 +12930,8 @@ def get_resources_global_playlists_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12923,9 +12942,10 @@ def get_resources_global_playlists_upload_file_result( @validate_call - def get_resources_global_playlists_upload_file_result_with_http_info( + def get_resources_global_playlists_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12938,13 +12958,15 @@ def get_resources_global_playlists_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_global_playlists_upload_file_result + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_global_playlists - Get the result of the upload file operation. + Get all the available global playlists files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12967,8 +12989,9 @@ def get_resources_global_playlists_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12976,8 +12999,8 @@ def get_resources_global_playlists_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -12988,9 +13011,10 @@ def get_resources_global_playlists_upload_file_result_with_http_info( @validate_call - def get_resources_global_playlists_upload_file_result_without_preload_content( + def get_resources_global_playlists_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13004,12 +13028,14 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_global_playlists_upload_file_result + """get_resources_global_playlists - Get the result of the upload file operation. + Get all the available global playlists files. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13032,8 +13058,9 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_global_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_global_playlists_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13041,8 +13068,8 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13052,9 +13079,10 @@ def get_resources_global_playlists_upload_file_result_without_preload_content( ) - def _get_resources_global_playlists_upload_file_result_serialize( + def _get_resources_global_playlists_serialize( self, - upload_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -13074,9 +13102,15 @@ def _get_resources_global_playlists_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -13099,7 +13133,7 @@ def _get_resources_global_playlists_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/global-playlists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13116,10 +13150,9 @@ def _get_resources_global_playlists_upload_file_result_serialize( @validate_call - def get_resources_http_library( + def get_resources_global_playlists_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13132,15 +13165,13 @@ def get_resources_http_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_http_library + ) -> None: + """get_resources_global_playlists_upload_file_result - Get all the available http library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13163,9 +13194,8 @@ def get_resources_http_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13173,8 +13203,8 @@ def get_resources_http_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13185,10 +13215,9 @@ def get_resources_http_library( @validate_call - def get_resources_http_library_with_http_info( + def get_resources_global_playlists_upload_file_result_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13201,15 +13230,13 @@ def get_resources_http_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_http_library + ) -> ApiResponse[None]: + """get_resources_global_playlists_upload_file_result - Get all the available http library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13232,9 +13259,8 @@ def get_resources_http_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13242,8 +13268,8 @@ def get_resources_http_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13254,10 +13280,9 @@ def get_resources_http_library_with_http_info( @validate_call - def get_resources_http_library_without_preload_content( + def get_resources_global_playlists_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13271,14 +13296,12 @@ def get_resources_http_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library + """get_resources_global_playlists_upload_file_result - Get all the available http library files. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13301,9 +13324,8 @@ def get_resources_http_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_global_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13311,8 +13333,8 @@ def get_resources_http_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13322,10 +13344,9 @@ def get_resources_http_library_without_preload_content( ) - def _get_resources_http_library_serialize( + def _get_resources_global_playlists_upload_file_result_serialize( self, - take, - skip, + upload_file_id, _request_auth, _content_type, _headers, @@ -13345,15 +13366,9 @@ def _get_resources_http_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -13376,7 +13391,7 @@ def _get_resources_http_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library', + resource_path='/api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13393,9 +13408,10 @@ def _get_resources_http_library_serialize( @validate_call - def get_resources_http_library_by_id( + def get_resources_http_library( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13408,13 +13424,15 @@ def get_resources_http_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_http_library_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_http_library - Get a particular http library file. + Get all the available http library files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13437,8 +13455,9 @@ def get_resources_http_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13446,9 +13465,8 @@ def get_resources_http_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13459,9 +13477,10 @@ def get_resources_http_library_by_id( @validate_call - def get_resources_http_library_by_id_with_http_info( + def get_resources_http_library_with_http_info( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13474,13 +13493,15 @@ def get_resources_http_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_http_library_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_http_library - Get a particular http library file. + Get all the available http library files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13503,8 +13524,9 @@ def get_resources_http_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13512,9 +13534,8 @@ def get_resources_http_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13525,9 +13546,10 @@ def get_resources_http_library_by_id_with_http_info( @validate_call - def get_resources_http_library_by_id_without_preload_content( + def get_resources_http_library_without_preload_content( self, - http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13541,12 +13563,14 @@ def get_resources_http_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_by_id + """get_resources_http_library - Get a particular http library file. + Get all the available http library files. - :param http_library_id: The ID of the http library. (required) - :type http_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13569,8 +13593,9 @@ def get_resources_http_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_by_id_serialize( - http_library_id=http_library_id, + _param = self._get_resources_http_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13578,9 +13603,8 @@ def get_resources_http_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -13590,9 +13614,10 @@ def get_resources_http_library_by_id_without_preload_content( ) - def _get_resources_http_library_by_id_serialize( + def _get_resources_http_library_serialize( self, - http_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -13612,9 +13637,15 @@ def _get_resources_http_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_library_id is not None: - _path_params['httpLibraryId'] = http_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -13637,7 +13668,7 @@ def _get_resources_http_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/{httpLibraryId}', + resource_path='/api/v2/resources/http-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13654,7 +13685,7 @@ def _get_resources_http_library_by_id_serialize( @validate_call - def get_resources_http_library_content_file( + def get_resources_http_library_by_id( self, http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ @@ -13669,10 +13700,10 @@ def get_resources_http_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_http_library_content_file + ) -> GenericFile: + """get_resources_http_library_by_id - Get the content of a particular http library file. + Get a particular http library file. :param http_library_id: The ID of the http library. (required) :type http_library_id: str @@ -13698,7 +13729,7 @@ def get_resources_http_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( + _param = self._get_resources_http_library_by_id_serialize( http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -13707,8 +13738,10 @@ def get_resources_http_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13718,7 +13751,7 @@ def get_resources_http_library_content_file( @validate_call - def get_resources_http_library_content_file_with_http_info( + def get_resources_http_library_by_id_with_http_info( self, http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ @@ -13733,10 +13766,10 @@ def get_resources_http_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_http_library_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_http_library_by_id - Get the content of a particular http library file. + Get a particular http library file. :param http_library_id: The ID of the http library. (required) :type http_library_id: str @@ -13762,7 +13795,7 @@ def get_resources_http_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( + _param = self._get_resources_http_library_by_id_serialize( http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -13771,8 +13804,10 @@ def get_resources_http_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13782,7 +13817,7 @@ def get_resources_http_library_content_file_with_http_info( @validate_call - def get_resources_http_library_content_file_without_preload_content( + def get_resources_http_library_by_id_without_preload_content( self, http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ @@ -13798,9 +13833,9 @@ def get_resources_http_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_content_file + """get_resources_http_library_by_id - Get the content of a particular http library file. + Get a particular http library file. :param http_library_id: The ID of the http library. (required) :type http_library_id: str @@ -13826,7 +13861,7 @@ def get_resources_http_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_content_file_serialize( + _param = self._get_resources_http_library_by_id_serialize( http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, @@ -13835,8 +13870,10 @@ def get_resources_http_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13845,7 +13882,7 @@ def get_resources_http_library_content_file_without_preload_content( ) - def _get_resources_http_library_content_file_serialize( + def _get_resources_http_library_by_id_serialize( self, http_library_id, _request_auth, @@ -13879,7 +13916,6 @@ def _get_resources_http_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -13893,7 +13929,7 @@ def _get_resources_http_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/{httpLibraryId}/contentFile', + resource_path='/api/v2/resources/http-library/{httpLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13910,9 +13946,9 @@ def _get_resources_http_library_content_file_serialize( @validate_call - def get_resources_http_library_upload_file_result( + def get_resources_http_library_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13925,13 +13961,13 @@ def get_resources_http_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_http_library_upload_file_result + ) -> bytearray: + """get_resources_http_library_content_file - Get the result of the upload file operation. + Get the content of a particular http library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13954,8 +13990,8 @@ def get_resources_http_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13963,9 +13999,8 @@ def get_resources_http_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -13975,9 +14010,9 @@ def get_resources_http_library_upload_file_result( @validate_call - def get_resources_http_library_upload_file_result_with_http_info( + def get_resources_http_library_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13990,13 +14025,13 @@ def get_resources_http_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_http_library_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_http_library_content_file - Get the result of the upload file operation. + Get the content of a particular http library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14019,8 +14054,8 @@ def get_resources_http_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14028,9 +14063,8 @@ def get_resources_http_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14040,9 +14074,9 @@ def get_resources_http_library_upload_file_result_with_http_info( @validate_call - def get_resources_http_library_upload_file_result_without_preload_content( + def get_resources_http_library_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + http_library_id: Annotated[StrictStr, Field(description="The ID of the http library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14056,12 +14090,12 @@ def get_resources_http_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_library_upload_file_result + """get_resources_http_library_content_file - Get the result of the upload file operation. + Get the content of a particular http library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param http_library_id: The ID of the http library. (required) + :type http_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14084,8 +14118,8 @@ def get_resources_http_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_http_library_content_file_serialize( + http_library_id=http_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14093,9 +14127,8 @@ def get_resources_http_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -14104,9 +14137,9 @@ def get_resources_http_library_upload_file_result_without_preload_content( ) - def _get_resources_http_library_upload_file_result_serialize( + def _get_resources_http_library_content_file_serialize( self, - upload_file_id, + http_library_id, _request_auth, _content_type, _headers, @@ -14126,8 +14159,8 @@ def _get_resources_http_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if http_library_id is not None: + _path_params['httpLibraryId'] = http_library_id # process the query parameters # process the header parameters # process the form parameters @@ -14138,6 +14171,7 @@ def _get_resources_http_library_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -14151,7 +14185,7 @@ def _get_resources_http_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/http-library/{httpLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14168,9 +14202,9 @@ def _get_resources_http_library_upload_file_result_serialize( @validate_call - def get_resources_http_profile_by_id( + def get_resources_http_library_upload_file_result( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14183,13 +14217,13 @@ def get_resources_http_profile_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HTTPProfile: - """get_resources_http_profile_by_id + ) -> None: + """get_resources_http_library_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14212,8 +14246,8 @@ def get_resources_http_profile_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14221,8 +14255,8 @@ def get_resources_http_profile_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14233,9 +14267,9 @@ def get_resources_http_profile_by_id( @validate_call - def get_resources_http_profile_by_id_with_http_info( + def get_resources_http_library_upload_file_result_with_http_info( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14248,13 +14282,13 @@ def get_resources_http_profile_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HTTPProfile]: - """get_resources_http_profile_by_id + ) -> ApiResponse[None]: + """get_resources_http_library_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14277,8 +14311,8 @@ def get_resources_http_profile_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14286,8 +14320,8 @@ def get_resources_http_profile_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14298,9 +14332,9 @@ def get_resources_http_profile_by_id_with_http_info( @validate_call - def get_resources_http_profile_by_id_without_preload_content( + def get_resources_http_library_upload_file_result_without_preload_content( self, - http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14314,12 +14348,12 @@ def get_resources_http_profile_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_profile_by_id + """get_resources_http_library_upload_file_result - Get a particular HTTP profile. + Get the result of the upload file operation. - :param http_profile_id: The ID of the http profile. (required) - :type http_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14342,8 +14376,8 @@ def get_resources_http_profile_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profile_by_id_serialize( - http_profile_id=http_profile_id, + _param = self._get_resources_http_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14351,8 +14385,8 @@ def get_resources_http_profile_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HTTPProfile", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14362,9 +14396,9 @@ def get_resources_http_profile_by_id_without_preload_content( ) - def _get_resources_http_profile_by_id_serialize( + def _get_resources_http_library_upload_file_result_serialize( self, - http_profile_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -14384,8 +14418,8 @@ def _get_resources_http_profile_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if http_profile_id is not None: - _path_params['httpProfileId'] = http_profile_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -14409,7 +14443,7 @@ def _get_resources_http_profile_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-profiles/{httpProfileId}', + resource_path='/api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14426,10 +14460,9 @@ def _get_resources_http_profile_by_id_serialize( @validate_call - def get_resources_http_profiles( + def get_resources_http_profile_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14442,15 +14475,13 @@ def get_resources_http_profiles( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesHttpProfiles200Response: - """get_resources_http_profiles + ) -> HTTPProfile: + """get_resources_http_profile_by_id - Get all the available HTTP profiles. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14473,9 +14504,8 @@ def get_resources_http_profiles( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14483,7 +14513,8 @@ def get_resources_http_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14494,10 +14525,9 @@ def get_resources_http_profiles( @validate_call - def get_resources_http_profiles_with_http_info( + def get_resources_http_profile_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14510,15 +14540,13 @@ def get_resources_http_profiles_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesHttpProfiles200Response]: - """get_resources_http_profiles + ) -> ApiResponse[HTTPProfile]: + """get_resources_http_profile_by_id - Get all the available HTTP profiles. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14541,9 +14569,8 @@ def get_resources_http_profiles_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14551,7 +14578,8 @@ def get_resources_http_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14562,10 +14590,9 @@ def get_resources_http_profiles_with_http_info( @validate_call - def get_resources_http_profiles_without_preload_content( + def get_resources_http_profile_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + http_profile_id: Annotated[StrictStr, Field(description="The ID of the http profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14579,14 +14606,12 @@ def get_resources_http_profiles_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_http_profiles + """get_resources_http_profile_by_id - Get all the available HTTP profiles. + Get a particular HTTP profile. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param http_profile_id: The ID of the http profile. (required) + :type http_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14609,9 +14634,8 @@ def get_resources_http_profiles_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_http_profiles_serialize( - take=take, - skip=skip, + _param = self._get_resources_http_profile_by_id_serialize( + http_profile_id=http_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14619,7 +14643,8 @@ def get_resources_http_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesHttpProfiles200Response", + '200': "HTTPProfile", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14629,10 +14654,9 @@ def get_resources_http_profiles_without_preload_content( ) - def _get_resources_http_profiles_serialize( + def _get_resources_http_profile_by_id_serialize( self, - take, - skip, + http_profile_id, _request_auth, _content_type, _headers, @@ -14652,15 +14676,9 @@ def _get_resources_http_profiles_serialize( _body_params: Optional[bytes] = None # process the path parameters + if http_profile_id is not None: + _path_params['httpProfileId'] = http_profile_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -14683,7 +14701,7 @@ def _get_resources_http_profiles_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/http-profiles', + resource_path='/api/v2/resources/http-profiles/{httpProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14700,9 +14718,10 @@ def _get_resources_http_profiles_serialize( @validate_call - def get_resources_media_file_by_id( + def get_resources_http_profiles( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14715,13 +14734,15 @@ def get_resources_media_file_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_media_file_by_id + ) -> GetResourcesHttpProfiles200Response: + """get_resources_http_profiles - Get a particular media file. + Get all the available HTTP profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14744,8 +14765,9 @@ def get_resources_media_file_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14753,9 +14775,7 @@ def get_resources_media_file_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14766,9 +14786,10 @@ def get_resources_media_file_by_id( @validate_call - def get_resources_media_file_by_id_with_http_info( + def get_resources_http_profiles_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14781,13 +14802,15 @@ def get_resources_media_file_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_media_file_by_id + ) -> ApiResponse[GetResourcesHttpProfiles200Response]: + """get_resources_http_profiles - Get a particular media file. + Get all the available HTTP profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14810,8 +14833,9 @@ def get_resources_media_file_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14819,9 +14843,7 @@ def get_resources_media_file_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14832,9 +14854,10 @@ def get_resources_media_file_by_id_with_http_info( @validate_call - def get_resources_media_file_by_id_without_preload_content( + def get_resources_http_profiles_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14848,12 +14871,14 @@ def get_resources_media_file_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_file_by_id + """get_resources_http_profiles - Get a particular media file. + Get all the available HTTP profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14876,8 +14901,9 @@ def get_resources_media_file_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_http_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14885,9 +14911,7 @@ def get_resources_media_file_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "GetResourcesHttpProfiles200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -14897,9 +14921,10 @@ def get_resources_media_file_by_id_without_preload_content( ) - def _get_resources_media_file_by_id_serialize( + def _get_resources_http_profiles_serialize( self, - media_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -14919,9 +14944,15 @@ def _get_resources_media_file_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_file_id is not None: - _path_params['mediaFileId'] = media_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -14944,7 +14975,7 @@ def _get_resources_media_file_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/{mediaFileId}', + resource_path='/api/v2/resources/http-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14961,7 +14992,7 @@ def _get_resources_media_file_by_id_serialize( @validate_call - def get_resources_media_file_content_file( + def get_resources_media_file_by_id( self, media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ @@ -14976,10 +15007,10 @@ def get_resources_media_file_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_media_file_content_file + ) -> GenericFile: + """get_resources_media_file_by_id - Get the content of a particular media file. + Get a particular media file. :param media_file_id: The ID of the media file. (required) :type media_file_id: str @@ -15005,7 +15036,7 @@ def get_resources_media_file_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( + _param = self._get_resources_media_file_by_id_serialize( media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15014,8 +15045,10 @@ def get_resources_media_file_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15025,7 +15058,7 @@ def get_resources_media_file_content_file( @validate_call - def get_resources_media_file_content_file_with_http_info( + def get_resources_media_file_by_id_with_http_info( self, media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ @@ -15040,10 +15073,10 @@ def get_resources_media_file_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_media_file_content_file + ) -> ApiResponse[GenericFile]: + """get_resources_media_file_by_id - Get the content of a particular media file. + Get a particular media file. :param media_file_id: The ID of the media file. (required) :type media_file_id: str @@ -15069,7 +15102,7 @@ def get_resources_media_file_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( + _param = self._get_resources_media_file_by_id_serialize( media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15078,8 +15111,10 @@ def get_resources_media_file_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15089,7 +15124,7 @@ def get_resources_media_file_content_file_with_http_info( @validate_call - def get_resources_media_file_content_file_without_preload_content( + def get_resources_media_file_by_id_without_preload_content( self, media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ @@ -15105,9 +15140,9 @@ def get_resources_media_file_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_file_content_file + """get_resources_media_file_by_id - Get the content of a particular media file. + Get a particular media file. :param media_file_id: The ID of the media file. (required) :type media_file_id: str @@ -15133,7 +15168,7 @@ def get_resources_media_file_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( + _param = self._get_resources_media_file_by_id_serialize( media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -15142,8 +15177,10 @@ def get_resources_media_file_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15152,7 +15189,7 @@ def get_resources_media_file_content_file_without_preload_content( ) - def _get_resources_media_file_content_file_serialize( + def _get_resources_media_file_by_id_serialize( self, media_file_id, _request_auth, @@ -15186,7 +15223,262 @@ def _get_resources_media_file_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/media-files/{mediaFileId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_media_file_content_file( + self, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bytearray: + """get_resources_media_file_content_file + + Get the content of a particular media file. + + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_media_file_content_file_with_http_info( + self, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bytearray]: + """get_resources_media_file_content_file + + Get the content of a particular media file. + + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_media_file_content_file_without_preload_content( + self, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_media_file_content_file + + Get the content of a particular media file. + + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_media_file_content_file_serialize( + self, + media_file_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if media_file_id is not None: + _path_params['mediaFileId'] = media_file_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/octet-stream', 'application/json' ] ) @@ -28262,28 +28554,550 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call + def start_resources_apps_export_all( + self, + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_resources_apps_export_all + + Export all apps created by the user. Optionally, provide a list of app IDs to export. + + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_apps_export_all_with_http_info( + self, + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_resources_apps_export_all + + Export all apps created by the user. Optionally, provide a list of app IDs to export. + + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_apps_export_all_without_preload_content( + self, + export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_resources_apps_export_all + + Export all apps created by the user. Optionally, provide a list of app IDs to export. + + :param export_apps_operation_input: + :type export_apps_operation_input: ExportAppsOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_apps_export_all_serialize( + export_apps_operation_input=export_apps_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_resources_apps_export_all_serialize( + self, + export_apps_operation_input, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if export_apps_operation_input is not None: + _body_params = export_apps_operation_input + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/resources/apps/operations/export-all', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def start_resources_captures_batch_delete( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_resources_captures_batch_delete + + Delete one or more captures + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_batch_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_captures_batch_delete_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_resources_captures_batch_delete + + Delete one or more captures + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_batch_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_captures_batch_delete_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_resources_captures_batch_delete + + Delete one or more captures + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_captures_batch_delete_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_resources_captures_batch_delete_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: - + _host = None + _collection_formats: Dict[str, str] = { + } + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter - + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) - - + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/resources/captures/operations/batch-delete', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) @validate_call - def start_resources_apps_export_all( + def start_resources_captures_encrypted_upload_file( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28296,13 +29110,13 @@ def start_resources_apps_export_all( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_apps_export_all + ) -> None: + """start_resources_captures_encrypted_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28325,8 +29139,8 @@ def start_resources_apps_export_all( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28334,7 +29148,8 @@ def start_resources_apps_export_all( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28344,9 +29159,9 @@ def start_resources_apps_export_all( @validate_call - def start_resources_apps_export_all_with_http_info( + def start_resources_captures_encrypted_upload_file_with_http_info( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28359,13 +29174,13 @@ def start_resources_apps_export_all_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_apps_export_all + ) -> ApiResponse[None]: + """start_resources_captures_encrypted_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28388,8 +29203,8 @@ def start_resources_apps_export_all_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28397,7 +29212,8 @@ def start_resources_apps_export_all_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28407,9 +29223,9 @@ def start_resources_apps_export_all_with_http_info( @validate_call - def start_resources_apps_export_all_without_preload_content( + def start_resources_captures_encrypted_upload_file_without_preload_content( self, - export_apps_operation_input: Optional[ExportAppsOperationInput] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28423,12 +29239,12 @@ def start_resources_apps_export_all_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_apps_export_all + """start_resources_captures_encrypted_upload_file - Export all apps created by the user. Optionally, provide a list of app IDs to export. + Upload a file. - :param export_apps_operation_input: - :type export_apps_operation_input: ExportAppsOperationInput + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28451,8 +29267,8 @@ def start_resources_apps_export_all_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_apps_export_all_serialize( - export_apps_operation_input=export_apps_operation_input, + _param = self._start_resources_captures_encrypted_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28460,7 +29276,8 @@ def start_resources_apps_export_all_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28469,9 +29286,9 @@ def start_resources_apps_export_all_without_preload_content( ) - def _start_resources_apps_export_all_serialize( + def _start_resources_captures_encrypted_upload_file_serialize( self, - export_apps_operation_input, + file, _request_auth, _content_type, _headers, @@ -28494,9 +29311,9 @@ def _start_resources_apps_export_all_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter - if export_apps_operation_input is not None: - _body_params = export_apps_operation_input # set the HTTP header `Accept` @@ -28514,7 +29331,7 @@ def _start_resources_apps_export_all_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'multipart/form-data' ] ) ) @@ -28529,7 +29346,7 @@ def _start_resources_apps_export_all_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/apps/operations/export-all', + resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28546,8 +29363,9 @@ def _start_resources_apps_export_all_serialize( @validate_call - def start_resources_captures_batch_delete( + def start_resources_captures_upload_file( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28561,10 +29379,12 @@ def start_resources_captures_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_captures_batch_delete + """start_resources_captures_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28587,7 +29407,8 @@ def start_resources_captures_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28596,6 +29417,7 @@ def start_resources_captures_batch_delete( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28605,8 +29427,9 @@ def start_resources_captures_batch_delete( @validate_call - def start_resources_captures_batch_delete_with_http_info( + def start_resources_captures_upload_file_with_http_info( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28620,10 +29443,12 @@ def start_resources_captures_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_captures_batch_delete + """start_resources_captures_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28646,7 +29471,8 @@ def start_resources_captures_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28655,6 +29481,7 @@ def start_resources_captures_batch_delete_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28664,8 +29491,9 @@ def start_resources_captures_batch_delete_with_http_info( @validate_call - def start_resources_captures_batch_delete_without_preload_content( + def start_resources_captures_upload_file_without_preload_content( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28679,10 +29507,12 @@ def start_resources_captures_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_captures_batch_delete + """start_resources_captures_upload_file - Delete one or more captures + Upload a file. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28705,7 +29535,8 @@ def start_resources_captures_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_batch_delete_serialize( + _param = self._start_resources_captures_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28714,6 +29545,7 @@ def start_resources_captures_batch_delete_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -28722,8 +29554,9 @@ def start_resources_captures_batch_delete_without_preload_content( ) - def _start_resources_captures_batch_delete_serialize( + def _start_resources_captures_upload_file_serialize( self, + file, _request_auth, _content_type, _headers, @@ -28746,6 +29579,8 @@ def _start_resources_captures_batch_delete_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -28757,6 +29592,19 @@ def _start_resources_captures_batch_delete_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -28766,7 +29614,7 @@ def _start_resources_captures_batch_delete_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/captures/operations/batch-delete', + resource_path='/api/v2/resources/captures/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28783,7 +29631,7 @@ def _start_resources_captures_batch_delete_serialize( @validate_call - def start_resources_captures_encrypted_upload_file( + def start_resources_certificates_upload_file( self, file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ @@ -28799,7 +29647,7 @@ def start_resources_captures_encrypted_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """start_resources_captures_encrypted_upload_file + """start_resources_certificates_upload_file Upload a file. @@ -28827,7 +29675,7 @@ def start_resources_captures_encrypted_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_encrypted_upload_file_serialize( + _param = self._start_resources_certificates_upload_file_serialize( file=file, _request_auth=_request_auth, _content_type=_content_type, @@ -28847,7 +29695,7 @@ def start_resources_captures_encrypted_upload_file( @validate_call - def start_resources_captures_encrypted_upload_file_with_http_info( + def start_resources_certificates_upload_file_with_http_info( self, file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ @@ -28863,7 +29711,7 @@ def start_resources_captures_encrypted_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """start_resources_captures_encrypted_upload_file + """start_resources_certificates_upload_file Upload a file. @@ -28891,7 +29739,7 @@ def start_resources_captures_encrypted_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_encrypted_upload_file_serialize( + _param = self._start_resources_certificates_upload_file_serialize( file=file, _request_auth=_request_auth, _content_type=_content_type, @@ -28911,7 +29759,7 @@ def start_resources_captures_encrypted_upload_file_with_http_info( @validate_call - def start_resources_captures_encrypted_upload_file_without_preload_content( + def start_resources_certificates_upload_file_without_preload_content( self, file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ @@ -28927,7 +29775,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_captures_encrypted_upload_file + """start_resources_certificates_upload_file Upload a file. @@ -28955,7 +29803,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_encrypted_upload_file_serialize( + _param = self._start_resources_certificates_upload_file_serialize( file=file, _request_auth=_request_auth, _content_type=_content_type, @@ -28974,7 +29822,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( ) - def _start_resources_captures_encrypted_upload_file_serialize( + def _start_resources_certificates_upload_file_serialize( self, file, _request_auth, @@ -29034,7 +29882,7 @@ def _start_resources_captures_encrypted_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/captures/encrypted/operations/uploadFile', + resource_path='/api/v2/resources/certificates/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29051,9 +29899,9 @@ def _start_resources_captures_encrypted_upload_file_serialize( @validate_call - def start_resources_captures_upload_file( + def start_resources_config_export_user_defined_apps( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29067,12 +29915,12 @@ def start_resources_captures_upload_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29095,8 +29943,8 @@ def start_resources_captures_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29105,7 +29953,6 @@ def start_resources_captures_upload_file( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29115,9 +29962,9 @@ def start_resources_captures_upload_file( @validate_call - def start_resources_captures_upload_file_with_http_info( + def start_resources_config_export_user_defined_apps_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29131,12 +29978,12 @@ def start_resources_captures_upload_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29159,8 +30006,8 @@ def start_resources_captures_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29169,7 +30016,6 @@ def start_resources_captures_upload_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29179,9 +30025,9 @@ def start_resources_captures_upload_file_with_http_info( @validate_call - def start_resources_captures_upload_file_without_preload_content( + def start_resources_config_export_user_defined_apps_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + config_id: Annotated[StrictStr, Field(description="The ID of the config.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29195,12 +30041,12 @@ def start_resources_captures_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_captures_upload_file + """start_resources_config_export_user_defined_apps - Upload a file. + Export all apps created by the user. - :param file: - :type file: bytearray + :param config_id: The ID of the config. (required) + :type config_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29223,8 +30069,8 @@ def start_resources_captures_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_captures_upload_file_serialize( - file=file, + _param = self._start_resources_config_export_user_defined_apps_serialize( + config_id=config_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29233,7 +30079,6 @@ def start_resources_captures_upload_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '202': "AsyncContext", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29242,9 +30087,9 @@ def start_resources_captures_upload_file_without_preload_content( ) - def _start_resources_captures_upload_file_serialize( + def _start_resources_config_export_user_defined_apps_serialize( self, - file, + config_id, _request_auth, _content_type, _headers, @@ -29264,11 +30109,11 @@ def _start_resources_captures_upload_file_serialize( _body_params: Optional[bytes] = None # process the path parameters + if config_id is not None: + _path_params['configId'] = config_id # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter @@ -29280,19 +30125,6 @@ def _start_resources_captures_upload_file_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29302,7 +30134,7 @@ def _start_resources_captures_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/captures/operations/uploadFile', + resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29319,9 +30151,9 @@ def _start_resources_captures_upload_file_serialize( @validate_call - def start_resources_certificates_upload_file( + def start_resources_create_app( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29334,13 +30166,13 @@ def start_resources_certificates_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_certificates_upload_file + ) -> AsyncContext: + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29363,8 +30195,8 @@ def start_resources_certificates_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29372,8 +30204,7 @@ def start_resources_certificates_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -29383,9 +30214,9 @@ def start_resources_certificates_upload_file( @validate_call - def start_resources_certificates_upload_file_with_http_info( + def start_resources_create_app_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29398,13 +30229,13 @@ def start_resources_certificates_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_certificates_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29427,8 +30258,8 @@ def start_resources_certificates_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29436,8 +30267,7 @@ def start_resources_certificates_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -29447,9 +30277,9 @@ def start_resources_certificates_upload_file_with_http_info( @validate_call - def start_resources_certificates_upload_file_without_preload_content( + def start_resources_create_app_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + create_app_operation: Optional[CreateAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29463,12 +30293,12 @@ def start_resources_certificates_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_certificates_upload_file + """start_resources_create_app - Upload a file. + Create an app from captures - :param file: - :type file: bytearray + :param create_app_operation: + :type create_app_operation: CreateAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29491,8 +30321,8 @@ def start_resources_certificates_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_certificates_upload_file_serialize( - file=file, + _param = self._start_resources_create_app_serialize( + create_app_operation=create_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29500,8 +30330,7 @@ def start_resources_certificates_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -29510,9 +30339,9 @@ def start_resources_certificates_upload_file_without_preload_content( ) - def _start_resources_certificates_upload_file_serialize( + def _start_resources_create_app_serialize( self, - file, + create_app_operation, _request_auth, _content_type, _headers, @@ -29535,9 +30364,9 @@ def _start_resources_certificates_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if create_app_operation is not None: + _body_params = create_app_operation # set the HTTP header `Accept` @@ -29555,7 +30384,7 @@ def _start_resources_certificates_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -29570,7 +30399,7 @@ def _start_resources_certificates_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/certificates/operations/uploadFile', + resource_path='/api/v2/resources/operations/create-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29587,9 +30416,9 @@ def _start_resources_certificates_upload_file_serialize( @validate_call - def start_resources_config_export_user_defined_apps( + def start_resources_custom_fuzzing_scripts_upload_file( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29602,13 +30431,13 @@ def start_resources_config_export_user_defined_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_config_export_user_defined_apps + ) -> None: + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29631,8 +30460,8 @@ def start_resources_config_export_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29640,7 +30469,8 @@ def start_resources_config_export_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29650,9 +30480,9 @@ def start_resources_config_export_user_defined_apps( @validate_call - def start_resources_config_export_user_defined_apps_with_http_info( + def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29665,13 +30495,13 @@ def start_resources_config_export_user_defined_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_config_export_user_defined_apps + ) -> ApiResponse[None]: + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29694,8 +30524,8 @@ def start_resources_config_export_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29703,7 +30533,8 @@ def start_resources_config_export_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29713,9 +30544,9 @@ def start_resources_config_export_user_defined_apps_with_http_info( @validate_call - def start_resources_config_export_user_defined_apps_without_preload_content( + def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( self, - config_id: Annotated[StrictStr, Field(description="The ID of the config.")], + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29729,12 +30560,12 @@ def start_resources_config_export_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_config_export_user_defined_apps + """start_resources_custom_fuzzing_scripts_upload_file - Export all apps created by the user. + Upload a file. - :param config_id: The ID of the config. (required) - :type config_id: str + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29757,8 +30588,8 @@ def start_resources_config_export_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_config_export_user_defined_apps_serialize( - config_id=config_id, + _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29766,7 +30597,8 @@ def start_resources_config_export_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -29775,9 +30607,9 @@ def start_resources_config_export_user_defined_apps_without_preload_content( ) - def _start_resources_config_export_user_defined_apps_serialize( + def _start_resources_custom_fuzzing_scripts_upload_file_serialize( self, - config_id, + file, _request_auth, _content_type, _headers, @@ -29797,11 +30629,11 @@ def _start_resources_config_export_user_defined_apps_serialize( _body_params: Optional[bytes] = None # process the path parameters - if config_id is not None: - _path_params['configId'] = config_id # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -29813,6 +30645,19 @@ def _start_resources_config_export_user_defined_apps_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -29822,7 +30667,7 @@ def _start_resources_config_export_user_defined_apps_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/configs/{configId}/operations/export-user-defined-apps', + resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29839,9 +30684,9 @@ def _start_resources_config_export_user_defined_apps_serialize( @validate_call - def start_resources_create_app( + def start_resources_edit_app( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29855,12 +30700,12 @@ def start_resources_create_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29883,8 +30728,8 @@ def start_resources_create_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29902,9 +30747,9 @@ def start_resources_create_app( @validate_call - def start_resources_create_app_with_http_info( + def start_resources_edit_app_with_http_info( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29918,12 +30763,12 @@ def start_resources_create_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29946,8 +30791,8 @@ def start_resources_create_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29965,9 +30810,9 @@ def start_resources_create_app_with_http_info( @validate_call - def start_resources_create_app_without_preload_content( + def start_resources_edit_app_without_preload_content( self, - create_app_operation: Optional[CreateAppOperation] = None, + edit_app_operation: Optional[EditAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29981,12 +30826,12 @@ def start_resources_create_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_create_app + """start_resources_edit_app - Create an app from captures + Edit an application - :param create_app_operation: - :type create_app_operation: CreateAppOperation + :param edit_app_operation: + :type edit_app_operation: EditAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30009,8 +30854,8 @@ def start_resources_create_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_create_app_serialize( - create_app_operation=create_app_operation, + _param = self._start_resources_edit_app_serialize( + edit_app_operation=edit_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30027,9 +30872,9 @@ def start_resources_create_app_without_preload_content( ) - def _start_resources_create_app_serialize( + def _start_resources_edit_app_serialize( self, - create_app_operation, + edit_app_operation, _request_auth, _content_type, _headers, @@ -30053,8 +30898,8 @@ def _start_resources_create_app_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_app_operation is not None: - _body_params = create_app_operation + if edit_app_operation is not None: + _body_params = edit_app_operation # set the HTTP header `Accept` @@ -30087,7 +30932,7 @@ def _start_resources_create_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/create-app', + resource_path='/api/v2/resources/operations/edit-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30104,9 +30949,9 @@ def _start_resources_create_app_serialize( @validate_call - def start_resources_custom_fuzzing_scripts_upload_file( + def start_resources_find_param_matches( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30119,13 +30964,13 @@ def start_resources_custom_fuzzing_scripts_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_custom_fuzzing_scripts_upload_file + ) -> AsyncContext: + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30148,8 +30993,8 @@ def start_resources_custom_fuzzing_scripts_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30157,8 +31002,7 @@ def start_resources_custom_fuzzing_scripts_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -30168,9 +31012,9 @@ def start_resources_custom_fuzzing_scripts_upload_file( @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( + def start_resources_find_param_matches_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30183,13 +31027,13 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_custom_fuzzing_scripts_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30212,8 +31056,8 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30221,8 +31065,7 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -30232,9 +31075,9 @@ def start_resources_custom_fuzzing_scripts_upload_file_with_http_info( @validate_call - def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( + def start_resources_find_param_matches_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + find_param_matches_operation: Optional[FindParamMatchesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30248,12 +31091,12 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_custom_fuzzing_scripts_upload_file + """start_resources_find_param_matches - Upload a file. + Find parameter matches - :param file: - :type file: bytearray + :param find_param_matches_operation: + :type find_param_matches_operation: FindParamMatchesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30276,8 +31119,8 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_custom_fuzzing_scripts_upload_file_serialize( - file=file, + _param = self._start_resources_find_param_matches_serialize( + find_param_matches_operation=find_param_matches_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30285,8 +31128,7 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -30295,9 +31137,9 @@ def start_resources_custom_fuzzing_scripts_upload_file_without_preload_content( ) - def _start_resources_custom_fuzzing_scripts_upload_file_serialize( + def _start_resources_find_param_matches_serialize( self, - file, + find_param_matches_operation, _request_auth, _content_type, _headers, @@ -30320,9 +31162,9 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if find_param_matches_operation is not None: + _body_params = find_param_matches_operation # set the HTTP header `Accept` @@ -30340,7 +31182,7 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -30355,7 +31197,7 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/custom-fuzzing-scripts/operations/uploadFile', + resource_path='/api/v2/resources/operations/find-param-matches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30372,9 +31214,9 @@ def _start_resources_custom_fuzzing_scripts_upload_file_serialize( @validate_call - def start_resources_edit_app( + def start_resources_flow_library_upload_file( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30387,13 +31229,13 @@ def start_resources_edit_app( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_resources_edit_app + ) -> None: + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30416,8 +31258,8 @@ def start_resources_edit_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30425,7 +31267,8 @@ def start_resources_edit_app( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -30435,9 +31278,9 @@ def start_resources_edit_app( @validate_call - def start_resources_edit_app_with_http_info( + def start_resources_flow_library_upload_file_with_http_info( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30450,13 +31293,13 @@ def start_resources_edit_app_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_resources_edit_app + ) -> ApiResponse[None]: + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30479,8 +31322,8 @@ def start_resources_edit_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30488,7 +31331,8 @@ def start_resources_edit_app_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -30498,9 +31342,9 @@ def start_resources_edit_app_with_http_info( @validate_call - def start_resources_edit_app_without_preload_content( + def start_resources_flow_library_upload_file_without_preload_content( self, - edit_app_operation: Optional[EditAppOperation] = None, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30514,12 +31358,12 @@ def start_resources_edit_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_edit_app + """start_resources_flow_library_upload_file - Edit an application + Upload a file. - :param edit_app_operation: - :type edit_app_operation: EditAppOperation + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30542,8 +31386,8 @@ def start_resources_edit_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_edit_app_serialize( - edit_app_operation=edit_app_operation, + _param = self._start_resources_flow_library_upload_file_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30551,7 +31395,8 @@ def start_resources_edit_app_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", + '202': None, + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -30560,9 +31405,9 @@ def start_resources_edit_app_without_preload_content( ) - def _start_resources_edit_app_serialize( + def _start_resources_flow_library_upload_file_serialize( self, - edit_app_operation, + file, _request_auth, _content_type, _headers, @@ -30585,9 +31430,9 @@ def _start_resources_edit_app_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter - if edit_app_operation is not None: - _body_params = edit_app_operation # set the HTTP header `Accept` @@ -30605,7 +31450,7 @@ def _start_resources_edit_app_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'application/json' + 'multipart/form-data' ] ) ) @@ -30620,7 +31465,7 @@ def _start_resources_edit_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/edit-app', + resource_path='/api/v2/resources/flow-library/operations/uploadFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30637,9 +31482,9 @@ def _start_resources_edit_app_serialize( @validate_call - def start_resources_find_param_matches( + def start_resources_get_app_categories( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30653,12 +31498,12 @@ def start_resources_find_param_matches( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30681,8 +31526,8 @@ def start_resources_find_param_matches( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30700,9 +31545,9 @@ def start_resources_find_param_matches( @validate_call - def start_resources_find_param_matches_with_http_info( + def start_resources_get_app_categories_with_http_info( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30716,12 +31561,12 @@ def start_resources_find_param_matches_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30744,8 +31589,8 @@ def start_resources_find_param_matches_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30763,9 +31608,9 @@ def start_resources_find_param_matches_with_http_info( @validate_call - def start_resources_find_param_matches_without_preload_content( + def start_resources_get_app_categories_without_preload_content( self, - find_param_matches_operation: Optional[FindParamMatchesOperation] = None, + get_categories_operation: Optional[GetCategoriesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30779,12 +31624,12 @@ def start_resources_find_param_matches_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_find_param_matches + """start_resources_get_app_categories - Find parameter matches + Get the list of app categories - :param find_param_matches_operation: - :type find_param_matches_operation: FindParamMatchesOperation + :param get_categories_operation: + :type get_categories_operation: GetCategoriesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30807,8 +31652,8 @@ def start_resources_find_param_matches_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_find_param_matches_serialize( - find_param_matches_operation=find_param_matches_operation, + _param = self._start_resources_get_app_categories_serialize( + get_categories_operation=get_categories_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30825,9 +31670,9 @@ def start_resources_find_param_matches_without_preload_content( ) - def _start_resources_find_param_matches_serialize( + def _start_resources_get_app_categories_serialize( self, - find_param_matches_operation, + get_categories_operation, _request_auth, _content_type, _headers, @@ -30851,8 +31696,8 @@ def _start_resources_find_param_matches_serialize( # process the header parameters # process the form parameters # process the body parameter - if find_param_matches_operation is not None: - _body_params = find_param_matches_operation + if get_categories_operation is not None: + _body_params = get_categories_operation # set the HTTP header `Accept` @@ -30885,7 +31730,7 @@ def _start_resources_find_param_matches_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/operations/find-param-matches', + resource_path='/api/v2/resources/operations/get-app-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30902,9 +31747,9 @@ def _start_resources_find_param_matches_serialize( @validate_call - def start_resources_flow_library_upload_file( + def start_resources_get_apps( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30917,13 +31762,13 @@ def start_resources_flow_library_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """start_resources_flow_library_upload_file + ) -> AsyncContext: + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30946,8 +31791,8 @@ def start_resources_flow_library_upload_file( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30955,8 +31800,7 @@ def start_resources_flow_library_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -30966,9 +31810,9 @@ def start_resources_flow_library_upload_file( @validate_call - def start_resources_flow_library_upload_file_with_http_info( + def start_resources_get_apps_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30981,13 +31825,13 @@ def start_resources_flow_library_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """start_resources_flow_library_upload_file + ) -> ApiResponse[AsyncContext]: + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31010,8 +31854,8 @@ def start_resources_flow_library_upload_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31019,8 +31863,7 @@ def start_resources_flow_library_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -31030,9 +31873,9 @@ def start_resources_flow_library_upload_file_with_http_info( @validate_call - def start_resources_flow_library_upload_file_without_preload_content( + def start_resources_get_apps_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + get_apps_operation: Optional[GetAppsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31046,12 +31889,12 @@ def start_resources_flow_library_upload_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_resources_flow_library_upload_file + """start_resources_get_apps - Upload a file. + Get the list of applications - :param file: - :type file: bytearray + :param get_apps_operation: + :type get_apps_operation: GetAppsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31074,8 +31917,8 @@ def start_resources_flow_library_upload_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_resources_flow_library_upload_file_serialize( - file=file, + _param = self._start_resources_get_apps_serialize( + get_apps_operation=get_apps_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31083,8 +31926,7 @@ def start_resources_flow_library_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, - '500': "ErrorResponse", + '202': "AsyncContext", } return self.api_client.call_api( *_param, @@ -31093,9 +31935,9 @@ def start_resources_flow_library_upload_file_without_preload_content( ) - def _start_resources_flow_library_upload_file_serialize( + def _start_resources_get_apps_serialize( self, - file, + get_apps_operation, _request_auth, _content_type, _headers, @@ -31118,9 +31960,9 @@ def _start_resources_flow_library_upload_file_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file # process the body parameter + if get_apps_operation is not None: + _body_params = get_apps_operation # set the HTTP header `Accept` @@ -31138,7 +31980,7 @@ def _start_resources_flow_library_upload_file_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -31153,7 +31995,7 @@ def _start_resources_flow_library_upload_file_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/resources/flow-library/operations/uploadFile', + resource_path='/api/v2/resources/operations/get-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cyperf/api/configurations_api.py b/cyperf/api/configurations_api.py index a68ff2f..62830e7 100644 --- a/cyperf/api/configurations_api.py +++ b/cyperf/api/configurations_api.py @@ -21,8 +21,10 @@ from typing import List, Optional, Union from typing_extensions import Annotated from cyperf.models.async_context import AsyncContext +from cyperf.models.config_category import ConfigCategory from cyperf.models.config_metadata import ConfigMetadata from cyperf.models.export_all_operation import ExportAllOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_configs200_response import GetConfigs200Response from cyperf.models.get_resources_custom_import_operations200_response import GetResourcesCustomImportOperations200Response @@ -879,6 +881,550 @@ def _get_config_by_id_serialize( + @validate_call + def get_config_categorie_by_id( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ConfigCategory: + """get_config_categorie_by_id + + returns a single configuration category with its subcategories. + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConfigCategory", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_config_categorie_by_id_with_http_info( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ConfigCategory]: + """get_config_categorie_by_id + + returns a single configuration category with its subcategories. + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConfigCategory", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_config_categorie_by_id_without_preload_content( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_config_categorie_by_id + + returns a single configuration category with its subcategories. + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_by_id_serialize( + config_categorie_id=config_categorie_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ConfigCategory", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_config_categorie_by_id_serialize( + self, + config_categorie_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if config_categorie_id is not None: + _path_params['configCategorieId'] = config_categorie_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/config-categories/{configCategorieId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_config_categorie_subcategories( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetConfigCategorieSubcategories200Response: + """get_config_categorie_subcategories + + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_config_categorie_subcategories_with_http_info( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetConfigCategorieSubcategories200Response]: + """get_config_categorie_subcategories + + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_config_categorie_subcategories_without_preload_content( + self, + config_categorie_id: Annotated[StrictStr, Field(description="The ID of the config categorie.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_config_categorie_subcategories + + + :param config_categorie_id: The ID of the config categorie. (required) + :type config_categorie_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_config_categorie_subcategories_serialize( + config_categorie_id=config_categorie_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetConfigCategorieSubcategories200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_config_categorie_subcategories_serialize( + self, + config_categorie_id, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if config_categorie_id is not None: + _path_params['configCategorieId'] = config_categorie_id + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/config-categories/{configCategorieId}/subcategories', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_config_categories( self, diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index b8e637d..1311162 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -54,6 +54,7 @@ ApplicationType = DynamicModel('ApplicationType', (), {} ) AppsecApp = DynamicModel('AppsecApp', (), {} ) AppsecAppMetadata = DynamicModel('AppsecAppMetadata', (), {} ) +AppsecAppMetadataKeywordsInner = DynamicModel('AppsecAppMetadataKeywordsInner', (), {} ) AppsecAttack = DynamicModel('AppsecAttack', (), {} ) AppsecConfig = DynamicModel('AppsecConfig', (), {} ) ArchiveInfo = DynamicModel('ArchiveInfo', (), {} ) @@ -62,7 +63,6 @@ Attack = DynamicModel('Attack', (), {} ) AttackAction = DynamicModel('AttackAction', (), {} ) AttackMetadata = DynamicModel('AttackMetadata', (), {} ) -AttackMetadataKeywordsInner = DynamicModel('AttackMetadataKeywordsInner', (), {} ) AttackObjectivesAndTimeline = DynamicModel('AttackObjectivesAndTimeline', (), {} ) AttackProfile = DynamicModel('AttackProfile', (), {} ) AttackTimelineSegment = DynamicModel('AttackTimelineSegment', (), {} ) @@ -91,11 +91,13 @@ CiscoEncapsulation = DynamicModel('CiscoEncapsulation', (), {} ) ClearPortsOwnershipOperation = DynamicModel('ClearPortsOwnershipOperation', (), {} ) Command = DynamicModel('Command', (), {} ) +CommandMetadata = DynamicModel('CommandMetadata', (), {} ) ComputeNode = DynamicModel('ComputeNode', (), {} ) Config = DynamicModel('Config', (), {} ) ConfigCategory = DynamicModel('ConfigCategory', (), {} ) ConfigId = DynamicModel('ConfigId', (), {} ) ConfigMetadata = DynamicModel('ConfigMetadata', (), {} ) +ConfigSubCategory = DynamicModel('ConfigSubCategory', (), {} ) ConfigValidation = DynamicModel('ConfigValidation', (), {} ) Conflict = DynamicModel('Conflict', (), {} ) Connection = DynamicModel('Connection', (), {} ) @@ -175,11 +177,14 @@ GetAgents200ResponseOneOf = DynamicModel('GetAgents200ResponseOneOf', (), {} ) GetAgentsTags200Response = DynamicModel('GetAgentsTags200Response', (), {} ) GetAgentsTags200ResponseOneOf = DynamicModel('GetAgentsTags200ResponseOneOf', (), {} ) +GetAppsOperation = DynamicModel('GetAppsOperation', (), {} ) GetAsyncOperationResult200Response = DynamicModel('GetAsyncOperationResult200Response', (), {} ) GetAttacksOperation = DynamicModel('GetAttacksOperation', (), {} ) GetBrokers200Response = DynamicModel('GetBrokers200Response', (), {} ) GetBrokers200ResponseOneOf = DynamicModel('GetBrokers200ResponseOneOf', (), {} ) GetCategoriesOperation = DynamicModel('GetCategoriesOperation', (), {} ) +GetConfigCategorieSubcategories200Response = DynamicModel('GetConfigCategorieSubcategories200Response', (), {} ) +GetConfigCategorieSubcategories200ResponseOneOf = DynamicModel('GetConfigCategorieSubcategories200ResponseOneOf', (), {} ) GetConfigCategories200Response = DynamicModel('GetConfigCategories200Response', (), {} ) GetConfigCategories200ResponseOneOf = DynamicModel('GetConfigCategories200ResponseOneOf', (), {} ) GetConfigs200Response = DynamicModel('GetConfigs200Response', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 254e219..c557831 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -54,6 +54,7 @@ class LinkNameException(Exception): from cyperf.models.application_type import ApplicationType from cyperf.models.appsec_app import AppsecApp from cyperf.models.appsec_app_metadata import AppsecAppMetadata +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.appsec_attack import AppsecAttack from cyperf.models.appsec_config import AppsecConfig from cyperf.models.archive_info import ArchiveInfo @@ -62,7 +63,6 @@ class LinkNameException(Exception): from cyperf.models.attack import Attack from cyperf.models.attack_action import AttackAction from cyperf.models.attack_metadata import AttackMetadata -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.attack_profile import AttackProfile from cyperf.models.attack_timeline_segment import AttackTimelineSegment @@ -91,11 +91,13 @@ class LinkNameException(Exception): from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.compute_node import ComputeNode from cyperf.models.config import Config from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId from cyperf.models.config_metadata import ConfigMetadata +from cyperf.models.config_sub_category import ConfigSubCategory from cyperf.models.config_validation import ConfigValidation from cyperf.models.conflict import Conflict from cyperf.models.connection import Connection @@ -175,11 +177,14 @@ class LinkNameException(Exception): from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf +from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf from cyperf.models.get_configs200_response import GetConfigs200Response diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index d48b9b2..5f9ca53 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_metadata import ActionMetadata +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.parameter_meta import ParameterMeta from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -32,7 +33,8 @@ class AppsecAppMetadata(BaseModel): """ # noqa: E501 actions_metadata: Optional[List[ActionMetadata]] = Field(default=None, alias="ActionsMetadata") app_parameters: Optional[List[ParameterMeta]] = Field(default=None, alias="AppParameters") - __properties: ClassVar[List[str]] = ["ActionsMetadata", "AppParameters"] + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the application") + __properties: ClassVar[List[str]] = ["ActionsMetadata", "AppParameters", "keywords"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +89,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['AppParameters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in keywords (list) + _items = [] + if self.keywords: + for _item in self.keywords: + if _item: + _items.append(_item.to_dict()) + _dict['keywords'] = _items return _dict @classmethod @@ -102,7 +111,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionsMetadata": [ActionMetadata.from_dict(_item) for _item in obj["ActionsMetadata"]] if obj.get("ActionsMetadata") is not None else None, - "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None + "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, + "keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["keywords"]] if obj.get("keywords") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/appsec_app_metadata_keywords_inner.py b/cyperf/models/appsec_app_metadata_keywords_inner.py new file mode 100644 index 0000000..c8f39ce --- /dev/null +++ b/cyperf/models/appsec_app_metadata_keywords_inner.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Any, Dict, List, Optional, Union +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +APPSECAPPMETADATAKEYWORDSINNER_ANY_OF_SCHEMAS = ["List[object]", "bool", "float", "int", "object", "str"] + +class AppsecAppMetadataKeywordsInner(BaseModel): + """ + AppsecAppMetadataKeywordsInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: int + anyof_schema_3_validator: Optional[StrictInt] = None + # data type: bool + anyof_schema_4_validator: Optional[StrictBool] = None + # data type: List[object] + anyof_schema_5_validator: Optional[List[Any]] = None + # data type: object + anyof_schema_6_validator: Optional[Dict[str, Any]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[List[object], bool, float, int, object, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "List[object]", "bool", "float", "int", "object", "str" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = AppsecAppMetadataKeywordsInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: int + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_4_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[object] + try: + instance.anyof_schema_5_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: object + try: + instance.anyof_schema_6_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in AppsecAppMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into int + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_4_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_4_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[object] + try: + # validation + instance.anyof_schema_5_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_5_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into object + try: + # validation + instance.anyof_schema_6_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_6_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into AppsecAppMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], List[object], bool, float, int, object, str]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py index 4b2728b..957a1f0 100644 --- a/cyperf/models/attack_metadata.py +++ b/cyperf/models/attack_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -32,7 +32,7 @@ class AttackMetadata(BaseModel): """ # noqa: E501 cve_count: Optional[StrictInt] = Field(default=None, description="The number of CVE references associated with the attack", alias="CveCount") direction: Optional[StrictStr] = Field(default=None, description="The aggregated direction of the strike included in the attack", alias="Direction") - keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the attack", alias="Keywords") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The aggregated keywords of the attack", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, alias="LegacyNames") references: Optional[List[Reference]] = Field(default=None, description="The aggregated references of the attack", alias="References") severity: Optional[StrictStr] = Field(default=None, description="The aggregated severity of the strike included in the attack", alias="Severity") @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CveCount": obj.get("CveCount"), "Direction": obj.get("Direction"), - "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, "LegacyNames": obj.get("LegacyNames"), "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, "Severity": obj.get("Severity"), diff --git a/cyperf/models/command.py b/cyperf/models/command.py index 0fdca2e..f22f09d 100644 --- a/cyperf/models/command.py +++ b/cyperf/models/command.py @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink +from cyperf.models.command_metadata import CommandMetadata from cyperf.models.exchange import Exchange -from cyperf.models.metadata import Metadata from cyperf.models.parameter import Parameter from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -36,7 +36,7 @@ class Command(BaseModel): description: Optional[StrictStr] = Field(default=None, description="The description of the command", alias="Description") exchanges: Optional[List[Exchange]] = Field(default=None, description="The exchanges of the command", alias="Exchanges") is_strike: Optional[StrictBool] = Field(default=None, description="Indicates if the command is a strike", alias="IsStrike") - metadata: Optional[Metadata] = Field(default=None, alias="Metadata") + metadata: Optional[CommandMetadata] = Field(default=None, alias="Metadata") name: Optional[StrictStr] = Field(default=None, description="The name of the command", alias="Name") parameters: Optional[List[Parameter]] = Field(default=None, description="The parameters of the command", alias="Parameters") links: Optional[List[APILink]] = None @@ -129,7 +129,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Description": obj.get("Description"), "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, "IsStrike": obj.get("IsStrike"), - "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, + "Metadata": CommandMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py new file mode 100644 index 0000000..4a8e604 --- /dev/null +++ b/cyperf/models/command_metadata.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner +from cyperf.models.reference import Reference +from cyperf.models.rtp_profile_meta import RTPProfileMeta +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class CommandMetadata(BaseModel): + """ + CommandMetadata + """ # noqa: E501 + direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") + is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") + is_for_app_traffic_only: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that can only be used in application traffic and cannot be mixed with attack traffic", alias="IsForAppTrafficOnly") + is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") + legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") + no_multi_flow_support: Optional[StrictBool] = Field(default=None, description="If true, only a single application with this protocol id can be present in the configuration", alias="NoMultiFlowSupport") + protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") + rtp_profile_meta: Optional[RTPProfileMeta] = Field(default=None, alias="RTPProfileMeta") + references: Optional[List[Reference]] = Field(default=None, description="The references of the strike", alias="References") + requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands", alias="RequiresUniqueness") + severity: Optional[StrictStr] = Field(default=None, description="The severity of the strike", alias="Severity") + skip_attack_generation: Optional[StrictBool] = Field(default=None, description="If true, don't generate an attack for this strike", alias="SkipAttackGeneration") + sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") + static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") + supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommandMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in keywords (list) + _items = [] + if self.keywords: + for _item in self.keywords: + if _item: + _items.append(_item.to_dict()) + _dict['Keywords'] = _items + # override the default output from pydantic by calling `to_dict()` of rtp_profile_meta + if self.rtp_profile_meta: + _dict['RTPProfileMeta'] = self.rtp_profile_meta.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in references (list) + _items = [] + if self.references: + for _item in self.references: + if _item: + _items.append(_item.to_dict()) + _dict['References'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CommandMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Direction": obj.get("Direction"), + "IsBanner": obj.get("IsBanner"), + "IsForAppTrafficOnly": obj.get("IsForAppTrafficOnly"), + "IsStreaming": obj.get("IsStreaming"), + "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "LegacyNames": obj.get("LegacyNames"), + "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), + "Protocol": obj.get("Protocol"), + "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, + "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "RequiresUniqueness": obj.get("RequiresUniqueness"), + "Severity": obj.get("Severity"), + "SkipAttackGeneration": obj.get("SkipAttackGeneration"), + "SortSeverity": obj.get("SortSeverity"), + "Static": obj.get("Static"), + "SupportedApps": obj.get("SupportedApps"), + "Year": obj.get("Year") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/config_category.py b/cyperf/models/config_category.py index 52cfb25..c13b550 100644 --- a/cyperf/models/config_category.py +++ b/cyperf/models/config_category.py @@ -20,6 +20,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.config_sub_category import ConfigSubCategory from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,7 +31,9 @@ class ConfigCategory(BaseModel): ConfigCategory """ # noqa: E501 display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration category", alias="displayName") - __properties: ClassVar[List[str]] = ["displayName"] + links: Optional[List[APILink]] = None + subcategories: Optional[List[ConfigSubCategory]] = Field(default=None, description="List of subcategory names") + __properties: ClassVar[List[str]] = ["displayName", "links", "subcategories"] model_config = ConfigDict( populate_by_name=True, @@ -70,6 +74,20 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in subcategories (list) + _items = [] + if self.subcategories: + for _item in self.subcategories: + if _item: + _items.append(_item.to_dict()) + _dict['subcategories'] = _items return _dict @classmethod @@ -84,7 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "displayName": obj.get("displayName") + "displayName": obj.get("displayName"), + "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "subcategories": [ConfigSubCategory.from_dict(_item) for _item in obj["subcategories"]] if obj.get("subcategories") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/config_metadata.py b/cyperf/models/config_metadata.py index 3676749..fda8b96 100644 --- a/cyperf/models/config_metadata.py +++ b/cyperf/models/config_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.version import Version from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -32,7 +32,7 @@ class ConfigMetadata(BaseModel): ConfigMetadata """ # noqa: E501 application: Optional[StrictStr] = None - config_data: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The actual configuration object", alias="configData") + config_data: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The actual configuration object", alias="configData") config_url: Optional[StrictStr] = Field(default=None, description="The backend URL of the saved config data", alias="configUrl") created_on: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when config was created", alias="createdOn") display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration", alias="displayName") @@ -136,7 +136,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "application": obj.get("application"), "configData": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["configData"].items() ) if obj.get("configData") is not None diff --git a/cyperf/models/config_sub_category.py b/cyperf/models/config_sub_category.py new file mode 100644 index 0000000..30e510d --- /dev/null +++ b/cyperf/models/config_sub_category.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ConfigSubCategory(BaseModel): + """ + ConfigSubCategory + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The user-visible name of the configuration subcategory", alias="displayName") + __properties: ClassVar[List[str]] = ["displayName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConfigSubCategory from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConfigSubCategory from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "displayName": obj.get("displayName") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/generic_file.py b/cyperf/models/generic_file.py index b9e3aaa..3a43762 100644 --- a/cyperf/models/generic_file.py +++ b/cyperf/models/generic_file.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.file_metadata import FileMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -36,7 +36,7 @@ class GenericFile(BaseModel): md5: Optional[StrictStr] = Field(default=None, description="The md5 value of the file") metadata: Optional[FileMetadata] = None name: Optional[StrictStr] = Field(default=None, description="The name of the file") - options: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The characteristics of the file") + options: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The characteristics of the file") owner: Optional[StrictStr] = Field(default=None, description="The user-visible name of the file's owner") owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the file's owner", alias="ownerId") reference_links: Optional[Dict[str, StrictInt]] = Field(default=None, alias="referenceLinks") @@ -122,7 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "metadata": FileMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, "name": obj.get("name"), "options": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["options"].items() ) if obj.get("options") is not None diff --git a/cyperf/models/get_apps_operation.py b/cyperf/models/get_apps_operation.py new file mode 100644 index 0000000..9404c17 --- /dev/null +++ b/cyperf/models/get_apps_operation.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.category_filter import CategoryFilter +from cyperf.models.sort_body_field import SortBodyField +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetAppsOperation(BaseModel): + """ + GetAppsOperation + """ # noqa: E501 + categories: Optional[List[CategoryFilter]] = None + filter_mode: Optional[StrictStr] = Field(default=None, alias="filterMode") + search_col: Optional[List[StrictStr]] = Field(default=None, alias="searchCol") + search_val: Optional[List[StrictStr]] = Field(default=None, alias="searchVal") + skip: Optional[StrictStr] = None + sort: Optional[List[SortBodyField]] = None + take: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["categories", "filterMode", "searchCol", "searchVal", "skip", "sort", "take"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAppsOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in categories (list) + _items = [] + if self.categories: + for _item in self.categories: + if _item: + _items.append(_item.to_dict()) + _dict['categories'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in sort (list) + _items = [] + if self.sort: + for _item in self.sort: + if _item: + _items.append(_item.to_dict()) + _dict['sort'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAppsOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "filterMode": obj.get("filterMode"), + "searchCol": obj.get("searchCol"), + "searchVal": obj.get("searchVal"), + "skip": obj.get("skip"), + "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "take": obj.get("take") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_config_categorie_subcategories200_response.py b/cyperf/models/get_config_categorie_subcategories200_response.py new file mode 100644 index 0000000..3dc6fde --- /dev/null +++ b/cyperf/models/get_config_categorie_subcategories200_response.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.config_sub_category import ConfigSubCategory +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETCONFIGCATEGORIESUBCATEGORIES200RESPONSE_ONE_OF_SCHEMAS = ["GetConfigCategorieSubcategories200ResponseOneOf", "List[ConfigSubCategory]"] + +class GetConfigCategorieSubcategories200Response(BaseModel): + """ + GetConfigCategorieSubcategories200Response + """ + # data type: List[ConfigSubCategory] + oneof_schema_1_validator: Optional[List[ConfigSubCategory]] = None + # data type: GetConfigCategorieSubcategories200ResponseOneOf + oneof_schema_2_validator: Optional[GetConfigCategorieSubcategories200ResponseOneOf] = None + actual_instance: Optional[Union[GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]]] = None + one_of_schemas: Set[str] = { "GetConfigCategorieSubcategories200ResponseOneOf", "List[ConfigSubCategory]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetConfigCategorieSubcategories200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[ConfigSubCategory] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetConfigCategorieSubcategories200ResponseOneOf + if not isinstance(v, GetConfigCategorieSubcategories200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetConfigCategorieSubcategories200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[ConfigSubCategory] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetConfigCategorieSubcategories200ResponseOneOf + try: + instance.actual_instance = GetConfigCategorieSubcategories200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetConfigCategorieSubcategories200Response with oneOf schemas: GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetConfigCategorieSubcategories200ResponseOneOf, List[ConfigSubCategory]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py new file mode 100644 index 0000000..81c5642 --- /dev/null +++ b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.config_sub_category import ConfigSubCategory +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetConfigCategorieSubcategories200ResponseOneOf(BaseModel): + """ + GetConfigCategorieSubcategories200ResponseOneOf + """ # noqa: E501 + data: Optional[List[ConfigSubCategory]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": [ConfigSubCategory.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index eb20e9c..9282dd4 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from cyperf.models.rtp_profile_meta import RTPProfileMeta from typing import Optional, Set, Union, GenericAlias, get_args @@ -34,7 +34,7 @@ class Metadata(BaseModel): direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") - keywords: Optional[List[AttackMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") + keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") no_multi_flow_support: Optional[StrictBool] = Field(default=None, description="If true, only a single application with this protocol id can be present in the configuration", alias="NoMultiFlowSupport") protocol: Optional[StrictStr] = Field(default=None, description="The protocol of the strike", alias="Protocol") @@ -122,7 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), "IsStreaming": obj.get("IsStreaming"), - "Keywords": [AttackMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, "LegacyNames": obj.get("LegacyNames"), "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), diff --git a/cyperf/models/open_api_definitions.py b/cyperf/models/open_api_definitions.py index 2299499..a00c6e0 100644 --- a/cyperf/models/open_api_definitions.py +++ b/cyperf/models/open_api_definitions.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -29,7 +29,7 @@ class OpenAPIDefinitions(BaseModel): """ OpenAPIDefinitions """ # noqa: E501 - open_api_definitions: Optional[Dict[str, AttackMetadataKeywordsInner]] = Field(default=None, description="The OpenAPI definitions for CyPerf data model", alias="openApiDefinitions") + open_api_definitions: Optional[Dict[str, AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The OpenAPI definitions for CyPerf data model", alias="openApiDefinitions") __properties: ClassVar[List[str]] = ["openApiDefinitions"] model_config = ConfigDict( @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "openApiDefinitions": dict( - (_k, AttackMetadataKeywordsInner.from_dict(_v)) + (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) for _k, _v in obj["openApiDefinitions"].items() ) if obj.get("openApiDefinitions") is not None diff --git a/cyperf/models/plugin_stats.py b/cyperf/models/plugin_stats.py index 3514522..1ce54ed 100644 --- a/cyperf/models/plugin_stats.py +++ b/cyperf/models/plugin_stats.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class PluginStats(BaseModel): PluginStats """ # noqa: E501 plugin: Optional[StrictStr] = Field(default=None, description="The name of the plugin") - stats: Optional[List[Dict[str, AttackMetadataKeywordsInner]]] = Field(default=None, description="The statistics to be ingested") + stats: Optional[List[Dict[str, AppsecAppMetadataKeywordsInner]]] = Field(default=None, description="The statistics to be ingested") version: Optional[StrictStr] = Field(default=None, description="The version of the plugin") __properties: ClassVar[List[str]] = ["plugin", "stats", "version"] @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "plugin": obj.get("plugin"), - "stats": [Dict[str, AttackMetadataKeywordsInner].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": [Dict[str, AppsecAppMetadataKeywordsInner].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, "version": obj.get("version") , "links": obj.get("links") diff --git a/cyperf/models/snapshot.py b/cyperf/models/snapshot.py index 34a4c6f..92ddf9d 100644 --- a/cyperf/models/snapshot.py +++ b/cyperf/models/snapshot.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -30,7 +30,7 @@ class Snapshot(BaseModel): Snapshot """ # noqa: E501 timestamp: Optional[StrictInt] = Field(default=None, description="The Unix timestamp in milliseconds at which the snapshot was taken") - values: Optional[List[List[AttackMetadataKeywordsInner]]] = Field(default=None, description="The values of the snapshot. The order of the values corresponds to the order of columns in result.") + values: Optional[List[List[AppsecAppMetadataKeywordsInner]]] = Field(default=None, description="The values of the snapshot. The order of the values corresponds to the order of columns in result.") __properties: ClassVar[List[str]] = ["timestamp", "values"] model_config = ConfigDict( @@ -97,7 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "timestamp": obj.get("timestamp"), "values": [ - [AttackMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] + [AppsecAppMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] for _item in obj["values"] ] if obj.get("values") is not None else None , diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index 1bac8fd..080d75e 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -25,6 +25,7 @@ Method | HTTP request | Description [**get_capture_flows**](ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | [**get_flow_exchanges**](ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | [**get_resources_app_by_id**](ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | +[**get_resources_app_categories**](ApplicationResourcesApi.md#get_resources_app_categories) | **GET** /api/v2/resources/app-categories | [**get_resources_application_type_by_id**](ApplicationResourcesApi.md#get_resources_application_type_by_id) | **GET** /api/v2/resources/application-types/{applicationTypeId} | [**get_resources_application_types**](ApplicationResourcesApi.md#get_resources_application_types) | **GET** /api/v2/resources/application-types | [**get_resources_apps**](ApplicationResourcesApi.md#get_resources_apps) | **GET** /api/v2/resources/apps | @@ -120,6 +121,8 @@ Method | HTTP request | Description [**start_resources_edit_app**](ApplicationResourcesApi.md#start_resources_edit_app) | **POST** /api/v2/resources/operations/edit-app | [**start_resources_find_param_matches**](ApplicationResourcesApi.md#start_resources_find_param_matches) | **POST** /api/v2/resources/operations/find-param-matches | [**start_resources_flow_library_upload_file**](ApplicationResourcesApi.md#start_resources_flow_library_upload_file) | **POST** /api/v2/resources/flow-library/operations/uploadFile | +[**start_resources_get_app_categories**](ApplicationResourcesApi.md#start_resources_get_app_categories) | **POST** /api/v2/resources/operations/get-app-categories | +[**start_resources_get_apps**](ApplicationResourcesApi.md#start_resources_get_apps) | **POST** /api/v2/resources/operations/get-apps | [**start_resources_get_attack_categories**](ApplicationResourcesApi.md#start_resources_get_attack_categories) | **POST** /api/v2/resources/operations/get-attack-categories | [**start_resources_get_attacks**](ApplicationResourcesApi.md#start_resources_get_attacks) | **POST** /api/v2/resources/operations/get-attacks | [**start_resources_get_strike_categories**](ApplicationResourcesApi.md#start_resources_get_strike_categories) | **POST** /api/v2/resources/operations/get-strike-categories | @@ -1750,6 +1753,84 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_resources_app_categories** +> List[Category] get_resources_app_categories(take=take, skip=skip) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.category import Category +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_resources_app_categories(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_app_categories:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_app_categories: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**List[Category]**](Category.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_resources_application_type_by_id** > ApplicationType get_resources_application_type_by_id(application_type_id) @@ -1909,7 +1990,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_resources_apps** -> GetResourcesApps200Response get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) +> GetResourcesApps200Response get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort, categories=categories) @@ -1951,9 +2032,10 @@ with cyperf.ApiClient(configuration) as api_client: search_val = 'search_val_example' # str | The keywords used to filter the items (optional) filter_mode = 'filter_mode_example' # str | The operator applied to the supplied values (optional) sort = 'sort_example' # str | A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc (optional) + categories = 'categories_example' # str | A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... (optional) try: - api_response = api_instance.get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort) + api_response = api_instance.get_resources_apps(take=take, skip=skip, search_col=search_col, search_val=search_val, filter_mode=filter_mode, sort=sort, categories=categories) print("The response of ApplicationResourcesApi->get_resources_apps:\n") pprint(api_response) except Exception as e: @@ -1973,6 +2055,7 @@ Name | Type | Description | Notes **search_val** | **str**| The keywords used to filter the items | [optional] **filter_mode** | **str**| The operator applied to the supplied values | [optional] **sort** | **str**| A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc | [optional] + **categories** | **str**| A string which filters the list of applications by categories. The format is categories=category1:value1|...,.... | [optional] ### Return type @@ -1992,6 +2075,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The list of CyPerf applications | - | +**400** | Bad request | - | **401** | Authorization information is missing or invalid. | - | **500** | Unexpected error | - | @@ -9220,6 +9304,162 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_resources_get_app_categories** +> AsyncContext start_resources_get_app_categories(get_categories_operation=get_categories_operation) + + + +Get the list of app categories + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + get_categories_operation = cyperf.GetCategoriesOperation() # GetCategoriesOperation | (optional) + + try: + api_response = api_instance.start_resources_get_app_categories(get_categories_operation=get_categories_operation) + print("The response of ApplicationResourcesApi->start_resources_get_app_categories:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_get_app_categories: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **get_categories_operation** | [**GetCategoriesOperation**](GetCategoriesOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_resources_get_apps** +> AsyncContext start_resources_get_apps(get_apps_operation=get_apps_operation) + + + +Get the list of applications + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.get_apps_operation import GetAppsOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + get_apps_operation = cyperf.GetAppsOperation() # GetAppsOperation | (optional) + + try: + api_response = api_instance.start_resources_get_apps(get_apps_operation=get_apps_operation) + print("The response of ApplicationResourcesApi->start_resources_get_apps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_get_apps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **get_apps_operation** | [**GetAppsOperation**](GetAppsOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_resources_get_attack_categories** > AsyncContext start_resources_get_attack_categories(get_categories_operation=get_categories_operation) diff --git a/docs/AppsecAppMetadata.md b/docs/AppsecAppMetadata.md index c98596e..ea4e8e8 100644 --- a/docs/AppsecAppMetadata.md +++ b/docs/AppsecAppMetadata.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions_metadata** | [**List[ActionMetadata]**](ActionMetadata.md) | | [optional] **app_parameters** | [**List[ParameterMeta]**](ParameterMeta.md) | | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The aggregated keywords of the application | [optional] ## Example diff --git a/docs/AppsecAppMetadataKeywordsInner.md b/docs/AppsecAppMetadataKeywordsInner.md new file mode 100644 index 0000000..32f6df5 --- /dev/null +++ b/docs/AppsecAppMetadataKeywordsInner.md @@ -0,0 +1,28 @@ +# AppsecAppMetadataKeywordsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of AppsecAppMetadataKeywordsInner from a JSON string +appsec_app_metadata_keywords_inner_instance = AppsecAppMetadataKeywordsInner.from_json(json) +# print the JSON string representation of the object +print(AppsecAppMetadataKeywordsInner.to_json()) + +# convert the object into a dict +appsec_app_metadata_keywords_inner_dict = appsec_app_metadata_keywords_inner_instance.to_dict() +# create an instance of AppsecAppMetadataKeywordsInner from a dict +appsec_app_metadata_keywords_inner_from_dict = AppsecAppMetadataKeywordsInner.from_dict(appsec_app_metadata_keywords_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AttackMetadata.md b/docs/AttackMetadata.md index e80a700..e142e7a 100644 --- a/docs/AttackMetadata.md +++ b/docs/AttackMetadata.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cve_count** | **int** | The number of CVE references associated with the attack | [optional] **direction** | **str** | The aggregated direction of the strike included in the attack | [optional] -**keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The aggregated keywords of the attack | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The aggregated keywords of the attack | [optional] **legacy_names** | **List[str]** | | [optional] **references** | [**List[Reference]**](Reference.md) | The aggregated references of the attack | [optional] **severity** | **str** | The aggregated severity of the strike included in the attack | [optional] diff --git a/docs/Command.md b/docs/Command.md index d573731..f0c318b 100644 --- a/docs/Command.md +++ b/docs/Command.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **description** | **str** | The description of the command | [optional] **exchanges** | [**List[Exchange]**](Exchange.md) | The exchanges of the command | [optional] **is_strike** | **bool** | Indicates if the command is a strike | [optional] [readonly] -**metadata** | [**Metadata**](Metadata.md) | | [optional] +**metadata** | [**CommandMetadata**](CommandMetadata.md) | | [optional] **name** | **str** | The name of the command | [optional] [readonly] **parameters** | [**List[Parameter]**](Parameter.md) | The parameters of the command | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md new file mode 100644 index 0000000..0b09e72 --- /dev/null +++ b/docs/CommandMetadata.md @@ -0,0 +1,45 @@ +# CommandMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**direction** | **str** | The direction of the strike | [optional] +**is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] +**is_for_app_traffic_only** | **bool** | Indicates that this is a command that can only be used in application traffic and cannot be mixed with attack traffic | [optional] +**is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The keywords of the strike | [optional] +**legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] +**no_multi_flow_support** | **bool** | If true, only a single application with this protocol id can be present in the configuration | [optional] +**protocol** | **str** | The protocol of the strike | [optional] +**rtp_profile_meta** | [**RTPProfileMeta**](RTPProfileMeta.md) | | [optional] +**references** | [**List[Reference]**](Reference.md) | The references of the strike | [optional] +**requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands | [optional] +**severity** | **str** | The severity of the strike | [optional] +**skip_attack_generation** | **bool** | If true, don't generate an attack for this strike | [optional] +**sort_severity** | **str** | The field by which the severity is sorted | [optional] +**static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] +**supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**year** | **str** | The year of the strike | [optional] + +## Example + +```python +from cyperf.models.command_metadata import CommandMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of CommandMetadata from a JSON string +command_metadata_instance = CommandMetadata.from_json(json) +# print the JSON string representation of the object +print(CommandMetadata.to_json()) + +# convert the object into a dict +command_metadata_dict = command_metadata_instance.to_dict() +# create an instance of CommandMetadata from a dict +command_metadata_from_dict = CommandMetadata.from_dict(command_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConfigCategory.md b/docs/ConfigCategory.md index 0831a62..86be0d6 100644 --- a/docs/ConfigCategory.md +++ b/docs/ConfigCategory.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **display_name** | **str** | The user-visible name of the configuration category | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] +**subcategories** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | List of subcategory names | [optional] ## Example diff --git a/docs/ConfigMetadata.md b/docs/ConfigMetadata.md index 274c345..d413560 100644 --- a/docs/ConfigMetadata.md +++ b/docs/ConfigMetadata.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **application** | **str** | | [optional] -**config_data** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The actual configuration object | [optional] +**config_data** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The actual configuration object | [optional] **config_url** | **str** | The backend URL of the saved config data | [optional] **created_on** | **int** | A Unix timestamp that indicates when config was created | [optional] [readonly] **display_name** | **str** | The user-visible name of the configuration | [optional] diff --git a/docs/ConfigSubCategory.md b/docs/ConfigSubCategory.md new file mode 100644 index 0000000..edb5995 --- /dev/null +++ b/docs/ConfigSubCategory.md @@ -0,0 +1,29 @@ +# ConfigSubCategory + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **str** | The user-visible name of the configuration subcategory | [optional] + +## Example + +```python +from cyperf.models.config_sub_category import ConfigSubCategory + +# TODO update the JSON string below +json = "{}" +# create an instance of ConfigSubCategory from a JSON string +config_sub_category_instance = ConfigSubCategory.from_json(json) +# print the JSON string representation of the object +print(ConfigSubCategory.to_json()) + +# convert the object into a dict +config_sub_category_dict = config_sub_category_instance.to_dict() +# create an instance of ConfigSubCategory from a dict +config_sub_category_from_dict = ConfigSubCategory.from_dict(config_sub_category_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConfigurationsApi.md b/docs/ConfigurationsApi.md index 5766462..0e902b5 100644 --- a/docs/ConfigurationsApi.md +++ b/docs/ConfigurationsApi.md @@ -7,6 +7,8 @@ Method | HTTP request | Description [**create_configs**](ConfigurationsApi.md#create_configs) | **POST** /api/v2/configs | [**delete_config**](ConfigurationsApi.md#delete_config) | **DELETE** /api/v2/configs/{configId} | [**get_config_by_id**](ConfigurationsApi.md#get_config_by_id) | **GET** /api/v2/configs/{configId} | +[**get_config_categorie_by_id**](ConfigurationsApi.md#get_config_categorie_by_id) | **GET** /api/v2/config-categories/{configCategorieId} | +[**get_config_categorie_subcategories**](ConfigurationsApi.md#get_config_categorie_subcategories) | **GET** /api/v2/config-categories/{configCategorieId}/subcategories | [**get_config_categories**](ConfigurationsApi.md#get_config_categories) | **GET** /api/v2/config-categories | [**get_configs**](ConfigurationsApi.md#get_configs) | **GET** /api/v2/configs | [**get_resources_custom_import_operations**](ConfigurationsApi.md#get_resources_custom_import_operations) | **GET** /api/v2/resources/custom-import-operations | @@ -257,6 +259,165 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_config_categorie_by_id** +> ConfigCategory get_config_categorie_by_id(config_categorie_id) + + + +returns a single configuration category with its subcategories. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.config_category import ConfigCategory +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ConfigurationsApi(api_client) + config_categorie_id = 'config_categorie_id_example' # str | The ID of the config categorie. + + try: + api_response = api_instance.get_config_categorie_by_id(config_categorie_id) + print("The response of ConfigurationsApi->get_config_categorie_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ConfigurationsApi->get_config_categorie_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **config_categorie_id** | **str**| The ID of the config categorie. | + +### Return type + +[**ConfigCategory**](ConfigCategory.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The filtered configuration category with subcategories | - | +**500** | Internal server error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_config_categorie_subcategories** +> GetConfigCategorieSubcategories200Response get_config_categorie_subcategories(config_categorie_id, take=take, skip=skip) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ConfigurationsApi(api_client) + config_categorie_id = 'config_categorie_id_example' # str | The ID of the config categorie. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_config_categorie_subcategories(config_categorie_id, take=take, skip=skip) + print("The response of ConfigurationsApi->get_config_categorie_subcategories:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ConfigurationsApi->get_config_categorie_subcategories: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **config_categorie_id** | **str**| The ID of the config categorie. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**GetConfigCategorieSubcategories200Response**](GetConfigCategorieSubcategories200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of subcategories for the specified category | - | +**400** | Missing or invalid category parameter | - | +**500** | Internal server error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_config_categories** > GetConfigCategories200Response get_config_categories(take=take, skip=skip) diff --git a/docs/GenericFile.md b/docs/GenericFile.md index 640336a..818600d 100644 --- a/docs/GenericFile.md +++ b/docs/GenericFile.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **md5** | **str** | The md5 value of the file | [optional] **metadata** | [**FileMetadata**](FileMetadata.md) | | [optional] **name** | **str** | The name of the file | [optional] -**options** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The characteristics of the file | [optional] +**options** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The characteristics of the file | [optional] **owner** | **str** | The user-visible name of the file's owner | [optional] [readonly] **owner_id** | **str** | The unique identifier of the file's owner | [optional] [readonly] **reference_links** | **Dict[str, int]** | | [optional] diff --git a/docs/GetAppsOperation.md b/docs/GetAppsOperation.md new file mode 100644 index 0000000..8c8163f --- /dev/null +++ b/docs/GetAppsOperation.md @@ -0,0 +1,35 @@ +# GetAppsOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**List[CategoryFilter]**](CategoryFilter.md) | | [optional] +**filter_mode** | **str** | | [optional] +**search_col** | **List[str]** | | [optional] +**search_val** | **List[str]** | | [optional] +**skip** | **str** | | [optional] +**sort** | [**List[SortBodyField]**](SortBodyField.md) | | [optional] +**take** | **str** | | [optional] + +## Example + +```python +from cyperf.models.get_apps_operation import GetAppsOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAppsOperation from a JSON string +get_apps_operation_instance = GetAppsOperation.from_json(json) +# print the JSON string representation of the object +print(GetAppsOperation.to_json()) + +# convert the object into a dict +get_apps_operation_dict = get_apps_operation_instance.to_dict() +# create an instance of GetAppsOperation from a dict +get_apps_operation_from_dict = GetAppsOperation.from_dict(get_apps_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetConfigCategorieSubcategories200Response.md b/docs/GetConfigCategorieSubcategories200Response.md new file mode 100644 index 0000000..c03e8e0 --- /dev/null +++ b/docs/GetConfigCategorieSubcategories200Response.md @@ -0,0 +1,30 @@ +# GetConfigCategorieSubcategories200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetConfigCategorieSubcategories200Response from a JSON string +get_config_categorie_subcategories200_response_instance = GetConfigCategorieSubcategories200Response.from_json(json) +# print the JSON string representation of the object +print(GetConfigCategorieSubcategories200Response.to_json()) + +# convert the object into a dict +get_config_categorie_subcategories200_response_dict = get_config_categorie_subcategories200_response_instance.to_dict() +# create an instance of GetConfigCategorieSubcategories200Response from a dict +get_config_categorie_subcategories200_response_from_dict = GetConfigCategorieSubcategories200Response.from_dict(get_config_categorie_subcategories200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetConfigCategorieSubcategories200ResponseOneOf.md b/docs/GetConfigCategorieSubcategories200ResponseOneOf.md new file mode 100644 index 0000000..ef04046 --- /dev/null +++ b/docs/GetConfigCategorieSubcategories200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetConfigCategorieSubcategories200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ConfigSubCategory]**](ConfigSubCategory.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a JSON string +get_config_categorie_subcategories200_response_one_of_instance = GetConfigCategorieSubcategories200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetConfigCategorieSubcategories200ResponseOneOf.to_json()) + +# convert the object into a dict +get_config_categorie_subcategories200_response_one_of_dict = get_config_categorie_subcategories200_response_one_of_instance.to_dict() +# create an instance of GetConfigCategorieSubcategories200ResponseOneOf from a dict +get_config_categorie_subcategories200_response_one_of_from_dict = GetConfigCategorieSubcategories200ResponseOneOf.from_dict(get_config_categorie_subcategories200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Metadata.md b/docs/Metadata.md index 228d7c7..d7fca70 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **direction** | **str** | The direction of the strike | [optional] **is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] **is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] -**keywords** | [**List[AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The keywords of the strike | [optional] +**keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The keywords of the strike | [optional] **legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] **no_multi_flow_support** | **bool** | If true, only a single application with this protocol id can be present in the configuration | [optional] **protocol** | **str** | The protocol of the strike | [optional] diff --git a/docs/OpenAPIDefinitions.md b/docs/OpenAPIDefinitions.md index a95a4c4..2db53a2 100644 --- a/docs/OpenAPIDefinitions.md +++ b/docs/OpenAPIDefinitions.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**open_api_definitions** | [**Dict[str, AttackMetadataKeywordsInner]**](AttackMetadataKeywordsInner.md) | The OpenAPI definitions for CyPerf data model | [optional] +**open_api_definitions** | [**Dict[str, AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The OpenAPI definitions for CyPerf data model | [optional] ## Example diff --git a/docs/PluginStats.md b/docs/PluginStats.md index 628c84b..8faf9d6 100644 --- a/docs/PluginStats.md +++ b/docs/PluginStats.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **plugin** | **str** | The name of the plugin | [optional] -**stats** | **List[Dict[str, AttackMetadataKeywordsInner]]** | The statistics to be ingested | [optional] +**stats** | **List[Dict[str, AppsecAppMetadataKeywordsInner]]** | The statistics to be ingested | [optional] **version** | **str** | The version of the plugin | [optional] ## Example diff --git a/docs/Snapshot.md b/docs/Snapshot.md index e0fd70e..f4342e7 100644 --- a/docs/Snapshot.md +++ b/docs/Snapshot.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **timestamp** | **int** | The Unix timestamp in milliseconds at which the snapshot was taken | [optional] -**values** | **List[List[AttackMetadataKeywordsInner]]** | The values of the snapshot. The order of the values corresponds to the order of columns in result. | [optional] +**values** | **List[List[AppsecAppMetadataKeywordsInner]]** | The values of the snapshot. The order of the values corresponds to the order of columns in result. | [optional] ## Example diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py index c780ed6..1cf13fb 100644 --- a/test/test_application_resources_api.py +++ b/test/test_application_resources_api.py @@ -154,6 +154,12 @@ def test_get_resources_app_by_id(self) -> None: """ pass + def test_get_resources_app_categories(self) -> None: + """Test case for get_resources_app_categories + + """ + pass + def test_get_resources_application_type_by_id(self) -> None: """Test case for get_resources_application_type_by_id @@ -685,6 +691,8 @@ def test_get_resources_user_defined_apps_upload_file_result(self) -> None: + + @@ -754,6 +762,18 @@ def test_start_resources_flow_library_upload_file(self) -> None: """ pass + def test_start_resources_get_app_categories(self) -> None: + """Test case for start_resources_get_app_categories + + """ + pass + + def test_start_resources_get_apps(self) -> None: + """Test case for start_resources_get_apps + + """ + pass + def test_start_resources_get_attack_categories(self) -> None: """Test case for start_resources_get_attack_categories diff --git a/test/test_application_type.py b/test/test_application_type.py index 05249b8..96ee8b2 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -48,9 +48,10 @@ def make_instance(self, include_optional) -> ApplicationType: id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null @@ -326,9 +327,10 @@ def make_instance(self, include_optional) -> ApplicationType: id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py index 3cebc8b..cd77b96 100644 --- a/test/test_appsec_app.py +++ b/test/test_appsec_app.py @@ -142,6 +142,9 @@ def make_instance(self, include_optional) -> AppsecApp: app_parameters = [ cyperf.models.parameter_meta.ParameterMeta( name = '', ) + ], + keywords = [ + null ], ), id = '', last_modified = 56, diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py index cf92393..49a4c41 100644 --- a/test/test_appsec_app_metadata.py +++ b/test/test_appsec_app_metadata.py @@ -147,6 +147,9 @@ def make_instance(self, include_optional) -> AppsecAppMetadata: ], ), ) ], name = '', ) + ], + keywords = [ + null ] ) else: diff --git a/test/test_appsec_app_metadata_keywords_inner.py b/test/test_appsec_app_metadata_keywords_inner.py new file mode 100644 index 0000000..b04f531 --- /dev/null +++ b/test/test_appsec_app_metadata_keywords_inner.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner + +class TestAppsecAppMetadataKeywordsInner(unittest.TestCase): + """AppsecAppMetadataKeywordsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppsecAppMetadataKeywordsInner: + """Test AppsecAppMetadataKeywordsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AppsecAppMetadataKeywordsInner` + """ + model = AppsecAppMetadataKeywordsInner() + if include_optional: + return AppsecAppMetadataKeywordsInner( + ) + else: + return AppsecAppMetadataKeywordsInner( + ) + """ + + def testAppsecAppMetadataKeywordsInner(self): + """Test AppsecAppMetadataKeywordsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_command.py b/test/test_command.py index a4fabc5..485799f 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -46,9 +46,10 @@ def make_instance(self, include_optional) -> Command: id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null diff --git a/test/test_command_metadata.py b/test/test_command_metadata.py new file mode 100644 index 0000000..9adbb02 --- /dev/null +++ b/test/test_command_metadata.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.command_metadata import CommandMetadata + +class TestCommandMetadata(unittest.TestCase): + """CommandMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CommandMetadata: + """Test CommandMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CommandMetadata` + """ + model = CommandMetadata() + if include_optional: + return CommandMetadata( + direction = '', + is_banner = True, + is_for_app_traffic_only = True, + is_streaming = True, + keywords = [ + null + ], + legacy_names = [ + '' + ], + no_multi_flow_support = True, + protocol = '', + rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( + custom_header_len_offset = 56, + custom_header_len_size = 56, + custom_header_signature = 'YQ==', + custom_header_signature_offset = 56, + custom_header_size = 56, + encryption_mode = '', + requires_rtp_profile = True, ), + references = [ + cyperf.models.reference.Reference( + type = '', + value = '', ) + ], + requires_uniqueness = True, + severity = '', + skip_attack_generation = True, + sort_severity = '', + static = True, + supported_apps = [ + '' + ], + year = '' + ) + else: + return CommandMetadata( + ) + """ + + def testCommandMetadata(self): + """Test CommandMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_config_category.py b/test/test_config_category.py index 4a35c88..9b2cba2 100644 --- a/test/test_config_category.py +++ b/test/test_config_category.py @@ -36,7 +36,21 @@ def make_instance(self, include_optional) -> ConfigCategory: model = ConfigCategory() if include_optional: return ConfigCategory( - display_name = '' + display_name = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + subcategories = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ] ) else: return ConfigCategory( diff --git a/test/test_config_sub_category.py b/test/test_config_sub_category.py new file mode 100644 index 0000000..c4f8e6e --- /dev/null +++ b/test/test_config_sub_category.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.config_sub_category import ConfigSubCategory + +class TestConfigSubCategory(unittest.TestCase): + """ConfigSubCategory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConfigSubCategory: + """Test ConfigSubCategory + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ConfigSubCategory` + """ + model = ConfigSubCategory() + if include_optional: + return ConfigSubCategory( + display_name = '' + ) + else: + return ConfigSubCategory( + ) + """ + + def testConfigSubCategory(self): + """Test ConfigSubCategory""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_configurations_api.py b/test/test_configurations_api.py index 1fae14c..74987c3 100644 --- a/test/test_configurations_api.py +++ b/test/test_configurations_api.py @@ -46,6 +46,18 @@ def test_get_config_by_id(self) -> None: """ pass + def test_get_config_categorie_by_id(self) -> None: + """Test case for get_config_categorie_by_id + + """ + pass + + def test_get_config_categorie_subcategories(self) -> None: + """Test case for get_config_categorie_subcategories + + """ + pass + def test_get_config_categories(self) -> None: """Test case for get_config_categories diff --git a/test/test_get_apps_operation.py b/test/test_get_apps_operation.py new file mode 100644 index 0000000..96e849f --- /dev/null +++ b/test/test_get_apps_operation.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.get_apps_operation import GetAppsOperation + +class TestGetAppsOperation(unittest.TestCase): + """GetAppsOperation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAppsOperation: + """Test GetAppsOperation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAppsOperation` + """ + model = GetAppsOperation() + if include_optional: + return GetAppsOperation( + categories = [ + cyperf.models.category_filter.CategoryFilter( + category = '', + values = [ + '' + ], ) + ], + filter_mode = '', + search_col = [ + '' + ], + search_val = [ + '' + ], + skip = '', + sort = [ + cyperf.models.sort_body_field.SortBodyField( + field = '', + order = '', ) + ], + take = '' + ) + else: + return GetAppsOperation( + ) + """ + + def testGetAppsOperation(self): + """Test GetAppsOperation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_config_categorie_subcategories200_response.py b/test/test_get_config_categorie_subcategories200_response.py new file mode 100644 index 0000000..cea704c --- /dev/null +++ b/test/test_get_config_categorie_subcategories200_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response + +class TestGetConfigCategorieSubcategories200Response(unittest.TestCase): + """GetConfigCategorieSubcategories200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetConfigCategorieSubcategories200Response: + """Test GetConfigCategorieSubcategories200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetConfigCategorieSubcategories200Response` + """ + model = GetConfigCategorieSubcategories200Response() + if include_optional: + return GetConfigCategorieSubcategories200Response( + data = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ], + total_count = 56 + ) + else: + return GetConfigCategorieSubcategories200Response( + ) + """ + + def testGetConfigCategorieSubcategories200Response(self): + """Test GetConfigCategorieSubcategories200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_config_categorie_subcategories200_response_one_of.py b/test/test_get_config_categorie_subcategories200_response_one_of.py new file mode 100644 index 0000000..bc9b584 --- /dev/null +++ b/test/test_get_config_categorie_subcategories200_response_one_of.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf + +class TestGetConfigCategorieSubcategories200ResponseOneOf(unittest.TestCase): + """GetConfigCategorieSubcategories200ResponseOneOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetConfigCategorieSubcategories200ResponseOneOf: + """Test GetConfigCategorieSubcategories200ResponseOneOf + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetConfigCategorieSubcategories200ResponseOneOf` + """ + model = GetConfigCategorieSubcategories200ResponseOneOf() + if include_optional: + return GetConfigCategorieSubcategories200ResponseOneOf( + data = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ], + total_count = 56 + ) + else: + return GetConfigCategorieSubcategories200ResponseOneOf( + ) + """ + + def testGetConfigCategorieSubcategories200ResponseOneOf(self): + """Test GetConfigCategorieSubcategories200ResponseOneOf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_config_categories200_response.py b/test/test_get_config_categories200_response.py index c236f10..50716c1 100644 --- a/test/test_get_config_categories200_response.py +++ b/test/test_get_config_categories200_response.py @@ -38,7 +38,21 @@ def make_instance(self, include_optional) -> GetConfigCategories200Response: return GetConfigCategories200Response( data = [ cyperf.models.config_category.ConfigCategory( - display_name = '', ) + display_name = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + subcategories = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ], ) ], total_count = 56 ) diff --git a/test/test_get_config_categories200_response_one_of.py b/test/test_get_config_categories200_response_one_of.py index 93f1d59..e9cbfe6 100644 --- a/test/test_get_config_categories200_response_one_of.py +++ b/test/test_get_config_categories200_response_one_of.py @@ -38,7 +38,21 @@ def make_instance(self, include_optional) -> GetConfigCategories200ResponseOneOf return GetConfigCategories200ResponseOneOf( data = [ cyperf.models.config_category.ConfigCategory( - display_name = '', ) + display_name = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + subcategories = [ + cyperf.models.config_sub_category.ConfigSubCategory( + display_name = '', ) + ], ) ], total_count = 56 ) diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index 79f2f14..aa5c159 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -50,9 +50,10 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index baae382..806f1a5 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -50,9 +50,10 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp id = '', ) ], is_strike = True, - metadata = cyperf.models.metadata.Metadata( + metadata = cyperf.models.command_metadata.CommandMetadata( direction = '', is_banner = True, + is_for_app_traffic_only = True, is_streaming = True, keywords = [ null diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py index b3ae529..cd815bb 100644 --- a/test/test_get_resources_apps200_response.py +++ b/test/test_get_resources_apps200_response.py @@ -144,6 +144,9 @@ def make_instance(self, include_optional) -> GetResourcesApps200Response: app_parameters = [ cyperf.models.parameter_meta.ParameterMeta( name = '', ) + ], + keywords = [ + null ], ), id = '', last_modified = 56, diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py index 29bd111..5cf8c29 100644 --- a/test/test_get_resources_apps200_response_one_of.py +++ b/test/test_get_resources_apps200_response_one_of.py @@ -144,6 +144,9 @@ def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: app_parameters = [ cyperf.models.parameter_meta.ParameterMeta( name = '', ) + ], + keywords = [ + null ], ), id = '', last_modified = 56, From db1cd1c04f4d32e0e4c8d6f6eef76a26ae75611f Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 4 Dec 2025 08:12:38 -0700 Subject: [PATCH 20/53] Pull request #49: ISGAPPSEC2-35959-newrestapi-get_session_config-method-with-include-all-parameter Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-35959-get_session_config-method-with-include-all to main Squashed commit of the following: commit 3d246d357f4d572d0aa7b8f0062cb1515c56c913 Author: iustmitu Date: Thu Nov 20 11:06:32 2025 +0200 return [] instead of None for a required field --- cyperf/models/activation_code_list_request.py | 2 +- cyperf/models/agent.py | 2 +- cyperf/models/agent_assignment_details.py | 2 +- cyperf/models/agent_assignments.py | 2 +- cyperf/models/agent_reservation.py | 4 ++-- cyperf/models/agents_group.py | 2 +- cyperf/models/app_flow_input.py | 2 +- cyperf/models/app_flow_input_find_param.py | 4 ++-- cyperf/models/application.py | 2 +- cyperf/models/application_profile.py | 2 +- cyperf/models/attack_metadata.py | 2 +- cyperf/models/attack_profile.py | 2 +- cyperf/models/auth_settings.py | 4 ++-- cyperf/models/category_filter.py | 2 +- cyperf/models/cert_config.py | 2 +- cyperf/models/certificate.py | 4 ++-- cyperf/models/cisco_any_connect_settings.py | 2 +- cyperf/models/command_metadata.py | 4 ++-- cyperf/models/config.py | 2 +- cyperf/models/dut_network.py | 2 +- cyperf/models/emulated_router_range.py | 2 +- cyperf/models/emulated_subnet_config.py | 2 +- cyperf/models/file_value.py | 2 +- cyperf/models/find_param_matches_operation.py | 2 +- cyperf/models/get_apps_operation.py | 4 ++-- cyperf/models/get_attacks_operation.py | 4 ++-- cyperf/models/get_strikes_operation.py | 4 ++-- cyperf/models/inner_ip_range.py | 2 +- cyperf/models/ip_network.py | 4 ++-- cyperf/models/ip_range.py | 2 +- cyperf/models/local_subnet_config.py | 2 +- cyperf/models/metadata.py | 4 ++-- cyperf/models/network_mapping.py | 6 +++--- cyperf/models/network_segment_base.py | 2 +- cyperf/models/nodes_by_controller.py | 2 +- cyperf/models/ntp_info.py | 2 +- cyperf/models/pangp_settings.py | 2 +- cyperf/models/parameter.py | 4 ++-- cyperf/models/parameter_match.py | 2 +- cyperf/models/parameter_metadata.py | 2 +- cyperf/models/params.py | 6 +++--- cyperf/models/plugin.py | 2 +- cyperf/models/port.py | 2 +- cyperf/models/ports_by_node.py | 2 +- cyperf/models/regex_match.py | 2 +- cyperf/models/result_metadata.py | 2 +- cyperf/models/results_group.py | 2 +- cyperf/models/set_app_operation.py | 2 +- cyperf/models/set_dpdk_mode_operation_input.py | 2 +- cyperf/models/set_ntp_operation_input.py | 4 ++-- cyperf/models/simulated_id_p.py | 2 +- cyperf/models/stats_result.py | 2 +- cyperf/models/tls_profile.py | 2 +- cyperf/models/update_network_mapping.py | 6 +++--- cyperf/models/update_port_tags_operation.py | 4 ++-- 55 files changed, 74 insertions(+), 74 deletions(-) diff --git a/cyperf/models/activation_code_list_request.py b/cyperf/models/activation_code_list_request.py index 2a5c851..34d645f 100644 --- a/cyperf/models/activation_code_list_request.py +++ b/cyperf/models/activation_code_list_request.py @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "activationCode": obj.get("activationCode") + "activationCode": obj.get("activationCode") if obj.get("activationCode") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 71644ed..5cec980 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -181,7 +181,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AgentTags": obj.get("AgentTags"), + "AgentTags": obj.get("AgentTags") if obj.get("AgentTags") is not None else [], "IP": obj.get("IP"), "Interfaces": [Interface.from_dict(_item) for _item in obj["Interfaces"]] if obj.get("Interfaces") is not None else None, "LastUpdate": obj.get("LastUpdate"), diff --git a/cyperf/models/agent_assignment_details.py b/cyperf/models/agent_assignment_details.py index 266612e..e6afd16 100644 --- a/cyperf/models/agent_assignment_details.py +++ b/cyperf/models/agent_assignment_details.py @@ -103,7 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "agentId": obj.get("agentId"), "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, "id": obj.get("id"), - "interfaces": obj.get("interfaces"), + "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , "links": obj.get("links") diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index bdf1416..230987a 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -113,7 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ByID": [AgentAssignmentDetails.from_dict(_item) for _item in obj["ByID"]] if obj.get("ByID") is not None else None, "ByPort": [AgentAssignmentByPort.from_dict(_item) for _item in obj["ByPort"]] if obj.get("ByPort") is not None else None, - "ByTag": obj.get("ByTag"), + "ByTag": obj.get("ByTag") if obj.get("ByTag") is not None else [], "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , "links": obj.get("links") diff --git a/cyperf/models/agent_reservation.py b/cyperf/models/agent_reservation.py index fef07a9..9c0bf21 100644 --- a/cyperf/models/agent_reservation.py +++ b/cyperf/models/agent_reservation.py @@ -90,9 +90,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "agentId": obj.get("agentId"), - "agentPayloadNames": obj.get("agentPayloadNames"), + "agentPayloadNames": obj.get("agentPayloadNames") if obj.get("agentPayloadNames") is not None else [], "generalPurposeCPUPercent": obj.get("generalPurposeCPUPercent"), - "interfaces": obj.get("interfaces"), + "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], "ipAddressVersionUsed": obj.get("ipAddressVersionUsed"), "optimizationMode": obj.get("optimizationMode") , diff --git a/cyperf/models/agents_group.py b/cyperf/models/agents_group.py index 32c2f4d..85214c9 100644 --- a/cyperf/models/agents_group.py +++ b/cyperf/models/agents_group.py @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Agents": obj.get("Agents"), + "Agents": obj.get("Agents") if obj.get("Agents") is not None else [], "Available": obj.get("Available"), "Name": obj.get("Name"), "Online": obj.get("Online") diff --git a/cyperf/models/app_flow_input.py b/cyperf/models/app_flow_input.py index 2b69e23..5cfe64d 100644 --- a/cyperf/models/app_flow_input.py +++ b/cyperf/models/app_flow_input.py @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AppFlowId": obj.get("AppFlowId"), - "Exchanges": obj.get("Exchanges") + "Exchanges": obj.get("Exchanges") if obj.get("Exchanges") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/app_flow_input_find_param.py b/cyperf/models/app_flow_input_find_param.py index ca656b5..b2ce642 100644 --- a/cyperf/models/app_flow_input_find_param.py +++ b/cyperf/models/app_flow_input_find_param.py @@ -93,8 +93,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AppFlowDesc": AppFlowDesc.from_dict(obj["AppFlowDesc"]) if obj.get("AppFlowDesc") is not None else None, "AppFlowId": obj.get("AppFlowId"), - "ExchangeNames": obj.get("ExchangeNames"), - "Exchanges": obj.get("Exchanges") + "ExchangeNames": obj.get("ExchangeNames") if obj.get("ExchangeNames") is not None else [], + "Exchanges": obj.get("Exchanges") if obj.get("Exchanges") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 3f0811d..0ed0760 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -281,7 +281,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "StatelessStream": StatelessStream.from_dict(obj["StatelessStream"]) if obj.get("StatelessStream") is not None else None, "Static": obj.get("Static"), - "SupportedApps": obj.get("SupportedApps"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "SupportsCalibration": obj.get("SupportsCalibration"), "SupportsMultiFlow": obj.get("SupportsMultiFlow"), "SupportsStrikes": obj.get("SupportsStrikes"), diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index 4e5243e..e479cd1 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -163,7 +163,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "add-applications": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-applications"]] if obj.get("add-applications") is not None else None, "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, - "reset-tags-to-default": obj.get("reset-tags-to-default") + "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py index 957a1f0..fdf6e81 100644 --- a/cyperf/models/attack_metadata.py +++ b/cyperf/models/attack_metadata.py @@ -109,7 +109,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CveCount": obj.get("CveCount"), "Direction": obj.get("Direction"), "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, "Severity": obj.get("Severity"), "StrikesCount": obj.get("StrikesCount") diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index 8ceeeed..53e6fbe 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -163,7 +163,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "add-attacks": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-attacks"]] if obj.get("add-attacks") is not None else None, "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, - "reset-tags-to-default": obj.get("reset-tags-to-default") + "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index 8786c9b..10abafd 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -123,9 +123,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CertificateFile": Params.from_dict(obj["CertificateFile"]) if obj.get("CertificateFile") is not None else None, "KeyFile": Params.from_dict(obj["KeyFile"]) if obj.get("KeyFile") is not None else None, "KeyFilePassword": obj.get("KeyFilePassword"), - "Passwords": obj.get("Passwords"), + "Passwords": obj.get("Passwords") if obj.get("Passwords") is not None else [], "PasswordsParam": Params.from_dict(obj["PasswordsParam"]) if obj.get("PasswordsParam") is not None else None, - "Usernames": obj.get("Usernames"), + "Usernames": obj.get("Usernames") if obj.get("Usernames") is not None else [], "UsernamesParam": Params.from_dict(obj["UsernamesParam"]) if obj.get("UsernamesParam") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , diff --git a/cyperf/models/category_filter.py b/cyperf/models/category_filter.py index 0ceddcf..3bfd335 100644 --- a/cyperf/models/category_filter.py +++ b/cyperf/models/category_filter.py @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "category": obj.get("category"), - "values": obj.get("values") + "values": obj.get("values") if obj.get("values") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/cert_config.py b/cyperf/models/cert_config.py index 30bd180..591930e 100644 --- a/cyperf/models/cert_config.py +++ b/cyperf/models/cert_config.py @@ -125,7 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "certificateFile": Params.from_dict(obj["certificateFile"]) if obj.get("certificateFile") is not None else None, "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, - "get-sni-conflicts": obj.get("get-sni-conflicts"), + "get-sni-conflicts": obj.get("get-sni-conflicts") if obj.get("get-sni-conflicts") is not None else [], "id": obj.get("id"), "isPlaylist": obj.get("isPlaylist"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, diff --git a/cyperf/models/certificate.py b/cyperf/models/certificate.py index 9d85bf4..77536cd 100644 --- a/cyperf/models/certificate.py +++ b/cyperf/models/certificate.py @@ -97,8 +97,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "auto": obj.get("auto"), - "dnsNames": obj.get("dnsNames"), - "ipAddresses": obj.get("ipAddresses"), + "dnsNames": obj.get("dnsNames") if obj.get("dnsNames") is not None else [], + "ipAddresses": obj.get("ipAddresses") if obj.get("ipAddresses") is not None else [], "issuer": obj.get("issuer"), "notAfter": obj.get("notAfter"), "notBefore": obj.get("notBefore"), diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index 034b51c..1134438 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -128,7 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "CiscoEncapsulation": CiscoEncapsulation.from_dict(obj["CiscoEncapsulation"]) if obj.get("CiscoEncapsulation") is not None else None, - "ConnectionProfiles": obj.get("ConnectionProfiles"), + "ConnectionProfiles": obj.get("ConnectionProfiles") if obj.get("ConnectionProfiles") is not None else [], "ESPProbeRetryTimeout": obj.get("ESPProbeRetryTimeout"), "ESPProbeTimeout": obj.get("ESPProbeTimeout"), "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index 4a8e604..b9af2af 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -125,7 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsForAppTrafficOnly": obj.get("IsForAppTrafficOnly"), "IsStreaming": obj.get("IsStreaming"), "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, @@ -135,7 +135,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SkipAttackGeneration": obj.get("SkipAttackGeneration"), "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), - "SupportedApps": obj.get("SupportedApps"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/config.py b/cyperf/models/config.py index da542a7..2b9a122 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -147,7 +147,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetworkProfiles": [NetworkProfile.from_dict(_item) for _item in obj["NetworkProfiles"]] if obj.get("NetworkProfiles") is not None else None, "TrafficProfiles": [ApplicationProfile.from_dict(_item) for _item in obj["TrafficProfiles"]] if obj.get("TrafficProfiles") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "validate": obj.get("validate") + "validate": obj.get("validate") if obj.get("validate") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index d59c7b9..184d78b 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -211,7 +211,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags"), + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [], "ClientDUTActive": obj.get("ClientDUTActive"), "ClientDUTHost": obj.get("ClientDUTHost"), "ClientDUTPort": obj.get("ClientDUTPort"), diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 17f0dd9..6276f1d 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -174,7 +174,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "maxCountPerAgent": obj.get("maxCountPerAgent"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/emulated_subnet_config.py b/cyperf/models/emulated_subnet_config.py index 99fa280..15cfe0e 100644 --- a/cyperf/models/emulated_subnet_config.py +++ b/cyperf/models/emulated_subnet_config.py @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index 69162ea..43e3f5f 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "fileName": obj.get("fileName"), "md5Sum": obj.get("md5Sum"), - "payload": obj.get("payload"), + "payload": obj.get("payload") if obj.get("payload") is not None else [], "resourceURL": obj.get("resourceURL"), "value": obj.get("value") , diff --git a/cyperf/models/find_param_matches_operation.py b/cyperf/models/find_param_matches_operation.py index 645d93a..7a122e4 100644 --- a/cyperf/models/find_param_matches_operation.py +++ b/cyperf/models/find_param_matches_operation.py @@ -97,7 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Actions": [ActionInputFindParam.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, "AppId": obj.get("AppId"), - "MatchLocation": obj.get("MatchLocation"), + "MatchLocation": obj.get("MatchLocation") if obj.get("MatchLocation") is not None else [], "Pattern": obj.get("Pattern") , "links": obj.get("links") diff --git a/cyperf/models/get_apps_operation.py b/cyperf/models/get_apps_operation.py index 9404c17..39d6b86 100644 --- a/cyperf/models/get_apps_operation.py +++ b/cyperf/models/get_apps_operation.py @@ -108,8 +108,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol"), - "searchVal": obj.get("searchVal"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, "take": obj.get("take") diff --git a/cyperf/models/get_attacks_operation.py b/cyperf/models/get_attacks_operation.py index 5404d64..07f9d35 100644 --- a/cyperf/models/get_attacks_operation.py +++ b/cyperf/models/get_attacks_operation.py @@ -108,8 +108,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol"), - "searchVal": obj.get("searchVal"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, "take": obj.get("take") diff --git a/cyperf/models/get_strikes_operation.py b/cyperf/models/get_strikes_operation.py index 700f372..091662b 100644 --- a/cyperf/models/get_strikes_operation.py +++ b/cyperf/models/get_strikes_operation.py @@ -110,8 +110,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, "compatibleWith": obj.get("compatibleWith"), "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol"), - "searchVal": obj.get("searchVal"), + "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], + "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, "take": obj.get("take") diff --git a/cyperf/models/inner_ip_range.py b/cyperf/models/inner_ip_range.py index 8a6dd42..e1f5603 100644 --- a/cyperf/models/inner_ip_range.py +++ b/cyperf/models/inner_ip_range.py @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index e06651f..63a4fa9 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -180,10 +180,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags"), + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [], "DNSResolver": DNSResolver.from_dict(obj["DNSResolver"]) if obj.get("DNSResolver") is not None else None, "DNSServer": DNSServer.from_dict(obj["DNSServer"]) if obj.get("DNSServer") is not None else None, - "DUTConnections": obj.get("DUTConnections"), + "DUTConnections": obj.get("DUTConnections") if obj.get("DUTConnections") is not None else [], "EmulatedRouter": EmulatedRouter.from_dict(obj["EmulatedRouter"]) if obj.get("EmulatedRouter") is not None else None, "EthRange": EthRange.from_dict(obj["EthRange"]) if obj.get("EthRange") is not None else None, "IPRanges": [IPRange.from_dict(_item) for _item in obj["IPRanges"]] if obj.get("IPRanges") is not None else None, diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index c9c5c1b..adb7003 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -174,7 +174,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "maxCountPerAgent": obj.get("maxCountPerAgent"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index 92769b7..d385dd9 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 9282dd4..8cf7c7e 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -123,7 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsBanner": obj.get("IsBanner"), "IsStreaming": obj.get("IsStreaming"), "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, @@ -133,7 +133,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SkipAttackGeneration": obj.get("SkipAttackGeneration"), "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), - "SupportedApps": obj.get("SupportedApps"), + "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/network_mapping.py b/cyperf/models/network_mapping.py index 9fcba81..d78232e 100644 --- a/cyperf/models/network_mapping.py +++ b/cyperf/models/network_mapping.py @@ -86,9 +86,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ClientNetworkTags": obj.get("ClientNetworkTags"), - "ExcludedDUTList": obj.get("ExcludedDUTList"), - "ServerNetworkTags": obj.get("ServerNetworkTags") + "ClientNetworkTags": obj.get("ClientNetworkTags") if obj.get("ClientNetworkTags") is not None else [], + "ExcludedDUTList": obj.get("ExcludedDUTList") if obj.get("ExcludedDUTList") is not None else [], + "ServerNetworkTags": obj.get("ServerNetworkTags") if obj.get("ServerNetworkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/network_segment_base.py b/cyperf/models/network_segment_base.py index 58253ab..12c155c 100644 --- a/cyperf/models/network_segment_base.py +++ b/cyperf/models/network_segment_base.py @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), "id": obj.get("id"), - "networkTags": obj.get("networkTags") + "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/nodes_by_controller.py b/cyperf/models/nodes_by_controller.py index 4137294..d535b2e 100644 --- a/cyperf/models/nodes_by_controller.py +++ b/cyperf/models/nodes_by_controller.py @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": obj.get("computeNodes"), + "computeNodes": obj.get("computeNodes") if obj.get("computeNodes") is not None else [], "controllerId": obj.get("controllerId") , "links": obj.get("links") diff --git a/cyperf/models/ntp_info.py b/cyperf/models/ntp_info.py index dc716ae..3dc6609 100644 --- a/cyperf/models/ntp_info.py +++ b/cyperf/models/ntp_info.py @@ -91,7 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "activeServer": obj.get("activeServer"), - "servers": obj.get("servers"), + "servers": obj.get("servers") if obj.get("servers") is not None else [], "status": obj.get("status") , "links": obj.get("links") diff --git a/cyperf/models/pangp_settings.py b/cyperf/models/pangp_settings.py index 25915ae..0043bec 100644 --- a/cyperf/models/pangp_settings.py +++ b/cyperf/models/pangp_settings.py @@ -138,7 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PANGPEncapsulation": PANGPEncapsulation.from_dict(obj["PANGPEncapsulation"]) if obj.get("PANGPEncapsulation") is not None else None, "PortalHostname": obj.get("PortalHostname"), "VPNGateway": obj.get("VPNGateway"), - "VPNGateways": obj.get("VPNGateways") + "VPNGateways": obj.get("VPNGateways") if obj.get("VPNGateways") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index a30f21b..6505120 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -109,12 +109,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "DefaultArrayElements": obj.get("DefaultArrayElements"), + "DefaultArrayElements": obj.get("DefaultArrayElements") if obj.get("DefaultArrayElements") is not None else [], "DefaultSource": obj.get("DefaultSource"), "DefaultValue": obj.get("DefaultValue"), "ElementType": obj.get("ElementType"), "Metadata": ParameterMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, - "Sources": obj.get("Sources"), + "Sources": obj.get("Sources") if obj.get("Sources") is not None else [], "Type": obj.get("Type"), "field": obj.get("field"), "id": obj.get("id"), diff --git a/cyperf/models/parameter_match.py b/cyperf/models/parameter_match.py index 308356e..601f7a8 100644 --- a/cyperf/models/parameter_match.py +++ b/cyperf/models/parameter_match.py @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "MatchLocation": obj.get("MatchLocation"), + "MatchLocation": obj.get("MatchLocation") if obj.get("MatchLocation") is not None else [], "MatchType": obj.get("MatchType"), "RegexMatch": RegexMatch.from_dict(obj["RegexMatch"]) if obj.get("RegexMatch") is not None else None , diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index b8d259f..e0d9caf 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -128,7 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Enum": Enum.from_dict(obj["Enum"]) if obj.get("Enum") is not None else None, "FlowIdentifier": obj.get("FlowIdentifier"), "Input": obj.get("Input"), - "LegacyNames": obj.get("LegacyNames"), + "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "Mandatory": obj.get("Mandatory"), "Payload": PayloadMetadata.from_dict(obj["Payload"]) if obj.get("Payload") is not None else None, "Readonly": obj.get("Readonly"), diff --git a/cyperf/models/params.py b/cyperf/models/params.py index 24d4305..5497f7a 100644 --- a/cyperf/models/params.py +++ b/cyperf/models/params.py @@ -139,7 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ArrayElementType": obj.get("ArrayElementType"), - "ArrayElements": obj.get("ArrayElements"), + "ArrayElements": obj.get("ArrayElements") if obj.get("ArrayElements") is not None else [], "Category": obj.get("Category"), "CategoryIndex": obj.get("CategoryIndex"), "DeprecatedPreviousSource": obj.get("DeprecatedPreviousSource"), @@ -156,10 +156,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ParamId": obj.get("ParamId"), "Readonly": obj.get("Readonly"), "Source": obj.get("Source"), - "SupportedSources": obj.get("SupportedSources"), + "SupportedSources": obj.get("SupportedSources") if obj.get("SupportedSources") is not None else [], "Type": obj.get("Type"), "Value": obj.get("Value"), - "file-upload": obj.get("file-upload"), + "file-upload": obj.get("file-upload") if obj.get("file-upload") is not None else [], "id": obj.get("id"), "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, "supportsDynamicPayload": obj.get("supportsDynamicPayload"), diff --git a/cyperf/models/plugin.py b/cyperf/models/plugin.py index 8d0013f..ab85e39 100644 --- a/cyperf/models/plugin.py +++ b/cyperf/models/plugin.py @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), - "keys": obj.get("keys"), + "keys": obj.get("keys") if obj.get("keys") is not None else [], "name": obj.get("name"), "version": obj.get("version") , diff --git a/cyperf/models/port.py b/cyperf/models/port.py index 0312f09..15cabb9 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -99,7 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "reservedBy": obj.get("reservedBy"), "speed": obj.get("speed"), "status": obj.get("status"), - "tags": obj.get("tags"), + "tags": obj.get("tags") if obj.get("tags") is not None else [], "trafficStatus": obj.get("trafficStatus") , "links": obj.get("links") diff --git a/cyperf/models/ports_by_node.py b/cyperf/models/ports_by_node.py index e8c8d69..01f2a77 100644 --- a/cyperf/models/ports_by_node.py +++ b/cyperf/models/ports_by_node.py @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "computeNodeId": obj.get("computeNodeId"), - "ports": obj.get("ports") + "ports": obj.get("ports") if obj.get("ports") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/regex_match.py b/cyperf/models/regex_match.py index f84aa53..bdeea2a 100644 --- a/cyperf/models/regex_match.py +++ b/cyperf/models/regex_match.py @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Patterns": obj.get("Patterns") + "Patterns": obj.get("Patterns") if obj.get("Patterns") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index 2de2c91..c17bfab 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -181,7 +181,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tags": obj.get("tags"), "testName": obj.get("testName"), "type": obj.get("type"), - "userTags": obj.get("userTags") + "userTags": obj.get("userTags") if obj.get("userTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/results_group.py b/cyperf/models/results_group.py index f7c8e0d..128bc09 100644 --- a/cyperf/models/results_group.py +++ b/cyperf/models/results_group.py @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Name": obj.get("Name"), - "Results": obj.get("Results") + "Results": obj.get("Results") if obj.get("Results") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/set_app_operation.py b/cyperf/models/set_app_operation.py index bc1a977..3b88bc6 100644 --- a/cyperf/models/set_app_operation.py +++ b/cyperf/models/set_app_operation.py @@ -87,7 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "appId": obj.get("appId"), - "controllers": obj.get("controllers"), + "controllers": obj.get("controllers") if obj.get("controllers") is not None else [], "force": obj.get("force") , "links": obj.get("links") diff --git a/cyperf/models/set_dpdk_mode_operation_input.py b/cyperf/models/set_dpdk_mode_operation_input.py index 3ad8656..13baefb 100644 --- a/cyperf/models/set_dpdk_mode_operation_input.py +++ b/cyperf/models/set_dpdk_mode_operation_input.py @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentIds": obj.get("agentIds"), + "agentIds": obj.get("agentIds") if obj.get("agentIds") is not None else [], "enabled": obj.get("enabled") , "links": obj.get("links") diff --git a/cyperf/models/set_ntp_operation_input.py b/cyperf/models/set_ntp_operation_input.py index ad99574..1cd4497 100644 --- a/cyperf/models/set_ntp_operation_input.py +++ b/cyperf/models/set_ntp_operation_input.py @@ -85,8 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentIds": obj.get("agentIds"), - "servers": obj.get("servers") + "agentIds": obj.get("agentIds") if obj.get("agentIds") is not None else [], + "servers": obj.get("servers") if obj.get("servers") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/simulated_id_p.py b/cyperf/models/simulated_id_p.py index ca05860..f3b4267 100644 --- a/cyperf/models/simulated_id_p.py +++ b/cyperf/models/simulated_id_p.py @@ -113,7 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ResponseSignature": obj.get("ResponseSignature"), "SignatureAlgorithm": obj.get("SignatureAlgorithm"), "SingleSignOnURL": obj.get("SingleSignOnURL"), - "XMLMetadata": obj.get("XMLMetadata"), + "XMLMetadata": obj.get("XMLMetadata") if obj.get("XMLMetadata") is not None else [], "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None , "links": obj.get("links") diff --git a/cyperf/models/stats_result.py b/cyperf/models/stats_result.py index 4afb232..2d3e950 100644 --- a/cyperf/models/stats_result.py +++ b/cyperf/models/stats_result.py @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "availableFilters": [Parameter.from_dict(_item) for _item in obj["availableFilters"]] if obj.get("availableFilters") is not None else None, - "columns": obj.get("columns"), + "columns": obj.get("columns") if obj.get("columns") is not None else [], "name": obj.get("name"), "snapshots": [Snapshot.from_dict(_item) for _item in obj["snapshots"]] if obj.get("snapshots") is not None else None , diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index e0db31a..867119e 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -165,7 +165,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ciphers12": obj.get("ciphers12"), "ciphers13": obj.get("ciphers13"), "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, - "get-tls-conflicts": obj.get("get-tls-conflicts"), + "get-tls-conflicts": obj.get("get-tls-conflicts") if obj.get("get-tls-conflicts") is not None else [], "immediateClose": obj.get("immediateClose"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), diff --git a/cyperf/models/update_network_mapping.py b/cyperf/models/update_network_mapping.py index f1a03f6..6d33f33 100644 --- a/cyperf/models/update_network_mapping.py +++ b/cyperf/models/update_network_mapping.py @@ -87,10 +87,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ClientNetworkTags": obj.get("ClientNetworkTags"), - "ExcludedDUTList": obj.get("ExcludedDUTList"), + "ClientNetworkTags": obj.get("ClientNetworkTags") if obj.get("ClientNetworkTags") is not None else [], + "ExcludedDUTList": obj.get("ExcludedDUTList") if obj.get("ExcludedDUTList") is not None else [], "SelectTags": obj.get("SelectTags"), - "ServerNetworkTags": obj.get("ServerNetworkTags") + "ServerNetworkTags": obj.get("ServerNetworkTags") if obj.get("ServerNetworkTags") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/update_port_tags_operation.py b/cyperf/models/update_port_tags_operation.py index 9970794..597cb13 100644 --- a/cyperf/models/update_port_tags_operation.py +++ b/cyperf/models/update_port_tags_operation.py @@ -95,8 +95,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, - "tagsToAdd": obj.get("tagsToAdd"), - "tagsToRemove": obj.get("tagsToRemove") + "tagsToAdd": obj.get("tagsToAdd") if obj.get("tagsToAdd") is not None else [], + "tagsToRemove": obj.get("tagsToRemove") if obj.get("tagsToRemove") is not None else [] , "links": obj.get("links") }) From bd045bca8aabd343fe72eba1342ee2730d077012 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Fri, 12 Dec 2025 06:29:01 -0700 Subject: [PATCH 21/53] Pull request #52: fix get_first_N_http_standalone_strikes Merge in ISGAPPSEC/cyperf-api-wrapper from fix-get_first_N_http_standalone_strikes-function to main Squashed commit of the following: commit 8e8ac1da56dd995d75d6ee01b9ae31f48a41533e Author: iustmitu Date: Fri Dec 12 14:09:09 2025 +0200 fix get_first_N_http_standalone_strikes --- cyperf/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyperf/utils.py b/cyperf/utils.py index c020965..3d09251 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -217,7 +217,7 @@ def get_first_N_http_standalone_strikes(self, n): protocol = strike.metadata.protocol supported_apps = strike.metadata.supported_apps - if protocol.lower() == 'http' and supported_apps == None: + if protocol.lower() == 'http' and (supported_apps == None or supported_apps == []): http_strikes.append(strike) if len(http_strikes) == n: break From c77927cebbfdbf3fc012e0ff4d071a6ba7c2cb46 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Mon, 15 Dec 2025 04:29:54 -0700 Subject: [PATCH 22/53] 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 Date: Fri Dec 12 11:51:05 2025 +0200 regenerated wrapper, support for cumpute nodes on aps --- README.md | 2 + cyperf/__init__.py | 2 + cyperf/api/agents_api.py | 17 ++++ cyperf/dynamic_models/__init__.py | 2 + cyperf/models/__init__.py | 2 + cyperf/models/auth_method_type.py | 1 + cyperf/models/auth_settings.py | 8 +- cyperf/models/cisco_any_connect_settings.py | 4 +- cyperf/models/custom_stat.py | 6 +- cyperf/models/eth_range.py | 8 +- cyperf/models/group_tls13.py | 96 +++++++++++++++++++ cyperf/models/mac_dtls_stack.py | 8 +- cyperf/models/parameter_metadata.py | 8 +- cyperf/models/playlist_metadata.py | 95 ++++++++++++++++++ cyperf/models/result_metadata.py | 6 +- cyperf/models/static_arp_entry.py | 8 +- cyperf/models/supported_group_tls13.py | 12 +-- cyperf/models/tls_profile.py | 12 ++- cyperf/models/tunnel_range.py | 4 +- docs/AgentsApi.md | 6 +- docs/AuthMethodType.md | 2 + docs/AuthSettings.md | 1 + docs/CustomStat.md | 1 + docs/GroupTLS13.md | 31 ++++++ docs/ParameterMetadata.md | 1 + docs/PlaylistMetadata.md | 30 ++++++ docs/ResultMetadata.md | 1 + docs/SupportedGroupTLS13.md | 20 +--- docs/TLSProfile.md | 1 + test/test_application.py | 10 ++ test/test_application_type.py | 4 + test/test_attack.py | 10 ++ test/test_auth_profile.py | 3 + test/test_auth_settings.py | 21 ++++ test/test_cisco_any_connect_settings.py | 6 ++ test/test_command.py | 3 + test/test_custom_stat.py | 1 + test/test_dtls_settings.py | 5 + test/test_f5_settings.py | 6 ++ test/test_fortinet_settings.py | 6 ++ ...resources_application_types200_response.py | 1 + ...es_application_types200_response_one_of.py | 1 + test/test_get_result_stats200_response.py | 3 + ...est_get_result_stats200_response_one_of.py | 3 + test/test_get_results200_response.py | 3 + test/test_get_results200_response_one_of.py | 3 + test/test_group_tls13.py | 56 +++++++++++ test/test_pangp_settings.py | 6 ++ test/test_parameter.py | 3 + test/test_parameter_metadata.py | 3 + test/test_playlist_metadata.py | 54 +++++++++++ test/test_quic_profile.py | 10 ++ test/test_result_metadata.py | 3 + test/test_stats_result.py | 3 + test/test_tls_profile.py | 5 + test/test_transport_profile.py | 10 ++ test/test_transport_profile_base.py | 10 ++ test/test_tunnel_settings.py | 1 + 58 files changed, 599 insertions(+), 49 deletions(-) create mode 100644 cyperf/models/group_tls13.py create mode 100644 cyperf/models/playlist_metadata.py create mode 100644 docs/GroupTLS13.md create mode 100644 docs/PlaylistMetadata.md create mode 100644 test/test_group_tls13.py create mode 100644 test/test_playlist_metadata.py diff --git a/README.md b/README.md index 99bd935..2e3bd44 100644 --- a/README.md +++ b/README.md @@ -592,6 +592,7 @@ Class | Method | HTTP request | Description - [GetStatsPlugins200Response](docs/GetStatsPlugins200Response.md) - [GetStatsPlugins200ResponseOneOf](docs/GetStatsPlugins200ResponseOneOf.md) - [GetStrikesOperation](docs/GetStrikesOperation.md) + - [GroupTLS13](docs/GroupTLS13.md) - [HTTPProfile](docs/HTTPProfile.md) - [HTTPReqMeta](docs/HTTPReqMeta.md) - [HTTPResMeta](docs/HTTPResMeta.md) @@ -670,6 +671,7 @@ Class | Method | HTTP request | Description - [PayloadMetadata](docs/PayloadMetadata.md) - [PepDUT](docs/PepDUT.md) - [PfsP2Group](docs/PfsP2Group.md) + - [PlaylistMetadata](docs/PlaylistMetadata.md) - [Plugin](docs/Plugin.md) - [PluginStats](docs/PluginStats.md) - [Port](docs/Port.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 23fa2e8..5d00207 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -261,6 +261,7 @@ from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf from cyperf.models.get_strikes_operation import GetStrikesOperation +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.http_profile import HTTPProfile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta @@ -339,6 +340,7 @@ from cyperf.models.payload_metadata import PayloadMetadata from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 43ce379..03005f5 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -2613,6 +2613,7 @@ def get_controllers( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2634,6 +2635,8 @@ def get_controllers( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2659,6 +2662,7 @@ def get_controllers( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2681,6 +2685,7 @@ def get_controllers_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2702,6 +2707,8 @@ def get_controllers_with_http_info( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2727,6 +2734,7 @@ def get_controllers_with_http_info( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2749,6 +2757,7 @@ def get_controllers_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2770,6 +2779,8 @@ def get_controllers_without_preload_content( :type take: int :param skip: The number of search results to skip :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2795,6 +2806,7 @@ def get_controllers_without_preload_content( _param = self._get_controllers_serialize( take=take, skip=skip, + include=include, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2816,6 +2828,7 @@ def _get_controllers_serialize( self, take, skip, + include, _request_auth, _content_type, _headers, @@ -2844,6 +2857,10 @@ def _get_controllers_serialize( _query_params.append(('skip', skip)) + if include is not None: + + _query_params.append(('include', include)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 1311162..7d3d5af 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -227,6 +227,7 @@ GetStatsPlugins200Response = DynamicModel('GetStatsPlugins200Response', (), {} ) GetStatsPlugins200ResponseOneOf = DynamicModel('GetStatsPlugins200ResponseOneOf', (), {} ) GetStrikesOperation = DynamicModel('GetStrikesOperation', (), {} ) +GroupTLS13 = DynamicModel('GroupTLS13', (), {} ) HTTPProfile = DynamicModel('HTTPProfile', (), {} ) HTTPReqMeta = DynamicModel('HTTPReqMeta', (), {} ) HTTPResMeta = DynamicModel('HTTPResMeta', (), {} ) @@ -305,6 +306,7 @@ PayloadMetadata = DynamicModel('PayloadMetadata', (), {} ) PepDUT = DynamicModel('PepDUT', (), {} ) PfsP2Group = DynamicModel('PfsP2Group', (), {} ) +PlaylistMetadata = DynamicModel('PlaylistMetadata', (), {} ) Plugin = DynamicModel('Plugin', (), {} ) PluginStats = DynamicModel('PluginStats', (), {} ) Port = DynamicModel('Port', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index c557831..cf00efc 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -227,6 +227,7 @@ class LinkNameException(Exception): from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf from cyperf.models.get_strikes_operation import GetStrikesOperation +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.http_profile import HTTPProfile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta @@ -305,6 +306,7 @@ class LinkNameException(Exception): from cyperf.models.payload_metadata import PayloadMetadata from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port diff --git a/cyperf/models/auth_method_type.py b/cyperf/models/auth_method_type.py index b1d7f83..a3ec0a0 100644 --- a/cyperf/models/auth_method_type.py +++ b/cyperf/models/auth_method_type.py @@ -30,6 +30,7 @@ class AuthMethodType(str, Enum): AAA = 'AAA' AAA_MINUS_CERTIFICATE = 'AAA-CERTIFICATE' CERTIFICATE = 'CERTIFICATE' + SAML = 'SAML' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index 10abafd..cb29ad2 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -23,6 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.auth_method_type import AuthMethodType from cyperf.models.params import Params +from cyperf.models.simulated_id_p import SimulatedIdP from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -38,10 +39,11 @@ class AuthSettings(BaseModel): key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS VPN authentication.", alias="KeyFilePassword") passwords: Optional[List[StrictStr]] = Field(default=None, alias="Passwords") passwords_param: Optional[Params] = Field(default=None, alias="PasswordsParam") + simulated_id_p: Optional[SimulatedIdP] = Field(default=None, alias="SimulatedIdP") usernames: Optional[List[StrictStr]] = Field(default=None, alias="Usernames") usernames_param: Optional[Params] = Field(default=None, alias="UsernamesParam") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AuthMethod", "AuthParam", "CertificateFile", "KeyFile", "KeyFilePassword", "Passwords", "PasswordsParam", "Usernames", "UsernamesParam", "links"] + __properties: ClassVar[List[str]] = ["AuthMethod", "AuthParam", "CertificateFile", "KeyFile", "KeyFilePassword", "Passwords", "PasswordsParam", "SimulatedIdP", "Usernames", "UsernamesParam", "links"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +96,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of passwords_param if self.passwords_param: _dict['PasswordsParam'] = self.passwords_param.to_dict() + # override the default output from pydantic by calling `to_dict()` of simulated_id_p + if self.simulated_id_p: + _dict['SimulatedIdP'] = self.simulated_id_p.to_dict() # override the default output from pydantic by calling `to_dict()` of usernames_param if self.usernames_param: _dict['UsernamesParam'] = self.usernames_param.to_dict() @@ -125,6 +130,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "KeyFilePassword": obj.get("KeyFilePassword"), "Passwords": obj.get("Passwords") if obj.get("Passwords") is not None else [], "PasswordsParam": Params.from_dict(obj["PasswordsParam"]) if obj.get("PasswordsParam") is not None else None, + "SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None, "Usernames": obj.get("Usernames") if obj.get("Usernames") is not None else [], "UsernamesParam": Params.from_dict(obj["UsernamesParam"]) if obj.get("UsernamesParam") is not None else None, "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index 1134438..65720fb 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -48,8 +48,8 @@ class CiscoAnyConnectSettings(BaseModel): @field_validator('vpn_gateway') def vpn_gateway_validate_regular_expression(cls, value): """Validates the regular expression""" - 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]{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})))|(?:(?:(?:(?:(?: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-9a-fA-F]{1,4})):){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,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[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,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[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,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): - 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})))|(?:(?:(?:(?:(?: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-9a-fA-F]{1,4})):){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,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[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,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[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,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})))?::))))$)/") + 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]{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})))|(?:(?:(?:(?:(?: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-9a-fA-F]{1,4})):){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,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[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,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[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,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): + 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})))|(?:(?:(?:(?:(?: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-9a-fA-F]{1,4})):){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,1}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){3})(?:(?:(?:(?:(?:[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,2}(?:(?:[0-9a-fA-F]{1,4})))?::(?:(?:(?:[0-9a-fA-F]{1,4})):){2})(?:(?:(?:(?:(?:[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,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})))?::))))$)/") return value model_config = ConfigDict( diff --git a/cyperf/models/custom_stat.py b/cyperf/models/custom_stat.py index 66a33d6..93dc1c5 100644 --- a/cyperf/models/custom_stat.py +++ b/cyperf/models/custom_stat.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -29,8 +29,9 @@ class CustomStat(BaseModel): CustomStat """ # noqa: E501 function: Optional[StrictStr] = Field(default=None, description="The function of the custom statistic", alias="Function") + is_rate: Optional[StrictBool] = Field(default=None, description="Indicates whether this statistic supports rate computation", alias="IsRate") path: Optional[StrictStr] = Field(default=None, description="The path of the custom statistic", alias="Path") - __properties: ClassVar[List[str]] = ["Function", "Path"] + __properties: ClassVar[List[str]] = ["Function", "IsRate", "Path"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Function": obj.get("Function"), + "IsRate": obj.get("IsRate"), "Path": obj.get("Path") , "links": obj.get("links") diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index c8573d1..ee02174 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -47,8 +47,8 @@ def mac_incr_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('mac_start') @@ -57,8 +57,8 @@ def mac_start_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value model_config = ConfigDict( diff --git a/cyperf/models/group_tls13.py b/cyperf/models/group_tls13.py new file mode 100644 index 0000000..e9cfd41 --- /dev/null +++ b/cyperf/models/group_tls13.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List +from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GroupTLS13(BaseModel): + """ + A TLSv1.3 group with deprecation status. + """ # noqa: E501 + is_deprecated: StrictBool = Field(alias="IsDeprecated") + name: SupportedGroupTLS13 = Field(alias="Name") + __properties: ClassVar[List[str]] = ["IsDeprecated", "Name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GroupTLS13 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GroupTLS13 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "IsDeprecated": obj.get("IsDeprecated"), + "Name": obj.get("Name") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/mac_dtls_stack.py b/cyperf/models/mac_dtls_stack.py index 1b873e2..c8dee97 100644 --- a/cyperf/models/mac_dtls_stack.py +++ b/cyperf/models/mac_dtls_stack.py @@ -121,15 +121,15 @@ def out_key_incr_validate_regular_expression(cls, value): @field_validator('tunnel_destination_mac_incr') def tunnel_destination_mac_incr_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('tunnel_destination_mac_start') def tunnel_destination_mac_start_validate_regular_expression(cls, value): """Validates the regular expression""" - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value model_config = ConfigDict( diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index e0d9caf..22d310e 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -23,6 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.enum import Enum from cyperf.models.payload_metadata import PayloadMetadata +from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.type_info_metadata import TypeInfoMetadata from typing import Optional, Set, Union, GenericAlias, get_args from typing_extensions import Self @@ -43,13 +44,14 @@ class ParameterMetadata(BaseModel): legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent parameters", alias="LegacyNames") mandatory: Optional[StrictBool] = Field(default=None, description="The mandatory status of the parameter", alias="Mandatory") payload: Optional[PayloadMetadata] = Field(default=None, alias="Payload") + playlist: Optional[PlaylistMetadata] = Field(default=None, alias="Playlist") readonly: Optional[StrictBool] = Field(default=None, description="The read-only status of the parameter", alias="Readonly") shared: Optional[StrictBool] = Field(default=None, description="The shared status of the parameter", alias="Shared") type: Optional[StrictStr] = Field(default=None, description="The type of the parameter", alias="Type") type_info: Optional[TypeInfoMetadata] = Field(default=None, alias="TypeInfo") unique_value: Optional[StrictBool] = Field(default=None, description="If true, the value of this parameter must be unique across all Applications/Actions", alias="UniqueValue") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Category", "CategoryIndex", "Default", "Description", "DisplayName", "Enum", "FlowIdentifier", "Input", "LegacyNames", "Mandatory", "Payload", "Readonly", "Shared", "Type", "TypeInfo", "UniqueValue", "links"] + __properties: ClassVar[List[str]] = ["Category", "CategoryIndex", "Default", "Description", "DisplayName", "Enum", "FlowIdentifier", "Input", "LegacyNames", "Mandatory", "Payload", "Playlist", "Readonly", "Shared", "Type", "TypeInfo", "UniqueValue", "links"] model_config = ConfigDict( populate_by_name=True, @@ -96,6 +98,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of payload if self.payload: _dict['Payload'] = self.payload.to_dict() + # override the default output from pydantic by calling `to_dict()` of playlist + if self.playlist: + _dict['Playlist'] = self.playlist.to_dict() # override the default output from pydantic by calling `to_dict()` of type_info if self.type_info: _dict['TypeInfo'] = self.type_info.to_dict() @@ -131,6 +136,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "Mandatory": obj.get("Mandatory"), "Payload": PayloadMetadata.from_dict(obj["Payload"]) if obj.get("Payload") is not None else None, + "Playlist": PlaylistMetadata.from_dict(obj["Playlist"]) if obj.get("Playlist") is not None else None, "Readonly": obj.get("Readonly"), "Shared": obj.get("Shared"), "Type": obj.get("Type"), diff --git a/cyperf/models/playlist_metadata.py b/cyperf/models/playlist_metadata.py new file mode 100644 index 0000000..5d8a7cc --- /dev/null +++ b/cyperf/models/playlist_metadata.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union, GenericAlias, get_args +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class PlaylistMetadata(BaseModel): + """ + PlaylistMetadata + """ # noqa: E501 + column: Optional[StrictStr] = Field(default=None, description="The selected column", alias="Column") + file_name: Optional[StrictStr] = Field(default=None, description="The path of the file", alias="FileName") + __properties: ClassVar[List[str]] = ["Column", "FileName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PlaylistMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlaylistMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Column": obj.get("Column"), + "FileName": obj.get("FileName") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index c17bfab..08bae0d 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -47,6 +47,7 @@ class ResultMetadata(BaseModel): owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the user who owns the result", alias="ownerId") pdf_url: Optional[StrictStr] = Field(default=None, description="The URL of the cached pdf report", alias="pdfURL") pinned: Optional[StrictBool] = Field(default=None, description="A flag that indicates if the result's configuration is pinned") + report_types: Optional[List[StrictStr]] = Field(default=None, description="The report types supported for the result", alias="reportTypes") reporting_links: Optional[List[APILink]] = Field(default=None, description="A list of links to result reporting resources", alias="reportingLinks") result_url: Optional[StrictStr] = Field(default=None, description="The URL of the result", alias="resultUrl") start_time: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was started", alias="startTime") @@ -54,7 +55,7 @@ class ResultMetadata(BaseModel): test_name: Optional[StrictStr] = Field(default=None, description="The name of the test associated with the result", alias="testName") type: Optional[StrictStr] = Field(default=None, description="The application type of the result") user_tags: Optional[List[StrictStr]] = Field(default=None, description="The list of user defined tags", alias="userTags") - __properties: ClassVar[List[str]] = ["activeSession", "configUrl", "csvURL", "displayName", "download-all", "download-diagnostic", "endTime", "files", "id", "lastModified", "links", "markedAsDeleted", "owner", "ownerId", "pdfURL", "pinned", "reportingLinks", "resultUrl", "startTime", "tags", "testName", "type", "userTags"] + __properties: ClassVar[List[str]] = ["activeSession", "configUrl", "csvURL", "displayName", "download-all", "download-diagnostic", "endTime", "files", "id", "lastModified", "links", "markedAsDeleted", "owner", "ownerId", "pdfURL", "pinned", "reportTypes", "reportingLinks", "resultUrl", "startTime", "tags", "testName", "type", "userTags"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +95,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "config_url", @@ -101,6 +103,7 @@ def to_dict(self) -> Dict[str, Any]: "last_modified", "owner", "owner_id", + "report_types", "result_url", "start_time", "type", @@ -175,6 +178,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ownerId": obj.get("ownerId"), "pdfURL": obj.get("pdfURL"), "pinned": obj.get("pinned"), + "reportTypes": obj.get("reportTypes") if obj.get("reportTypes") is not None else [], "reportingLinks": [APILink.from_dict(_item) for _item in obj["reportingLinks"]] if obj.get("reportingLinks") is not None else None, "resultUrl": obj.get("resultUrl"), "startTime": obj.get("startTime"), diff --git a/cyperf/models/static_arp_entry.py b/cyperf/models/static_arp_entry.py index 880abf0..58f5927 100644 --- a/cyperf/models/static_arp_entry.py +++ b/cyperf/models/static_arp_entry.py @@ -64,8 +64,8 @@ def remote_mac_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('remote_mac_incr') @@ -74,8 +74,8 @@ def remote_mac_incr_validate_regular_expression(cls, value): if value is None: return value - if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)", value): - raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$)/") + if not re.match(r"^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)", value): + raise ValueError(r"must validate the regular expression /^$|(^([0-9A-Fa-f]{2}[:\-]){5}([0-9A-Fa-f]{2})$)/") return value @field_validator('static_arp_entry_name') diff --git a/cyperf/models/supported_group_tls13.py b/cyperf/models/supported_group_tls13.py index 3184772..6988337 100644 --- a/cyperf/models/supported_group_tls13.py +++ b/cyperf/models/supported_group_tls13.py @@ -30,24 +30,18 @@ class SupportedGroupTLS13(str, Enum): P_MINUS_256 = 'P-256' P_MINUS_384 = 'P-384' P_MINUS_521 = 'P-521' - X25519_KYBER768 = 'X25519_KYBER768' - X25519_KYBER512 = 'X25519_KYBER512' X25519_MLKEM512 = 'X25519_MLKEM512' X25519_MLKEM768 = 'X25519_MLKEM768' - KYBER768 = 'KYBER768' MLKEM768 = 'MLKEM768' - KYBER512 = 'KYBER512' MLKEM512 = 'MLKEM512' - KYBER1024 = 'KYBER1024' MLKEM1024 = 'MLKEM1024' - P384_KYBER768 = 'P384_KYBER768' - P256_KYBER512 = 'P256_KYBER512' - P384_MLKEM1024 = 'P384_MLKEM1024' + SECP384R1MLKEM1024 = 'SecP384r1MLKEM1024' X448_MLKEM768 = 'X448_MLKEM768' P384_MLKEM768 = 'P384_MLKEM768' - P256_MLKEM768 = 'P256_MLKEM768' + SECP256R1MLKEM768 = 'SecP256r1MLKEM768' P256_MLKEM512 = 'P256_MLKEM512' X25519 = 'X25519' + P521_MLKEM1024 = 'P521_MLKEM1024' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index 867119e..9da0bba 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -25,6 +25,7 @@ from cyperf.models.cipher_tls12 import CipherTLS12 from cyperf.models.cipher_tls13 import CipherTLS13 from cyperf.models.conflict import Conflict +from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.params import Params from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 @@ -46,6 +47,7 @@ class TLSProfile(BaseModel): dh_file: Optional[Params] = Field(default=None, alias="dhFile") get_tls_conflicts: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="get-tls-conflicts") _get_tls_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,GetTLSConflicts" }) + groups13: Optional[List[GroupTLS13]] = None immediate_close: Optional[StrictBool] = Field(default=None, description="The immediate FIN after close notify", alias="immediateClose") key_file: Optional[Params] = Field(default=None, description="The key file of the TLS profile.", alias="keyFile") key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS profile.", alias="keyFilePassword") @@ -66,7 +68,7 @@ class TLSProfile(BaseModel): tls13_enabled: Optional[StrictBool] = Field(default=None, alias="tls13Enabled") use_tls_profile: Optional[StrictBool] = Field(default=None, description="When disabled, the connection is not TLS secured (default: true).", alias="useTlsProfile") version: StrictStr = Field(description="The version of the TLS profile (default: NONE). Must be one of: NONE or TLSv1.2 or TLSv1.3.") - __properties: ClassVar[List[str]] = ["certificateFile", "cipher", "cipher12", "cipher13", "ciphers12", "ciphers13", "dhFile", "get-tls-conflicts", "immediateClose", "keyFile", "keyFilePassword", "links", "middleBoxEnabled", "profileId", "resolve-tls-conflicts", "sendCloseNotify", "sessionReuseCount", "sessionReuseMethod", "sessionReuseMethod12", "sessionReuseMethod13", "sniCertConfigs", "sniEnabled", "supportedGroups13", "tls12Enabled", "tls13Enabled", "useTlsProfile", "version"] + __properties: ClassVar[List[str]] = ["certificateFile", "cipher", "cipher12", "cipher13", "ciphers12", "ciphers13", "dhFile", "get-tls-conflicts", "groups13", "immediateClose", "keyFile", "keyFilePassword", "links", "middleBoxEnabled", "profileId", "resolve-tls-conflicts", "sendCloseNotify", "sessionReuseCount", "sessionReuseMethod", "sessionReuseMethod12", "sessionReuseMethod13", "sniCertConfigs", "sniEnabled", "supportedGroups13", "tls12Enabled", "tls13Enabled", "useTlsProfile", "version"] @field_validator('version') def version_validate_enum(cls, value): @@ -120,6 +122,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of dh_file if self.dh_file: _dict['dhFile'] = self.dh_file.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in groups13 (list) + _items = [] + if self.groups13: + for _item in self.groups13: + if _item: + _items.append(_item.to_dict()) + _dict['groups13'] = _items # override the default output from pydantic by calling `to_dict()` of key_file if self.key_file: _dict['keyFile'] = self.key_file.to_dict() @@ -166,6 +175,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ciphers13": obj.get("ciphers13"), "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, "get-tls-conflicts": obj.get("get-tls-conflicts") if obj.get("get-tls-conflicts") is not None else [], + "groups13": [GroupTLS13.from_dict(_item) for _item in obj["groups13"]] if obj.get("groups13") is not None else None, "immediateClose": obj.get("immediateClose"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), diff --git a/cyperf/models/tunnel_range.py b/cyperf/models/tunnel_range.py index 26360c1..db62bee 100644 --- a/cyperf/models/tunnel_range.py +++ b/cyperf/models/tunnel_range.py @@ -50,8 +50,8 @@ class TunnelRange(BaseModel): @field_validator('vendor_type') def vendor_type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5']): - raise ValueError("must be one of enum values ('CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5')") + if value not in set(['CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5', 'PAN_PAA']): + raise ValueError("must be one of enum values ('CISCO_ANY_CONNECT', 'PAN_GP', 'FORTINET', 'F5', 'PAN_PAA')") return value model_config = ConfigDict( diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index 4fb119c..35bdfd2 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -758,7 +758,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_controllers** -> GetControllers200Response get_controllers(take=take, skip=skip) +> GetControllers200Response get_controllers(take=take, skip=skip, include=include) @@ -796,9 +796,10 @@ with cyperf.ApiClient(configuration) as api_client: api_instance = cyperf.AgentsApi(api_client) take = 56 # int | The number of search results to return (optional) skip = 56 # int | The number of search results to skip (optional) + include = 'include_example' # str | Specifies if the sub-fields that are objects should be included. (optional) try: - api_response = api_instance.get_controllers(take=take, skip=skip) + api_response = api_instance.get_controllers(take=take, skip=skip, include=include) print("The response of AgentsApi->get_controllers:\n") pprint(api_response) except Exception as e: @@ -814,6 +815,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **take** | **int**| The number of search results to return | [optional] **skip** | **int**| The number of search results to skip | [optional] + **include** | **str**| Specifies if the sub-fields that are objects should be included. | [optional] ### Return type diff --git a/docs/AuthMethodType.md b/docs/AuthMethodType.md index 64b49f2..847bec4 100644 --- a/docs/AuthMethodType.md +++ b/docs/AuthMethodType.md @@ -10,6 +10,8 @@ The authentication method for TLS VPN tunnels. * `CERTIFICATE` (value: `'CERTIFICATE'`) +* `SAML` (value: `'SAML'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AuthSettings.md b/docs/AuthSettings.md index 0400128..0427965 100644 --- a/docs/AuthSettings.md +++ b/docs/AuthSettings.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **key_file_password** | **str** | The key file password of the TLS VPN authentication. | [optional] **passwords** | **List[str]** | | [optional] **passwords_param** | [**Params**](Params.md) | | [optional] +**simulated_id_p** | [**SimulatedIdP**](SimulatedIdP.md) | | [optional] **usernames** | **List[str]** | | [optional] **usernames_param** | [**Params**](Params.md) | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/CustomStat.md b/docs/CustomStat.md index 198b1ba..f573954 100644 --- a/docs/CustomStat.md +++ b/docs/CustomStat.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function** | **str** | The function of the custom statistic | [optional] +**is_rate** | **bool** | Indicates whether this statistic supports rate computation | [optional] **path** | **str** | The path of the custom statistic | [optional] ## Example diff --git a/docs/GroupTLS13.md b/docs/GroupTLS13.md new file mode 100644 index 0000000..e4c37ad --- /dev/null +++ b/docs/GroupTLS13.md @@ -0,0 +1,31 @@ +# GroupTLS13 + +A TLSv1.3 group with deprecation status. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_deprecated** | **bool** | | +**name** | [**SupportedGroupTLS13**](SupportedGroupTLS13.md) | | + +## Example + +```python +from cyperf.models.group_tls13 import GroupTLS13 + +# TODO update the JSON string below +json = "{}" +# create an instance of GroupTLS13 from a JSON string +group_tls13_instance = GroupTLS13.from_json(json) +# print the JSON string representation of the object +print(GroupTLS13.to_json()) + +# convert the object into a dict +group_tls13_dict = group_tls13_instance.to_dict() +# create an instance of GroupTLS13 from a dict +group_tls13_from_dict = GroupTLS13.from_dict(group_tls13_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ParameterMetadata.md b/docs/ParameterMetadata.md index 361506e..9a2c157 100644 --- a/docs/ParameterMetadata.md +++ b/docs/ParameterMetadata.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **legacy_names** | **List[str]** | The names of the equivalent parameters | [optional] **mandatory** | **bool** | The mandatory status of the parameter | [optional] **payload** | [**PayloadMetadata**](PayloadMetadata.md) | | [optional] +**playlist** | [**PlaylistMetadata**](PlaylistMetadata.md) | | [optional] **readonly** | **bool** | The read-only status of the parameter | [optional] **shared** | **bool** | The shared status of the parameter | [optional] **type** | **str** | The type of the parameter | [optional] diff --git a/docs/PlaylistMetadata.md b/docs/PlaylistMetadata.md new file mode 100644 index 0000000..140157c --- /dev/null +++ b/docs/PlaylistMetadata.md @@ -0,0 +1,30 @@ +# PlaylistMetadata + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**column** | **str** | The selected column | [optional] +**file_name** | **str** | The path of the file | [optional] + +## Example + +```python +from cyperf.models.playlist_metadata import PlaylistMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of PlaylistMetadata from a JSON string +playlist_metadata_instance = PlaylistMetadata.from_json(json) +# print the JSON string representation of the object +print(PlaylistMetadata.to_json()) + +# convert the object into a dict +playlist_metadata_dict = playlist_metadata_instance.to_dict() +# create an instance of PlaylistMetadata from a dict +playlist_metadata_from_dict = PlaylistMetadata.from_dict(playlist_metadata_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResultMetadata.md b/docs/ResultMetadata.md index 6a2300b..cf57077 100644 --- a/docs/ResultMetadata.md +++ b/docs/ResultMetadata.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **owner_id** | **str** | The unique identifier of the user who owns the result | [optional] [readonly] **pdf_url** | **str** | The URL of the cached pdf report | [optional] **pinned** | **bool** | A flag that indicates if the result's configuration is pinned | [optional] +**report_types** | **List[str]** | The report types supported for the result | [optional] [readonly] **reporting_links** | [**List[APILink]**](APILink.md) | A list of links to result reporting resources | [optional] **result_url** | **str** | The URL of the result | [optional] [readonly] **start_time** | **int** | A Unix timestamp that indicates when the test was started | [optional] [readonly] diff --git a/docs/SupportedGroupTLS13.md b/docs/SupportedGroupTLS13.md index 9f5da16..2bbaca1 100644 --- a/docs/SupportedGroupTLS13.md +++ b/docs/SupportedGroupTLS13.md @@ -10,42 +10,30 @@ The TLSv1.3 supported groups (default: P-256). * `P_MINUS_521` (value: `'P-521'`) -* `X25519_KYBER768` (value: `'X25519_KYBER768'`) - -* `X25519_KYBER512` (value: `'X25519_KYBER512'`) - * `X25519_MLKEM512` (value: `'X25519_MLKEM512'`) * `X25519_MLKEM768` (value: `'X25519_MLKEM768'`) -* `KYBER768` (value: `'KYBER768'`) - * `MLKEM768` (value: `'MLKEM768'`) -* `KYBER512` (value: `'KYBER512'`) - * `MLKEM512` (value: `'MLKEM512'`) -* `KYBER1024` (value: `'KYBER1024'`) - * `MLKEM1024` (value: `'MLKEM1024'`) -* `P384_KYBER768` (value: `'P384_KYBER768'`) - -* `P256_KYBER512` (value: `'P256_KYBER512'`) - -* `P384_MLKEM1024` (value: `'P384_MLKEM1024'`) +* `SECP384R1MLKEM1024` (value: `'SecP384r1MLKEM1024'`) * `X448_MLKEM768` (value: `'X448_MLKEM768'`) * `P384_MLKEM768` (value: `'P384_MLKEM768'`) -* `P256_MLKEM768` (value: `'P256_MLKEM768'`) +* `SECP256R1MLKEM768` (value: `'SecP256r1MLKEM768'`) * `P256_MLKEM512` (value: `'P256_MLKEM512'`) * `X25519` (value: `'X25519'`) +* `P521_MLKEM1024` (value: `'P521_MLKEM1024'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TLSProfile.md b/docs/TLSProfile.md index 4299987..10f7701 100644 --- a/docs/TLSProfile.md +++ b/docs/TLSProfile.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **ciphers13** | [**List[CipherTLS13]**](CipherTLS13.md) | | [optional] **dh_file** | [**Params**](Params.md) | | [optional] **get_tls_conflicts** | **List[bytearray]** | | [optional] +**groups13** | [**List[GroupTLS13]**](GroupTLS13.md) | | [optional] **immediate_close** | **bool** | The immediate FIN after close notify | [optional] **key_file** | [**Params**](Params.md) | The key file of the TLS profile. | [optional] **key_file_password** | **str** | The key file password of the TLS profile. | [optional] diff --git a/test/test_application.py b/test/test_application.py index 7e32b8c..8e870d8 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -486,6 +486,11 @@ def make_instance(self, include_optional) -> Application: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -574,6 +579,11 @@ def make_instance(self, include_optional) -> Application: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_application_type.py b/test/test_application_type.py index 96ee8b2..e1ddf7f 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -158,6 +158,7 @@ def make_instance(self, include_optional) -> ApplicationType: custom_stats = [ cyperf.models.custom_stat.CustomStat( function = '', + is_rate = True, path = '', ) ], data_types = [ @@ -264,6 +265,9 @@ def make_instance(self, include_optional) -> ApplicationType: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_attack.py b/test/test_attack.py index 4123d93..45c26c3 100644 --- a/test/test_attack.py +++ b/test/test_attack.py @@ -486,6 +486,11 @@ def make_instance(self, include_optional) -> Attack: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -561,6 +566,11 @@ def make_instance(self, include_optional) -> Attack: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py index 1db12f8..8fbb296 100644 --- a/test/test_auth_profile.py +++ b/test/test_auth_profile.py @@ -147,6 +147,9 @@ def make_instance(self, include_optional) -> AuthProfile: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_auth_settings.py b/test/test_auth_settings.py index 30392d8..3f098c6 100644 --- a/test/test_auth_settings.py +++ b/test/test_auth_settings.py @@ -413,6 +413,27 @@ def make_instance(self, include_optional) -> AuthSettings: ], supports_dynamic_payload = True, upload_url = '', ), + simulated_id_p = cyperf.models.simulated_id_p.SimulatedIdP( + assertion_signature = True, + audience_uri = '', + cert_config = null, + name_id_format = null, + response_signature = True, + signature_algorithm = null, + single_sign_on_url = '', + xml_metadata = [ + 'YQ==' + ], + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), usernames = [ '' ], diff --git a/test/test_cisco_any_connect_settings.py b/test/test_cisco_any_connect_settings.py index 465bd02..d928a81 100644 --- a/test/test_cisco_any_connect_settings.py +++ b/test/test_cisco_any_connect_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> CiscoAnyConnectSettings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], @@ -125,6 +126,11 @@ def make_instance(self, include_optional) -> CiscoAnyConnectSettings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_command.py b/test/test_command.py index 485799f..82a2036 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -118,6 +118,9 @@ def make_instance(self, include_optional) -> Command: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_custom_stat.py b/test/test_custom_stat.py index 2fd89b9..c072a09 100644 --- a/test/test_custom_stat.py +++ b/test/test_custom_stat.py @@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> CustomStat: if include_optional: return CustomStat( function = '', + is_rate = True, path = '' ) else: diff --git a/test/test_dtls_settings.py b/test/test_dtls_settings.py index 235f214..5a7d9d9 100644 --- a/test/test_dtls_settings.py +++ b/test/test_dtls_settings.py @@ -51,6 +51,11 @@ def make_instance(self, include_optional) -> DTLSSettings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_f5_settings.py b/test/test_f5_settings.py index d82e209..b51b8fa 100644 --- a/test/test_f5_settings.py +++ b/test/test_f5_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> F5Settings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], @@ -120,6 +121,11 @@ def make_instance(self, include_optional) -> F5Settings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_fortinet_settings.py b/test/test_fortinet_settings.py index 686bd84..ce0b7bb 100644 --- a/test/test_fortinet_settings.py +++ b/test/test_fortinet_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> FortinetSettings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], @@ -120,6 +121,11 @@ def make_instance(self, include_optional) -> FortinetSettings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index aa5c159..d61eabc 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -151,6 +151,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp custom_stats = [ cyperf.models.custom_stat.CustomStat( function = '', + is_rate = True, path = '', ) ], data_types = [ diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index 806f1a5..4942311 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -151,6 +151,7 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp custom_stats = [ cyperf.models.custom_stat.CustomStat( function = '', + is_rate = True, path = '', ) ], data_types = [ diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py index 97be044..37b462c 100644 --- a/test/test_get_result_stats200_response.py +++ b/test/test_get_result_stats200_response.py @@ -74,6 +74,9 @@ def make_instance(self, include_optional) -> GetResultStats200Response: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py index 7dbc345..e55fcdd 100644 --- a/test/test_get_result_stats200_response_one_of.py +++ b/test/test_get_result_stats200_response_one_of.py @@ -74,6 +74,9 @@ def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_get_results200_response.py b/test/test_get_results200_response.py index 279668e..ba5dbda 100644 --- a/test/test_get_results200_response.py +++ b/test/test_get_results200_response.py @@ -73,6 +73,9 @@ def make_instance(self, include_optional) -> GetResults200Response: owner_id = '', pdf_url = '', pinned = True, + report_types = [ + '' + ], reporting_links = [ cyperf.models.api_link.APILink( content_type = '', diff --git a/test/test_get_results200_response_one_of.py b/test/test_get_results200_response_one_of.py index 95acfd6..fe1e224 100644 --- a/test/test_get_results200_response_one_of.py +++ b/test/test_get_results200_response_one_of.py @@ -73,6 +73,9 @@ def make_instance(self, include_optional) -> GetResults200ResponseOneOf: owner_id = '', pdf_url = '', pinned = True, + report_types = [ + '' + ], reporting_links = [ cyperf.models.api_link.APILink( content_type = '', diff --git a/test/test_group_tls13.py b/test/test_group_tls13.py new file mode 100644 index 0000000..0b12753 --- /dev/null +++ b/test/test_group_tls13.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.group_tls13 import GroupTLS13 + +class TestGroupTLS13(unittest.TestCase): + """GroupTLS13 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GroupTLS13: + """Test GroupTLS13 + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GroupTLS13` + """ + model = GroupTLS13() + if include_optional: + return GroupTLS13( + is_deprecated = True, + name = 'P-256' + ) + else: + return GroupTLS13( + is_deprecated = True, + name = 'P-256', + ) + """ + + def testGroupTLS13(self): + """Test GroupTLS13""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pangp_settings.py b/test/test_pangp_settings.py index b89e576..de1f305 100644 --- a/test/test_pangp_settings.py +++ b/test/test_pangp_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> PANGPSettings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], @@ -109,6 +110,11 @@ def make_instance(self, include_optional) -> PANGPSettings: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_parameter.py b/test/test_parameter.py index 5e4425c..e1359db 100644 --- a/test/test_parameter.py +++ b/test/test_parameter.py @@ -70,6 +70,9 @@ def make_instance(self, include_optional) -> Parameter: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_parameter_metadata.py b/test/test_parameter_metadata.py index 64e15c4..563d577 100644 --- a/test/test_parameter_metadata.py +++ b/test/test_parameter_metadata.py @@ -61,6 +61,9 @@ def make_instance(self, include_optional) -> ParameterMetadata: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_playlist_metadata.py b/test/test_playlist_metadata.py new file mode 100644 index 0000000..f5c3ca0 --- /dev/null +++ b/test/test_playlist_metadata.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.playlist_metadata import PlaylistMetadata + +class TestPlaylistMetadata(unittest.TestCase): + """PlaylistMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlaylistMetadata: + """Test PlaylistMetadata + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PlaylistMetadata` + """ + model = PlaylistMetadata() + if include_optional: + return PlaylistMetadata( + column = '', + file_name = '' + ) + else: + return PlaylistMetadata( + ) + """ + + def testPlaylistMetadata(self): + """Test PlaylistMetadata""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_quic_profile.py b/test/test_quic_profile.py index 24a5c88..904dfe4 100644 --- a/test/test_quic_profile.py +++ b/test/test_quic_profile.py @@ -51,6 +51,11 @@ def make_instance(self, include_optional) -> QUICProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -129,6 +134,11 @@ def make_instance(self, include_optional) -> QUICProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_result_metadata.py b/test/test_result_metadata.py index 58163aa..f11cd7e 100644 --- a/test/test_result_metadata.py +++ b/test/test_result_metadata.py @@ -71,6 +71,9 @@ def make_instance(self, include_optional) -> ResultMetadata: owner_id = '', pdf_url = '', pinned = True, + report_types = [ + '' + ], reporting_links = [ cyperf.models.api_link.APILink( content_type = '', diff --git a/test/test_stats_result.py b/test/test_stats_result.py index 0f8c171..e1e4aa4 100644 --- a/test/test_stats_result.py +++ b/test/test_stats_result.py @@ -72,6 +72,9 @@ def make_instance(self, include_optional) -> StatsResult: file_name = '', file_type = '', file_url = '', ), + playlist = cyperf.models.playlist_metadata.PlaylistMetadata( + column = '', + file_name = '', ), readonly = True, shared = True, type = '', diff --git a/test/test_tls_profile.py b/test/test_tls_profile.py index e9b4c48..8d807fc 100644 --- a/test/test_tls_profile.py +++ b/test/test_tls_profile.py @@ -234,6 +234,11 @@ def make_instance(self, include_optional) -> TLSProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = cyperf.models.params.Params( array_element_type = '', diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py index fe38473..fc02383 100644 --- a/test/test_transport_profile.py +++ b/test/test_transport_profile.py @@ -175,6 +175,11 @@ def make_instance(self, include_optional) -> TransportProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -398,6 +403,11 @@ def make_instance(self, include_optional) -> TransportProfile: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py index c98e998..a4ac4ef 100644 --- a/test/test_transport_profile_base.py +++ b/test/test_transport_profile_base.py @@ -175,6 +175,11 @@ def make_instance(self, include_optional) -> TransportProfileBase: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', @@ -398,6 +403,11 @@ def make_instance(self, include_optional) -> TransportProfileBase: get_tls_conflicts = [ 'YQ==' ], + groups13 = [ + cyperf.models.group_tls13.GroupTLS13( + is_deprecated = True, + name = 'P-256', ) + ], immediate_close = True, key_file = null, key_file_password = '', diff --git a/test/test_tunnel_settings.py b/test/test_tunnel_settings.py index 587d9b4..0bb97f3 100644 --- a/test/test_tunnel_settings.py +++ b/test/test_tunnel_settings.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> TunnelSettings: '' ], passwords_param = null, + simulated_id_p = null, usernames = [ '' ], From 7b39904ce324a6319a116b42877ab2317a4fe442 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 22 Jan 2026 03:26:06 -0700 Subject: [PATCH 23/53] Pull request #53: ISGAPPSEC2-36315 assign-by-id-or-by-port-do-not-work Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-36315-assign-by-id-or-by-port-do-not-work-they-complain-about-tag to main Squashed commit of the following: commit 4401c75675463cadb452a22579928732a75622fb Author: iustmitu Date: Wed Jan 21 16:44:57 2026 +0200 regenerated wrapper --- cyperf/models/agent_assignments.py | 2 +- docs/AgentAssignments.md | 2 +- test/test_agent_assignments.py | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index 230987a..4ab7d43 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -33,7 +33,7 @@ class AgentAssignments(BaseModel): """ # noqa: E501 by_id: Optional[List[AgentAssignmentDetails]] = Field(default=None, description="The agents statically assigned to the current test configuration.", alias="ByID") by_port: Optional[List[AgentAssignmentByPort]] = Field(default=None, description="The ports assigned to the current test configuration.", alias="ByPort") - by_tag: List[StrictStr] = Field(description="The tags according to which the agents are dynamically assigned.", alias="ByTag") + by_tag: Optional[List[StrictStr]] = Field(default=None, description="The tags according to which the agents are dynamically assigned.", alias="ByTag") links: Optional[List[APILink]] = None __properties: ClassVar[List[str]] = ["ByID", "ByPort", "ByTag", "links"] diff --git a/docs/AgentAssignments.md b/docs/AgentAssignments.md index 8984062..2b0cca7 100644 --- a/docs/AgentAssignments.md +++ b/docs/AgentAssignments.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **by_id** | [**List[AgentAssignmentDetails]**](AgentAssignmentDetails.md) | The agents statically assigned to the current test configuration. | [optional] **by_port** | [**List[AgentAssignmentByPort]**](AgentAssignmentByPort.md) | The ports assigned to the current test configuration. | [optional] -**by_tag** | **List[str]** | The tags according to which the agents are dynamically assigned. | +**by_tag** | **List[str]** | The tags according to which the agents are dynamically assigned. | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] ## Example diff --git a/test/test_agent_assignments.py b/test/test_agent_assignments.py index 14c3c92..31cb9e9 100644 --- a/test/test_agent_assignments.py +++ b/test/test_agent_assignments.py @@ -58,9 +58,6 @@ def make_instance(self, include_optional) -> AgentAssignments: ) else: return AgentAssignments( - by_tag = [ - '' - ], ) """ From 6425e50bf7138cb7e708a7d4cf9201b43e2bd64c Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Tue, 27 Jan 2026 07:05:27 -0700 Subject: [PATCH 24/53] Pull request #54: compatible wrapper with python 3.8 Merge in ISGAPPSEC/cyperf-api-wrapper from compatible-wrapper-with-python-3.8 to main Squashed commit of the following: commit 79b2e7cec15f12bc207a1408e2bd580ca038f06a Author: iustmitu Date: Tue Jan 27 14:45:49 2026 +0200 fixed sample scripts commit 9ae193e70db6468f8f6db9982bf70c79870c37c9 Author: iustmitu Date: Mon Jan 26 16:56:31 2026 +0200 regenerate wrapper after conflicts commit d29e51b29707bb071f30f76879eb6d1752c57248 Merge: 8694c3f 7b39904 Author: iustmitu Date: Mon Jan 26 16:49:29 2026 +0200 Merge branch 'main' of https://bitbucket.it.keysight.com/scm/isgappsec/cyperf-api-wrapper into compatible-wrapper-with-python-3.8 commit 8694c3fd04b5da8fef7912396cf53e786cc9583b Author: iustmitu Date: Mon Jan 26 16:37:23 2026 +0200 remove endlines commit 313627a6fc726b9c772e6fed92be2dff38e402b3 Author: iustmitu Date: Mon Jan 26 15:49:13 2026 +0200 regenerated wrapper commit 8827e5c9cd44a07ca3a826077eb96e5c6228ced9 Author: iustmitu Date: Thu Dec 4 13:12:01 2025 +0200 compatible wrapper with python 3.8 --- cyperf/api_client.py | 31 +++++++++++++++---- cyperf/models/action.py | 8 ++--- cyperf/models/action_base.py | 8 ++--- cyperf/models/action_input.py | 6 ++-- cyperf/models/action_input_find_param.py | 4 +-- cyperf/models/action_metadata.py | 6 ++-- cyperf/models/activation_code_info.py | 2 +- cyperf/models/activation_code_list_request.py | 2 +- cyperf/models/activation_code_request.py | 2 +- cyperf/models/add_action_info.py | 2 +- cyperf/models/add_input.py | 6 ++-- cyperf/models/advanced_settings.py | 2 +- cyperf/models/agent.py | 8 ++--- cyperf/models/agent_assignment_by_port.py | 4 +-- cyperf/models/agent_assignment_details.py | 4 +-- cyperf/models/agent_assignments.py | 8 ++--- cyperf/models/agent_cpu_info.py | 2 +- cyperf/models/agent_features.py | 2 +- cyperf/models/agent_release.py | 2 +- cyperf/models/agent_reservation.py | 2 +- cyperf/models/agent_to_be_rebooted.py | 2 +- cyperf/models/agents_group.py | 2 +- cyperf/models/api_link.py | 2 +- cyperf/models/app_exchange.py | 2 +- cyperf/models/app_flow.py | 6 ++-- cyperf/models/app_flow_desc.py | 2 +- cyperf/models/app_flow_input.py | 2 +- cyperf/models/app_flow_input_find_param.py | 2 +- cyperf/models/app_id.py | 2 +- cyperf/models/app_mode.py | 2 +- cyperf/models/application.py | 18 +++++------ cyperf/models/application_profile.py | 12 +++---- cyperf/models/application_type.py | 18 +++++------ cyperf/models/appsec_app.py | 4 +-- cyperf/models/appsec_app_metadata.py | 8 ++--- cyperf/models/appsec_attack.py | 4 +-- cyperf/models/appsec_config.py | 4 +-- cyperf/models/archive_info.py | 2 +- cyperf/models/array_v2_element_metadata.py | 2 +- cyperf/models/async_context.py | 2 +- cyperf/models/attack.py | 18 +++++------ cyperf/models/attack_action.py | 8 ++--- cyperf/models/attack_metadata.py | 6 ++-- .../models/attack_objectives_and_timeline.py | 6 ++-- cyperf/models/attack_profile.py | 12 +++---- cyperf/models/attack_timeline_segment.py | 2 +- cyperf/models/attack_track.py | 8 ++--- cyperf/models/auth_profile.py | 12 +++---- cyperf/models/auth_profile_metadata.py | 2 +- cyperf/models/auth_settings.py | 4 +-- cyperf/models/authenticate200_response.py | 2 +- cyperf/models/authentication_settings.py | 4 +-- cyperf/models/broker.py | 2 +- cyperf/models/capture_input.py | 4 +-- cyperf/models/capture_input_find_param.py | 4 +-- cyperf/models/capture_settings.py | 2 +- cyperf/models/category.py | 4 +-- cyperf/models/category_filter.py | 2 +- cyperf/models/category_value.py | 2 +- cyperf/models/cert_config.py | 6 ++-- cyperf/models/certificate.py | 2 +- cyperf/models/chassis_info.py | 2 +- cyperf/models/choice.py | 2 +- cyperf/models/cisco_any_connect_settings.py | 4 +-- cyperf/models/cisco_encapsulation.py | 4 +-- .../models/clear_ports_ownership_operation.py | 4 +-- cyperf/models/command.py | 8 ++--- cyperf/models/command_metadata.py | 6 ++-- cyperf/models/compute_node.py | 8 ++--- cyperf/models/config.py | 12 +++---- cyperf/models/config_category.py | 6 ++-- cyperf/models/config_id.py | 2 +- cyperf/models/config_metadata.py | 6 ++-- cyperf/models/config_sub_category.py | 2 +- cyperf/models/config_validation.py | 6 ++-- cyperf/models/conflict.py | 2 +- cyperf/models/connection.py | 4 +-- cyperf/models/consumer.py | 2 +- cyperf/models/controller.py | 8 ++--- cyperf/models/counted_feature_consumer.py | 2 +- cyperf/models/counted_feature_stats.py | 4 +-- cyperf/models/create_app_operation.py | 6 ++-- .../create_app_or_attack_operation_input.py | 4 +-- cyperf/models/custom_dashboards.py | 6 ++-- cyperf/models/custom_import_handler.py | 2 +- cyperf/models/custom_stat.py | 2 +- cyperf/models/dashboard.py | 2 +- cyperf/models/data_type.py | 4 +-- cyperf/models/data_type_values_inner.py | 2 +- cyperf/models/definition.py | 2 +- cyperf/models/delete_input.py | 2 +- cyperf/models/diagnostic_component.py | 6 ++-- cyperf/models/diagnostic_component_context.py | 6 ++-- cyperf/models/diagnostic_options.py | 2 +- cyperf/models/disk_usage.py | 6 ++-- cyperf/models/dns_resolver.py | 6 ++-- cyperf/models/dns_server.py | 2 +- cyperf/models/dtls_settings.py | 4 +-- cyperf/models/dut_network.py | 4 +-- cyperf/models/edit_action_input.py | 4 +-- cyperf/models/edit_app_operation.py | 16 +++++----- cyperf/models/effective_ports.py | 2 +- cyperf/models/emulated_router.py | 6 ++-- cyperf/models/emulated_router_range.py | 4 +-- cyperf/models/emulated_subnet_config.py | 2 +- cyperf/models/endpoint.py | 4 +-- cyperf/models/entitlement_code_info.py | 4 +-- cyperf/models/entitlement_code_request.py | 2 +- cyperf/models/enum.py | 4 +-- cyperf/models/error_description.py | 2 +- cyperf/models/error_response.py | 2 +- cyperf/models/esp_over_udp_settings.py | 4 +-- cyperf/models/eth_range.py | 6 ++-- cyperf/models/eula_details.py | 2 +- cyperf/models/eula_summary.py | 2 +- cyperf/models/exchange.py | 2 +- cyperf/models/exchange_order.py | 2 +- cyperf/models/exchange_payload.py | 2 +- cyperf/models/expected_disk_space.py | 2 +- cyperf/models/expected_disk_space_message.py | 2 +- .../models/expected_disk_space_pretty_size.py | 2 +- cyperf/models/expected_disk_space_size.py | 2 +- cyperf/models/export_all_operation.py | 4 +-- cyperf/models/export_apps_operation_input.py | 4 +-- cyperf/models/export_files_operation_input.py | 15 ++++----- cyperf/models/export_files_request.py | 2 +- cyperf/models/export_package_operation.py | 2 +- cyperf/models/external_resource_info.py | 2 +- cyperf/models/f5_encapsulation.py | 4 +-- cyperf/models/f5_settings.py | 4 +-- cyperf/models/feature.py | 2 +- cyperf/models/feature_reservation.py | 2 +- cyperf/models/feature_reservation_reserve.py | 2 +- cyperf/models/file_metadata.py | 2 +- cyperf/models/file_value.py | 2 +- cyperf/models/filter.py | 2 +- cyperf/models/filtered_stat.py | 4 +-- cyperf/models/find_param_matches_operation.py | 4 +-- cyperf/models/fortinet_encapsulation.py | 4 +-- cyperf/models/fortinet_settings.py | 4 +-- cyperf/models/fulfillment_request.py | 2 +- cyperf/models/generate_all_operation.py | 2 +- .../models/generate_csv_reports_operation.py | 4 +-- .../models/generate_pdf_report_operation.py | 2 +- cyperf/models/generic_file.py | 4 +-- cyperf/models/get_agents200_response.py | 4 +++ .../models/get_agents200_response_one_of.py | 4 +-- cyperf/models/get_agents_tags200_response.py | 4 +++ .../get_agents_tags200_response_one_of.py | 4 +-- cyperf/models/get_apps_operation.py | 6 ++-- .../get_async_operation_result200_response.py | 12 +++++++ cyperf/models/get_attacks_operation.py | 6 ++-- cyperf/models/get_brokers200_response.py | 4 +++ .../models/get_brokers200_response_one_of.py | 4 +-- cyperf/models/get_categories_operation.py | 4 +-- ...fig_categorie_subcategories200_response.py | 4 +++ ...egorie_subcategories200_response_one_of.py | 4 +-- .../get_config_categories200_response.py | 4 +++ ...et_config_categories200_response_one_of.py | 4 +-- cyperf/models/get_configs200_response.py | 4 +++ .../models/get_configs200_response_one_of.py | 4 +-- cyperf/models/get_controllers200_response.py | 4 +++ .../get_controllers200_response_one_of.py | 4 +-- .../get_disk_usage_consumers200_response.py | 4 +++ ...disk_usage_consumers200_response_one_of.py | 4 +-- ...ense_async_operation_result200_response.py | 4 +++ .../models/get_license_servers200_response.py | 4 +++ .../get_license_servers200_response_one_of.py | 4 +-- .../models/get_notifications200_response.py | 4 +++ .../get_notifications200_response_one_of.py | 4 +-- ...resources_application_types200_response.py | 4 +++ ...es_application_types200_response_one_of.py | 4 +-- .../models/get_resources_apps200_response.py | 4 +++ .../get_resources_apps200_response_one_of.py | 4 +-- .../get_resources_attacks200_response.py | 4 +++ ...et_resources_attacks200_response_one_of.py | 4 +-- ...get_resources_auth_profiles200_response.py | 4 +++ ...ources_auth_profiles200_response_one_of.py | 4 +-- .../get_resources_certificates200_response.py | 4 +++ ...sources_certificates200_response_one_of.py | 4 +-- ...es_custom_import_operations200_response.py | 4 +++ ...om_import_operations200_response_one_of.py | 4 +-- ...get_resources_http_profiles200_response.py | 4 +++ ...ources_http_profiles200_response_one_of.py | 4 +-- cyperf/models/get_result_files200_response.py | 4 +++ .../get_result_files200_response_one_of.py | 4 +-- cyperf/models/get_result_stats200_response.py | 4 +++ .../get_result_stats200_response_one_of.py | 4 +-- cyperf/models/get_results200_response.py | 4 +++ .../models/get_results200_response_one_of.py | 4 +-- cyperf/models/get_results_tags200_response.py | 4 +++ .../get_results_tags200_response_one_of.py | 4 +-- cyperf/models/get_session_meta200_response.py | 4 +++ .../get_session_meta200_response_one_of.py | 4 +-- cyperf/models/get_sessions200_response.py | 4 +++ .../models/get_sessions200_response_one_of.py | 4 +-- .../models/get_stats_plugins200_response.py | 4 +++ .../get_stats_plugins200_response_one_of.py | 4 +-- cyperf/models/get_strikes_operation.py | 6 ++-- cyperf/models/group_tls13.py | 2 +- cyperf/models/health_check_config.py | 6 ++-- cyperf/models/health_issue.py | 2 +- cyperf/models/host_id.py | 2 +- cyperf/models/http_profile.py | 6 ++-- cyperf/models/http_req_meta.py | 2 +- cyperf/models/http_res_meta.py | 2 +- cyperf/models/import_all_operation.py | 4 +-- .../models/import_offline_license_result.py | 2 +- cyperf/models/ingest_operation.py | 2 +- cyperf/models/inner_ip_range.py | 2 +- cyperf/models/interface.py | 4 +-- cyperf/models/ip_mask.py | 2 +- cyperf/models/ip_network.py | 14 ++++----- cyperf/models/ip_range.py | 4 +-- cyperf/models/ip_sec_range.py | 4 +-- cyperf/models/ip_sec_stack.py | 4 +-- cyperf/models/license.py | 6 ++-- cyperf/models/license_receipt.py | 4 +-- cyperf/models/license_server_metadata.py | 2 +- cyperf/models/link.py | 2 +- cyperf/models/load_config_operation.py | 2 +- cyperf/models/local_subnet_config.py | 2 +- cyperf/models/log_config.py | 2 +- cyperf/models/mac_dtls_stack.py | 4 +-- cyperf/models/marked_as_deleted.py | 2 +- cyperf/models/md2_tlv.py | 2 +- cyperf/models/media_file.py | 6 ++-- cyperf/models/media_track.py | 2 +- cyperf/models/metadata.py | 6 ++-- cyperf/models/name_server.py | 2 +- cyperf/models/network_mapping.py | 2 +- cyperf/models/network_meshing.py | 2 +- cyperf/models/network_profile.py | 8 ++--- cyperf/models/network_segment_base.py | 2 +- cyperf/models/nodes_by_controller.py | 2 +- cyperf/models/nodes_power_cycle_operation.py | 4 +-- cyperf/models/notification.py | 2 +- cyperf/models/notification_counts.py | 2 +- cyperf/models/ntp_info.py | 2 +- cyperf/models/objective_value_entry.py | 2 +- cyperf/models/objectives_and_timeline.py | 8 ++--- cyperf/models/open_api_definitions.py | 4 +-- cyperf/models/p1_config.py | 2 +- cyperf/models/p2_config.py | 2 +- cyperf/models/pair.py | 2 +- cyperf/models/pangp_encapsulation.py | 4 +-- cyperf/models/pangp_settings.py | 4 +-- cyperf/models/param_metadata.py | 2 +- cyperf/models/param_metadata_type_info.py | 2 +- .../param_metadata_type_info_array_v2.py | 4 +-- ...adata_type_info_array_v2_elements_inner.py | 2 +- cyperf/models/param_metadata_type_info_int.py | 2 +- .../models/param_metadata_type_info_media.py | 2 +- .../models/param_metadata_type_info_string.py | 2 +- cyperf/models/parameter.py | 4 +-- cyperf/models/parameter_match.py | 2 +- cyperf/models/parameter_meta.py | 4 +-- cyperf/models/parameter_metadata.py | 4 +-- cyperf/models/params.py | 6 ++-- cyperf/models/params_enum.py | 4 +-- cyperf/models/payload_meta.py | 2 +- cyperf/models/payload_metadata.py | 2 +- cyperf/models/pep_dut.py | 6 ++-- cyperf/models/playlist_metadata.py | 2 +- cyperf/models/plugin.py | 2 +- cyperf/models/plugin_stats.py | 4 +-- cyperf/models/port.py | 2 +- cyperf/models/port_settings.py | 4 +-- cyperf/models/ports_by_controller.py | 4 +-- cyperf/models/ports_by_node.py | 2 +- cyperf/models/prepare_test_operation.py | 2 +- cyperf/models/prepared_test_options.py | 2 +- cyperf/models/protected_subnet_config.py | 2 +- cyperf/models/quic_profile.py | 4 +-- cyperf/models/reboot_operation_input.py | 4 +-- cyperf/models/reboot_ports_operation.py | 4 +-- cyperf/models/reference.py | 2 +- cyperf/models/regex_match.py | 2 +- cyperf/models/release_operation_input.py | 4 +-- cyperf/models/remote_access.py | 2 +- cyperf/models/remote_subnet_config.py | 2 +- cyperf/models/rename_input.py | 2 +- cyperf/models/reorder_action_input.py | 2 +- cyperf/models/reorder_exchanges_input.py | 4 +-- cyperf/models/replay_capture.py | 6 ++-- cyperf/models/required_file_types.py | 2 +- cyperf/models/reserve_operation_input.py | 6 ++-- cyperf/models/result_file_metadata.py | 2 +- cyperf/models/result_metadata.py | 8 ++--- cyperf/models/results_group.py | 2 +- cyperf/models/rtp_profile.py | 2 +- cyperf/models/rtp_profile_meta.py | 2 +- cyperf/models/save_config_operation.py | 2 +- cyperf/models/scenario.py | 10 +++--- cyperf/models/secondary_objective.py | 2 +- cyperf/models/selected_env.py | 4 +-- cyperf/models/session.py | 6 ++-- .../models/set_aggregation_mode_operation.py | 4 +-- cyperf/models/set_app_operation.py | 2 +- .../models/set_dpdk_mode_operation_input.py | 2 +- cyperf/models/set_link_state_operation.py | 4 +-- cyperf/models/set_ntp_operation_input.py | 2 +- cyperf/models/simulated_id_p.py | 4 +-- cyperf/models/snapshot.py | 8 +++-- cyperf/models/sort_body_field.py | 2 +- cyperf/models/specific_objective.py | 6 ++-- ...start_agents_batch_delete_request_inner.py | 2 +- cyperf/models/stateless_stream.py | 4 +-- cyperf/models/static_arp_entry.py | 2 +- cyperf/models/stats_result.py | 6 ++-- cyperf/models/steady_segment.py | 2 +- cyperf/models/step_segment.py | 2 +- cyperf/models/stream_profile.py | 2 +- cyperf/models/system_info.py | 4 +-- cyperf/models/tcp_profile.py | 2 +- cyperf/models/test_info.py | 4 +-- cyperf/models/test_state_changed_operation.py | 2 +- cyperf/models/time_value.py | 2 +- cyperf/models/timeline_segment.py | 6 ++-- cyperf/models/timeline_segment_base.py | 2 +- cyperf/models/timeline_segment_union.py | 2 +- cyperf/models/timers.py | 2 +- cyperf/models/tls_profile.py | 10 +++--- cyperf/models/track.py | 8 ++--- cyperf/models/traffic_agent_info.py | 2 +- cyperf/models/traffic_profile_base.py | 4 +-- cyperf/models/traffic_settings.py | 4 +-- cyperf/models/transport_profile.py | 4 +-- cyperf/models/transport_profile_base.py | 4 +-- cyperf/models/tunnel_range.py | 4 +-- cyperf/models/tunnel_settings.py | 4 +-- cyperf/models/tunnel_stack.py | 4 +-- cyperf/models/type_array_v2_metadata.py | 4 +-- cyperf/models/type_info_metadata.py | 2 +- cyperf/models/type_int_metadata.py | 2 +- cyperf/models/type_media_metadata.py | 2 +- cyperf/models/type_string_metadata.py | 2 +- cyperf/models/udp_profile.py | 2 +- cyperf/models/update_network_mapping.py | 2 +- cyperf/models/update_port_tags_operation.py | 4 +-- cyperf/models/validation_message.py | 2 +- cyperf/models/version.py | 2 +- cyperf/models/vlan_range.py | 6 ++-- cyperf/models/vx_lan_range.py | 8 ++--- cyperf/models/vx_lan_stack.py | 4 +-- cyperf/models/vx_lanid.py | 2 +- samples/sample_attack_based_script.py | 9 +++--- .../sample_create_save_and_export_config.py | 9 +++--- .../sample_load_and_run_precanned_config.py | 9 +++--- 349 files changed, 763 insertions(+), 632 deletions(-) diff --git a/cyperf/api_client.py b/cyperf/api_client.py index 2434de8..2df7bff 100644 --- a/cyperf/api_client.py +++ b/cyperf/api_client.py @@ -543,21 +543,40 @@ def __deserialize(self, data, klass): m = re.match(r'List\[(.*)]', klass) assert m is not None, "Malformed List type definition" sub_kls = m.group(1) - return [self.__deserialize(sub_data, sub_kls) + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] elif klass.startswith('Dict['): m = re.match(r'Dict\[([^,]*), (.*)]', klass) assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) - return {k: self.__deserialize(v, sub_kls) + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} - elif klass.startswith('typing.Optional['): - m = re.match(r'typing.Optional\[([a-zA-Z0-9_]+\.)*(.*)]', klass) - assert m is not None, "Malformed Optional type definition" + elif klass.startswith('typing.List['): + m = re.match(r'typing\.List\[(.*)]', klass) + assert m is not None, "Malformed typing.List type definition" + sub_kls = m.group(1) + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] + + elif klass.startswith('typing.Dict['): + m = re.match(r'typing\.Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed typing.Dict type definition" sub_kls = m.group(2) - klass = sub_kls + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} + + elif klass.startswith('typing.Optional[') or klass.startswith('Optional['): + m = re.match(r'(?:typing\.)?Optional\[(.*)]', klass) + assert m is not None, "Malformed Optional type definition" + klass = m.group(1) + continue + + elif klass.startswith('typing.Union[') or klass.startswith('Union['): + m = re.match(r'(?:typing\.)?Union\[(.*),\s*NoneType]', klass) + assert m is not None, "Malformed Union type definition" + klass = m.group(1) + continue + else: break diff --git a/cyperf/models/action.py b/cyperf/models/action.py index ea3a2c8..8626b2c 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index 8b4808b..4a86892 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_input.py b/cyperf/models/action_input.py index 176e258..20d1342 100644 --- a/cyperf/models/action_input.py +++ b/cyperf/models/action_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,9 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInput.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "Name": obj.get("Name"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/action_input_find_param.py b/cyperf/models/action_input_find_param.py index 60a9993..b62a8c1 100644 --- a/cyperf/models/action_input_find_param.py +++ b/cyperf/models/action_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input_find_param import CaptureInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Captures": [CaptureInputFindParam.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInputFindParam.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "Name": obj.get("Name") , "links": obj.get("links") diff --git a/cyperf/models/action_metadata.py b/cyperf/models/action_metadata.py index 78dab27..a1bcfe1 100644 --- a/cyperf/models/action_metadata.py +++ b/cyperf/models/action_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow import AppFlow from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -105,10 +105,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "FlowIndex": obj.get("FlowIndex"), - "Flows": [AppFlow.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None, + "Flows": ( [AppFlow.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None), "Index": obj.get("Index"), "Name": obj.get("Name"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/activation_code_info.py b/cyperf/models/activation_code_info.py index e53937e..9cc170b 100644 --- a/cyperf/models/activation_code_info.py +++ b/cyperf/models/activation_code_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/activation_code_list_request.py b/cyperf/models/activation_code_list_request.py index 34d645f..ee7c0f7 100644 --- a/cyperf/models/activation_code_list_request.py +++ b/cyperf/models/activation_code_list_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/activation_code_request.py b/cyperf/models/activation_code_request.py index 2d51be6..b0cc4da 100644 --- a/cyperf/models/activation_code_request.py +++ b/cyperf/models/activation_code_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/add_action_info.py b/cyperf/models/add_action_info.py index 4b14aed..a3b41d1 100644 --- a/cyperf/models/add_action_info.py +++ b/cyperf/models/add_action_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/add_input.py b/cyperf/models/add_input.py index 63473ba..32916fa 100644 --- a/cyperf/models/add_input.py +++ b/cyperf/models/add_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.capture_input import CaptureInput from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,10 +108,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionIndex": obj.get("ActionIndex"), "ActionName": obj.get("ActionName"), - "Captures": [CaptureInput.from_dict(_item) for _item in obj["Captures"]] if obj.get("Captures") is not None else None, + "Captures": ( [CaptureInput.from_dict(_item) for _item in obj.get("Captures", [])] if obj.get("Captures") is not None else None), "ExchangeIndexInsertAt": obj.get("ExchangeIndexInsertAt"), "FlowIndexInsertAt": obj.get("FlowIndexInsertAt"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "Type": obj.get("Type") , "links": obj.get("links") diff --git a/cyperf/models/advanced_settings.py b/cyperf/models/advanced_settings.py index accfae2..2e4b124 100644 --- a/cyperf/models/advanced_settings.py +++ b/cyperf/models/advanced_settings.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_optimization_mode import AgentOptimizationMode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 5cec980..17b44d4 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -27,7 +27,7 @@ from cyperf.models.ntp_info import NtpInfo from cyperf.models.selected_env import SelectedEnv from cyperf.models.system_info import SystemInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -183,7 +183,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AgentTags": obj.get("AgentTags") if obj.get("AgentTags") is not None else [], "IP": obj.get("IP"), - "Interfaces": [Interface.from_dict(_item) for _item in obj["Interfaces"]] if obj.get("Interfaces") is not None else None, + "Interfaces": ( [Interface.from_dict(_item) for _item in obj.get("Interfaces", [])] if obj.get("Interfaces") is not None else None), "LastUpdate": obj.get("LastUpdate"), "ReservationID": obj.get("ReservationID"), "SelectedEnv": SelectedEnv.from_dict(obj["SelectedEnv"]) if obj.get("SelectedEnv") is not None else None, @@ -191,7 +191,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SessionName": obj.get("SessionName"), "Status": obj.get("Status"), "configuredProxy": obj.get("configuredProxy"), - "cpuInfo": [AgentCPUInfo.from_dict(_item) for _item in obj["cpuInfo"]] if obj.get("cpuInfo") is not None else None, + "cpuInfo": ( [AgentCPUInfo.from_dict(_item) for _item in obj.get("cpuInfo", [])] if obj.get("cpuInfo") is not None else None), "dpdkEnabled": obj.get("dpdkEnabled"), "features": AgentFeatures.from_dict(obj["features"]) if obj.get("features") is not None else None, "hostname": obj.get("hostname"), @@ -205,7 +205,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "packageVersionStatus": obj.get("packageVersionStatus"), "requiresUpdating": obj.get("requiresUpdating"), "systemInfo": SystemInfo.from_dict(obj["systemInfo"]) if obj.get("systemInfo") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_assignment_by_port.py b/cyperf/models/agent_assignment_by_port.py index 073676d..3142e3b 100644 --- a/cyperf/models/agent_assignment_by_port.py +++ b/cyperf/models/agent_assignment_by_port.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.capture_settings import CaptureSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "portId": obj.get("portId") , "links": obj.get("links") diff --git a/cyperf/models/agent_assignment_details.py b/cyperf/models/agent_assignment_details.py index e6afd16..fd2fccc 100644 --- a/cyperf/models/agent_assignment_details.py +++ b/cyperf/models/agent_assignment_details.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.capture_settings import CaptureSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, "id": obj.get("id"), "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index 4ab7d43..d2400e2 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -23,7 +23,7 @@ from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort from cyperf.models.agent_assignment_details import AgentAssignmentDetails from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,10 +111,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ByID": [AgentAssignmentDetails.from_dict(_item) for _item in obj["ByID"]] if obj.get("ByID") is not None else None, - "ByPort": [AgentAssignmentByPort.from_dict(_item) for _item in obj["ByPort"]] if obj.get("ByPort") is not None else None, + "ByID": ( [AgentAssignmentDetails.from_dict(_item) for _item in obj.get("ByID", [])] if obj.get("ByID") is not None else None), + "ByPort": ( [AgentAssignmentByPort.from_dict(_item) for _item in obj.get("ByPort", [])] if obj.get("ByPort") is not None else None), "ByTag": obj.get("ByTag") if obj.get("ByTag") is not None else [], - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/agent_cpu_info.py b/cyperf/models/agent_cpu_info.py index c7ead39..ff56423 100644 --- a/cyperf/models/agent_cpu_info.py +++ b/cyperf/models/agent_cpu_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_features.py b/cyperf/models/agent_features.py index f553129..4631d9d 100644 --- a/cyperf/models/agent_features.py +++ b/cyperf/models/agent_features.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_release.py b/cyperf/models/agent_release.py index e845e16..02852a3 100644 --- a/cyperf/models/agent_release.py +++ b/cyperf/models/agent_release.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_reservation.py b/cyperf/models/agent_reservation.py index 9c0bf21..cfe014e 100644 --- a/cyperf/models/agent_reservation.py +++ b/cyperf/models/agent_reservation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agent_to_be_rebooted.py b/cyperf/models/agent_to_be_rebooted.py index 04a8bdb..8d8fcf5 100644 --- a/cyperf/models/agent_to_be_rebooted.py +++ b/cyperf/models/agent_to_be_rebooted.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/agents_group.py b/cyperf/models/agents_group.py index 85214c9..cce0959 100644 --- a/cyperf/models/agents_group.py +++ b/cyperf/models/agents_group.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/api_link.py b/cyperf/models/api_link.py index 21e0956..ddf20df 100644 --- a/cyperf/models/api_link.py +++ b/cyperf/models/api_link.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_exchange.py b/cyperf/models/app_exchange.py index 9b876fb..79fb1fc 100644 --- a/cyperf/models/app_exchange.py +++ b/cyperf/models/app_exchange.py @@ -24,7 +24,7 @@ from cyperf.models.generic_file import GenericFile from cyperf.models.http_req_meta import HTTPReqMeta from cyperf.models.http_res_meta import HTTPResMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_flow.py b/cyperf/models/app_flow.py index 8f33d2c..e0346b7 100644 --- a/cyperf/models/app_flow.py +++ b/cyperf/models/app_flow.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.api_link import APILink from cyperf.models.app_exchange import AppExchange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -116,10 +116,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "displayId": obj.get("displayId"), "dstAddress": obj.get("dstAddress"), "dstPort": obj.get("dstPort"), - "exchanges": [AppExchange.from_dict(_item) for _item in obj["exchanges"]] if obj.get("exchanges") is not None else None, + "exchanges": ( [AppExchange.from_dict(_item) for _item in obj.get("exchanges", [])] if obj.get("exchanges") is not None else None), "httpHost": obj.get("httpHost"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "srcAddress": obj.get("srcAddress"), "srcPort": obj.get("srcPort"), "transportType": obj.get("transportType") diff --git a/cyperf/models/app_flow_desc.py b/cyperf/models/app_flow_desc.py index 314b556..42cf3cd 100644 --- a/cyperf/models/app_flow_desc.py +++ b/cyperf/models/app_flow_desc.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_flow_input.py b/cyperf/models/app_flow_input.py index 5cfe64d..01af86c 100644 --- a/cyperf/models/app_flow_input.py +++ b/cyperf/models/app_flow_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_flow_input_find_param.py b/cyperf/models/app_flow_input_find_param.py index b2ce642..13bd6f2 100644 --- a/cyperf/models/app_flow_input_find_param.py +++ b/cyperf/models/app_flow_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_desc import AppFlowDesc -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_id.py b/cyperf/models/app_id.py index 42cc397..b40ddf7 100644 --- a/cyperf/models/app_id.py +++ b/cyperf/models/app_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/app_mode.py b/cyperf/models/app_mode.py index 8939e0e..4dca4fc 100644 --- a/cyperf/models/app_mode.py +++ b/cyperf/models/app_mode.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 0ed0760..e656008 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -34,7 +34,7 @@ from cyperf.models.tls_profile import TLSProfile from cyperf.models.track import Track from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -243,13 +243,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), @@ -260,7 +260,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), @@ -270,9 +270,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), "InheritTLS": obj.get("InheritTLS"), "IsStatelessStream": obj.get("IsStatelessStream"), "IsStreaming": obj.get("IsStreaming"), @@ -286,9 +286,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsMultiFlow": obj.get("SupportsMultiFlow"), "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), - "Tracks": [Track.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None + "Tracks": ( [Track.from_dict(_item) for _item in obj.get("Tracks", [])] if obj.get("Tracks") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index e479cd1..8559031 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -27,7 +27,7 @@ from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -155,14 +155,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "Applications": [Application.from_dict(_item) for _item in obj["Applications"]] if obj.get("Applications") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "Applications": ( [Application.from_dict(_item) for _item in obj.get("Applications", [])] if obj.get("Applications") is not None else None), "DefaultNetworkMapping": NetworkMapping.from_dict(obj["DefaultNetworkMapping"]) if obj.get("DefaultNetworkMapping") is not None else None, "Name": obj.get("Name"), "ObjectivesAndTimeline": ObjectivesAndTimeline.from_dict(obj["ObjectivesAndTimeline"]) if obj.get("ObjectivesAndTimeline") is not None else None, - "add-applications": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-applications"]] if obj.get("add-applications") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, + "add-applications": ( [ExternalResourceInfo.from_dict(_item) for _item in obj.get("add-applications", [])] if obj.get("add-applications") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None), "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/application_type.py b/cyperf/models/application_type.py index 553ebf3..b05b4e4 100644 --- a/cyperf/models/application_type.py +++ b/cyperf/models/application_type.py @@ -29,7 +29,7 @@ from cyperf.models.endpoint import Endpoint from cyperf.models.metadata import Metadata from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -186,22 +186,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Commands": [Command.from_dict(_item) for _item in obj["Commands"]] if obj.get("Commands") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, - "CustomStats": [CustomStat.from_dict(_item) for _item in obj["CustomStats"]] if obj.get("CustomStats") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, + "Commands": ( [Command.from_dict(_item) for _item in obj.get("Commands", [])] if obj.get("Commands") is not None else None), + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), + "CustomStats": ( [CustomStat.from_dict(_item) for _item in obj.get("CustomStats", [])] if obj.get("CustomStats") is not None else None), + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), "Definition": Definition.from_dict(obj["Definition"]) if obj.get("Definition") is not None else None, "Description": obj.get("Description"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "FileName": obj.get("FileName"), "HasBannerCommand": obj.get("HasBannerCommand"), "Md5Content": obj.get("Md5Content"), "Md5Metadata": obj.get("Md5Metadata"), "Metadata": Metadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "ProtocolFound": obj.get("ProtocolFound"), - "Strikes": [Command.from_dict(_item) for _item in obj["Strikes"]] if obj.get("Strikes") is not None else None, + "Strikes": ( [Command.from_dict(_item) for _item in obj.get("Strikes", [])] if obj.get("Strikes") is not None else None), "SupportsCalibration": obj.get("SupportsCalibration"), "SupportsClientHTTPProfile": obj.get("SupportsClientHTTPProfile"), "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), @@ -209,7 +209,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/appsec_app.py b/cyperf/models/appsec_app.py index c123c4b..48fa646 100644 --- a/cyperf/models/appsec_app.py +++ b/cyperf/models/appsec_app.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.application import Application from cyperf.models.appsec_app_metadata import AppsecAppMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -128,7 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "appMetadata": AppsecAppMetadata.from_dict(obj["appMetadata"]) if obj.get("appMetadata") is not None else None, "id": obj.get("id"), "lastModified": obj.get("lastModified"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") , diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index 5f9ca53..907a4ae 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.action_metadata import ActionMetadata from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -110,9 +110,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ActionsMetadata": [ActionMetadata.from_dict(_item) for _item in obj["ActionsMetadata"]] if obj.get("ActionsMetadata") is not None else None, - "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, - "keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["keywords"]] if obj.get("keywords") is not None else None + "ActionsMetadata": ( [ActionMetadata.from_dict(_item) for _item in obj.get("ActionsMetadata", [])] if obj.get("ActionsMetadata") is not None else None), + "AppParameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("AppParameters", [])] if obj.get("AppParameters") is not None else None), + "keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("keywords", [])] if obj.get("keywords") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/appsec_attack.py b/cyperf/models/appsec_attack.py index 1ed4013..cbbd65a 100644 --- a/cyperf/models/appsec_attack.py +++ b/cyperf/models/appsec_attack.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.attack import Attack from cyperf.models.attack_metadata import AttackMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -118,7 +118,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Metadata": AttackMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") , diff --git a/cyperf/models/appsec_config.py b/cyperf/models/appsec_config.py index 131598d..f861a8a 100644 --- a/cyperf/models/appsec_config.py +++ b/cyperf/models/appsec_config.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.config import Config -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -117,7 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "configTypeName": obj.get("configTypeName"), "dataModelVersion": obj.get("dataModelVersion"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name") , "links": obj.get("links") diff --git a/cyperf/models/archive_info.py b/cyperf/models/archive_info.py index 002b559..a8ebe18 100644 --- a/cyperf/models/archive_info.py +++ b/cyperf/models/archive_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/array_v2_element_metadata.py b/cyperf/models/array_v2_element_metadata.py index a34f226..b10aac2 100644 --- a/cyperf/models/array_v2_element_metadata.py +++ b/cyperf/models/array_v2_element_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/async_context.py b/cyperf/models/async_context.py index 8f5d63a..bd6749b 100644 --- a/cyperf/models/async_context.py +++ b/cyperf/models/async_context.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/attack.py b/cyperf/models/attack.py index c985108..faf4758 100644 --- a/cyperf/models/attack.py +++ b/cyperf/models/attack.py @@ -33,7 +33,7 @@ from cyperf.models.quic_profile import QUICProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -230,13 +230,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), @@ -247,7 +247,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), @@ -257,15 +257,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "InheritTLS": obj.get("InheritTLS"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "SupportsTLS": obj.get("SupportsTLS"), - "Tracks": [AttackTrack.from_dict(_item) for _item in obj["Tracks"]] if obj.get("Tracks") is not None else None, - "create": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["create"]] if obj.get("create") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None + "Tracks": ( [AttackTrack.from_dict(_item) for _item in obj.get("Tracks", [])] if obj.get("Tracks") is not None else None), + "create": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("create", [])] if obj.get("create") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 425cdb7..589854a 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,19 +133,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DstHost": obj.get("DstHost"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "Index": obj.get("Index"), "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py index fdf6e81..d0306f8 100644 --- a/cyperf/models/attack_metadata.py +++ b/cyperf/models/attack_metadata.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,9 +108,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CveCount": obj.get("CveCount"), "Direction": obj.get("Direction"), - "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], - "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), "Severity": obj.get("Severity"), "StrikesCount": obj.get("StrikesCount") , diff --git a/cyperf/models/attack_objectives_and_timeline.py b/cyperf/models/attack_objectives_and_timeline.py index d273ff4..21bd090 100644 --- a/cyperf/models/attack_objectives_and_timeline.py +++ b/cyperf/models/attack_objectives_and_timeline.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.attack_timeline_segment import AttackTimelineSegment -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,8 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "TimelineSegments": [AttackTimelineSegment.from_dict(_item) for _item in obj["TimelineSegments"]] if obj.get("TimelineSegments") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "TimelineSegments": ( [AttackTimelineSegment.from_dict(_item) for _item in obj.get("TimelineSegments", [])] if obj.get("TimelineSegments") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index 53e6fbe..643e4f6 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -27,7 +27,7 @@ from cyperf.models.network_mapping import NetworkMapping from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -155,14 +155,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "Attacks": [Attack.from_dict(_item) for _item in obj["Attacks"]] if obj.get("Attacks") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "Attacks": ( [Attack.from_dict(_item) for _item in obj.get("Attacks", [])] if obj.get("Attacks") is not None else None), "DefaultNetworkMapping": NetworkMapping.from_dict(obj["DefaultNetworkMapping"]) if obj.get("DefaultNetworkMapping") is not None else None, "Name": obj.get("Name"), "ObjectivesAndTimeline": AttackObjectivesAndTimeline.from_dict(obj["ObjectivesAndTimeline"]) if obj.get("ObjectivesAndTimeline") is not None else None, - "add-attacks": [ExternalResourceInfo.from_dict(_item) for _item in obj["add-attacks"]] if obj.get("add-attacks") is not None else None, - "modify-excluded-dut-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-excluded-dut-recursively"]] if obj.get("modify-excluded-dut-recursively") is not None else None, - "modify-tags-recursively": [UpdateNetworkMapping.from_dict(_item) for _item in obj["modify-tags-recursively"]] if obj.get("modify-tags-recursively") is not None else None, + "add-attacks": ( [ExternalResourceInfo.from_dict(_item) for _item in obj.get("add-attacks", [])] if obj.get("add-attacks") is not None else None), + "modify-excluded-dut-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-excluded-dut-recursively", [])] if obj.get("modify-excluded-dut-recursively") is not None else None), + "modify-tags-recursively": ( [UpdateNetworkMapping.from_dict(_item) for _item in obj.get("modify-tags-recursively", [])] if obj.get("modify-tags-recursively") is not None else None), "reset-tags-to-default": obj.get("reset-tags-to-default") if obj.get("reset-tags-to-default") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/attack_timeline_segment.py b/cyperf/models/attack_timeline_segment.py index 5959878..1d83e28 100644 --- a/cyperf/models/attack_timeline_segment.py +++ b/cyperf/models/attack_timeline_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/attack_track.py b/cyperf/models/attack_track.py index f7aca53..8a266c3 100644 --- a/cyperf/models/attack_track.py +++ b/cyperf/models/attack_track.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.attack_action import AttackAction from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,10 +112,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [AttackAction.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, - "add-actions": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["add-actions"]] if obj.get("add-actions") is not None else None, + "Actions": ( [AttackAction.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), + "add-actions": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("add-actions", [])] if obj.get("add-actions") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/auth_profile.py b/cyperf/models/auth_profile.py index b7f1d20..51584a5 100644 --- a/cyperf/models/auth_profile.py +++ b/cyperf/models/auth_profile.py @@ -26,7 +26,7 @@ from cyperf.models.data_type import DataType from cyperf.models.endpoint import Endpoint from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -149,15 +149,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, - "DataTypes": [DataType.from_dict(_item) for _item in obj["DataTypes"]] if obj.get("DataTypes") is not None else None, - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), + "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "FileName": obj.get("FileName"), "Metadata": AuthProfileMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), "description": obj.get("description"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "type": obj.get("type") , "links": obj.get("links") diff --git a/cyperf/models/auth_profile_metadata.py b/cyperf/models/auth_profile_metadata.py index 11783cb..213454f 100644 --- a/cyperf/models/auth_profile_metadata.py +++ b/cyperf/models/auth_profile_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.enum import Enum -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index cb29ad2..ccab464 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -24,7 +24,7 @@ from cyperf.models.auth_method_type import AuthMethodType from cyperf.models.params import Params from cyperf.models.simulated_id_p import SimulatedIdP -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,7 +133,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None, "Usernames": obj.get("Usernames") if obj.get("Usernames") is not None else [], "UsernamesParam": Params.from_dict(obj["UsernamesParam"]) if obj.get("UsernamesParam") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/authenticate200_response.py b/cyperf/models/authenticate200_response.py index d400a3f..14d2a9a 100644 --- a/cyperf/models/authenticate200_response.py +++ b/cyperf/models/authenticate200_response.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/authentication_settings.py b/cyperf/models/authentication_settings.py index 239b404..e7db0d2 100644 --- a/cyperf/models/authentication_settings.py +++ b/cyperf/models/authentication_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -119,7 +119,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "KeyFile": Params.from_dict(obj["KeyFile"]) if obj.get("KeyFile") is not None else None, "KeyFilePassword": obj.get("KeyFilePassword"), "SharedKey": obj.get("SharedKey"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/broker.py b/cyperf/models/broker.py index c25ab71..ec2df0c 100644 --- a/cyperf/models/broker.py +++ b/cyperf/models/broker.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/capture_input.py b/cyperf/models/capture_input.py index 4bffce1..4c3fd3e 100644 --- a/cyperf/models/capture_input.py +++ b/cyperf/models/capture_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_input import AppFlowInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CaptureId": obj.get("CaptureId"), - "Flows": [AppFlowInput.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None + "Flows": ( [AppFlowInput.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/capture_input_find_param.py b/cyperf/models/capture_input_find_param.py index 3a17447..e57949b 100644 --- a/cyperf/models/capture_input_find_param.py +++ b/cyperf/models/capture_input_find_param.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_flow_input_find_param import AppFlowInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "CaptureId": obj.get("CaptureId"), - "Flows": [AppFlowInputFindParam.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None + "Flows": ( [AppFlowInputFindParam.from_dict(_item) for _item in obj.get("Flows", [])] if obj.get("Flows") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/capture_settings.py b/cyperf/models/capture_settings.py index abdc979..889a638 100644 --- a/cyperf/models/capture_settings.py +++ b/cyperf/models/capture_settings.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.log_level import LogLevel -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/category.py b/cyperf/models/category.py index 9d820fd..6c7c153 100644 --- a/cyperf/models/category.py +++ b/cyperf/models/category.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_value import CategoryValue -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "index": obj.get("index"), "name": obj.get("name"), - "values": [CategoryValue.from_dict(_item) for _item in obj["values"]] if obj.get("values") is not None else None + "values": ( [CategoryValue.from_dict(_item) for _item in obj.get("values", [])] if obj.get("values") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/category_filter.py b/cyperf/models/category_filter.py index 3bfd335..4a6025b 100644 --- a/cyperf/models/category_filter.py +++ b/cyperf/models/category_filter.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/category_value.py b/cyperf/models/category_value.py index 890be0f..ec9486b 100644 --- a/cyperf/models/category_value.py +++ b/cyperf/models/category_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/cert_config.py b/cyperf/models/cert_config.py index 591930e..b103db8 100644 --- a/cyperf/models/cert_config.py +++ b/cyperf/models/cert_config.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.conflict import Conflict from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -130,10 +130,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPlaylist": obj.get("isPlaylist"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "playlistColumnName": obj.get("playlistColumnName"), "playlistFilename": obj.get("playlistFilename"), - "resolve-sni-conflicts": [Conflict.from_dict(_item) for _item in obj["resolve-sni-conflicts"]] if obj.get("resolve-sni-conflicts") is not None else None, + "resolve-sni-conflicts": ( [Conflict.from_dict(_item) for _item in obj.get("resolve-sni-conflicts", [])] if obj.get("resolve-sni-conflicts") is not None else None), "sniHostname": obj.get("sniHostname") , "links": obj.get("links") diff --git a/cyperf/models/certificate.py b/cyperf/models/certificate.py index 77536cd..e8a6868 100644 --- a/cyperf/models/certificate.py +++ b/cyperf/models/certificate.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index 45702d2..da9b587 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/choice.py b/cyperf/models/choice.py index dfca643..83aa523 100644 --- a/cyperf/models/choice.py +++ b/cyperf/models/choice.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index 65720fb..5808990 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -26,7 +26,7 @@ from cyperf.models.cisco_encapsulation import CiscoEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "CiscoEncapsulation": CiscoEncapsulation.from_dict(obj["CiscoEncapsulation"]) if obj.get("CiscoEncapsulation") is not None else None, "ConnectionProfiles": obj.get("ConnectionProfiles") if obj.get("ConnectionProfiles") is not None else [], "ESPProbeRetryTimeout": obj.get("ESPProbeRetryTimeout"), diff --git a/cyperf/models/cisco_encapsulation.py b/cyperf/models/cisco_encapsulation.py index 79800b9..8917377 100644 --- a/cyperf/models/cisco_encapsulation.py +++ b/cyperf/models/cisco_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DTLSSettings": DTLSSettings.from_dict(obj["DTLSSettings"]) if obj.get("DTLSSettings") is not None else None, "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/clear_ports_ownership_operation.py b/cyperf/models/clear_ports_ownership_operation.py index 2feb535..4083b60 100644 --- a/cyperf/models/clear_ports_ownership_operation.py +++ b/cyperf/models/clear_ports_ownership_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/command.py b/cyperf/models/command.py index f22f09d..a79cd07 100644 --- a/cyperf/models/command.py +++ b/cyperf/models/command.py @@ -24,7 +24,7 @@ from cyperf.models.command_metadata import CommandMetadata from cyperf.models.exchange import Exchange from cyperf.models.parameter import Parameter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -127,12 +127,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionID": obj.get("ActionID"), "Description": obj.get("Description"), - "Exchanges": [Exchange.from_dict(_item) for _item in obj["Exchanges"]] if obj.get("Exchanges") is not None else None, + "Exchanges": ( [Exchange.from_dict(_item) for _item in obj.get("Exchanges", [])] if obj.get("Exchanges") is not None else None), "IsStrike": obj.get("IsStrike"), "Metadata": CommandMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), - "Parameters": [Parameter.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "Parameters": ( [Parameter.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index b9af2af..d033c3a 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from cyperf.models.rtp_profile_meta import RTPProfileMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -124,12 +124,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsBanner": obj.get("IsBanner"), "IsForAppTrafficOnly": obj.get("IsForAppTrafficOnly"), "IsStreaming": obj.get("IsStreaming"), - "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, - "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), "RequiresUniqueness": obj.get("RequiresUniqueness"), "Severity": obj.get("Severity"), "SkipAttackGeneration": obj.get("SkipAttackGeneration"), diff --git a/cyperf/models/compute_node.py b/cyperf/models/compute_node.py index 461be34..9327e8b 100644 --- a/cyperf/models/compute_node.py +++ b/cyperf/models/compute_node.py @@ -24,7 +24,7 @@ from cyperf.models.app_mode import AppMode from cyperf.models.health_issue import HealthIssue from cyperf.models.port import Port -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -125,12 +125,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "aggregatedMode": obj.get("aggregatedMode"), "appMode": AppMode.from_dict(obj["appMode"]) if obj.get("appMode") is not None else None, - "healthDetails": [HealthIssue.from_dict(_item) for _item in obj["healthDetails"]] if obj.get("healthDetails") is not None else None, + "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), - "ports": [Port.from_dict(_item) for _item in obj["ports"]] if obj.get("ports") is not None else None, + "ports": ( [Port.from_dict(_item) for _item in obj.get("ports", [])] if obj.get("ports") is not None else None), "serial": obj.get("serial"), "slotNumber": obj.get("slotNumber"), "status": obj.get("status"), diff --git a/cyperf/models/config.py b/cyperf/models/config.py index 2b9a122..e13d3e4 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -27,7 +27,7 @@ from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.expected_disk_space import ExpectedDiskSpace from cyperf.models.network_profile import NetworkProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -140,13 +140,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AttackProfiles": [AttackProfile.from_dict(_item) for _item in obj["AttackProfiles"]] if obj.get("AttackProfiles") is not None else None, + "AttackProfiles": ( [AttackProfile.from_dict(_item) for _item in obj.get("AttackProfiles", [])] if obj.get("AttackProfiles") is not None else None), "ConfigValidation": ConfigValidation.from_dict(obj["ConfigValidation"]) if obj.get("ConfigValidation") is not None else None, "CustomDashboards": CustomDashboards.from_dict(obj["CustomDashboards"]) if obj.get("CustomDashboards") is not None else None, - "ExpectedDiskSpace": [ExpectedDiskSpace.from_dict(_item) for _item in obj["ExpectedDiskSpace"]] if obj.get("ExpectedDiskSpace") is not None else None, - "NetworkProfiles": [NetworkProfile.from_dict(_item) for _item in obj["NetworkProfiles"]] if obj.get("NetworkProfiles") is not None else None, - "TrafficProfiles": [ApplicationProfile.from_dict(_item) for _item in obj["TrafficProfiles"]] if obj.get("TrafficProfiles") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "ExpectedDiskSpace": ( [ExpectedDiskSpace.from_dict(_item) for _item in obj.get("ExpectedDiskSpace", [])] if obj.get("ExpectedDiskSpace") is not None else None), + "NetworkProfiles": ( [NetworkProfile.from_dict(_item) for _item in obj.get("NetworkProfiles", [])] if obj.get("NetworkProfiles") is not None else None), + "TrafficProfiles": ( [ApplicationProfile.from_dict(_item) for _item in obj.get("TrafficProfiles", [])] if obj.get("TrafficProfiles") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "validate": obj.get("validate") if obj.get("validate") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/config_category.py b/cyperf/models/config_category.py index c13b550..f525067 100644 --- a/cyperf/models/config_category.py +++ b/cyperf/models/config_category.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.config_sub_category import ConfigSubCategory -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,8 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "displayName": obj.get("displayName"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "subcategories": [ConfigSubCategory.from_dict(_item) for _item in obj["subcategories"]] if obj.get("subcategories") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "subcategories": ( [ConfigSubCategory.from_dict(_item) for _item in obj.get("subcategories", [])] if obj.get("subcategories") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/config_id.py b/cyperf/models/config_id.py index c4c7d3d..e9143c0 100644 --- a/cyperf/models/config_id.py +++ b/cyperf/models/config_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/config_metadata.py b/cyperf/models/config_metadata.py index fda8b96..eda89e7 100644 --- a/cyperf/models/config_metadata.py +++ b/cyperf/models/config_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.version import Version -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -137,7 +137,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "application": obj.get("application"), "configData": dict( (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["configData"].items() + for _k, _v in (obj.get("configData") or {}).items() ) if obj.get("configData") is not None else None, @@ -149,7 +149,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isPublic": obj.get("isPublic"), "lastAccessed": obj.get("lastAccessed"), "lastModified": obj.get("lastModified"), - "linkedResources": [APILink.from_dict(_item) for _item in obj["linkedResources"]] if obj.get("linkedResources") is not None else None, + "linkedResources": ( [APILink.from_dict(_item) for _item in obj.get("linkedResources", [])] if obj.get("linkedResources") is not None else None), "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "readonly": obj.get("readonly"), diff --git a/cyperf/models/config_sub_category.py b/cyperf/models/config_sub_category.py index 30e510d..1609ea0 100644 --- a/cyperf/models/config_sub_category.py +++ b/cyperf/models/config_sub_category.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/config_validation.py b/cyperf/models/config_validation.py index 7f80b77..37015e7 100644 --- a/cyperf/models/config_validation.py +++ b/cyperf/models/config_validation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.validation_message import ValidationMessage -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,8 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "IsValidated": obj.get("IsValidated"), - "ValidationMessages": [ValidationMessage.from_dict(_item) for _item in obj["ValidationMessages"]] if obj.get("ValidationMessages") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "ValidationMessages": ( [ValidationMessage.from_dict(_item) for _item in obj.get("ValidationMessages", [])] if obj.get("ValidationMessages") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/conflict.py b/cyperf/models/conflict.py index d9b17ea..b63963d 100644 --- a/cyperf/models/conflict.py +++ b/cyperf/models/conflict.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/connection.py b/cyperf/models/connection.py index 1fe6b20..02a48b7 100644 --- a/cyperf/models/connection.py +++ b/cyperf/models/connection.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.params import Params from cyperf.models.port_settings import PortSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -158,7 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerPort": obj.get("ServerPort"), "Type": obj.get("Type"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/consumer.py b/cyperf/models/consumer.py index d25b871..2e621e6 100644 --- a/cyperf/models/consumer.py +++ b/cyperf/models/consumer.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/controller.py b/cyperf/models/controller.py index 5280471..3de31b8 100644 --- a/cyperf/models/controller.py +++ b/cyperf/models/controller.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.compute_node import ComputeNode from cyperf.models.health_issue import HealthIssue -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -115,11 +115,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": [ComputeNode.from_dict(_item) for _item in obj["computeNodes"]] if obj.get("computeNodes") is not None else None, - "healthDetails": [HealthIssue.from_dict(_item) for _item in obj["healthDetails"]] if obj.get("healthDetails") is not None else None, + "computeNodes": ( [ComputeNode.from_dict(_item) for _item in obj.get("computeNodes", [])] if obj.get("computeNodes") is not None else None), + "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), "serial": obj.get("serial"), "type": obj.get("type") diff --git a/cyperf/models/counted_feature_consumer.py b/cyperf/models/counted_feature_consumer.py index b838daa..9e406ba 100644 --- a/cyperf/models/counted_feature_consumer.py +++ b/cyperf/models/counted_feature_consumer.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/counted_feature_stats.py b/cyperf/models/counted_feature_stats.py index 21a6cf3..ac2906f 100644 --- a/cyperf/models/counted_feature_stats.py +++ b/cyperf/models/counted_feature_stats.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.counted_feature_consumer import CountedFeatureConsumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "availableCount": obj.get("availableCount"), - "consumers": [CountedFeatureConsumer.from_dict(_item) for _item in obj["consumers"]] if obj.get("consumers") is not None else None, + "consumers": ( [CountedFeatureConsumer.from_dict(_item) for _item in obj.get("consumers", [])] if obj.get("consumers") is not None else None), "featureName": obj.get("featureName"), "installedCount": obj.get("installedCount") , diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index 0336667..bb516ef 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_input import ActionInput from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,11 +104,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [ActionInput.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [ActionInput.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "AppName": obj.get("AppName"), "AppType": obj.get("AppType"), "Description": obj.get("Description"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/create_app_or_attack_operation_input.py b/cyperf/models/create_app_or_attack_operation_input.py index 68d03c4..6028d4d 100644 --- a/cyperf/models/create_app_or_attack_operation_input.py +++ b/cyperf/models/create_app_or_attack_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.add_action_info import AddActionInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [AddActionInfo.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [AddActionInfo.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "ResourceURL": obj.get("ResourceURL") , "links": obj.get("links") diff --git a/cyperf/models/custom_dashboards.py b/cyperf/models/custom_dashboards.py index 0946761..080b20c 100644 --- a/cyperf/models/custom_dashboards.py +++ b/cyperf/models/custom_dashboards.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), - "Links": [APILink.from_dict(_item) for _item in obj["Links"]] if obj.get("Links") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "Links": ( [APILink.from_dict(_item) for _item in obj.get("Links", [])] if obj.get("Links") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/custom_import_handler.py b/cyperf/models/custom_import_handler.py index 8f22ecc..8f35a0f 100644 --- a/cyperf/models/custom_import_handler.py +++ b/cyperf/models/custom_import_handler.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/custom_stat.py b/cyperf/models/custom_stat.py index 93dc1c5..eaa3bdf 100644 --- a/cyperf/models/custom_stat.py +++ b/cyperf/models/custom_stat.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/dashboard.py b/cyperf/models/dashboard.py index d201ef0..f62c7b9 100644 --- a/cyperf/models/dashboard.py +++ b/cyperf/models/dashboard.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/data_type.py b/cyperf/models/data_type.py index 7ad320a..ec5c84a 100644 --- a/cyperf/models/data_type.py +++ b/cyperf/models/data_type.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.data_type_values_inner import DataTypeValuesInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Values": [DataTypeValuesInner.from_dict(_item) for _item in obj["Values"]] if obj.get("Values") is not None else None, + "Values": ( [DataTypeValuesInner.from_dict(_item) for _item in obj.get("Values", [])] if obj.get("Values") is not None else None), "id": obj.get("id") , "links": obj.get("links") diff --git a/cyperf/models/data_type_values_inner.py b/cyperf/models/data_type_values_inner.py index 9621755..6e5a6da 100644 --- a/cyperf/models/data_type_values_inner.py +++ b/cyperf/models/data_type_values_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/definition.py b/cyperf/models/definition.py index 02d5c05..0629239 100644 --- a/cyperf/models/definition.py +++ b/cyperf/models/definition.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/delete_input.py b/cyperf/models/delete_input.py index 8aad0a8..490d940 100644 --- a/cyperf/models/delete_input.py +++ b/cyperf/models/delete_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/diagnostic_component.py b/cyperf/models/diagnostic_component.py index 1963d40..5630071 100644 --- a/cyperf/models/diagnostic_component.py +++ b/cyperf/models/diagnostic_component.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.diagnostic_options import DiagnosticOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "componentName": obj.get("componentName"), - "options": [DiagnosticOptions.from_dict(_item) for _item in obj["options"]] if obj.get("options") is not None else None, - "subComponents": [DiagnosticComponent.from_dict(_item) for _item in obj["subComponents"]] if obj.get("subComponents") is not None else None + "options": ( [DiagnosticOptions.from_dict(_item) for _item in obj.get("options", [])] if obj.get("options") is not None else None), + "subComponents": ( [DiagnosticComponent.from_dict(_item) for _item in obj.get("subComponents", [])] if obj.get("subComponents") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/diagnostic_component_context.py b/cyperf/models/diagnostic_component_context.py index 06406a3..0079a66 100644 --- a/cyperf/models/diagnostic_component_context.py +++ b/cyperf/models/diagnostic_component_context.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.diagnostic_component import DiagnosticComponent from cyperf.models.diagnostic_options import DiagnosticOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,8 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "componentList": [DiagnosticComponent.from_dict(_item) for _item in obj["componentList"]] if obj.get("componentList") is not None else None, - "context": [DiagnosticOptions.from_dict(_item) for _item in obj["context"]] if obj.get("context") is not None else None + "componentList": ( [DiagnosticComponent.from_dict(_item) for _item in obj.get("componentList", [])] if obj.get("componentList") is not None else None), + "context": ( [DiagnosticOptions.from_dict(_item) for _item in obj.get("context", [])] if obj.get("context") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/diagnostic_options.py b/cyperf/models/diagnostic_options.py index d32efef..739aa53 100644 --- a/cyperf/models/diagnostic_options.py +++ b/cyperf/models/diagnostic_options.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/disk_usage.py b/cyperf/models/disk_usage.py index 1c72b18..10b4637 100644 --- a/cyperf/models/disk_usage.py +++ b/cyperf/models/disk_usage.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.consumer import Consumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -129,10 +129,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "available": obj.get("available"), - "consumers": [Consumer.from_dict(_item) for _item in obj["consumers"]] if obj.get("consumers") is not None else None, + "consumers": ( [Consumer.from_dict(_item) for _item in obj.get("consumers", [])] if obj.get("consumers") is not None else None), "criticalDiskSpace": obj.get("criticalDiskSpace"), "criticalThreshold": obj.get("criticalThreshold"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "lowDiskSpace": obj.get("lowDiskSpace"), "lowThreshold": obj.get("lowThreshold"), "message": obj.get("message"), diff --git a/cyperf/models/dns_resolver.py b/cyperf/models/dns_resolver.py index 3bd3840..c6969f9 100644 --- a/cyperf/models/dns_resolver.py +++ b/cyperf/models/dns_resolver.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.name_server import NameServer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -105,8 +105,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "cacheTimeout": obj.get("cacheTimeout"), "enablePerconnect": obj.get("enablePerconnect"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "nameServers": [NameServer.from_dict(_item) for _item in obj["nameServers"]] if obj.get("nameServers") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "nameServers": ( [NameServer.from_dict(_item) for _item in obj.get("nameServers", [])] if obj.get("nameServers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/dns_server.py b/cyperf/models/dns_server.py index aeaee64..dfb5eaf 100644 --- a/cyperf/models/dns_server.py +++ b/cyperf/models/dns_server.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/dtls_settings.py b/cyperf/models/dtls_settings.py index f60a139..4ea3888 100644 --- a/cyperf/models/dtls_settings.py +++ b/cyperf/models/dtls_settings.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "TLSClientProfile": TLSProfile.from_dict(obj["TLSClientProfile"]) if obj.get("TLSClientProfile") is not None else None, "UDPProfile": UdpProfile.from_dict(obj["UDPProfile"]) if obj.get("UDPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index 184d78b..b9d75e2 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -25,7 +25,7 @@ from cyperf.models.health_check_config import HealthCheckConfig from cyperf.models.params import Params from cyperf.models.pep_dut import PepDUT -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -234,7 +234,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "UseRealHost": obj.get("UseRealHost"), "active": obj.get("active"), "host": obj.get("host"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/edit_action_input.py b/cyperf/models/edit_action_input.py index ce06678..660ad15 100644 --- a/cyperf/models/edit_action_input.py +++ b/cyperf/models/edit_action_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.parameter_meta import ParameterMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionIndex": obj.get("ActionIndex"), - "Parameters": [ParameterMeta.from_dict(_item) for _item in obj["Parameters"]] if obj.get("Parameters") is not None else None + "Parameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("Parameters", [])] if obj.get("Parameters") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 6609901..33e5063 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -27,7 +27,7 @@ from cyperf.models.rename_input import RenameInput from cyperf.models.reorder_action_input import ReorderActionInput from cyperf.models.reorder_exchanges_input import ReorderExchangesInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -149,16 +149,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "AddInputs": [AddInput.from_dict(_item) for _item in obj["AddInputs"]] if obj.get("AddInputs") is not None else None, + "AddInputs": ( [AddInput.from_dict(_item) for _item in obj.get("AddInputs", [])] if obj.get("AddInputs") is not None else None), "AppDescription": obj.get("AppDescription"), "AppId": obj.get("AppId"), "AppName": obj.get("AppName"), - "AppParameters": [ParameterMeta.from_dict(_item) for _item in obj["AppParameters"]] if obj.get("AppParameters") is not None else None, - "DeleteInputs": [DeleteInput.from_dict(_item) for _item in obj["DeleteInputs"]] if obj.get("DeleteInputs") is not None else None, - "EditActionInputs": [EditActionInput.from_dict(_item) for _item in obj["EditActionInputs"]] if obj.get("EditActionInputs") is not None else None, - "RenameInputs": [RenameInput.from_dict(_item) for _item in obj["RenameInputs"]] if obj.get("RenameInputs") is not None else None, - "ReorderActionsInputs": [ReorderActionInput.from_dict(_item) for _item in obj["ReorderActionsInputs"]] if obj.get("ReorderActionsInputs") is not None else None, - "ReorderExchangesInputs": [ReorderExchangesInput.from_dict(_item) for _item in obj["ReorderExchangesInputs"]] if obj.get("ReorderExchangesInputs") is not None else None + "AppParameters": ( [ParameterMeta.from_dict(_item) for _item in obj.get("AppParameters", [])] if obj.get("AppParameters") is not None else None), + "DeleteInputs": ( [DeleteInput.from_dict(_item) for _item in obj.get("DeleteInputs", [])] if obj.get("DeleteInputs") is not None else None), + "EditActionInputs": ( [EditActionInput.from_dict(_item) for _item in obj.get("EditActionInputs", [])] if obj.get("EditActionInputs") is not None else None), + "RenameInputs": ( [RenameInput.from_dict(_item) for _item in obj.get("RenameInputs", [])] if obj.get("RenameInputs") is not None else None), + "ReorderActionsInputs": ( [ReorderActionInput.from_dict(_item) for _item in obj.get("ReorderActionsInputs", [])] if obj.get("ReorderActionsInputs") is not None else None), + "ReorderExchangesInputs": ( [ReorderExchangesInput.from_dict(_item) for _item in obj.get("ReorderExchangesInputs", [])] if obj.get("ReorderExchangesInputs") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/effective_ports.py b/cyperf/models/effective_ports.py index ff7da4f..3659bee 100644 --- a/cyperf/models/effective_ports.py +++ b/cyperf/models/effective_ports.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/emulated_router.py b/cyperf/models/emulated_router.py index f7ca59f..4d93cec 100644 --- a/cyperf/models/emulated_router.py +++ b/cyperf/models/emulated_router.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.emulated_router_range import EmulatedRouterRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -102,9 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "EmulatedRouterRanges": [EmulatedRouterRange.from_dict(_item) for _item in obj["EmulatedRouterRanges"]] if obj.get("EmulatedRouterRanges") is not None else None, + "EmulatedRouterRanges": ( [EmulatedRouterRange.from_dict(_item) for _item in obj.get("EmulatedRouterRanges", [])] if obj.get("EmulatedRouterRanges") is not None else None), "Enabled": obj.get("Enabled"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 6276f1d..5784f38 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -25,7 +25,7 @@ from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -172,7 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetMask": obj.get("NetMask"), "NetMaskAuto": obj.get("NetMaskAuto"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent"), "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , diff --git a/cyperf/models/emulated_subnet_config.py b/cyperf/models/emulated_subnet_config.py index 15cfe0e..cb47de6 100644 --- a/cyperf/models/emulated_subnet_config.py +++ b/cyperf/models/emulated_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/endpoint.py b/cyperf/models/endpoint.py index d308c8b..f067242 100644 --- a/cyperf/models/endpoint.py +++ b/cyperf/models/endpoint.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.network_mapping import NetworkMapping -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, "Type": obj.get("Type"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/entitlement_code_info.py b/cyperf/models/entitlement_code_info.py index c86bc1e..a56490d 100644 --- a/cyperf/models/entitlement_code_info.py +++ b/cyperf/models/entitlement_code_info.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.activation_code_info import ActivationCodeInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "activationCodes": [ActivationCodeInfo.from_dict(_item) for _item in obj["activationCodes"]] if obj.get("activationCodes") is not None else None, + "activationCodes": ( [ActivationCodeInfo.from_dict(_item) for _item in obj.get("activationCodes", [])] if obj.get("activationCodes") is not None else None), "entitlementCode": obj.get("entitlementCode") , "links": obj.get("links") diff --git a/cyperf/models/entitlement_code_request.py b/cyperf/models/entitlement_code_request.py index 385bd32..0c98cba 100644 --- a/cyperf/models/entitlement_code_request.py +++ b/cyperf/models/entitlement_code_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/enum.py b/cyperf/models/enum.py index c14401a..b5435d5 100644 --- a/cyperf/models/enum.py +++ b/cyperf/models/enum.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.choice import Choice -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Choices": [Choice.from_dict(_item) for _item in obj["Choices"]] if obj.get("Choices") is not None else None, + "Choices": ( [Choice.from_dict(_item) for _item in obj.get("Choices", [])] if obj.get("Choices") is not None else None), "Default": obj.get("Default") , "links": obj.get("links") diff --git a/cyperf/models/error_description.py b/cyperf/models/error_description.py index f6c936d..9cb79f2 100644 --- a/cyperf/models/error_description.py +++ b/cyperf/models/error_description.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/error_response.py b/cyperf/models/error_response.py index 65c4f2a..f18fe1b 100644 --- a/cyperf/models/error_response.py +++ b/cyperf/models/error_response.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/esp_over_udp_settings.py b/cyperf/models/esp_over_udp_settings.py index 171a14d..11ba156 100644 --- a/cyperf/models/esp_over_udp_settings.py +++ b/cyperf/models/esp_over_udp_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "UDPProfile": UdpProfile.from_dict(obj["UDPProfile"]) if obj.get("UDPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index ee02174..964ed14 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -23,7 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.static_arp_entry import StaticARPEntry -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -133,8 +133,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MacIncr": obj.get("MacIncr"), "MacStart": obj.get("MacStart"), "OneMacPerIP": obj.get("OneMacPerIP"), - "StaticARPTable": [StaticARPEntry.from_dict(_item) for _item in obj["StaticARPTable"]] if obj.get("StaticARPTable") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "StaticARPTable": ( [StaticARPEntry.from_dict(_item) for _item in obj.get("StaticARPTable", [])] if obj.get("StaticARPTable") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent") , "links": obj.get("links") diff --git a/cyperf/models/eula_details.py b/cyperf/models/eula_details.py index 93c4f29..6f3f952 100644 --- a/cyperf/models/eula_details.py +++ b/cyperf/models/eula_details.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/eula_summary.py b/cyperf/models/eula_summary.py index 61648f1..4342389 100644 --- a/cyperf/models/eula_summary.py +++ b/cyperf/models/eula_summary.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/exchange.py b/cyperf/models/exchange.py index f4d8666..c6914fd 100644 --- a/cyperf/models/exchange.py +++ b/cyperf/models/exchange.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/exchange_order.py b/cyperf/models/exchange_order.py index 9d10b96..6ee8c5e 100644 --- a/cyperf/models/exchange_order.py +++ b/cyperf/models/exchange_order.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/exchange_payload.py b/cyperf/models/exchange_payload.py index 3b9acaa..6d98999 100644 --- a/cyperf/models/exchange_payload.py +++ b/cyperf/models/exchange_payload.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space.py b/cyperf/models/expected_disk_space.py index 88075fa..10fe944 100644 --- a/cyperf/models/expected_disk_space.py +++ b/cyperf/models/expected_disk_space.py @@ -23,7 +23,7 @@ from cyperf.models.expected_disk_space_message import ExpectedDiskSpaceMessage from cyperf.models.expected_disk_space_pretty_size import ExpectedDiskSpacePrettySize from cyperf.models.expected_disk_space_size import ExpectedDiskSpaceSize -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_message.py b/cyperf/models/expected_disk_space_message.py index 69c90c3..c68c435 100644 --- a/cyperf/models/expected_disk_space_message.py +++ b/cyperf/models/expected_disk_space_message.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_pretty_size.py b/cyperf/models/expected_disk_space_pretty_size.py index 17c689a..f616efb 100644 --- a/cyperf/models/expected_disk_space_pretty_size.py +++ b/cyperf/models/expected_disk_space_pretty_size.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/expected_disk_space_size.py b/cyperf/models/expected_disk_space_size.py index c840dfd..4cbadb4 100644 --- a/cyperf/models/expected_disk_space_size.py +++ b/cyperf/models/expected_disk_space_size.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/export_all_operation.py b/cyperf/models/export_all_operation.py index 80d08f2..369929b 100644 --- a/cyperf/models/export_all_operation.py +++ b/cyperf/models/export_all_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_id import ConfigId -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "configIds": [ConfigId.from_dict(_item) for _item in obj["configIds"]] if obj.get("configIds") is not None else None + "configIds": ( [ConfigId.from_dict(_item) for _item in obj.get("configIds", [])] if obj.get("configIds") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/export_apps_operation_input.py b/cyperf/models/export_apps_operation_input.py index 1c58259..fd49745 100644 --- a/cyperf/models/export_apps_operation_input.py +++ b/cyperf/models/export_apps_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.app_id import AppId -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "appIds": [AppId.from_dict(_item) for _item in obj["appIds"]] if obj.get("appIds") is not None else None + "appIds": ( [AppId.from_dict(_item) for _item in obj.get("appIds", [])] if obj.get("appIds") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/export_files_operation_input.py b/cyperf/models/export_files_operation_input.py index 7f7de67..31aeba9 100644 --- a/cyperf/models/export_files_operation_input.py +++ b/cyperf/models/export_files_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.export_files_request import ExportFilesRequest -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,13 +95,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "exportFilesRequestsByAgent": dict( - (_k, + "exportFilesRequestsByAgent": ( + { + _k: ( [ExportFilesRequest.from_dict(_item) for _item in _v] - if _v is not None - else None - ) - for _k, _v in obj.get("exportFilesRequestsByAgent", {}).items() + if _v is not None else None + ) + for _k, _v in (obj.get("exportFilesRequestsByAgent") or {}).items() + } ), "timeout": obj.get("timeout") , diff --git a/cyperf/models/export_files_request.py b/cyperf/models/export_files_request.py index eec9792..03dacf9 100644 --- a/cyperf/models/export_files_request.py +++ b/cyperf/models/export_files_request.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.required_file_types import RequiredFileTypes -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/export_package_operation.py b/cyperf/models/export_package_operation.py index cd8660e..c3f2bd9 100644 --- a/cyperf/models/export_package_operation.py +++ b/cyperf/models/export_package_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/external_resource_info.py b/cyperf/models/external_resource_info.py index 1878fa6..3fdb497 100644 --- a/cyperf/models/external_resource_info.py +++ b/cyperf/models/external_resource_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/f5_encapsulation.py b/cyperf/models/f5_encapsulation.py index 7ed8f2c..ed73979 100644 --- a/cyperf/models/f5_encapsulation.py +++ b/cyperf/models/f5_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PPPOverDTLSEnabled": obj.get("PPPOverDTLSEnabled"), "PPPOverDTLSSettings": DTLSSettings.from_dict(obj["PPPOverDTLSSettings"]) if obj.get("PPPOverDTLSSettings") is not None else None, "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/f5_settings.py b/cyperf/models/f5_settings.py index 4d9d8f7..d437ade 100644 --- a/cyperf/models/f5_settings.py +++ b/cyperf/models/f5_settings.py @@ -26,7 +26,7 @@ from cyperf.models.f5_encapsulation import F5Encapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "F5Encapsulation": F5Encapsulation.from_dict(obj["F5Encapsulation"]) if obj.get("F5Encapsulation") is not None else None, "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, "VPNGateway": obj.get("VPNGateway") diff --git a/cyperf/models/feature.py b/cyperf/models/feature.py index 9af1a44..5698b78 100644 --- a/cyperf/models/feature.py +++ b/cyperf/models/feature.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from cyperf.models.feature_reservation import FeatureReservation -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/feature_reservation.py b/cyperf/models/feature_reservation.py index 7869617..916ae58 100644 --- a/cyperf/models/feature_reservation.py +++ b/cyperf/models/feature_reservation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/feature_reservation_reserve.py b/cyperf/models/feature_reservation_reserve.py index bd1699c..4c93cec 100644 --- a/cyperf/models/feature_reservation_reserve.py +++ b/cyperf/models/feature_reservation_reserve.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/file_metadata.py b/cyperf/models/file_metadata.py index e27a93d..d68e1bd 100644 --- a/cyperf/models/file_metadata.py +++ b/cyperf/models/file_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index 43e3f5f..8ce2752 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/filter.py b/cyperf/models/filter.py index 037e1db..8a40b69 100644 --- a/cyperf/models/filter.py +++ b/cyperf/models/filter.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/filtered_stat.py b/cyperf/models/filtered_stat.py index 74800d5..dfacd06 100644 --- a/cyperf/models/filtered_stat.py +++ b/cyperf/models/filtered_stat.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.filter import Filter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "filters": [Filter.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "filters": ( [Filter.from_dict(_item) for _item in obj.get("filters", [])] if obj.get("filters") is not None else None), "name": obj.get("name") , "links": obj.get("links") diff --git a/cyperf/models/find_param_matches_operation.py b/cyperf/models/find_param_matches_operation.py index 7a122e4..92eee16 100644 --- a/cyperf/models/find_param_matches_operation.py +++ b/cyperf/models/find_param_matches_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.action_input_find_param import ActionInputFindParam -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [ActionInputFindParam.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, + "Actions": ( [ActionInputFindParam.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), "AppId": obj.get("AppId"), "MatchLocation": obj.get("MatchLocation") if obj.get("MatchLocation") is not None else [], "Pattern": obj.get("Pattern") diff --git a/cyperf/models/fortinet_encapsulation.py b/cyperf/models/fortinet_encapsulation.py index e1526ba..860b9c5 100644 --- a/cyperf/models/fortinet_encapsulation.py +++ b/cyperf/models/fortinet_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.dtls_settings import DTLSSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PPPOverDTLSEnabled": obj.get("PPPOverDTLSEnabled"), "PPPOverDTLSSettings": DTLSSettings.from_dict(obj["PPPOverDTLSSettings"]) if obj.get("PPPOverDTLSSettings") is not None else None, "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/fortinet_settings.py b/cyperf/models/fortinet_settings.py index a772066..b5a6676 100644 --- a/cyperf/models/fortinet_settings.py +++ b/cyperf/models/fortinet_settings.py @@ -26,7 +26,7 @@ from cyperf.models.fortinet_encapsulation import FortinetEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "FortinetEncapsulation": FortinetEncapsulation.from_dict(obj["FortinetEncapsulation"]) if obj.get("FortinetEncapsulation") is not None else None, "OuterTLSClientProfile": TLSProfile.from_dict(obj["OuterTLSClientProfile"]) if obj.get("OuterTLSClientProfile") is not None else None, "VPNGateway": obj.get("VPNGateway") diff --git a/cyperf/models/fulfillment_request.py b/cyperf/models/fulfillment_request.py index f4c7704..572bbe3 100644 --- a/cyperf/models/fulfillment_request.py +++ b/cyperf/models/fulfillment_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generate_all_operation.py b/cyperf/models/generate_all_operation.py index b29e15f..e358dfa 100644 --- a/cyperf/models/generate_all_operation.py +++ b/cyperf/models/generate_all_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generate_csv_reports_operation.py b/cyperf/models/generate_csv_reports_operation.py index 55de009..0b3a613 100644 --- a/cyperf/models/generate_csv_reports_operation.py +++ b/cyperf/models/generate_csv_reports_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.filtered_stat import FilteredStat -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -100,7 +100,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "forceGenerate": obj.get("forceGenerate"), "from": obj.get("from"), "interval": obj.get("interval"), - "stats": [FilteredStat.from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": ( [FilteredStat.from_dict(_item) for _item in obj.get("stats", [])] if obj.get("stats") is not None else None), "to": obj.get("to"), "useRelativeTime": obj.get("useRelativeTime") , diff --git a/cyperf/models/generate_pdf_report_operation.py b/cyperf/models/generate_pdf_report_operation.py index beaf775..24a453a 100644 --- a/cyperf/models/generate_pdf_report_operation.py +++ b/cyperf/models/generate_pdf_report_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/generic_file.py b/cyperf/models/generic_file.py index 3a43762..dec088b 100644 --- a/cyperf/models/generic_file.py +++ b/cyperf/models/generic_file.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.file_metadata import FileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -123,7 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "options": dict( (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["options"].items() + for _k, _v in (obj.get("options") or {}).items() ) if obj.get("options") is not None else None, diff --git a/cyperf/models/get_agents200_response.py b/cyperf/models/get_agents200_response.py index 64017a2..9f2e109 100644 --- a/cyperf/models/get_agents200_response.py +++ b/cyperf/models/get_agents200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetAgents200ResponseOneOf + + + try: instance.actual_instance = GetAgents200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_agents200_response_one_of.py b/cyperf/models/get_agents200_response_one_of.py index a235b13..ac0fbb5 100644 --- a/cyperf/models/get_agents200_response_one_of.py +++ b/cyperf/models/get_agents200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent import Agent -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Agent.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Agent.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_agents_tags200_response.py b/cyperf/models/get_agents_tags200_response.py index db1913f..b75c755 100644 --- a/cyperf/models/get_agents_tags200_response.py +++ b/cyperf/models/get_agents_tags200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetAgentsTags200ResponseOneOf + + + try: instance.actual_instance = GetAgentsTags200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_agents_tags200_response_one_of.py b/cyperf/models/get_agents_tags200_response_one_of.py index e753852..52df7eb 100644 --- a/cyperf/models/get_agents_tags200_response_one_of.py +++ b/cyperf/models/get_agents_tags200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agents_group import AgentsGroup -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AgentsGroup.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AgentsGroup.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_apps_operation.py b/cyperf/models/get_apps_operation.py index 39d6b86..1da38fe 100644 --- a/cyperf/models/get_apps_operation.py +++ b/cyperf/models/get_apps_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -106,12 +106,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), "filterMode": obj.get("filterMode"), "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), - "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), "take": obj.get("take") , "links": obj.get("links") diff --git a/cyperf/models/get_async_operation_result200_response.py b/cyperf/models/get_async_operation_result200_response.py index 01dee7c..d4473b8 100644 --- a/cyperf/models/get_async_operation_result200_response.py +++ b/cyperf/models/get_async_operation_result200_response.py @@ -98,23 +98,35 @@ def from_json(cls, json_str: str) -> Self: match = 0 # deserialize data into EntitlementCodeInfo + + + try: instance.actual_instance = EntitlementCodeInfo.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into ActivationCodeInfo + + + try: instance.actual_instance = ActivationCodeInfo.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into CountedFeatureStats + + + try: instance.actual_instance = CountedFeatureStats.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_attacks_operation.py b/cyperf/models/get_attacks_operation.py index 07f9d35..02528b7 100644 --- a/cyperf/models/get_attacks_operation.py +++ b/cyperf/models/get_attacks_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -106,12 +106,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), "filterMode": obj.get("filterMode"), "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), - "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), "take": obj.get("take") , "links": obj.get("links") diff --git a/cyperf/models/get_brokers200_response.py b/cyperf/models/get_brokers200_response.py index 953b4b9..af1490a 100644 --- a/cyperf/models/get_brokers200_response.py +++ b/cyperf/models/get_brokers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetBrokers200ResponseOneOf + + + try: instance.actual_instance = GetBrokers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_brokers200_response_one_of.py b/cyperf/models/get_brokers200_response_one_of.py index 8af1ac1..109a749 100644 --- a/cyperf/models/get_brokers200_response_one_of.py +++ b/cyperf/models/get_brokers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.broker import Broker -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Broker.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Broker.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_categories_operation.py b/cyperf/models/get_categories_operation.py index ca4f360..14a6b40 100644 --- a/cyperf/models/get_categories_operation.py +++ b/cyperf/models/get_categories_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "filter": [CategoryFilter.from_dict(_item) for _item in obj["filter"]] if obj.get("filter") is not None else None + "filter": ( [CategoryFilter.from_dict(_item) for _item in obj.get("filter", [])] if obj.get("filter") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/get_config_categorie_subcategories200_response.py b/cyperf/models/get_config_categorie_subcategories200_response.py index 3dc6fde..09ccfda 100644 --- a/cyperf/models/get_config_categorie_subcategories200_response.py +++ b/cyperf/models/get_config_categorie_subcategories200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetConfigCategorieSubcategories200ResponseOneOf + + + try: instance.actual_instance = GetConfigCategorieSubcategories200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py index 81c5642..4538f05 100644 --- a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py +++ b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_sub_category import ConfigSubCategory -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ConfigSubCategory.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ConfigSubCategory.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_config_categories200_response.py b/cyperf/models/get_config_categories200_response.py index 40dc785..44e9a1b 100644 --- a/cyperf/models/get_config_categories200_response.py +++ b/cyperf/models/get_config_categories200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetConfigCategories200ResponseOneOf + + + try: instance.actual_instance = GetConfigCategories200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_config_categories200_response_one_of.py b/cyperf/models/get_config_categories200_response_one_of.py index dacddb4..9cc0398 100644 --- a/cyperf/models/get_config_categories200_response_one_of.py +++ b/cyperf/models/get_config_categories200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_category import ConfigCategory -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ConfigCategory.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ConfigCategory.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_configs200_response.py b/cyperf/models/get_configs200_response.py index c900452..45826c3 100644 --- a/cyperf/models/get_configs200_response.py +++ b/cyperf/models/get_configs200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetConfigs200ResponseOneOf + + + try: instance.actual_instance = GetConfigs200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_configs200_response_one_of.py b/cyperf/models/get_configs200_response_one_of.py index f755da5..9732c55 100644 --- a/cyperf/models/get_configs200_response_one_of.py +++ b/cyperf/models/get_configs200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_metadata import ConfigMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ConfigMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ConfigMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_controllers200_response.py b/cyperf/models/get_controllers200_response.py index 39dcad6..2e68d81 100644 --- a/cyperf/models/get_controllers200_response.py +++ b/cyperf/models/get_controllers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetControllers200ResponseOneOf + + + try: instance.actual_instance = GetControllers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_controllers200_response_one_of.py b/cyperf/models/get_controllers200_response_one_of.py index d879394..07aae2d 100644 --- a/cyperf/models/get_controllers200_response_one_of.py +++ b/cyperf/models/get_controllers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.controller import Controller -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Controller.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Controller.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_disk_usage_consumers200_response.py b/cyperf/models/get_disk_usage_consumers200_response.py index da65111..2a8ee57 100644 --- a/cyperf/models/get_disk_usage_consumers200_response.py +++ b/cyperf/models/get_disk_usage_consumers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetDiskUsageConsumers200ResponseOneOf + + + try: instance.actual_instance = GetDiskUsageConsumers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_disk_usage_consumers200_response_one_of.py b/cyperf/models/get_disk_usage_consumers200_response_one_of.py index ff92ced..b102098 100644 --- a/cyperf/models/get_disk_usage_consumers200_response_one_of.py +++ b/cyperf/models/get_disk_usage_consumers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.consumer import Consumer -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Consumer.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Consumer.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_license_async_operation_result200_response.py b/cyperf/models/get_license_async_operation_result200_response.py index 1d93222..1dc2334 100644 --- a/cyperf/models/get_license_async_operation_result200_response.py +++ b/cyperf/models/get_license_async_operation_result200_response.py @@ -82,11 +82,15 @@ def from_json(cls, json_str: str) -> Self: match = 0 # deserialize data into License + + + try: instance.actual_instance = License.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_license_servers200_response.py b/cyperf/models/get_license_servers200_response.py index fde5477..d1d2606 100644 --- a/cyperf/models/get_license_servers200_response.py +++ b/cyperf/models/get_license_servers200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetLicenseServers200ResponseOneOf + + + try: instance.actual_instance = GetLicenseServers200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_license_servers200_response_one_of.py b/cyperf/models/get_license_servers200_response_one_of.py index 99a5271..75dfe59 100644 --- a/cyperf/models/get_license_servers200_response_one_of.py +++ b/cyperf/models/get_license_servers200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.license_server_metadata import LicenseServerMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [LicenseServerMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [LicenseServerMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_notifications200_response.py b/cyperf/models/get_notifications200_response.py index d6e5954..847fdac 100644 --- a/cyperf/models/get_notifications200_response.py +++ b/cyperf/models/get_notifications200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetNotifications200ResponseOneOf + + + try: instance.actual_instance = GetNotifications200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_notifications200_response_one_of.py b/cyperf/models/get_notifications200_response_one_of.py index 8b51284..6e61e3e 100644 --- a/cyperf/models/get_notifications200_response_one_of.py +++ b/cyperf/models/get_notifications200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.notification import Notification -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Notification.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Notification.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_application_types200_response.py b/cyperf/models/get_resources_application_types200_response.py index deac8bf..92d9d1a 100644 --- a/cyperf/models/get_resources_application_types200_response.py +++ b/cyperf/models/get_resources_application_types200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesApplicationTypes200ResponseOneOf + + + try: instance.actual_instance = GetResourcesApplicationTypes200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_application_types200_response_one_of.py b/cyperf/models/get_resources_application_types200_response_one_of.py index ed7388b..a4778c2 100644 --- a/cyperf/models/get_resources_application_types200_response_one_of.py +++ b/cyperf/models/get_resources_application_types200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.application_type import ApplicationType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ApplicationType.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ApplicationType.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_apps200_response.py b/cyperf/models/get_resources_apps200_response.py index bf83700..0b9557c 100644 --- a/cyperf/models/get_resources_apps200_response.py +++ b/cyperf/models/get_resources_apps200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesApps200ResponseOneOf + + + try: instance.actual_instance = GetResourcesApps200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_apps200_response_one_of.py b/cyperf/models/get_resources_apps200_response_one_of.py index 5894e72..e36deea 100644 --- a/cyperf/models/get_resources_apps200_response_one_of.py +++ b/cyperf/models/get_resources_apps200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app import AppsecApp -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AppsecApp.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AppsecApp.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_attacks200_response.py b/cyperf/models/get_resources_attacks200_response.py index 8d430d3..4227e3d 100644 --- a/cyperf/models/get_resources_attacks200_response.py +++ b/cyperf/models/get_resources_attacks200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesAttacks200ResponseOneOf + + + try: instance.actual_instance = GetResourcesAttacks200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_attacks200_response_one_of.py b/cyperf/models/get_resources_attacks200_response_one_of.py index 25dcb6e..520f321 100644 --- a/cyperf/models/get_resources_attacks200_response_one_of.py +++ b/cyperf/models/get_resources_attacks200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_attack import AppsecAttack -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AppsecAttack.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AppsecAttack.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_auth_profiles200_response.py b/cyperf/models/get_resources_auth_profiles200_response.py index 684ac08..e14d010 100644 --- a/cyperf/models/get_resources_auth_profiles200_response.py +++ b/cyperf/models/get_resources_auth_profiles200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesAuthProfiles200ResponseOneOf + + + try: instance.actual_instance = GetResourcesAuthProfiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_auth_profiles200_response_one_of.py b/cyperf/models/get_resources_auth_profiles200_response_one_of.py index d872515..a9d5db7 100644 --- a/cyperf/models/get_resources_auth_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_auth_profiles200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.auth_profile import AuthProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AuthProfile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [AuthProfile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_certificates200_response.py b/cyperf/models/get_resources_certificates200_response.py index 18e5e6d..3847182 100644 --- a/cyperf/models/get_resources_certificates200_response.py +++ b/cyperf/models/get_resources_certificates200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesCertificates200ResponseOneOf + + + try: instance.actual_instance = GetResourcesCertificates200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_certificates200_response_one_of.py b/cyperf/models/get_resources_certificates200_response_one_of.py index f92e9ec..e89b61a 100644 --- a/cyperf/models/get_resources_certificates200_response_one_of.py +++ b/cyperf/models/get_resources_certificates200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.generic_file import GenericFile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [GenericFile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [GenericFile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_custom_import_operations200_response.py b/cyperf/models/get_resources_custom_import_operations200_response.py index 35f9ede..2cc4b11 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response.py +++ b/cyperf/models/get_resources_custom_import_operations200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesCustomImportOperations200ResponseOneOf + + + try: instance.actual_instance = GetResourcesCustomImportOperations200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py index 08c1f03..5c4ad31 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py +++ b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.custom_import_handler import CustomImportHandler -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [CustomImportHandler.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [CustomImportHandler.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_resources_http_profiles200_response.py b/cyperf/models/get_resources_http_profiles200_response.py index 7d1dd09..a5ca4c2 100644 --- a/cyperf/models/get_resources_http_profiles200_response.py +++ b/cyperf/models/get_resources_http_profiles200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResourcesHttpProfiles200ResponseOneOf + + + try: instance.actual_instance = GetResourcesHttpProfiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_resources_http_profiles200_response_one_of.py b/cyperf/models/get_resources_http_profiles200_response_one_of.py index c5f8ed4..85dda5f 100644 --- a/cyperf/models/get_resources_http_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_http_profiles200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.http_profile import HTTPProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [HTTPProfile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [HTTPProfile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_result_files200_response.py b/cyperf/models/get_result_files200_response.py index 60e849a..8107fb7 100644 --- a/cyperf/models/get_result_files200_response.py +++ b/cyperf/models/get_result_files200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultFiles200ResponseOneOf + + + try: instance.actual_instance = GetResultFiles200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_result_files200_response_one_of.py b/cyperf/models/get_result_files200_response_one_of.py index 57d475a..4c8f718 100644 --- a/cyperf/models/get_result_files200_response_one_of.py +++ b/cyperf/models/get_result_files200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.result_file_metadata import ResultFileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultFileMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultFileMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_result_stats200_response.py b/cyperf/models/get_result_stats200_response.py index 6252440..e13e44f 100644 --- a/cyperf/models/get_result_stats200_response.py +++ b/cyperf/models/get_result_stats200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultStats200ResponseOneOf + + + try: instance.actual_instance = GetResultStats200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_result_stats200_response_one_of.py b/cyperf/models/get_result_stats200_response_one_of.py index 901f7ec..fadc58e 100644 --- a/cyperf/models/get_result_stats200_response_one_of.py +++ b/cyperf/models/get_result_stats200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stats_result import StatsResult -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [StatsResult.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [StatsResult.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_results200_response.py b/cyperf/models/get_results200_response.py index 36c09a2..f30f6a4 100644 --- a/cyperf/models/get_results200_response.py +++ b/cyperf/models/get_results200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResults200ResponseOneOf + + + try: instance.actual_instance = GetResults200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_results200_response_one_of.py b/cyperf/models/get_results200_response_one_of.py index ab6a681..660a86f 100644 --- a/cyperf/models/get_results200_response_one_of.py +++ b/cyperf/models/get_results200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.result_metadata import ResultMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultMetadata.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_results_tags200_response.py b/cyperf/models/get_results_tags200_response.py index a046c9b..d07c8f6 100644 --- a/cyperf/models/get_results_tags200_response.py +++ b/cyperf/models/get_results_tags200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetResultsTags200ResponseOneOf + + + try: instance.actual_instance = GetResultsTags200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_results_tags200_response_one_of.py b/cyperf/models/get_results_tags200_response_one_of.py index 0d4b261..6770a33 100644 --- a/cyperf/models/get_results_tags200_response_one_of.py +++ b/cyperf/models/get_results_tags200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.results_group import ResultsGroup -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ResultsGroup.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [ResultsGroup.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_session_meta200_response.py b/cyperf/models/get_session_meta200_response.py index 45e5548..dcdb316 100644 --- a/cyperf/models/get_session_meta200_response.py +++ b/cyperf/models/get_session_meta200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetSessionMeta200ResponseOneOf + + + try: instance.actual_instance = GetSessionMeta200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_session_meta200_response_one_of.py b/cyperf/models/get_session_meta200_response_one_of.py index 1b600dd..c0f3aff 100644 --- a/cyperf/models/get_session_meta200_response_one_of.py +++ b/cyperf/models/get_session_meta200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.pair import Pair -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Pair.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Pair.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_sessions200_response.py b/cyperf/models/get_sessions200_response.py index 33b3307..092e45f 100644 --- a/cyperf/models/get_sessions200_response.py +++ b/cyperf/models/get_sessions200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetSessions200ResponseOneOf + + + try: instance.actual_instance = GetSessions200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_sessions200_response_one_of.py b/cyperf/models/get_sessions200_response_one_of.py index 63ea875..bb10f2e 100644 --- a/cyperf/models/get_sessions200_response_one_of.py +++ b/cyperf/models/get_sessions200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.session import Session -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Session.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Session.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_stats_plugins200_response.py b/cyperf/models/get_stats_plugins200_response.py index c82a250..a8058b3 100644 --- a/cyperf/models/get_stats_plugins200_response.py +++ b/cyperf/models/get_stats_plugins200_response.py @@ -100,11 +100,15 @@ def from_json(cls, json_str: str) -> Self: except (ValidationError, ValueError) as e: error_messages.append(str(e)) # deserialize data into GetStatsPlugins200ResponseOneOf + + + try: instance.actual_instance = GetStatsPlugins200ResponseOneOf.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + if match > 1: # more than 1 match diff --git a/cyperf/models/get_stats_plugins200_response_one_of.py b/cyperf/models/get_stats_plugins200_response_one_of.py index 8debc22..657bce2 100644 --- a/cyperf/models/get_stats_plugins200_response_one_of.py +++ b/cyperf/models/get_stats_plugins200_response_one_of.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.plugin import Plugin -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [Plugin.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, + "data": ( [Plugin.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), "totalCount": obj.get("totalCount") , "links": obj.get("links") diff --git a/cyperf/models/get_strikes_operation.py b/cyperf/models/get_strikes_operation.py index 091662b..e390792 100644 --- a/cyperf/models/get_strikes_operation.py +++ b/cyperf/models/get_strikes_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.category_filter import CategoryFilter from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -107,13 +107,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "categories": [CategoryFilter.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), "compatibleWith": obj.get("compatibleWith"), "filterMode": obj.get("filterMode"), "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], "skip": obj.get("skip"), - "sort": [SortBodyField.from_dict(_item) for _item in obj["sort"]] if obj.get("sort") is not None else None, + "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), "take": obj.get("take") , "links": obj.get("links") diff --git a/cyperf/models/group_tls13.py b/cyperf/models/group_tls13.py index e9cfd41..b248820 100644 --- a/cyperf/models/group_tls13.py +++ b/cyperf/models/group_tls13.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/health_check_config.py b/cyperf/models/health_check_config.py index d05e835..7d4cfd9 100644 --- a/cyperf/models/health_check_config.py +++ b/cyperf/models/health_check_config.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,9 +104,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Enabled": obj.get("Enabled"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "Port": obj.get("Port"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/health_issue.py b/cyperf/models/health_issue.py index c36096a..2f11b87 100644 --- a/cyperf/models/health_issue.py +++ b/cyperf/models/health_issue.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/host_id.py b/cyperf/models/host_id.py index 875af1f..0cecfab 100644 --- a/cyperf/models/host_id.py +++ b/cyperf/models/host_id.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/http_profile.py b/cyperf/models/http_profile.py index 0166330..5497708 100644 --- a/cyperf/models/http_profile.py +++ b/cyperf/models/http_profile.py @@ -24,7 +24,7 @@ from cyperf.models.connection_persistence import ConnectionPersistence from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -128,9 +128,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Headers": Params.from_dict(obj["Headers"]) if obj.get("Headers") is not None else None, "IsModified": obj.get("IsModified"), "Name": obj.get("Name"), - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "UseApplicationServerHeaders": obj.get("UseApplicationServerHeaders"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/http_req_meta.py b/cyperf/models/http_req_meta.py index 11e78c2..4a3e5f6 100644 --- a/cyperf/models/http_req_meta.py +++ b/cyperf/models/http_req_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/http_res_meta.py b/cyperf/models/http_res_meta.py index 7f74507..8f5fa3f 100644 --- a/cyperf/models/http_res_meta.py +++ b/cyperf/models/http_res_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/import_all_operation.py b/cyperf/models/import_all_operation.py index 934b807..489b76b 100644 --- a/cyperf/models/import_all_operation.py +++ b/cyperf/models/import_all_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.config_metadata import ConfigMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "configs": [ConfigMetadata.from_dict(_item) for _item in obj["configs"]] if obj.get("configs") is not None else None + "configs": ( [ConfigMetadata.from_dict(_item) for _item in obj.get("configs", [])] if obj.get("configs") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/import_offline_license_result.py b/cyperf/models/import_offline_license_result.py index 9944c8f..3939594 100644 --- a/cyperf/models/import_offline_license_result.py +++ b/cyperf/models/import_offline_license_result.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List from cyperf.models.license_receipt import LicenseReceipt -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ingest_operation.py b/cyperf/models/ingest_operation.py index 217ee6b..34468b9 100644 --- a/cyperf/models/ingest_operation.py +++ b/cyperf/models/ingest_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.plugin_stats import PluginStats -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/inner_ip_range.py b/cyperf/models/inner_ip_range.py index e1f5603..ad7a6ec 100644 --- a/cyperf/models/inner_ip_range.py +++ b/cyperf/models/inner_ip_range.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/interface.py b/cyperf/models/interface.py index c3c8f96..5a354b6 100644 --- a/cyperf/models/interface.py +++ b/cyperf/models/interface.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ip_mask import IpMask -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -107,7 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Gateway": obj.get("Gateway"), - "IP": [IpMask.from_dict(_item) for _item in obj["IP"]] if obj.get("IP") is not None else None, + "IP": ( [IpMask.from_dict(_item) for _item in obj.get("IP", [])] if obj.get("IP") is not None else None), "MTU": obj.get("MTU"), "Mac": obj.get("Mac"), "Name": obj.get("Name") diff --git a/cyperf/models/ip_mask.py b/cyperf/models/ip_mask.py index dbe7219..4ec3078 100644 --- a/cyperf/models/ip_mask.py +++ b/cyperf/models/ip_mask.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 63a4fa9..221bdf1 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -32,7 +32,7 @@ from cyperf.models.mac_dtls_stack import MacDtlsStack from cyperf.models.tunnel_stack import TunnelStack from cyperf.models.vx_lan_stack import VxLANStack -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -186,15 +186,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "DUTConnections": obj.get("DUTConnections") if obj.get("DUTConnections") is not None else [], "EmulatedRouter": EmulatedRouter.from_dict(obj["EmulatedRouter"]) if obj.get("EmulatedRouter") is not None else None, "EthRange": EthRange.from_dict(obj["EthRange"]) if obj.get("EthRange") is not None else None, - "IPRanges": [IPRange.from_dict(_item) for _item in obj["IPRanges"]] if obj.get("IPRanges") is not None else None, - "IPSecStacks": [IPSecStack.from_dict(_item) for _item in obj["IPSecStacks"]] if obj.get("IPSecStacks") is not None else None, - "MacDtlsStacks": [MacDtlsStack.from_dict(_item) for _item in obj["MacDtlsStacks"]] if obj.get("MacDtlsStacks") is not None else None, - "TunnelStacks": [TunnelStack.from_dict(_item) for _item in obj["TunnelStacks"]] if obj.get("TunnelStacks") is not None else None, - "VxLANStacks": [VxLANStack.from_dict(_item) for _item in obj["VxLANStacks"]] if obj.get("VxLANStacks") is not None else None, + "IPRanges": ( [IPRange.from_dict(_item) for _item in obj.get("IPRanges", [])] if obj.get("IPRanges") is not None else None), + "IPSecStacks": ( [IPSecStack.from_dict(_item) for _item in obj.get("IPSecStacks", [])] if obj.get("IPSecStacks") is not None else None), + "MacDtlsStacks": ( [MacDtlsStack.from_dict(_item) for _item in obj.get("MacDtlsStacks", [])] if obj.get("MacDtlsStacks") is not None else None), + "TunnelStacks": ( [TunnelStack.from_dict(_item) for _item in obj.get("TunnelStacks", [])] if obj.get("TunnelStacks") is not None else None), + "VxLANStacks": ( [VxLANStack.from_dict(_item) for _item in obj.get("VxLANStacks", [])] if obj.get("VxLANStacks") is not None else None), "active": obj.get("active"), "agentAssignments": AgentAssignments.from_dict(obj["agentAssignments"]) if obj.get("agentAssignments") is not None else None, "inheritStreamingCPUAllocation": obj.get("inheritStreamingCPUAllocation"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "minAgents": obj.get("minAgents"), "streamingCPUAllocation": obj.get("streamingCPUAllocation") , diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index adb7003..f8288af 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -25,7 +25,7 @@ from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -172,7 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "NetMask": obj.get("NetMask"), "NetMaskAuto": obj.get("NetMaskAuto"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent"), "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , diff --git a/cyperf/models/ip_sec_range.py b/cyperf/models/ip_sec_range.py index a326b61..2691442 100644 --- a/cyperf/models/ip_sec_range.py +++ b/cyperf/models/ip_sec_range.py @@ -29,7 +29,7 @@ from cyperf.models.remote_access import RemoteAccess from cyperf.models.remote_subnet_config import RemoteSubnetConfig from cyperf.models.timers import Timers -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -177,7 +177,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Timers": Timers.from_dict(obj["Timers"]) if obj.get("Timers") is not None else None, "TunnelCountPerOuterIP": obj.get("TunnelCountPerOuterIP"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/ip_sec_stack.py b/cyperf/models/ip_sec_stack.py index 915e264..b1529b6 100644 --- a/cyperf/models/ip_sec_stack.py +++ b/cyperf/models/ip_sec_stack.py @@ -27,7 +27,7 @@ from cyperf.models.ip_sec_range import IPSecRange from cyperf.models.local_subnet_config import LocalSubnetConfig from cyperf.models.params import Params -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -165,7 +165,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SetupTimeout": obj.get("SetupTimeout"), "StackRole": obj.get("StackRole"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/license.py b/cyperf/models/license.py index c413e13..89d97cd 100644 --- a/cyperf/models/license.py +++ b/cyperf/models/license.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from cyperf.models.feature import Feature from cyperf.models.link import Link -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -113,9 +113,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "activationCode": obj.get("activationCode"), "daysLeftToExpire": obj.get("daysLeftToExpire"), "expiryDate": obj.get("expiryDate"), - "features": [Feature.from_dict(_item) for _item in obj["features"]] if obj.get("features") is not None else None, + "features": ( [Feature.from_dict(_item) for _item in obj.get("features", [])] if obj.get("features") is not None else None), "isExpired": obj.get("isExpired"), - "links": [Link.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [Link.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maintenanceDate": obj.get("maintenanceDate"), "partNumberDescription": obj.get("partNumberDescription"), "partNumberId": obj.get("partNumberId"), diff --git a/cyperf/models/license_receipt.py b/cyperf/models/license_receipt.py index 6e57004..578088c 100644 --- a/cyperf/models/license_receipt.py +++ b/cyperf/models/license_receipt.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from cyperf.models.license import License -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "changedLicenses": [License.from_dict(_item) for _item in obj["changedLicenses"]] if obj.get("changedLicenses") is not None else None, + "changedLicenses": ( [License.from_dict(_item) for _item in obj.get("changedLicenses", [])] if obj.get("changedLicenses") is not None else None), "isOnline": obj.get("isOnline"), "operationType": obj.get("operationType") , diff --git a/cyperf/models/license_server_metadata.py b/cyperf/models/license_server_metadata.py index b7a46ac..c3f0cb6 100644 --- a/cyperf/models/license_server_metadata.py +++ b/cyperf/models/license_server_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/link.py b/cyperf/models/link.py index 599cb8a..a49376f 100644 --- a/cyperf/models/link.py +++ b/cyperf/models/link.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/load_config_operation.py b/cyperf/models/load_config_operation.py index 68b7ae2..b98e5f9 100644 --- a/cyperf/models/load_config_operation.py +++ b/cyperf/models/load_config_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index d385dd9..2753476 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/log_config.py b/cyperf/models/log_config.py index 6793d2e..3a96bf6 100644 --- a/cyperf/models/log_config.py +++ b/cyperf/models/log_config.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/mac_dtls_stack.py b/cyperf/models/mac_dtls_stack.py index c8dee97..00b5cdf 100644 --- a/cyperf/models/mac_dtls_stack.py +++ b/cyperf/models/mac_dtls_stack.py @@ -25,7 +25,7 @@ from cyperf.models.ip_range import IPRange from cyperf.models.network_meshing import NetworkMeshing from cyperf.models.vlan_range import VLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -220,7 +220,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelDestinationMacStart": obj.get("TunnelDestinationMacStart"), "VlanRange": VLANRange.from_dict(obj["VlanRange"]) if obj.get("VlanRange") is not None else None, "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/marked_as_deleted.py b/cyperf/models/marked_as_deleted.py index 2e3f99d..4578132 100644 --- a/cyperf/models/marked_as_deleted.py +++ b/cyperf/models/marked_as_deleted.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/md2_tlv.py b/cyperf/models/md2_tlv.py index af3e8f4..9b87749 100644 --- a/cyperf/models/md2_tlv.py +++ b/cyperf/models/md2_tlv.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/media_file.py b/cyperf/models/media_file.py index 3aaedfd..991c068 100644 --- a/cyperf/models/media_file.py +++ b/cyperf/models/media_file.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.file_value import FileValue from cyperf.models.media_track import MediaTrack -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,9 +108,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "FileValue": FileValue.from_dict(obj["FileValue"]) if obj.get("FileValue") is not None else None, - "MediaTracks": [MediaTrack.from_dict(_item) for _item in obj["MediaTracks"]] if obj.get("MediaTracks") is not None else None, + "MediaTracks": ( [MediaTrack.from_dict(_item) for _item in obj.get("MediaTracks", [])] if obj.get("MediaTracks") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/media_track.py b/cyperf/models/media_track.py index 4f57608..1173235 100644 --- a/cyperf/models/media_track.py +++ b/cyperf/models/media_track.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.track_type import TrackType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 8cf7c7e..7eb494d 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -23,7 +23,7 @@ from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner from cyperf.models.reference import Reference from cyperf.models.rtp_profile_meta import RTPProfileMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -122,12 +122,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), "IsStreaming": obj.get("IsStreaming"), - "Keywords": [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj["Keywords"]] if obj.get("Keywords") is not None else None, + "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], "NoMultiFlowSupport": obj.get("NoMultiFlowSupport"), "Protocol": obj.get("Protocol"), "RTPProfileMeta": RTPProfileMeta.from_dict(obj["RTPProfileMeta"]) if obj.get("RTPProfileMeta") is not None else None, - "References": [Reference.from_dict(_item) for _item in obj["References"]] if obj.get("References") is not None else None, + "References": ( [Reference.from_dict(_item) for _item in obj.get("References", [])] if obj.get("References") is not None else None), "RequiresUniqueness": obj.get("RequiresUniqueness"), "Severity": obj.get("Severity"), "SkipAttackGeneration": obj.get("SkipAttackGeneration"), diff --git a/cyperf/models/name_server.py b/cyperf/models/name_server.py index e10cd2e..a3c9a58 100644 --- a/cyperf/models/name_server.py +++ b/cyperf/models/name_server.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/network_mapping.py b/cyperf/models/network_mapping.py index d78232e..12c8201 100644 --- a/cyperf/models/network_mapping.py +++ b/cyperf/models/network_mapping.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/network_meshing.py b/cyperf/models/network_meshing.py index a16c2fd..e9ebd0a 100644 --- a/cyperf/models/network_meshing.py +++ b/cyperf/models/network_meshing.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.mapping_type import MappingType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/network_profile.py b/cyperf/models/network_profile.py index a0c5937..b47054f 100644 --- a/cyperf/models/network_profile.py +++ b/cyperf/models/network_profile.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.dut_network import DUTNetwork from cyperf.models.ip_network import IPNetwork -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,10 +111,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "DUTNetworkSegment": [DUTNetwork.from_dict(_item) for _item in obj["DUTNetworkSegment"]] if obj.get("DUTNetworkSegment") is not None else None, - "IPNetworkSegment": [IPNetwork.from_dict(_item) for _item in obj["IPNetworkSegment"]] if obj.get("IPNetworkSegment") is not None else None, + "DUTNetworkSegment": ( [DUTNetwork.from_dict(_item) for _item in obj.get("DUTNetworkSegment", [])] if obj.get("DUTNetworkSegment") is not None else None), + "IPNetworkSegment": ( [IPNetwork.from_dict(_item) for _item in obj.get("IPNetworkSegment", [])] if obj.get("IPNetworkSegment") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/network_segment_base.py b/cyperf/models/network_segment_base.py index 12c155c..5580ce5 100644 --- a/cyperf/models/network_segment_base.py +++ b/cyperf/models/network_segment_base.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/nodes_by_controller.py b/cyperf/models/nodes_by_controller.py index d535b2e..66b39f0 100644 --- a/cyperf/models/nodes_by_controller.py +++ b/cyperf/models/nodes_by_controller.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/nodes_power_cycle_operation.py b/cyperf/models/nodes_power_cycle_operation.py index 6e8c327..5c8903f 100644 --- a/cyperf/models/nodes_power_cycle_operation.py +++ b/cyperf/models/nodes_power_cycle_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.nodes_by_controller import NodesByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [NodesByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/notification.py b/cyperf/models/notification.py index 1593324..5ad191c 100644 --- a/cyperf/models/notification.py +++ b/cyperf/models/notification.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/notification_counts.py b/cyperf/models/notification_counts.py index 33e4e02..d08e265 100644 --- a/cyperf/models/notification_counts.py +++ b/cyperf/models/notification_counts.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/ntp_info.py b/cyperf/models/ntp_info.py index 3dc6609..e105116 100644 --- a/cyperf/models/ntp_info.py +++ b/cyperf/models/ntp_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/objective_value_entry.py b/cyperf/models/objective_value_entry.py index 6e964a7..7fb847a 100644 --- a/cyperf/models/objective_value_entry.py +++ b/cyperf/models/objective_value_entry.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/objectives_and_timeline.py b/cyperf/models/objectives_and_timeline.py index 196a690..f5bd81b 100644 --- a/cyperf/models/objectives_and_timeline.py +++ b/cyperf/models/objectives_and_timeline.py @@ -25,7 +25,7 @@ from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.specific_objective import SpecificObjective from cyperf.models.timeline_segment import TimelineSegment -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -127,9 +127,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "AdvancedSettings": AdvancedSettings.from_dict(obj["AdvancedSettings"]) if obj.get("AdvancedSettings") is not None else None, "PrimaryObjective": SpecificObjective.from_dict(obj["PrimaryObjective"]) if obj.get("PrimaryObjective") is not None else None, "SecondaryObjective": SecondaryObjective.from_dict(obj["SecondaryObjective"]) if obj.get("SecondaryObjective") is not None else None, - "SecondaryObjectives": [SpecificObjective.from_dict(_item) for _item in obj["SecondaryObjectives"]] if obj.get("SecondaryObjectives") is not None else None, - "TimelineSegments": [TimelineSegment.from_dict(_item) for _item in obj["TimelineSegments"]] if obj.get("TimelineSegments") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "SecondaryObjectives": ( [SpecificObjective.from_dict(_item) for _item in obj.get("SecondaryObjectives", [])] if obj.get("SecondaryObjectives") is not None else None), + "TimelineSegments": ( [TimelineSegment.from_dict(_item) for _item in obj.get("TimelineSegments", [])] if obj.get("TimelineSegments") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/open_api_definitions.py b/cyperf/models/open_api_definitions.py index a00c6e0..4f9f5f9 100644 --- a/cyperf/models/open_api_definitions.py +++ b/cyperf/models/open_api_definitions.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "openApiDefinitions": dict( (_k, AppsecAppMetadataKeywordsInner.from_dict(_v)) - for _k, _v in obj["openApiDefinitions"].items() + for _k, _v in (obj.get("openApiDefinitions") or {}).items() ) if obj.get("openApiDefinitions") is not None else None diff --git a/cyperf/models/p1_config.py b/cyperf/models/p1_config.py index 794c68e..40f905d 100644 --- a/cyperf/models/p1_config.py +++ b/cyperf/models/p1_config.py @@ -24,7 +24,7 @@ from cyperf.models.enc_p1_algorithm import EncP1Algorithm from cyperf.models.hash_p1_algorithm import HashP1Algorithm from cyperf.models.prf_p1_algorithm import PrfP1Algorithm -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/p2_config.py b/cyperf/models/p2_config.py index 992e8b1..8340f0b 100644 --- a/cyperf/models/p2_config.py +++ b/cyperf/models/p2_config.py @@ -23,7 +23,7 @@ from cyperf.models.enc_p2_algorithm import EncP2Algorithm from cyperf.models.hash_p2_algorithm import HashP2Algorithm from cyperf.models.pfs_p2_group import PfsP2Group -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pair.py b/cyperf/models/pair.py index fbe2857..c15ebc0 100644 --- a/cyperf/models/pair.py +++ b/cyperf/models/pair.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pangp_encapsulation.py b/cyperf/models/pangp_encapsulation.py index cb1b4cc..5b09a5a 100644 --- a/cyperf/models/pangp_encapsulation.py +++ b/cyperf/models/pangp_encapsulation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ESPOverUDPSettings": ESPOverUDPSettings.from_dict(obj["ESPOverUDPSettings"]) if obj.get("ESPOverUDPSettings") is not None else None, "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/pangp_settings.py b/cyperf/models/pangp_settings.py index 0043bec..591a3ef 100644 --- a/cyperf/models/pangp_settings.py +++ b/cyperf/models/pangp_settings.py @@ -26,7 +26,7 @@ from cyperf.models.pangp_encapsulation import PANGPEncapsulation from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -129,7 +129,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ESPProbeRetryTimeout": obj.get("ESPProbeRetryTimeout"), "ESPProbeTimeout": obj.get("ESPProbeTimeout"), "GPClientVersion": obj.get("GPClientVersion"), diff --git a/cyperf/models/param_metadata.py b/cyperf/models/param_metadata.py index 8fbe62d..c40caf4 100644 --- a/cyperf/models/param_metadata.py +++ b/cyperf/models/param_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info.py b/cyperf/models/param_metadata_type_info.py index 0526790..904eb3e 100644 --- a/cyperf/models/param_metadata_type_info.py +++ b/cyperf/models/param_metadata_type_info.py @@ -24,7 +24,7 @@ from cyperf.models.param_metadata_type_info_int import ParamMetadataTypeInfoInt from cyperf.models.param_metadata_type_info_media import ParamMetadataTypeInfoMedia from cyperf.models.param_metadata_type_info_string import ParamMetadataTypeInfoString -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_array_v2.py b/cyperf/models/param_metadata_type_info_array_v2.py index 059cf09..91df78c 100644 --- a/cyperf/models/param_metadata_type_info_array_v2.py +++ b/cyperf/models/param_metadata_type_info_array_v2.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.param_metadata_type_info_array_v2_elements_inner import ParamMetadataTypeInfoArrayV2ElementsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "elements": [ParamMetadataTypeInfoArrayV2ElementsInner.from_dict(_item) for _item in obj["elements"]] if obj.get("elements") is not None else None + "elements": ( [ParamMetadataTypeInfoArrayV2ElementsInner.from_dict(_item) for _item in obj.get("elements", [])] if obj.get("elements") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py index 5ec94f6..5192ef2 100644 --- a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py +++ b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_int.py b/cyperf/models/param_metadata_type_info_int.py index d12e3ff..36141a0 100644 --- a/cyperf/models/param_metadata_type_info_int.py +++ b/cyperf/models/param_metadata_type_info_int.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_media.py b/cyperf/models/param_metadata_type_info_media.py index b484347..c318bcd 100644 --- a/cyperf/models/param_metadata_type_info_media.py +++ b/cyperf/models/param_metadata_type_info_media.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/param_metadata_type_info_string.py b/cyperf/models/param_metadata_type_info_string.py index bed3618..f0e606a 100644 --- a/cyperf/models/param_metadata_type_info_string.py +++ b/cyperf/models/param_metadata_type_info_string.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index 6505120..2ff1f01 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.parameter_metadata import ParameterMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -118,7 +118,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Type": obj.get("Type"), "field": obj.get("field"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "operator": obj.get("operator"), "queryParam": obj.get("queryParam") , diff --git a/cyperf/models/parameter_match.py b/cyperf/models/parameter_match.py index 601f7a8..5d419bf 100644 --- a/cyperf/models/parameter_match.py +++ b/cyperf/models/parameter_match.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.regex_match import RegexMatch -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/parameter_meta.py b/cyperf/models/parameter_meta.py index 51df58f..7219a69 100644 --- a/cyperf/models/parameter_meta.py +++ b/cyperf/models/parameter_meta.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.parameter_match import ParameterMatch -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Matches": [ParameterMatch.from_dict(_item) for _item in obj["Matches"]] if obj.get("Matches") is not None else None, + "Matches": ( [ParameterMatch.from_dict(_item) for _item in obj.get("Matches", [])] if obj.get("Matches") is not None else None), "Name": obj.get("Name") , "links": obj.get("links") diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index 22d310e..8dabe11 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -25,7 +25,7 @@ from cyperf.models.payload_metadata import PayloadMetadata from cyperf.models.playlist_metadata import PlaylistMetadata from cyperf.models.type_info_metadata import TypeInfoMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -142,7 +142,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Type": obj.get("Type"), "TypeInfo": TypeInfoMetadata.from_dict(obj["TypeInfo"]) if obj.get("TypeInfo") is not None else None, "UniqueValue": obj.get("UniqueValue"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/params.py b/cyperf/models/params.py index 5497f7a..8c5c131 100644 --- a/cyperf/models/params.py +++ b/cyperf/models/params.py @@ -25,7 +25,7 @@ from cyperf.models.media_file import MediaFile from cyperf.models.param_metadata import ParamMetadata from cyperf.models.params_enum import ParamsEnum -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -150,7 +150,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "FlowIdentifier": obj.get("FlowIdentifier"), "IsDeprecated": obj.get("IsDeprecated"), "IsModified": obj.get("IsModified"), - "MediaFiles": [MediaFile.from_dict(_item) for _item in obj["MediaFiles"]] if obj.get("MediaFiles") is not None else None, + "MediaFiles": ( [MediaFile.from_dict(_item) for _item in obj.get("MediaFiles", [])] if obj.get("MediaFiles") is not None else None), "Metadata": ParamMetadata.from_dict(obj["Metadata"]) if obj.get("Metadata") is not None else None, "Name": obj.get("Name"), "ParamId": obj.get("ParamId"), @@ -161,7 +161,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Value": obj.get("Value"), "file-upload": obj.get("file-upload") if obj.get("file-upload") is not None else [], "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "supportsDynamicPayload": obj.get("supportsDynamicPayload"), "uploadURL": obj.get("uploadURL") , diff --git a/cyperf/models/params_enum.py b/cyperf/models/params_enum.py index 74c603e..8f409e5 100644 --- a/cyperf/models/params_enum.py +++ b/cyperf/models/params_enum.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.choice import Choice -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Choices": [Choice.from_dict(_item) for _item in obj["Choices"]] if obj.get("Choices") is not None else None + "Choices": ( [Choice.from_dict(_item) for _item in obj.get("Choices", [])] if obj.get("Choices") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/payload_meta.py b/cyperf/models/payload_meta.py index 82e20b2..62ad58a 100644 --- a/cyperf/models/payload_meta.py +++ b/cyperf/models/payload_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/payload_metadata.py b/cyperf/models/payload_metadata.py index 86da169..ff6c423 100644 --- a/cyperf/models/payload_metadata.py +++ b/cyperf/models/payload_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/pep_dut.py b/cyperf/models/pep_dut.py index aabbc1e..d5b69c0 100644 --- a/cyperf/models/pep_dut.py +++ b/cyperf/models/pep_dut.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.params import Params from cyperf.models.simulated_id_p import SimulatedIdP -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -141,7 +141,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthMethod": Params.from_dict(obj["AuthMethod"]) if obj.get("AuthMethod") is not None else None, - "AuthProfileParams": [Params.from_dict(_item) for _item in obj["AuthProfileParams"]] if obj.get("AuthProfileParams") is not None else None, + "AuthProfileParams": ( [Params.from_dict(_item) for _item in obj.get("AuthProfileParams", [])] if obj.get("AuthProfileParams") is not None else None), "AuthProfileType": obj.get("AuthProfileType"), "HostnameSuffix": obj.get("HostnameSuffix"), "IDPType": Params.from_dict(obj["IDPType"]) if obj.get("IDPType") is not None else None, @@ -149,7 +149,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PEPHost": obj.get("PEPHost"), "PEPPort": obj.get("PEPPort"), "SimulatedIdP": SimulatedIdP.from_dict(obj["SimulatedIdP"]) if obj.get("SimulatedIdP") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/playlist_metadata.py b/cyperf/models/playlist_metadata.py index 5d8a7cc..13effc1 100644 --- a/cyperf/models/playlist_metadata.py +++ b/cyperf/models/playlist_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/plugin.py b/cyperf/models/plugin.py index ab85e39..8720947 100644 --- a/cyperf/models/plugin.py +++ b/cyperf/models/plugin.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/plugin_stats.py b/cyperf/models/plugin_stats.py index 1ce54ed..7cb0ed8 100644 --- a/cyperf/models/plugin_stats.py +++ b/cyperf/models/plugin_stats.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "plugin": obj.get("plugin"), - "stats": [Dict[str, AppsecAppMetadataKeywordsInner].from_dict(_item) for _item in obj["stats"]] if obj.get("stats") is not None else None, + "stats": ( [Dict.from_dict(_item) for _item in obj.get("stats", [])] if obj.get("stats") is not None else None), "version": obj.get("version") , "links": obj.get("links") diff --git a/cyperf/models/port.py b/cyperf/models/port.py index 15cabb9..477f923 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/port_settings.py b/cyperf/models/port_settings.py index 7c85a4d..9893c6c 100644 --- a/cyperf/models/port_settings.py +++ b/cyperf/models/port_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.effective_ports import EffectivePorts -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ForwardProxyPort": obj.get("ForwardProxyPort"), "Readonly": obj.get("Readonly"), "ServerListenPort": obj.get("ServerListenPort"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/ports_by_controller.py b/cyperf/models/ports_by_controller.py index d994704..f6c398c 100644 --- a/cyperf/models/ports_by_controller.py +++ b/cyperf/models/ports_by_controller.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_node import PortsByNode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "computeNodes": [PortsByNode.from_dict(_item) for _item in obj["computeNodes"]] if obj.get("computeNodes") is not None else None, + "computeNodes": ( [PortsByNode.from_dict(_item) for _item in obj.get("computeNodes", [])] if obj.get("computeNodes") is not None else None), "controllerId": obj.get("controllerId") , "links": obj.get("links") diff --git a/cyperf/models/ports_by_node.py b/cyperf/models/ports_by_node.py index 01f2a77..a67dbb8 100644 --- a/cyperf/models/ports_by_node.py +++ b/cyperf/models/ports_by_node.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/prepare_test_operation.py b/cyperf/models/prepare_test_operation.py index 0a6045c..d9f44e9 100644 --- a/cyperf/models/prepare_test_operation.py +++ b/cyperf/models/prepare_test_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.prepared_test_options import PreparedTestOptions -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/prepared_test_options.py b/cyperf/models/prepared_test_options.py index e170377..e6704ce 100644 --- a/cyperf/models/prepared_test_options.py +++ b/cyperf/models/prepared_test_options.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/protected_subnet_config.py b/cyperf/models/protected_subnet_config.py index f6b542a..d15bc22 100644 --- a/cyperf/models/protected_subnet_config.py +++ b/cyperf/models/protected_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/quic_profile.py b/cyperf/models/quic_profile.py index e0d9898..4aaf820 100644 --- a/cyperf/models/quic_profile.py +++ b/cyperf/models/quic_profile.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.quic_version import QUICVersion from cyperf.models.tls_profile import TLSProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "QUICVersion": obj.get("QUICVersion"), "RxBuffer": obj.get("RxBuffer"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/reboot_operation_input.py b/cyperf/models/reboot_operation_input.py index 850474f..82a8e65 100644 --- a/cyperf/models/reboot_operation_input.py +++ b/cyperf/models/reboot_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_to_be_rebooted import AgentToBeRebooted -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agents": [AgentToBeRebooted.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None, + "agents": ( [AgentToBeRebooted.from_dict(_item) for _item in obj.get("agents", [])] if obj.get("agents") is not None else None), "softReboot": obj.get("softReboot") , "links": obj.get("links") diff --git a/cyperf/models/reboot_ports_operation.py b/cyperf/models/reboot_ports_operation.py index 7f870ae..d6d49a2 100644 --- a/cyperf/models/reboot_ports_operation.py +++ b/cyperf/models/reboot_ports_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/reference.py b/cyperf/models/reference.py index bd63783..bb39ae6 100644 --- a/cyperf/models/reference.py +++ b/cyperf/models/reference.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/regex_match.py b/cyperf/models/regex_match.py index bdeea2a..4e01819 100644 --- a/cyperf/models/regex_match.py +++ b/cyperf/models/regex_match.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/release_operation_input.py b/cyperf/models/release_operation_input.py index f1c8d74..934b5ad 100644 --- a/cyperf/models/release_operation_input.py +++ b/cyperf/models/release_operation_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_release import AgentRelease -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentsData": [AgentRelease.from_dict(_item) for _item in obj["agentsData"]] if obj.get("agentsData") is not None else None, + "agentsData": ( [AgentRelease.from_dict(_item) for _item in obj.get("agentsData", [])] if obj.get("agentsData") is not None else None), "sessionId": obj.get("sessionId") , "links": obj.get("links") diff --git a/cyperf/models/remote_access.py b/cyperf/models/remote_access.py index 0f5f405..13de408 100644 --- a/cyperf/models/remote_access.py +++ b/cyperf/models/remote_access.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/remote_subnet_config.py b/cyperf/models/remote_subnet_config.py index 93eb250..b9e55d1 100644 --- a/cyperf/models/remote_subnet_config.py +++ b/cyperf/models/remote_subnet_config.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/rename_input.py b/cyperf/models/rename_input.py index f74da1b..639a343 100644 --- a/cyperf/models/rename_input.py +++ b/cyperf/models/rename_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reorder_action_input.py b/cyperf/models/reorder_action_input.py index 256897b..fdae1f1 100644 --- a/cyperf/models/reorder_action_input.py +++ b/cyperf/models/reorder_action_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reorder_exchanges_input.py b/cyperf/models/reorder_exchanges_input.py index c01037e..70b8c41 100644 --- a/cyperf/models/reorder_exchanges_input.py +++ b/cyperf/models/reorder_exchanges_input.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.exchange_order import ExchangeOrder -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ActionName": obj.get("ActionName"), - "ExchangesOrder": [ExchangeOrder.from_dict(_item) for _item in obj["ExchangesOrder"]] if obj.get("ExchangesOrder") is not None else None, + "ExchangesOrder": ( [ExchangeOrder.from_dict(_item) for _item in obj.get("ExchangesOrder", [])] if obj.get("ExchangesOrder") is not None else None), "FlowIdx": obj.get("FlowIdx") , "links": obj.get("links") diff --git a/cyperf/models/replay_capture.py b/cyperf/models/replay_capture.py index 70e2c80..3af9a03 100644 --- a/cyperf/models/replay_capture.py +++ b/cyperf/models/replay_capture.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.app_flow import AppFlow -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -111,9 +111,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "flows": [AppFlow.from_dict(_item) for _item in obj["flows"]] if obj.get("flows") is not None else None, + "flows": ( [AppFlow.from_dict(_item) for _item in obj.get("flows", [])] if obj.get("flows") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), "owner": obj.get("owner"), "ownerId": obj.get("ownerId") diff --git a/cyperf/models/required_file_types.py b/cyperf/models/required_file_types.py index 5ff6c0f..14be112 100644 --- a/cyperf/models/required_file_types.py +++ b/cyperf/models/required_file_types.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/reserve_operation_input.py b/cyperf/models/reserve_operation_input.py index 95f4ce7..0364b1b 100644 --- a/cyperf/models/reserve_operation_input.py +++ b/cyperf/models/reserve_operation_input.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.agent_reservation import AgentReservation from cyperf.models.payload_meta import PayloadMeta -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -106,13 +106,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "agentsData": [AgentReservation.from_dict(_item) for _item in obj["agentsData"]] if obj.get("agentsData") is not None else None, + "agentsData": ( [AgentReservation.from_dict(_item) for _item in obj.get("agentsData", [])] if obj.get("agentsData") is not None else None), "force": obj.get("force"), "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "payloads": dict( (_k, PayloadMeta.from_dict(_v)) - for _k, _v in obj["payloads"].items() + for _k, _v in (obj.get("payloads") or {}).items() ) if obj.get("payloads") is not None else None, diff --git a/cyperf/models/result_file_metadata.py b/cyperf/models/result_file_metadata.py index 453f525..1a8ea37 100644 --- a/cyperf/models/result_file_metadata.py +++ b/cyperf/models/result_file_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index 08bae0d..294b5c2 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.marked_as_deleted import MarkedAsDeleted from cyperf.models.result_file_metadata import ResultFileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -169,17 +169,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "download-all": obj.get("download-all"), "download-diagnostic": obj.get("download-diagnostic"), "endTime": obj.get("endTime"), - "files": [ResultFileMetadata.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None, + "files": ( [ResultFileMetadata.from_dict(_item) for _item in obj.get("files", [])] if obj.get("files") is not None else None), "id": obj.get("id"), "lastModified": obj.get("lastModified"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "markedAsDeleted": MarkedAsDeleted.from_dict(obj["markedAsDeleted"]) if obj.get("markedAsDeleted") is not None else None, "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), "pdfURL": obj.get("pdfURL"), "pinned": obj.get("pinned"), "reportTypes": obj.get("reportTypes") if obj.get("reportTypes") is not None else [], - "reportingLinks": [APILink.from_dict(_item) for _item in obj["reportingLinks"]] if obj.get("reportingLinks") is not None else None, + "reportingLinks": ( [APILink.from_dict(_item) for _item in obj.get("reportingLinks", [])] if obj.get("reportingLinks") is not None else None), "resultUrl": obj.get("resultUrl"), "startTime": obj.get("startTime"), "tags": obj.get("tags"), diff --git a/cyperf/models/results_group.py b/cyperf/models/results_group.py index 128bc09..a128e00 100644 --- a/cyperf/models/results_group.py +++ b/cyperf/models/results_group.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/rtp_profile.py b/cyperf/models/rtp_profile.py index 8a9fbb2..994ab59 100644 --- a/cyperf/models/rtp_profile.py +++ b/cyperf/models/rtp_profile.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List from cyperf.models.mos_mode import MosMode from cyperf.models.rtp_encryption_mode import RTPEncryptionMode -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/rtp_profile_meta.py b/cyperf/models/rtp_profile_meta.py index 27c910b..f476a13 100644 --- a/cyperf/models/rtp_profile_meta.py +++ b/cyperf/models/rtp_profile_meta.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictBytes, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/save_config_operation.py b/cyperf/models/save_config_operation.py index 30e7f8d..8f94e01 100644 --- a/cyperf/models/save_config_operation.py +++ b/cyperf/models/save_config_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/scenario.py b/cyperf/models/scenario.py index 7ddb33d..3ecf696 100644 --- a/cyperf/models/scenario.py +++ b/cyperf/models/scenario.py @@ -29,7 +29,7 @@ from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params from cyperf.models.quic_profile import QUICProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -181,13 +181,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Active": obj.get("Active"), "ClientHTTPProfile": HTTPProfile.from_dict(obj["ClientHTTPProfile"]) if obj.get("ClientHTTPProfile") is not None else None, "ClientQUICProfile": QUICProfile.from_dict(obj["ClientQUICProfile"]) if obj.get("ClientQUICProfile") is not None else None, - "Connections": [Connection.from_dict(_item) for _item in obj["Connections"]] if obj.get("Connections") is not None else None, + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "ConnectionsMaxTransactions": obj.get("ConnectionsMaxTransactions"), "Description": obj.get("Description"), "DestinationHostname": obj.get("DestinationHostname"), "DnnId": obj.get("DnnId"), "EndPointID": obj.get("EndPointID"), - "Endpoints": [Endpoint.from_dict(_item) for _item in obj["Endpoints"]] if obj.get("Endpoints") is not None else None, + "Endpoints": ( [Endpoint.from_dict(_item) for _item in obj.get("Endpoints", [])] if obj.get("Endpoints") is not None else None), "ExternalResourceURL": obj.get("ExternalResourceURL"), "Index": obj.get("Index"), "InheritHTTPProfile": obj.get("InheritHTTPProfile"), @@ -198,7 +198,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MaxActiveLimit": obj.get("MaxActiveLimit"), "Name": obj.get("Name"), "NetworkMapping": NetworkMapping.from_dict(obj["NetworkMapping"]) if obj.get("NetworkMapping") is not None else None, - "Params": [Params.from_dict(_item) for _item in obj["Params"]] if obj.get("Params") is not None else None, + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "ProtocolID": obj.get("ProtocolID"), "QosFlowId": obj.get("QosFlowId"), "ReadonlyMaxTrans": obj.get("ReadonlyMaxTrans"), @@ -208,7 +208,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SupportsHTTPProfiles": obj.get("SupportsHTTPProfiles"), "SupportsServerHTTPProfile": obj.get("SupportsServerHTTPProfile"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/secondary_objective.py b/cyperf/models/secondary_objective.py index 5039a92..f6eddc0 100644 --- a/cyperf/models/secondary_objective.py +++ b/cyperf/models/secondary_objective.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from cyperf.models.objective_type import ObjectiveType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/selected_env.py b/cyperf/models/selected_env.py index c6fc348..5ef9db3 100644 --- a/cyperf/models/selected_env.py +++ b/cyperf/models/selected_env.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.interface import Interface -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "SessionID": obj.get("SessionID"), - "TestInterface": [Interface.from_dict(_item) for _item in obj["TestInterface"]] if obj.get("TestInterface") is not None else None, + "TestInterface": ( [Interface.from_dict(_item) for _item in obj.get("TestInterface", [])] if obj.get("TestInterface") is not None else None), "Token": obj.get("Token") , "links": obj.get("links") diff --git a/cyperf/models/session.py b/cyperf/models/session.py index cf10b1d..6632afc 100644 --- a/cyperf/models/session.py +++ b/cyperf/models/session.py @@ -24,7 +24,7 @@ from cyperf.models.appsec_config import AppsecConfig from cyperf.models.pair import Pair from cyperf.models.test_info import TestInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -147,8 +147,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "index": obj.get("index"), "lastVisited": obj.get("lastVisited"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, - "meta": [Pair.from_dict(_item) for _item in obj["meta"]] if obj.get("meta") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "meta": ( [Pair.from_dict(_item) for _item in obj.get("meta", [])] if obj.get("meta") is not None else None), "name": obj.get("name"), "owner": obj.get("owner"), "ownerID": obj.get("ownerID"), diff --git a/cyperf/models/set_aggregation_mode_operation.py b/cyperf/models/set_aggregation_mode_operation.py index b657002..ddf817a 100644 --- a/cyperf/models/set_aggregation_mode_operation.py +++ b/cyperf/models/set_aggregation_mode_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.nodes_by_controller import NodesByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "aggregated": obj.get("aggregated"), - "controllers": [NodesByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/set_app_operation.py b/cyperf/models/set_app_operation.py index 3b88bc6..134363b 100644 --- a/cyperf/models/set_app_operation.py +++ b/cyperf/models/set_app_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/set_dpdk_mode_operation_input.py b/cyperf/models/set_dpdk_mode_operation_input.py index 13baefb..f823c87 100644 --- a/cyperf/models/set_dpdk_mode_operation_input.py +++ b/cyperf/models/set_dpdk_mode_operation_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/set_link_state_operation.py b/cyperf/models/set_link_state_operation.py index e989533..f5eaa24 100644 --- a/cyperf/models/set_link_state_operation.py +++ b/cyperf/models/set_link_state_operation.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), "link": obj.get("link") , "links": obj.get("links") diff --git a/cyperf/models/set_ntp_operation_input.py b/cyperf/models/set_ntp_operation_input.py index 1cd4497..093bd3e 100644 --- a/cyperf/models/set_ntp_operation_input.py +++ b/cyperf/models/set_ntp_operation_input.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/simulated_id_p.py b/cyperf/models/simulated_id_p.py index f3b4267..52f7ddf 100644 --- a/cyperf/models/simulated_id_p.py +++ b/cyperf/models/simulated_id_p.py @@ -24,7 +24,7 @@ from cyperf.models.cert_config import CertConfig from cyperf.models.id_p_signature_algo import IdPSignatureAlgo from cyperf.models.name_id_format import NameIdFormat -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -114,7 +114,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SignatureAlgorithm": obj.get("SignatureAlgorithm"), "SingleSignOnURL": obj.get("SingleSignOnURL"), "XMLMetadata": obj.get("XMLMetadata") if obj.get("XMLMetadata") is not None else [], - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/snapshot.py b/cyperf/models/snapshot.py index 92ddf9d..7dfd64c 100644 --- a/cyperf/models/snapshot.py +++ b/cyperf/models/snapshot.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -96,10 +96,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "timestamp": obj.get("timestamp"), - "values": [ + "values": ( + [ [AppsecAppMetadataKeywordsInner.from_dict(_inner_item) for _inner_item in _item] - for _item in obj["values"] + for _item in obj.get("values", []) ] if obj.get("values") is not None else None + ) , "links": obj.get("links") }) diff --git a/cyperf/models/sort_body_field.py b/cyperf/models/sort_body_field.py index 56844a6..95918cd 100644 --- a/cyperf/models/sort_body_field.py +++ b/cyperf/models/sort_body_field.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/specific_objective.py b/cyperf/models/specific_objective.py index 3bb8ee7..f4fcf17 100644 --- a/cyperf/models/specific_objective.py +++ b/cyperf/models/specific_objective.py @@ -25,7 +25,7 @@ from cyperf.models.objective_type import ObjectiveType from cyperf.models.objective_unit import ObjectiveUnit from cyperf.models.timeline_segment_union import TimelineSegmentUnion -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -118,11 +118,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "MaxPendingSimulatedUsers": obj.get("MaxPendingSimulatedUsers"), "MaxSimulatedUsersPerInterval": obj.get("MaxSimulatedUsersPerInterval"), - "Timeline": [TimelineSegmentUnion.from_dict(_item) for _item in obj["Timeline"]] if obj.get("Timeline") is not None else None, + "Timeline": ( [TimelineSegmentUnion.from_dict(_item) for _item in obj.get("Timeline", [])] if obj.get("Timeline") is not None else None), "Type": obj.get("Type"), "Unit": obj.get("Unit"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/start_agents_batch_delete_request_inner.py b/cyperf/models/start_agents_batch_delete_request_inner.py index 112c5b1..08bc785 100644 --- a/cyperf/models/start_agents_batch_delete_request_inner.py +++ b/cyperf/models/start_agents_batch_delete_request_inner.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/stateless_stream.py b/cyperf/models/stateless_stream.py index 9fc4be7..c95337b 100644 --- a/cyperf/models/stateless_stream.py +++ b/cyperf/models/stateless_stream.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_profile import StreamProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -108,7 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Direction": obj.get("Direction"), "IsFloodStream": obj.get("IsFloodStream"), "ServerStreamProfile": StreamProfile.from_dict(obj["ServerStreamProfile"]) if obj.get("ServerStreamProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/static_arp_entry.py b/cyperf/models/static_arp_entry.py index 58f5927..eb05a13 100644 --- a/cyperf/models/static_arp_entry.py +++ b/cyperf/models/static_arp_entry.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/stats_result.py b/cyperf/models/stats_result.py index 2d3e950..28ceddf 100644 --- a/cyperf/models/stats_result.py +++ b/cyperf/models/stats_result.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.parameter import Parameter from cyperf.models.snapshot import Snapshot -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -103,10 +103,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "availableFilters": [Parameter.from_dict(_item) for _item in obj["availableFilters"]] if obj.get("availableFilters") is not None else None, + "availableFilters": ( [Parameter.from_dict(_item) for _item in obj.get("availableFilters", [])] if obj.get("availableFilters") is not None else None), "columns": obj.get("columns") if obj.get("columns") is not None else [], "name": obj.get("name"), - "snapshots": [Snapshot.from_dict(_item) for _item in obj["snapshots"]] if obj.get("snapshots") is not None else None + "snapshots": ( [Snapshot.from_dict(_item) for _item in obj.get("snapshots", [])] if obj.get("snapshots") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/steady_segment.py b/cyperf/models/steady_segment.py index 93010f6..eefb510 100644 --- a/cyperf/models/steady_segment.py +++ b/cyperf/models/steady_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/step_segment.py b/cyperf/models/step_segment.py index 5146582..dc5203b 100644 --- a/cyperf/models/step_segment.py +++ b/cyperf/models/step_segment.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/stream_profile.py b/cyperf/models/stream_profile.py index 77b29e9..5c13d58 100644 --- a/cyperf/models/stream_profile.py +++ b/cyperf/models/stream_profile.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stream_payload_type import StreamPayloadType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/system_info.py b/cyperf/models/system_info.py index a1d31c5..ef1ac72 100644 --- a/cyperf/models/system_info.py +++ b/cyperf/models/system_info.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.chassis_info import ChassisInfo from cyperf.models.traffic_agent_info import TrafficAgentInfo -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "kernelVersion": obj.get("kernelVersion"), "osName": obj.get("osName"), "portManagerVersion": obj.get("portManagerVersion"), - "trafficAgentInfo": [TrafficAgentInfo.from_dict(_item) for _item in obj["trafficAgentInfo"]] if obj.get("trafficAgentInfo") is not None else None + "trafficAgentInfo": ( [TrafficAgentInfo.from_dict(_item) for _item in obj.get("trafficAgentInfo", [])] if obj.get("trafficAgentInfo") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tcp_profile.py b/cyperf/models/tcp_profile.py index 7ae9833..b25d683 100644 --- a/cyperf/models/tcp_profile.py +++ b/cyperf/models/tcp_profile.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/test_info.py b/cyperf/models/test_info.py index da340ed..9cce7fa 100644 --- a/cyperf/models/test_info.py +++ b/cyperf/models/test_info.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.dashboard import Dashboard -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "dashboards": [Dashboard.from_dict(_item) for _item in obj["dashboards"]] if obj.get("dashboards") is not None else None, + "dashboards": ( [Dashboard.from_dict(_item) for _item in obj.get("dashboards", [])] if obj.get("dashboards") is not None else None), "defaultDashboardIndex": obj.get("defaultDashboardIndex"), "defaultPollingInterval": obj.get("defaultPollingInterval"), "status": obj.get("status"), diff --git a/cyperf/models/test_state_changed_operation.py b/cyperf/models/test_state_changed_operation.py index 2c683c8..a8a3cb6 100644 --- a/cyperf/models/test_state_changed_operation.py +++ b/cyperf/models/test_state_changed_operation.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/time_value.py b/cyperf/models/time_value.py index deb09c8..a9ce3ed 100644 --- a/cyperf/models/time_value.py +++ b/cyperf/models/time_value.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timeline_segment.py b/cyperf/models/timeline_segment.py index eb11b37..5fec8ef 100644 --- a/cyperf/models/timeline_segment.py +++ b/cyperf/models/timeline_segment.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.objective_value_entry import ObjectiveValueEntry from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -135,8 +135,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ObjectiveValue": obj.get("ObjectiveValue"), "PrimaryObjectiveUnit": obj.get("PrimaryObjectiveUnit"), "PrimaryObjectiveValue": obj.get("PrimaryObjectiveValue"), - "SecondaryObjectiveValues": [ObjectiveValueEntry.from_dict(_item) for _item in obj["SecondaryObjectiveValues"]] if obj.get("SecondaryObjectiveValues") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "SecondaryObjectiveValues": ( [ObjectiveValueEntry.from_dict(_item) for _item in obj.get("SecondaryObjectiveValues", [])] if obj.get("SecondaryObjectiveValues") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/timeline_segment_base.py b/cyperf/models/timeline_segment_base.py index 060969c..5ab29b1 100644 --- a/cyperf/models/timeline_segment_base.py +++ b/cyperf/models/timeline_segment_base.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timeline_segment_union.py b/cyperf/models/timeline_segment_union.py index a5dd4ca..9783cd2 100644 --- a/cyperf/models/timeline_segment_union.py +++ b/cyperf/models/timeline_segment_union.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from cyperf.models.segment_type import SegmentType -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/timers.py b/cyperf/models/timers.py index 9f34980..39f8da6 100644 --- a/cyperf/models/timers.py +++ b/cyperf/models/timers.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index 9da0bba..7e16c99 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -30,7 +30,7 @@ from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -175,20 +175,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ciphers13": obj.get("ciphers13"), "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, "get-tls-conflicts": obj.get("get-tls-conflicts") if obj.get("get-tls-conflicts") is not None else [], - "groups13": [GroupTLS13.from_dict(_item) for _item in obj["groups13"]] if obj.get("groups13") is not None else None, + "groups13": ( [GroupTLS13.from_dict(_item) for _item in obj.get("groups13", [])] if obj.get("groups13") is not None else None), "immediateClose": obj.get("immediateClose"), "keyFile": Params.from_dict(obj["keyFile"]) if obj.get("keyFile") is not None else None, "keyFilePassword": obj.get("keyFilePassword"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "middleBoxEnabled": obj.get("middleBoxEnabled"), "profileId": obj.get("profileId"), - "resolve-tls-conflicts": [Conflict.from_dict(_item) for _item in obj["resolve-tls-conflicts"]] if obj.get("resolve-tls-conflicts") is not None else None, + "resolve-tls-conflicts": ( [Conflict.from_dict(_item) for _item in obj.get("resolve-tls-conflicts", [])] if obj.get("resolve-tls-conflicts") is not None else None), "sendCloseNotify": obj.get("sendCloseNotify"), "sessionReuseCount": obj.get("sessionReuseCount"), "sessionReuseMethod": obj.get("sessionReuseMethod"), "sessionReuseMethod12": obj.get("sessionReuseMethod12"), "sessionReuseMethod13": obj.get("sessionReuseMethod13"), - "sniCertConfigs": [CertConfig.from_dict(_item) for _item in obj["sniCertConfigs"]] if obj.get("sniCertConfigs") is not None else None, + "sniCertConfigs": ( [CertConfig.from_dict(_item) for _item in obj.get("sniCertConfigs", [])] if obj.get("sniCertConfigs") is not None else None), "sniEnabled": obj.get("sniEnabled"), "supportedGroups13": obj.get("supportedGroups13"), "tls12Enabled": obj.get("tls12Enabled"), diff --git a/cyperf/models/track.py b/cyperf/models/track.py index 1bc61b6..e5d9573 100644 --- a/cyperf/models/track.py +++ b/cyperf/models/track.py @@ -23,7 +23,7 @@ from cyperf.models.action import Action from cyperf.models.api_link import APILink from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -112,10 +112,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Actions": [Action.from_dict(_item) for _item in obj["Actions"]] if obj.get("Actions") is not None else None, - "add-actions": [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj["add-actions"]] if obj.get("add-actions") is not None else None, + "Actions": ( [Action.from_dict(_item) for _item in obj.get("Actions", [])] if obj.get("Actions") is not None else None), + "add-actions": ( [CreateAppOrAttackOperationInput.from_dict(_item) for _item in obj.get("add-actions", [])] if obj.get("add-actions") is not None else None), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/traffic_agent_info.py b/cyperf/models/traffic_agent_info.py index b2b774f..3f192dc 100644 --- a/cyperf/models/traffic_agent_info.py +++ b/cyperf/models/traffic_agent_info.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index 637afa5..e480756 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.traffic_settings import TrafficSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/traffic_settings.py b/cyperf/models/traffic_settings.py index 4761640..20f6d66 100644 --- a/cyperf/models/traffic_settings.py +++ b/cyperf/models/traffic_settings.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.transport_profile import TransportProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "DefaultTransportProfile": TransportProfile.from_dict(obj["DefaultTransportProfile"]) if obj.get("DefaultTransportProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/transport_profile.py b/cyperf/models/transport_profile.py index 37a0715..e967b52 100644 --- a/cyperf/models/transport_profile.py +++ b/cyperf/models/transport_profile.py @@ -27,7 +27,7 @@ from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -153,7 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, "VlanPrio": obj.get("VlanPrio"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "L4ProfileName": obj.get("L4ProfileName") , "links": obj.get("links") diff --git a/cyperf/models/transport_profile_base.py b/cyperf/models/transport_profile_base.py index 0a19ccd..ab38b44 100644 --- a/cyperf/models/transport_profile_base.py +++ b/cyperf/models/transport_profile_base.py @@ -27,7 +27,7 @@ from cyperf.models.tcp_profile import TcpProfile from cyperf.models.tls_profile import TLSProfile from cyperf.models.udp_profile import UdpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -152,7 +152,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ServerTcpProfile": TcpProfile.from_dict(obj["ServerTcpProfile"]) if obj.get("ServerTcpProfile") is not None else None, "UdpProfile": UdpProfile.from_dict(obj["UdpProfile"]) if obj.get("UdpProfile") is not None else None, "VlanPrio": obj.get("VlanPrio"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_range.py b/cyperf/models/tunnel_range.py index db62bee..f6374aa 100644 --- a/cyperf/models/tunnel_range.py +++ b/cyperf/models/tunnel_range.py @@ -26,7 +26,7 @@ from cyperf.models.f5_settings import F5Settings from cyperf.models.fortinet_settings import FortinetSettings from cyperf.models.pangp_settings import PANGPSettings -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -139,7 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelCountPerOuterIP": obj.get("TunnelCountPerOuterIP"), "TunnelEstablishmentTimeout": obj.get("TunnelEstablishmentTimeout"), "VendorType": obj.get("VendorType"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_settings.py b/cyperf/models/tunnel_settings.py index 75bd551..2a57e35 100644 --- a/cyperf/models/tunnel_settings.py +++ b/cyperf/models/tunnel_settings.py @@ -23,7 +23,7 @@ from cyperf.models.api_link import APILink from cyperf.models.auth_settings import AuthSettings from cyperf.models.tcp_profile import TcpProfile -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -104,7 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AuthSettings": AuthSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, "OuterTCPProfile": TcpProfile.from_dict(obj["OuterTCPProfile"]) if obj.get("OuterTCPProfile") is not None else None, - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/tunnel_stack.py b/cyperf/models/tunnel_stack.py index e08391a..b6bd1fd 100644 --- a/cyperf/models/tunnel_stack.py +++ b/cyperf/models/tunnel_stack.py @@ -25,7 +25,7 @@ from cyperf.models.inner_ip_range import InnerIPRange from cyperf.models.ip_range import IPRange from cyperf.models.tunnel_range import TunnelRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -122,7 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "TunnelRange": TunnelRange.from_dict(obj["TunnelRange"]) if obj.get("TunnelRange") is not None else None, "TunnelStackName": obj.get("TunnelStackName"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/type_array_v2_metadata.py b/cyperf/models/type_array_v2_metadata.py index e3179aa..0260633 100644 --- a/cyperf/models/type_array_v2_metadata.py +++ b/cyperf/models/type_array_v2_metadata.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "elements": [ArrayV2ElementMetadata.from_dict(_item) for _item in obj["elements"]] if obj.get("elements") is not None else None + "elements": ( [ArrayV2ElementMetadata.from_dict(_item) for _item in obj.get("elements", [])] if obj.get("elements") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/type_info_metadata.py b/cyperf/models/type_info_metadata.py index 21e79ad..9b1c6d1 100644 --- a/cyperf/models/type_info_metadata.py +++ b/cyperf/models/type_info_metadata.py @@ -24,7 +24,7 @@ from cyperf.models.type_int_metadata import TypeIntMetadata from cyperf.models.type_media_metadata import TypeMediaMetadata from cyperf.models.type_string_metadata import TypeStringMetadata -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_int_metadata.py b/cyperf/models/type_int_metadata.py index 12a2709..aa003c9 100644 --- a/cyperf/models/type_int_metadata.py +++ b/cyperf/models/type_int_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_media_metadata.py b/cyperf/models/type_media_metadata.py index 1271999..dd7bbf2 100644 --- a/cyperf/models/type_media_metadata.py +++ b/cyperf/models/type_media_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/type_string_metadata.py b/cyperf/models/type_string_metadata.py index fa73de4..962d68b 100644 --- a/cyperf/models/type_string_metadata.py +++ b/cyperf/models/type_string_metadata.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/udp_profile.py b/cyperf/models/udp_profile.py index abd41fa..206fef3 100644 --- a/cyperf/models/udp_profile.py +++ b/cyperf/models/udp_profile.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/update_network_mapping.py b/cyperf/models/update_network_mapping.py index 6d33f33..12a8468 100644 --- a/cyperf/models/update_network_mapping.py +++ b/cyperf/models/update_network_mapping.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/update_port_tags_operation.py b/cyperf/models/update_port_tags_operation.py index 597cb13..6151cd5 100644 --- a/cyperf/models/update_port_tags_operation.py +++ b/cyperf/models/update_port_tags_operation.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.ports_by_controller import PortsByController -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -94,7 +94,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "controllers": [PortsByController.from_dict(_item) for _item in obj["controllers"]] if obj.get("controllers") is not None else None, + "controllers": ( [PortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), "tagsToAdd": obj.get("tagsToAdd") if obj.get("tagsToAdd") is not None else [], "tagsToRemove": obj.get("tagsToRemove") if obj.get("tagsToRemove") is not None else [] , diff --git a/cyperf/models/validation_message.py b/cyperf/models/validation_message.py index 68f231d..a5475b5 100644 --- a/cyperf/models/validation_message.py +++ b/cyperf/models/validation_message.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/version.py b/cyperf/models/version.py index 9da2dd5..975d2a1 100644 --- a/cyperf/models/version.py +++ b/cyperf/models/version.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/cyperf/models/vlan_range.py b/cyperf/models/vlan_range.py index 4cc4201..75897f6 100644 --- a/cyperf/models/vlan_range.py +++ b/cyperf/models/vlan_range.py @@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.static_arp_entry import StaticARPEntry -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -124,13 +124,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CountPerAgent": obj.get("CountPerAgent"), "MaxCountPerAgent": obj.get("MaxCountPerAgent"), "Priority": obj.get("Priority"), - "StaticARPTable": [StaticARPEntry.from_dict(_item) for _item in obj["StaticARPTable"]] if obj.get("StaticARPTable") is not None else None, + "StaticARPTable": ( [StaticARPEntry.from_dict(_item) for _item in obj.get("StaticARPTable", [])] if obj.get("StaticARPTable") is not None else None), "TagProtocolId": obj.get("TagProtocolId"), "VlanAuto": obj.get("VlanAuto"), "VlanEnabled": obj.get("VlanEnabled"), "VlanId": obj.get("VlanId"), "VlanIncr": obj.get("VlanIncr"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/vx_lan_range.py b/cyperf/models/vx_lan_range.py index 6d83bcc..4273611 100644 --- a/cyperf/models/vx_lan_range.py +++ b/cyperf/models/vx_lan_range.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.md2_tlv import Md2Tlv from cyperf.models.vx_lanid import VxLANId -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -168,7 +168,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "HackedInnerRemoteIpIncr": obj.get("HackedInnerRemoteIpIncr"), "HackedInnerRemoteIpStart": obj.get("HackedInnerRemoteIpStart"), - "Md2Tlvs": [Md2Tlv.from_dict(_item) for _item in obj["Md2Tlvs"]] if obj.get("Md2Tlvs") is not None else None, + "Md2Tlvs": ( [Md2Tlv.from_dict(_item) for _item in obj.get("Md2Tlvs", [])] if obj.get("Md2Tlvs") is not None else None), "RemoteVtepIpLocalCount": obj.get("RemoteVtepIpLocalCount"), "RemoteVtepIpLocalIncr": obj.get("RemoteVtepIpLocalIncr"), "RemoteVtepIpRangeIncr": obj.get("RemoteVtepIpRangeIncr"), @@ -178,10 +178,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "VxLANIdIncr": obj.get("VxLANIdIncr"), "VxLANIdPerVtepPairCount": obj.get("VxLANIdPerVtepPairCount"), "VxLANIdStart": obj.get("VxLANIdStart"), - "VxLANIds": [VxLANId.from_dict(_item) for _item in obj["VxLANIds"]] if obj.get("VxLANIds") is not None else None, + "VxLANIds": ( [VxLANId.from_dict(_item) for _item in obj.get("VxLANIds", [])] if obj.get("VxLANIds") is not None else None), "VxLANRangeName": obj.get("VxLANRangeName"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/vx_lan_stack.py b/cyperf/models/vx_lan_stack.py index 5a60da0..d2b3676 100644 --- a/cyperf/models/vx_lan_stack.py +++ b/cyperf/models/vx_lan_stack.py @@ -24,7 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.ip_range import IPRange from cyperf.models.vx_lan_range import VxLANRange -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -121,7 +121,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "VxLANRange": VxLANRange.from_dict(obj["VxLANRange"]) if obj.get("VxLANRange") is not None else None, "VxLANStackName": obj.get("VxLANStackName"), "id": obj.get("id"), - "links": [APILink.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/vx_lanid.py b/cyperf/models/vx_lanid.py index 6e1b964..950fc07 100644 --- a/cyperf/models/vx_lanid.py +++ b/cyperf/models/vx_lanid.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr diff --git a/samples/sample_attack_based_script.py b/samples/sample_attack_based_script.py index ace63d8..d1a300e 100644 --- a/samples/sample_attack_based_script.py +++ b/samples/sample_attack_based_script.py @@ -149,23 +149,22 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") diff --git a/samples/sample_create_save_and_export_config.py b/samples/sample_create_save_and_export_config.py index 74db18a..442b05b 100644 --- a/samples/sample_create_save_and_export_config.py +++ b/samples/sample_create_save_and_export_config.py @@ -125,23 +125,22 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") diff --git a/samples/sample_load_and_run_precanned_config.py b/samples/sample_load_and_run_precanned_config.py index 7e238a4..66fc8eb 100644 --- a/samples/sample_load_and_run_precanned_config.py +++ b/samples/sample_load_and_run_precanned_config.py @@ -80,21 +80,20 @@ interfaces = None # List[str] | The names of the assigned test interfaces for the agent (optional) links = None # List[APILink] | (optional) agent_id = agent_map[ip_net.name][0] - agentDetails = [cyperf.AgentAssignmentDetails(agent_id=agent_id, + agentDetails = cyperf.AgentAssignmentDetails(agent_id=agent_id, capture_setting=capture_settings, id=agent_id, interfaces=interfaces, - links=links)] + links=links) if not ip_net.agent_assignments: by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) - by_tag = [] # List[str] | The tags according to which the agents are dynamically assigned - links = None # List[APILink] | (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned ip_net.agent_assignments = cyperf.AgentAssignments(by_id=by_id, by_port=by_port, by_tag=by_tag, links=links) - ip_net.agent_assignments.by_id.extend(agentDetails) + ip_net.agent_assignments.by_id = [agentDetails] ip_net.update() print("Assigning agents completed.\n") From 651a7e25b626955e4b73c2c8591b8fbbe8c141a8 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Tue, 3 Feb 2026 03:15:49 -0700 Subject: [PATCH 25/53] Pull request #55: ISGAPPSEC2-36320 rename validate attribute Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-36320-wrapper-rename-validate-attribute to main Squashed commit of the following: commit a644af27b3b0323220adaf159cc9aaefe740e2d1 Author: iustmitu Date: Mon Feb 2 17:27:44 2026 +0200 regenerated wrapper --- README.md | 1 + cyperf/__init__.py | 1 + cyperf/api_client.py | 4 +- cyperf/dynamic_models/__init__.py | 1 + cyperf/models/__init__.py | 1 + cyperf/models/command_metadata.py | 4 +- cyperf/models/config.py | 14 +- cyperf/models/http_profile.py | 4 +- cyperf/models/param_type.py | 1 + cyperf/models/snowflake_exporter.py | 114 +++++++++++++ docs/CommandMetadata.md | 1 + docs/Config.md | 3 +- docs/HTTPProfile.md | 1 + docs/ParamType.md | 2 + docs/SnowflakeExporter.md | 33 ++++ test/test_application.py | 2 + test/test_application_type.py | 6 + test/test_appsec_config.py | 3 +- test/test_attack.py | 2 + test/test_command.py | 3 + test/test_command_metadata.py | 3 + test/test_config.py | 17 +- ...resources_application_types200_response.py | 3 + ...es_application_types200_response_one_of.py | 3 + ...get_resources_http_profiles200_response.py | 1 + ...ources_http_profiles200_response_one_of.py | 1 + test/test_get_sessions200_response.py | 3 +- test/test_get_sessions200_response_one_of.py | 3 +- test/test_http_profile.py | 1 + test/test_scenario.py | 2 + test/test_session.py | 3 +- test/test_snowflake_exporter.py | 161 ++++++++++++++++++ test/test_transport_profile.py | 2 + test/test_transport_profile_base.py | 2 + 34 files changed, 392 insertions(+), 14 deletions(-) create mode 100644 cyperf/models/snowflake_exporter.py create mode 100644 docs/SnowflakeExporter.md create mode 100644 test/test_snowflake_exporter.py diff --git a/README.md b/README.md index 2e3bd44..3ba1812 100644 --- a/README.md +++ b/README.md @@ -718,6 +718,7 @@ Class | Method | HTTP request | Description - [SetNtpOperationInput](docs/SetNtpOperationInput.md) - [SimulatedIdP](docs/SimulatedIdP.md) - [Snapshot](docs/Snapshot.md) + - [SnowflakeExporter](docs/SnowflakeExporter.md) - [SortBodyField](docs/SortBodyField.md) - [SpecificObjective](docs/SpecificObjective.md) - [StartAgentsBatchDeleteRequestInner](docs/StartAgentsBatchDeleteRequestInner.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 5d00207..62104c3 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -387,6 +387,7 @@ from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot +from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField from cyperf.models.specific_objective import SpecificObjective from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner diff --git a/cyperf/api_client.py b/cyperf/api_client.py index 2df7bff..efe6a3d 100644 --- a/cyperf/api_client.py +++ b/cyperf/api_client.py @@ -543,14 +543,14 @@ def __deserialize(self, data, klass): m = re.match(r'List\[(.*)]', klass) assert m is not None, "Malformed List type definition" sub_kls = m.group(1) - return [self.__deserialize(sub_data, sub_kls) + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] elif klass.startswith('Dict['): m = re.match(r'Dict\[([^,]*), (.*)]', klass) assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) - return {k: self.__deserialize(v, sub_kls) + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} elif klass.startswith('typing.List['): diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 7d3d5af..7448a6a 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -353,6 +353,7 @@ SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) SimulatedIdP = DynamicModel('SimulatedIdP', (), {} ) Snapshot = DynamicModel('Snapshot', (), {} ) +SnowflakeExporter = DynamicModel('SnowflakeExporter', (), {} ) SortBodyField = DynamicModel('SortBodyField', (), {} ) SpecificObjective = DynamicModel('SpecificObjective', (), {} ) StartAgentsBatchDeleteRequestInner = DynamicModel('StartAgentsBatchDeleteRequestInner', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index cf00efc..ad858bd 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -353,6 +353,7 @@ class LinkNameException(Exception): from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot +from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField from cyperf.models.specific_objective import SpecificObjective from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index d033c3a..66a8b3e 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -47,8 +47,9 @@ class CommandMetadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + supported_protocols: Optional[List[StrictStr]] = Field(default=None, description="The list of protocols which support this command", alias="SupportedProtocols") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -136,6 +137,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], + "SupportedProtocols": obj.get("SupportedProtocols") if obj.get("SupportedProtocols") is not None else [], "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/config.py b/cyperf/models/config.py index e13d3e4..6cd7440 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -27,6 +27,7 @@ from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.expected_disk_space import ExpectedDiskSpace from cyperf.models.network_profile import NetworkProfile +from cyperf.models.snowflake_exporter import SnowflakeExporter from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -40,11 +41,12 @@ class Config(BaseModel): custom_dashboards: Optional[CustomDashboards] = Field(default=None, alias="CustomDashboards") expected_disk_space: Optional[List[ExpectedDiskSpace]] = Field(default=None, alias="ExpectedDiskSpace") network_profiles: Optional[List[NetworkProfile]] = Field(default=None, alias="NetworkProfiles") + snowflake_exporter: Optional[SnowflakeExporter] = Field(default=None, alias="SnowflakeExporter") traffic_profiles: Optional[List[ApplicationProfile]] = Field(default=None, alias="TrafficProfiles") links: Optional[List[APILink]] = None - validate: Optional[List[Union[StrictBytes, StrictStr]]] = None - _validate_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ValidateConfig" }) - __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "TrafficProfiles", "links", "validate"] + validate_session_config: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="validate-session-config") + _validate_session_config_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ValidateConfig" }) + __properties: ClassVar[List[str]] = ["AttackProfiles", "ConfigValidation", "CustomDashboards", "ExpectedDiskSpace", "NetworkProfiles", "SnowflakeExporter", "TrafficProfiles", "links", "validate-session-config"] model_config = ConfigDict( populate_by_name=True, @@ -112,6 +114,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['NetworkProfiles'] = _items + # override the default output from pydantic by calling `to_dict()` of snowflake_exporter + if self.snowflake_exporter: + _dict['SnowflakeExporter'] = self.snowflake_exporter.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in traffic_profiles (list) _items = [] if self.traffic_profiles: @@ -145,9 +150,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "CustomDashboards": CustomDashboards.from_dict(obj["CustomDashboards"]) if obj.get("CustomDashboards") is not None else None, "ExpectedDiskSpace": ( [ExpectedDiskSpace.from_dict(_item) for _item in obj.get("ExpectedDiskSpace", [])] if obj.get("ExpectedDiskSpace") is not None else None), "NetworkProfiles": ( [NetworkProfile.from_dict(_item) for _item in obj.get("NetworkProfiles", [])] if obj.get("NetworkProfiles") is not None else None), + "SnowflakeExporter": SnowflakeExporter.from_dict(obj["SnowflakeExporter"]) if obj.get("SnowflakeExporter") is not None else None, "TrafficProfiles": ( [ApplicationProfile.from_dict(_item) for _item in obj.get("TrafficProfiles", [])] if obj.get("TrafficProfiles") is not None else None), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), - "validate": obj.get("validate") if obj.get("validate") is not None else [] + "validate-session-config": obj.get("validate-session-config") if obj.get("validate-session-config") is not None else [] , "links": obj.get("links") }) diff --git a/cyperf/models/http_profile.py b/cyperf/models/http_profile.py index 5497708..2294599 100644 --- a/cyperf/models/http_profile.py +++ b/cyperf/models/http_profile.py @@ -40,11 +40,12 @@ class HTTPProfile(BaseModel): http_version: Optional[HTTPVersion] = Field(default=None, alias="HTTPVersion") headers: Optional[Params] = Field(default=None, alias="Headers") is_modified: Optional[StrictBool] = Field(default=None, alias="IsModified") + max_concurrent_streams: Optional[StrictInt] = Field(default=None, description="The maximum number of streams for all HTTP/2 connections.", alias="MaxConcurrentStreams") name: StrictStr = Field(description="The name of the HTTP profile.", alias="Name") params: Optional[List[Params]] = Field(default=None, description="The list of parameters present in the HTTP profile.", alias="Params") use_application_server_headers: Optional[StrictBool] = Field(default=None, alias="UseApplicationServerHeaders") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AdditionalHeaders", "ConnectionPersistence", "ConnectionsMaxTransactions", "Description", "ExternalResourceURL", "HTTPVersion", "Headers", "IsModified", "Name", "Params", "UseApplicationServerHeaders", "links"] + __properties: ClassVar[List[str]] = ["AdditionalHeaders", "ConnectionPersistence", "ConnectionsMaxTransactions", "Description", "ExternalResourceURL", "HTTPVersion", "Headers", "IsModified", "MaxConcurrentStreams", "Name", "Params", "UseApplicationServerHeaders", "links"] model_config = ConfigDict( populate_by_name=True, @@ -127,6 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "HTTPVersion": obj.get("HTTPVersion"), "Headers": Params.from_dict(obj["Headers"]) if obj.get("Headers") is not None else None, "IsModified": obj.get("IsModified"), + "MaxConcurrentStreams": obj.get("MaxConcurrentStreams"), "Name": obj.get("Name"), "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), "UseApplicationServerHeaders": obj.get("UseApplicationServerHeaders"), diff --git a/cyperf/models/param_type.py b/cyperf/models/param_type.py index 31c947c..0932def 100644 --- a/cyperf/models/param_type.py +++ b/cyperf/models/param_type.py @@ -38,6 +38,7 @@ class ParamType(str, Enum): MEDIAPROFILE = 'MediaProfile' RANGE = 'range' INT = 'int' + STATS_MINUS_PROFILE = 'stats-profile' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/snowflake_exporter.py b/cyperf/models/snowflake_exporter.py new file mode 100644 index 0000000..f4b9cd8 --- /dev/null +++ b/cyperf/models/snowflake_exporter.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.params import Params +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SnowflakeExporter(BaseModel): + """ + SnowflakeExporter + """ # noqa: E501 + active: StrictBool = Field(description="Indicates whether the snowflake stats exporter is enabled or not.", alias="Active") + polling_interval: Optional[Annotated[int, Field(strict=True)]] = Field(default=None, description="Polling interval used for fetching and uploading data.", alias="PollingInterval") + profile: Optional[Params] = Field(default=None, description="The json snowflake profile.", alias="Profile") + server_url: StrictStr = Field(description="Snowflake endpoint used for uploading data.", alias="ServerURL") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Active", "PollingInterval", "Profile", "ServerURL", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SnowflakeExporter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of profile + if self.profile: + _dict['Profile'] = self.profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SnowflakeExporter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Active": obj.get("Active"), + "PollingInterval": obj.get("PollingInterval"), + "Profile": Params.from_dict(obj["Profile"]) if obj.get("Profile") is not None else None, + "ServerURL": obj.get("ServerURL"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md index 0b09e72..742d740 100644 --- a/docs/CommandMetadata.md +++ b/docs/CommandMetadata.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**supported_protocols** | **List[str]** | The list of protocols which support this command | [optional] **year** | **str** | The year of the strike | [optional] ## Example diff --git a/docs/Config.md b/docs/Config.md index 23bcdb5..ce84a08 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -11,9 +11,10 @@ Name | Type | Description | Notes **custom_dashboards** | [**CustomDashboards**](CustomDashboards.md) | | [optional] **expected_disk_space** | [**List[ExpectedDiskSpace]**](ExpectedDiskSpace.md) | | [optional] **network_profiles** | [**List[NetworkProfile]**](NetworkProfile.md) | | [optional] +**snowflake_exporter** | [**SnowflakeExporter**](SnowflakeExporter.md) | | [optional] **traffic_profiles** | [**List[ApplicationProfile]**](ApplicationProfile.md) | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] -**validate** | **List[bytearray]** | | [optional] +**validate_session_config** | **List[bytearray]** | | [optional] ## Example diff --git a/docs/HTTPProfile.md b/docs/HTTPProfile.md index cd1e565..94d77ff 100644 --- a/docs/HTTPProfile.md +++ b/docs/HTTPProfile.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **http_version** | [**HTTPVersion**](HTTPVersion.md) | | [optional] **headers** | [**Params**](Params.md) | | [optional] **is_modified** | **bool** | | [optional] +**max_concurrent_streams** | **int** | The maximum number of streams for all HTTP/2 connections. | [optional] **name** | **str** | The name of the HTTP profile. | **params** | [**List[Params]**](Params.md) | The list of parameters present in the HTTP profile. | [optional] **use_application_server_headers** | **bool** | | [optional] diff --git a/docs/ParamType.md b/docs/ParamType.md index 95c6556..6b2051d 100644 --- a/docs/ParamType.md +++ b/docs/ParamType.md @@ -25,6 +25,8 @@ * `INT` (value: `'int'`) +* `STATS_MINUS_PROFILE` (value: `'stats-profile'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SnowflakeExporter.md b/docs/SnowflakeExporter.md new file mode 100644 index 0000000..f035ab7 --- /dev/null +++ b/docs/SnowflakeExporter.md @@ -0,0 +1,33 @@ +# SnowflakeExporter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | Indicates whether the snowflake stats exporter is enabled or not. | +**polling_interval** | **int** | Polling interval used for fetching and uploading data. | [optional] +**profile** | [**Params**](Params.md) | The json snowflake profile. | [optional] +**server_url** | **str** | Snowflake endpoint used for uploading data. | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.snowflake_exporter import SnowflakeExporter + +# TODO update the JSON string below +json = "{}" +# create an instance of SnowflakeExporter from a JSON string +snowflake_exporter_instance = SnowflakeExporter.from_json(json) +# print the JSON string representation of the object +print(SnowflakeExporter.to_json()) + +# convert the object into a dict +snowflake_exporter_dict = snowflake_exporter_instance.to_dict() +# create an instance of SnowflakeExporter from a dict +snowflake_exporter_from_dict = SnowflakeExporter.from_dict(snowflake_exporter_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/test/test_application.py b/test/test_application.py index 8e870d8..d30241c 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> Application: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -342,6 +343,7 @@ def make_instance(self, include_optional) -> Application: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_application_type.py b/test/test_application_type.py index e1ddf7f..cab24ec 100644 --- a/test/test_application_type.py +++ b/test/test_application_type.py @@ -82,6 +82,9 @@ def make_instance(self, include_optional) -> ApplicationType: supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ @@ -365,6 +368,9 @@ def make_instance(self, include_optional) -> ApplicationType: supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ diff --git a/test/test_appsec_config.py b/test/test_appsec_config.py index 756d4c4..395d0ba 100644 --- a/test/test_appsec_config.py +++ b/test/test_appsec_config.py @@ -77,6 +77,7 @@ def make_instance(self, include_optional) -> AppsecConfig: type = '', ) ], ) ], + snowflake_exporter = null, traffic_profiles = [ null ], @@ -90,7 +91,7 @@ def make_instance(self, include_optional) -> AppsecConfig: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ], ), session_id = '', diff --git a/test/test_attack.py b/test/test_attack.py index 45c26c3..86bba3f 100644 --- a/test/test_attack.py +++ b/test/test_attack.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> Attack: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -342,6 +343,7 @@ def make_instance(self, include_optional) -> Attack: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_command.py b/test/test_command.py index 82a2036..522c3ad 100644 --- a/test/test_command.py +++ b/test/test_command.py @@ -80,6 +80,9 @@ def make_instance(self, include_optional) -> Command: supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ diff --git a/test/test_command_metadata.py b/test/test_command_metadata.py index 9adbb02..2aa1ceb 100644 --- a/test/test_command_metadata.py +++ b/test/test_command_metadata.py @@ -69,6 +69,9 @@ def make_instance(self, include_optional) -> CommandMetadata: supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '' ) else: diff --git a/test/test_config.py b/test/test_config.py index 2b995f1..c576435 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -113,6 +113,21 @@ def make_instance(self, include_optional) -> Config: type = '', ) ], ) ], + snowflake_exporter = cyperf.models.snowflake_exporter.SnowflakeExporter( + active = True, + polling_interval = 56, + profile = null, + server_url = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ), traffic_profiles = [ null ], @@ -126,7 +141,7 @@ def make_instance(self, include_optional) -> Config: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ] ) diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py index d61eabc..fe3ffdc 100644 --- a/test/test_get_resources_application_types200_response.py +++ b/test/test_get_resources_application_types200_response.py @@ -84,6 +84,9 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py index 4942311..151ab42 100644 --- a/test/test_get_resources_application_types200_response_one_of.py +++ b/test/test_get_resources_application_types200_response_one_of.py @@ -84,6 +84,9 @@ def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Resp supported_apps = [ '' ], + supported_protocols = [ + '' + ], year = '', ), name = '', parameters = [ diff --git a/test/test_get_resources_http_profiles200_response.py b/test/test_get_resources_http_profiles200_response.py index 602dc05..b511955 100644 --- a/test/test_get_resources_http_profiles200_response.py +++ b/test/test_get_resources_http_profiles200_response.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> GetResourcesHttpProfiles200Response http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_get_resources_http_profiles200_response_one_of.py b/test/test_get_resources_http_profiles200_response_one_of.py index 1c6c226..6710b73 100644 --- a/test/test_get_resources_http_profiles200_response_one_of.py +++ b/test/test_get_resources_http_profiles200_response_one_of.py @@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> GetResourcesHttpProfiles200Response http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_get_sessions200_response.py b/test/test_get_sessions200_response.py index 678e203..3ecec94 100644 --- a/test/test_get_sessions200_response.py +++ b/test/test_get_sessions200_response.py @@ -81,6 +81,7 @@ def make_instance(self, include_optional) -> GetSessions200Response: type = '', ) ], ) ], + snowflake_exporter = null, traffic_profiles = [ null ], @@ -94,7 +95,7 @@ def make_instance(self, include_optional) -> GetSessions200Response: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ], ), session_id = '', diff --git a/test/test_get_sessions200_response_one_of.py b/test/test_get_sessions200_response_one_of.py index 2588528..7450daf 100644 --- a/test/test_get_sessions200_response_one_of.py +++ b/test/test_get_sessions200_response_one_of.py @@ -81,6 +81,7 @@ def make_instance(self, include_optional) -> GetSessions200ResponseOneOf: type = '', ) ], ) ], + snowflake_exporter = null, traffic_profiles = [ null ], @@ -94,7 +95,7 @@ def make_instance(self, include_optional) -> GetSessions200ResponseOneOf: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ], ), session_id = '', diff --git a/test/test_http_profile.py b/test/test_http_profile.py index a0c4cad..9a7a147 100644 --- a/test/test_http_profile.py +++ b/test/test_http_profile.py @@ -228,6 +228,7 @@ def make_instance(self, include_optional) -> HTTPProfile: supports_dynamic_payload = True, upload_url = '', ), is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_scenario.py b/test/test_scenario.py index 5c32226..9a20c65 100644 --- a/test/test_scenario.py +++ b/test/test_scenario.py @@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> Scenario: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -342,6 +343,7 @@ def make_instance(self, include_optional) -> Scenario: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_session.py b/test/test_session.py index ef1ddf5..c02176a 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -79,6 +79,7 @@ def make_instance(self, include_optional) -> Session: type = '', ) ], ) ], + snowflake_exporter = null, traffic_profiles = [ null ], @@ -92,7 +93,7 @@ def make_instance(self, include_optional) -> Session: rel = '', type = '', ) ], - validate = [ + validate_session_config = [ 'YQ==' ], ), session_id = '', diff --git a/test/test_snowflake_exporter.py b/test/test_snowflake_exporter.py new file mode 100644 index 0000000..7875924 --- /dev/null +++ b/test/test_snowflake_exporter.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cyperf.models.snowflake_exporter import SnowflakeExporter + +class TestSnowflakeExporter(unittest.TestCase): + """SnowflakeExporter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SnowflakeExporter: + """Test SnowflakeExporter + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SnowflakeExporter` + """ + model = SnowflakeExporter() + if include_optional: + return SnowflakeExporter( + active = True, + polling_interval = 56, + profile = cyperf.models.params.Params( + array_element_type = '', + array_elements = [ + { + 'key' : '' + } + ], + category = '', + category_index = 56, + deprecated_previous_source = '', + description = '', + dictionary_value = { + 'key' : '' + }, + enum = cyperf.models.params_enum.Params_Enum( + choices = [ + cyperf.models.choice.Choice( + description = '', + hidden = True, + name = '', + value = '', ) + ], ), + file_value = null, + flow_identifier = True, + is_deprecated = True, + is_modified = True, + media_files = [ + cyperf.models.media_file.MediaFile( + file_value = null, + media_tracks = [ + cyperf.models.media_track.MediaTrack( + bitrate = 56, + bitrate_kbps = 56, + codec = '', + codec_description = '', + track_id = '', + track_type = null, + id = '', ) + ], + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], ) + ], + metadata = cyperf.models.param_metadata.ParamMetadata( + type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( + array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( + elements = [ + cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( + id = '', + type = '', ) + ], ), + int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( + max_value = 56, + min_value = 56, ), + media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( + track_id = '', + track_type = '', ), + string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( + charset = '', + max_length = 56, + min_length = 56, ), ), ), + name = '', + param_id = '', + readonly = True, + source = '', + supported_sources = [ + '' + ], + type = '', + value = '', + file_upload = [ + 'YQ==' + ], + id = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ], + supports_dynamic_payload = True, + upload_url = '', ), + server_url = '', + links = [ + cyperf.models.api_link.APILink( + content_type = '', + href = '', + method = '', + name = '', + references_count = 56, + rel = '', + type = '', ) + ] + ) + else: + return SnowflakeExporter( + active = True, + server_url = '', + ) + """ + + def testSnowflakeExporter(self): + """Test SnowflakeExporter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py index fc02383..e299cd7 100644 --- a/test/test_transport_profile.py +++ b/test/test_transport_profile.py @@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> TransportProfile: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -273,6 +274,7 @@ def make_instance(self, include_optional) -> TransportProfile: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py index a4ac4ef..4e9641e 100644 --- a/test/test_transport_profile_base.py +++ b/test/test_transport_profile_base.py @@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> TransportProfileBase: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( @@ -273,6 +274,7 @@ def make_instance(self, include_optional) -> TransportProfileBase: http_version = null, headers = null, is_modified = True, + max_concurrent_streams = 56, name = '', params = [ cyperf.models.params.Params( From 0211d226b072a676be2ba542e30565e517c4cba5 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 18 Feb 2026 07:30:56 -0700 Subject: [PATCH 26/53] Pull request #56: ISGAPPSEC2-34528 cyperf-api-wrapper-tests Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34528-cyperf-api-wrapper-tests to main Squashed commit of the following: commit 6c292e19d99c8709e38b5d952cba095b8e82974e Author: iustmitu Date: Wed Feb 18 16:21:38 2026 +0200 deleted testing stage in jenkins commit 01ef0b9c93eafc747d2b3356c4c6ffc9d2921599 Author: iustmitu Date: Fri Feb 13 16:22:30 2026 +0200 deleted unit tests --- README.md | 3 - jenkins/JenkinsFile | 7 - pyproject.toml | 4 +- test/__init__.py | 0 test/test_action.py | 175 ---- test/test_action_base.py | 175 ---- test/test_action_input.py | 79 -- test/test_action_input_find_param.py | 73 -- test/test_action_metadata.py | 146 --- test/test_activation_code_info.py | 62 -- test/test_activation_code_list_request.py | 55 -- test/test_activation_code_request.py | 54 -- test/test_add_action_info.py | 60 -- test/test_add_input.py | 83 -- test/test_advanced_settings.py | 58 -- test/test_agent.py | 149 --- test/test_agent_assignment_by_port.py | 70 -- test/test_agent_assignment_details.py | 74 -- test/test_agent_assignments.py | 71 -- test/test_agent_cpu_info.py | 58 -- test/test_agent_features.py | 55 -- test/test_agent_optimization_mode.py | 35 - test/test_agent_release.py | 53 -- test/test_agent_reservation.py | 62 -- test/test_agent_to_be_rebooted.py | 53 -- test/test_agents_api.py | 203 ---- test/test_agents_group.py | 58 -- test/test_api_link.py | 59 -- test/test_api_relationship.py | 35 - test/test_app_exchange.py | 116 --- test/test_app_flow.py | 123 --- test/test_app_flow_desc.py | 57 -- test/test_app_flow_input.py | 56 -- test/test_app_flow_input_find_param.py | 65 -- test/test_app_id.py | 53 -- test/test_app_mode.py | 54 -- test/test_application.py | 739 --------------- test/test_application_profile.py | 163 ---- test/test_application_resources_api.py | 892 ------------------ test/test_application_type.py | 445 --------- test/test_appsec_app.py | 176 ---- test/test_appsec_app_metadata.py | 167 ---- ...test_appsec_app_metadata_keywords_inner.py | 52 - test/test_appsec_attack.py | 84 -- test/test_appsec_config.py | 127 --- test/test_archive_info.py | 67 -- test/test_array_v2_element_metadata.py | 54 -- test/test_async_context.py | 60 -- test/test_attack.py | 714 -------------- test/test_attack_action.py | 175 ---- test/test_attack_metadata.py | 67 -- test/test_attack_metadata_keywords_inner.py | 52 - test/test_attack_objectives_and_timeline.py | 65 -- test/test_attack_profile.py | 139 --- test/test_attack_timeline_segment.py | 65 -- test/test_attack_track.py | 78 -- test/test_auth_method_type.py | 35 - test/test_auth_profile.py | 229 ----- test/test_auth_profile_metadata.py | 74 -- ...l_openid_connect_token_post200_response.py | 55 -- test/test_auth_settings.py | 556 ----------- test/test_authenticate200_response.py | 56 -- test/test_authentication_settings.py | 251 ----- test/test_authorization_api.py | 38 - test/test_automatic_ip_type.py | 35 - test/test_broker.py | 63 -- test/test_brokers_api.py | 62 -- test/test_capture.py | 105 --- test/test_capture_input.py | 60 -- test/test_capture_input_find_param.py | 69 -- test/test_capture_settings.py | 58 -- test/test_category.py | 59 -- test/test_category_filter.py | 56 -- test/test_category_value.py | 54 -- test/test_cert_config.py | 360 ------- test/test_certificate.py | 63 -- .../test_change_aggregation_mode_operation.py | 56 -- test/test_change_link_state_operation.py | 55 -- test/test_chassis_info.py | 57 -- test/test_choice.py | 56 -- test/test_cipher_tls12.py | 35 - test/test_cipher_tls13.py | 35 - test/test_cisco_any_connect_settings.py | 208 ---- test/test_cisco_encapsulation.py | 81 -- test/test_clear_ports_ownership_operation.py | 63 -- test/test_command.py | 200 ---- test/test_command_metadata.py | 89 -- test/test_compute_node.py | 92 -- test/test_config.py | 160 ---- test/test_config_category.py | 67 -- test/test_config_id.py | 53 -- test/test_config_metadata.py | 84 -- .../test_config_metadata_config_data_value.py | 51 - test/test_config_sub_category.py | 53 -- test/test_config_validation.py | 69 -- test/test_configurations_api.py | 120 --- test/test_conflict.py | 62 -- test/test_connection.py | 196 ---- test/test_connection_persistence.py | 35 - test/test_consumer.py | 55 -- test/test_controller.py | 115 --- test/test_counted_feature_consumer.py | 64 -- test/test_counted_feature_stats.py | 76 -- test/test_create_app_operation.py | 100 -- ...st_create_app_or_attack_operation_input.py | 67 -- test/test_custom_dashboards.py | 74 -- test/test_custom_import_handler.py | 61 -- test/test_custom_stat.py | 55 -- test/test_dashboard.py | 54 -- test/test_data_migration_api.py | 46 - test/test_data_type.py | 58 -- test/test_data_type_values_inner.py | 54 -- test/test_definition.py | 53 -- test/test_delete_input.py | 56 -- test/test_dh_p1_group.py | 35 - test/test_diagnostic_component.py | 71 -- test/test_diagnostic_component_context.py | 83 -- test/test_diagnostic_options.py | 54 -- test/test_diagnostics_api.py | 74 -- test/test_disk_usage.py | 77 -- test/test_dns_resolver.py | 68 -- test/test_dns_server.py | 58 -- test/test_dtls_settings.py | 149 --- test/test_dut_network.py | 789 ---------------- test/test_edit_action_input.py | 68 -- test/test_edit_app_operation.py | 150 --- test/test_effective_ports.py | 57 -- test/test_emulated_router.py | 67 -- test/test_emulated_router_range.py | 120 --- test/test_emulated_subnet_config.py | 72 -- test/test_enc_p1_algorithm.py | 35 - test/test_enc_p2_algorithm.py | 35 - test/test_endpoint.py | 78 -- test/test_entitlement_code_info.py | 70 -- test/test_entitlement_code_request.py | 54 -- test/test_enum.py | 60 -- test/test_error_description.py | 54 -- test/test_error_response.py | 53 -- test/test_esp_over_udp_settings.py | 70 -- test/test_eth_range.py | 79 -- test/test_eula_details.py | 57 -- test/test_eula_summary.py | 55 -- test/test_exchange.py | 57 -- test/test_exchange_order.py | 54 -- test/test_exchange_payload.py | 54 -- test/test_expected_disk_space.py | 76 -- test/test_expected_disk_space_message.py | 58 -- test/test_expected_disk_space_pretty_size.py | 58 -- test/test_expected_disk_space_size.py | 58 -- test/test_export_all_operation.py | 56 -- test/test_export_apps_operation_input.py | 56 -- test/test_export_files_operation_input.py | 65 -- test/test_export_files_request.py | 59 -- test/test_export_package_operation.py | 57 -- test/test_external_resource_info.py | 53 -- test/test_f5_encapsulation.py | 81 -- test/test_f5_settings.py | 202 ---- test/test_feature.py | 70 -- test/test_feature_reservation.py | 60 -- test/test_feature_reservation_reserve.py | 58 -- test/test_file_metadata.py | 54 -- test/test_file_value.py | 59 -- test/test_filter.py | 54 -- test/test_filtered_stat.py | 58 -- test/test_find_param_matches_operation.py | 81 -- test/test_fortinet_encapsulation.py | 81 -- test/test_fortinet_settings.py | 202 ---- test/test_fulfillment_request.py | 56 -- test/test_generate_all_operation.py | 53 -- test/test_generate_csv_reports_operation.py | 66 -- test/test_generate_pdf_report_operation.py | 54 -- test/test_generic_file.py | 70 -- test/test_get_agent_tags200_response.py | 61 -- .../test_get_agent_tags200_response_one_of.py | 61 -- test/test_get_agents200_response.py | 141 --- test/test_get_agents200_response_one_of.py | 141 --- test/test_get_agents_tags200_response.py | 62 -- ...test_get_agents_tags200_response_one_of.py | 62 -- .../test_get_application_types200_response.py | 206 ---- ...et_application_types200_response_one_of.py | 206 ---- test/test_get_apps200_response.py | 136 --- test/test_get_apps200_response_one_of.py | 136 --- test/test_get_apps_operation.py | 73 -- ..._get_async_operation_result200_response.py | 104 -- test/test_get_attacks200_response.py | 87 -- test/test_get_attacks200_response_one_of.py | 87 -- test/test_get_attacks_operation.py | 73 -- test/test_get_auth_profiles200_response.py | 152 --- ...st_get_auth_profiles200_response_one_of.py | 152 --- test/test_get_brokers200_response.py | 67 -- test/test_get_brokers200_response_one_of.py | 67 -- test/test_get_categories_operation.py | 59 -- test/test_get_certificates200_response.py | 72 -- ...est_get_certificates200_response_one_of.py | 72 -- ...fig_categorie_subcategories200_response.py | 57 -- ...egorie_subcategories200_response_one_of.py | 57 -- .../test_get_config_categories200_response.py | 71 -- ...et_config_categories200_response_one_of.py | 71 -- test/test_get_configs200_response.py | 88 -- test/test_get_configs200_response_one_of.py | 88 -- test/test_get_consumers200_response.py | 58 -- test/test_get_consumers200_response_one_of.py | 58 -- test/test_get_controllers200_response.py | 119 --- ...test_get_controllers200_response_one_of.py | 119 --- ...et_custom_import_operations200_response.py | 64 -- ...om_import_operations200_response_one_of.py | 64 -- ...st_get_disk_usage_consumers200_response.py | 59 -- ...disk_usage_consumers200_response_one_of.py | 59 -- test/test_get_files200_response.py | 61 -- test/test_get_files200_response_one_of.py | 61 -- test/test_get_http_profiles200_response.py | 162 ---- ...st_get_http_profiles200_response_one_of.py | 162 ---- ...ense_async_operation_result200_response.py | 106 --- test/test_get_license_servers200_response.py | 67 -- ..._get_license_servers200_response_one_of.py | 67 -- test/test_get_meta200_response.py | 58 -- test/test_get_meta200_response_one_of.py | 58 -- test/test_get_notifications200_response.py | 68 -- ...st_get_notifications200_response_one_of.py | 68 -- test/test_get_plugins200_response.py | 61 -- test/test_get_plugins200_response_one_of.py | 61 -- ...resources_application_types200_response.py | 238 ----- ...es_application_types200_response_one_of.py | 238 ----- test/test_get_resources_apps200_response.py | 180 ---- ...t_get_resources_apps200_response_one_of.py | 180 ---- .../test_get_resources_attacks200_response.py | 88 -- ...et_resources_attacks200_response_one_of.py | 88 -- ...get_resources_auth_profiles200_response.py | 153 --- ...ources_auth_profiles200_response_one_of.py | 153 --- ..._get_resources_certificates200_response.py | 74 -- ...sources_certificates200_response_one_of.py | 74 -- ...es_custom_import_operations200_response.py | 65 -- ...om_import_operations200_response_one_of.py | 65 -- ...get_resources_http_profiles200_response.py | 164 ---- ...ources_http_profiles200_response_one_of.py | 164 ---- test/test_get_result_files200_response.py | 62 -- ...est_get_result_files200_response_one_of.py | 62 -- test/test_get_result_stats200_response.py | 158 ---- ...est_get_result_stats200_response_one_of.py | 158 ---- test/test_get_result_tags200_response.py | 59 -- ...test_get_result_tags200_response_one_of.py | 59 -- test/test_get_results200_response.py | 114 --- test/test_get_results200_response_one_of.py | 114 --- test/test_get_results_tags200_response.py | 60 -- ...est_get_results_tags200_response_one_of.py | 60 -- test/test_get_session_meta200_response.py | 59 -- ...est_get_session_meta200_response_one_of.py | 59 -- test/test_get_sessions200_response.py | 158 ---- test/test_get_sessions200_response_one_of.py | 158 ---- test/test_get_stats200_response.py | 154 --- test/test_get_stats200_response_one_of.py | 154 --- test/test_get_stats_plugins200_response.py | 62 -- ...st_get_stats_plugins200_response_one_of.py | 62 -- test/test_get_strikes_operation.py | 74 -- test/test_group_tls13.py | 56 -- test/test_hash_p1_algorithm.py | 35 - test/test_hash_p2_algorithm.py | 35 - test/test_health_check_config.py | 159 ---- test/test_health_issue.py | 54 -- test/test_host_id.py | 53 -- test/test_http_profile.py | 354 ------- test/test_http_req_meta.py | 62 -- test/test_http_res_meta.py | 61 -- test/test_http_version.py | 35 - test/test_id_p_signature_algo.py | 35 - test/test_import_all_operation.py | 87 -- test/test_import_offline_license_result.py | 122 --- test/test_ingest_operation.py | 60 -- test/test_inner_ip_range.py | 55 -- test/test_interface.py | 60 -- test/test_ip_mask.py | 54 -- test/test_ip_network.py | 294 ------ test/test_ip_preference.py | 35 - test/test_ip_range.py | 118 --- test/test_ip_sec_range.py | 129 --- test/test_ip_sec_stack.py | 260 ----- test/test_ip_ver.py | 35 - test/test_license.py | 106 --- test/test_license_receipt.py | 116 --- test/test_license_server_metadata.py | 63 -- test/test_license_servers_api.py | 62 -- test/test_licensing_api.py | 165 ---- test/test_link.py | 58 -- test/test_load_config_operation.py | 53 -- test/test_local_subnet_config.py | 72 -- test/test_log_config.py | 53 -- test/test_log_level.py | 35 - test/test_mac_dtls_stack.py | 158 ---- test/test_mapping_type.py | 35 - test/test_marked_as_deleted.py | 54 -- test/test_md2_tlv.py | 60 -- test/test_media_file.py | 81 -- test/test_media_track.py | 62 -- test/test_metadata.py | 85 -- test/test_mos_mode.py | 35 - test/test_name_id_format.py | 35 - test/test_name_server.py | 53 -- test/test_network_mapping.py | 67 -- test/test_network_meshing.py | 55 -- test/test_network_profile.py | 70 -- test/test_network_segment_base.py | 59 -- test/test_nodes_by_controller.py | 56 -- test/test_nodes_power_cycle_operation.py | 59 -- test/test_notification.py | 64 -- test/test_notification_counts.py | 56 -- test/test_notifications_api.py | 70 -- test/test_ntp_info.py | 57 -- test/test_objective_type.py | 35 - test/test_objective_unit.py | 35 - test/test_objective_value_entry.py | 57 -- test/test_objectives_and_timeline.py | 118 --- test/test_open_api_definitions.py | 55 -- test/test_p1_config.py | 64 -- test/test_p2_config.py | 64 -- test/test_pair.py | 55 -- test/test_pangp_encapsulation.py | 80 -- test/test_pangp_settings.py | 214 ----- test/test_param_metadata.py | 69 -- test/test_param_metadata_type_info.py | 68 -- .../test_param_metadata_type_info_array_v2.py | 57 -- ...adata_type_info_array_v2_elements_inner.py | 54 -- test/test_param_metadata_type_info_int.py | 54 -- test/test_param_metadata_type_info_media.py | 54 -- test/test_param_metadata_type_info_string.py | 55 -- test/test_param_source_type.py | 35 - test/test_param_type.py | 35 - test/test_parameter.py | 138 --- test/test_parameter_match.py | 60 -- test/test_parameter_meta.py | 64 -- test/test_parameter_metadata.py | 111 --- test/test_params.py | 153 --- test/test_params_enum.py | 59 -- test/test_payload_meta.py | 58 -- test/test_payload_metadata.py | 56 -- test/test_pep_dut.py | 372 -------- test/test_pfs_p2_group.py | 35 - test/test_playlist_metadata.py | 54 -- test/test_plugin.py | 58 -- test/test_plugin_stats.py | 59 -- test/test_port.py | 63 -- test/test_port_settings.py | 79 -- test/test_ports_by_controller.py | 60 -- test/test_ports_by_node.py | 56 -- test/test_prepare_test_operation.py | 75 -- test/test_prepared_test_options.py | 66 -- test/test_prf_p1_algorithm.py | 35 - test/test_protected_subnet_config.py | 66 -- test/test_quic_profile.py | 224 ----- test/test_quic_version.py | 35 - test/test_reboot_operation_input.py | 57 -- test/test_reboot_ports_operation.py | 63 -- test/test_reference.py | 54 -- test/test_regex_match.py | 55 -- test/test_release_operation_input.py | 57 -- test/test_remote_access.py | 57 -- test/test_remote_subnet_config.py | 66 -- test/test_rename_input.py | 54 -- test/test_reorder_action_input.py | 54 -- test/test_reorder_exchanges_input.py | 59 -- test/test_replay_capture.py | 140 --- test/test_reports_api.py | 58 -- test/test_required_file_types.py | 56 -- test/test_reserve_operation_input.py | 79 -- test/test_result_file_metadata.py | 58 -- test/test_result_metadata.py | 110 --- test/test_results_group.py | 56 -- test/test_rtp_encryption_mode.py | 35 - test/test_rtp_profile.py | 58 -- test/test_rtp_profile_meta.py | 59 -- test/test_save_config_operation.py | 53 -- test/test_scenario.py | 489 ---------- test/test_secondary_objective.py | 63 -- test/test_segment_type.py | 35 - test/test_selected_env.py | 65 -- test/test_session.py | 163 ---- test/test_session_reuse_method_tls12.py | 35 - test/test_session_reuse_method_tls13.py | 35 - test/test_sessions_api.py | 215 ----- test/test_set_aggregation_mode_operation.py | 60 -- test/test_set_app_operation.py | 57 -- test/test_set_dpdk_mode_operation_input.py | 56 -- test/test_set_link_state_operation.py | 64 -- test/test_set_ntp_operation_input.py | 58 -- test/test_simulated_id_p.py | 107 --- test/test_snapshot.py | 58 -- test/test_snowflake_exporter.py | 161 ---- test/test_sort_body_field.py | 54 -- test/test_specific_objective.py | 74 -- ...start_agents_batch_delete_request_inner.py | 53 -- test/test_start_batch_delete_request_inner.py | 52 - ...t_start_root_batch_delete_request_inner.py | 52 - test/test_stateless_stream.py | 78 -- test/test_static_arp_entry.py | 61 -- test/test_statistics_api.py | 69 -- test/test_stats_result.py | 154 --- test/test_steady_segment.py | 63 -- test/test_step_segment.py | 63 -- test/test_stream_direction.py | 35 - test/test_stream_payload_type.py | 35 - test/test_stream_profile.py | 61 -- test/test_supported_group_tls13.py | 35 - test/test_switch_app_operation.py | 52 - test/test_system_info.py | 66 -- test/test_tcp_profile.py | 77 -- test/test_test_info.py | 67 -- test/test_test_operations_api.py | 67 -- test/test_test_results_api.py | 127 --- test/test_test_state_changed_operation.py | 60 -- test/test_time_value.py | 53 -- test/test_timeline_segment.py | 81 -- test/test_timeline_segment_base.py | 59 -- test/test_timeline_segment_union.py | 67 -- test/test_timers.py | 58 -- test/test_tls_profile.py | 420 --------- test/test_track.py | 78 -- test/test_track_type.py | 35 - test/test_traffic_agent_info.py | 54 -- test/test_traffic_profile_base.py | 77 -- test/test_traffic_settings.py | 63 -- test/test_transport_profile.py | 526 ----------- test/test_transport_profile_base.py | 524 ---------- test/test_tunnel_range.py | 91 -- test/test_tunnel_settings.py | 107 --- test/test_tunnel_stack.py | 123 --- test/test_type_array_v2_metadata.py | 57 -- test/test_type_info_metadata.py | 68 -- test/test_type_int_metadata.py | 54 -- test/test_type_media_metadata.py | 54 -- test/test_type_string_metadata.py | 55 -- test/test_udp_profile.py | 59 -- test/test_update_network_mapping.py | 62 -- test/test_update_port_tags_operation.py | 69 -- test/test_utils_api.py | 169 ---- test/test_validation_message.py | 56 -- test/test_version.py | 54 -- test/test_vlan_range.py | 82 -- test/test_vx_lan_range.py | 100 -- test/test_vx_lan_stack.py | 166 ---- test/test_vx_lanid.py | 56 -- 439 files changed, 1 insertion(+), 40914 deletions(-) delete mode 100644 test/__init__.py delete mode 100644 test/test_action.py delete mode 100644 test/test_action_base.py delete mode 100644 test/test_action_input.py delete mode 100644 test/test_action_input_find_param.py delete mode 100644 test/test_action_metadata.py delete mode 100644 test/test_activation_code_info.py delete mode 100644 test/test_activation_code_list_request.py delete mode 100644 test/test_activation_code_request.py delete mode 100644 test/test_add_action_info.py delete mode 100644 test/test_add_input.py delete mode 100644 test/test_advanced_settings.py delete mode 100644 test/test_agent.py delete mode 100644 test/test_agent_assignment_by_port.py delete mode 100644 test/test_agent_assignment_details.py delete mode 100644 test/test_agent_assignments.py delete mode 100644 test/test_agent_cpu_info.py delete mode 100644 test/test_agent_features.py delete mode 100644 test/test_agent_optimization_mode.py delete mode 100644 test/test_agent_release.py delete mode 100644 test/test_agent_reservation.py delete mode 100644 test/test_agent_to_be_rebooted.py delete mode 100644 test/test_agents_api.py delete mode 100644 test/test_agents_group.py delete mode 100644 test/test_api_link.py delete mode 100644 test/test_api_relationship.py delete mode 100644 test/test_app_exchange.py delete mode 100644 test/test_app_flow.py delete mode 100644 test/test_app_flow_desc.py delete mode 100644 test/test_app_flow_input.py delete mode 100644 test/test_app_flow_input_find_param.py delete mode 100644 test/test_app_id.py delete mode 100644 test/test_app_mode.py delete mode 100644 test/test_application.py delete mode 100644 test/test_application_profile.py delete mode 100644 test/test_application_resources_api.py delete mode 100644 test/test_application_type.py delete mode 100644 test/test_appsec_app.py delete mode 100644 test/test_appsec_app_metadata.py delete mode 100644 test/test_appsec_app_metadata_keywords_inner.py delete mode 100644 test/test_appsec_attack.py delete mode 100644 test/test_appsec_config.py delete mode 100644 test/test_archive_info.py delete mode 100644 test/test_array_v2_element_metadata.py delete mode 100644 test/test_async_context.py delete mode 100644 test/test_attack.py delete mode 100644 test/test_attack_action.py delete mode 100644 test/test_attack_metadata.py delete mode 100644 test/test_attack_metadata_keywords_inner.py delete mode 100644 test/test_attack_objectives_and_timeline.py delete mode 100644 test/test_attack_profile.py delete mode 100644 test/test_attack_timeline_segment.py delete mode 100644 test/test_attack_track.py delete mode 100644 test/test_auth_method_type.py delete mode 100644 test/test_auth_profile.py delete mode 100644 test/test_auth_profile_metadata.py delete mode 100644 test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py delete mode 100644 test/test_auth_settings.py delete mode 100644 test/test_authenticate200_response.py delete mode 100644 test/test_authentication_settings.py delete mode 100644 test/test_authorization_api.py delete mode 100644 test/test_automatic_ip_type.py delete mode 100644 test/test_broker.py delete mode 100644 test/test_brokers_api.py delete mode 100644 test/test_capture.py delete mode 100644 test/test_capture_input.py delete mode 100644 test/test_capture_input_find_param.py delete mode 100644 test/test_capture_settings.py delete mode 100644 test/test_category.py delete mode 100644 test/test_category_filter.py delete mode 100644 test/test_category_value.py delete mode 100644 test/test_cert_config.py delete mode 100644 test/test_certificate.py delete mode 100644 test/test_change_aggregation_mode_operation.py delete mode 100644 test/test_change_link_state_operation.py delete mode 100644 test/test_chassis_info.py delete mode 100644 test/test_choice.py delete mode 100644 test/test_cipher_tls12.py delete mode 100644 test/test_cipher_tls13.py delete mode 100644 test/test_cisco_any_connect_settings.py delete mode 100644 test/test_cisco_encapsulation.py delete mode 100644 test/test_clear_ports_ownership_operation.py delete mode 100644 test/test_command.py delete mode 100644 test/test_command_metadata.py delete mode 100644 test/test_compute_node.py delete mode 100644 test/test_config.py delete mode 100644 test/test_config_category.py delete mode 100644 test/test_config_id.py delete mode 100644 test/test_config_metadata.py delete mode 100644 test/test_config_metadata_config_data_value.py delete mode 100644 test/test_config_sub_category.py delete mode 100644 test/test_config_validation.py delete mode 100644 test/test_configurations_api.py delete mode 100644 test/test_conflict.py delete mode 100644 test/test_connection.py delete mode 100644 test/test_connection_persistence.py delete mode 100644 test/test_consumer.py delete mode 100644 test/test_controller.py delete mode 100644 test/test_counted_feature_consumer.py delete mode 100644 test/test_counted_feature_stats.py delete mode 100644 test/test_create_app_operation.py delete mode 100644 test/test_create_app_or_attack_operation_input.py delete mode 100644 test/test_custom_dashboards.py delete mode 100644 test/test_custom_import_handler.py delete mode 100644 test/test_custom_stat.py delete mode 100644 test/test_dashboard.py delete mode 100644 test/test_data_migration_api.py delete mode 100644 test/test_data_type.py delete mode 100644 test/test_data_type_values_inner.py delete mode 100644 test/test_definition.py delete mode 100644 test/test_delete_input.py delete mode 100644 test/test_dh_p1_group.py delete mode 100644 test/test_diagnostic_component.py delete mode 100644 test/test_diagnostic_component_context.py delete mode 100644 test/test_diagnostic_options.py delete mode 100644 test/test_diagnostics_api.py delete mode 100644 test/test_disk_usage.py delete mode 100644 test/test_dns_resolver.py delete mode 100644 test/test_dns_server.py delete mode 100644 test/test_dtls_settings.py delete mode 100644 test/test_dut_network.py delete mode 100644 test/test_edit_action_input.py delete mode 100644 test/test_edit_app_operation.py delete mode 100644 test/test_effective_ports.py delete mode 100644 test/test_emulated_router.py delete mode 100644 test/test_emulated_router_range.py delete mode 100644 test/test_emulated_subnet_config.py delete mode 100644 test/test_enc_p1_algorithm.py delete mode 100644 test/test_enc_p2_algorithm.py delete mode 100644 test/test_endpoint.py delete mode 100644 test/test_entitlement_code_info.py delete mode 100644 test/test_entitlement_code_request.py delete mode 100644 test/test_enum.py delete mode 100644 test/test_error_description.py delete mode 100644 test/test_error_response.py delete mode 100644 test/test_esp_over_udp_settings.py delete mode 100644 test/test_eth_range.py delete mode 100644 test/test_eula_details.py delete mode 100644 test/test_eula_summary.py delete mode 100644 test/test_exchange.py delete mode 100644 test/test_exchange_order.py delete mode 100644 test/test_exchange_payload.py delete mode 100644 test/test_expected_disk_space.py delete mode 100644 test/test_expected_disk_space_message.py delete mode 100644 test/test_expected_disk_space_pretty_size.py delete mode 100644 test/test_expected_disk_space_size.py delete mode 100644 test/test_export_all_operation.py delete mode 100644 test/test_export_apps_operation_input.py delete mode 100644 test/test_export_files_operation_input.py delete mode 100644 test/test_export_files_request.py delete mode 100644 test/test_export_package_operation.py delete mode 100644 test/test_external_resource_info.py delete mode 100644 test/test_f5_encapsulation.py delete mode 100644 test/test_f5_settings.py delete mode 100644 test/test_feature.py delete mode 100644 test/test_feature_reservation.py delete mode 100644 test/test_feature_reservation_reserve.py delete mode 100644 test/test_file_metadata.py delete mode 100644 test/test_file_value.py delete mode 100644 test/test_filter.py delete mode 100644 test/test_filtered_stat.py delete mode 100644 test/test_find_param_matches_operation.py delete mode 100644 test/test_fortinet_encapsulation.py delete mode 100644 test/test_fortinet_settings.py delete mode 100644 test/test_fulfillment_request.py delete mode 100644 test/test_generate_all_operation.py delete mode 100644 test/test_generate_csv_reports_operation.py delete mode 100644 test/test_generate_pdf_report_operation.py delete mode 100644 test/test_generic_file.py delete mode 100644 test/test_get_agent_tags200_response.py delete mode 100644 test/test_get_agent_tags200_response_one_of.py delete mode 100644 test/test_get_agents200_response.py delete mode 100644 test/test_get_agents200_response_one_of.py delete mode 100644 test/test_get_agents_tags200_response.py delete mode 100644 test/test_get_agents_tags200_response_one_of.py delete mode 100644 test/test_get_application_types200_response.py delete mode 100644 test/test_get_application_types200_response_one_of.py delete mode 100644 test/test_get_apps200_response.py delete mode 100644 test/test_get_apps200_response_one_of.py delete mode 100644 test/test_get_apps_operation.py delete mode 100644 test/test_get_async_operation_result200_response.py delete mode 100644 test/test_get_attacks200_response.py delete mode 100644 test/test_get_attacks200_response_one_of.py delete mode 100644 test/test_get_attacks_operation.py delete mode 100644 test/test_get_auth_profiles200_response.py delete mode 100644 test/test_get_auth_profiles200_response_one_of.py delete mode 100644 test/test_get_brokers200_response.py delete mode 100644 test/test_get_brokers200_response_one_of.py delete mode 100644 test/test_get_categories_operation.py delete mode 100644 test/test_get_certificates200_response.py delete mode 100644 test/test_get_certificates200_response_one_of.py delete mode 100644 test/test_get_config_categorie_subcategories200_response.py delete mode 100644 test/test_get_config_categorie_subcategories200_response_one_of.py delete mode 100644 test/test_get_config_categories200_response.py delete mode 100644 test/test_get_config_categories200_response_one_of.py delete mode 100644 test/test_get_configs200_response.py delete mode 100644 test/test_get_configs200_response_one_of.py delete mode 100644 test/test_get_consumers200_response.py delete mode 100644 test/test_get_consumers200_response_one_of.py delete mode 100644 test/test_get_controllers200_response.py delete mode 100644 test/test_get_controllers200_response_one_of.py delete mode 100644 test/test_get_custom_import_operations200_response.py delete mode 100644 test/test_get_custom_import_operations200_response_one_of.py delete mode 100644 test/test_get_disk_usage_consumers200_response.py delete mode 100644 test/test_get_disk_usage_consumers200_response_one_of.py delete mode 100644 test/test_get_files200_response.py delete mode 100644 test/test_get_files200_response_one_of.py delete mode 100644 test/test_get_http_profiles200_response.py delete mode 100644 test/test_get_http_profiles200_response_one_of.py delete mode 100644 test/test_get_license_async_operation_result200_response.py delete mode 100644 test/test_get_license_servers200_response.py delete mode 100644 test/test_get_license_servers200_response_one_of.py delete mode 100644 test/test_get_meta200_response.py delete mode 100644 test/test_get_meta200_response_one_of.py delete mode 100644 test/test_get_notifications200_response.py delete mode 100644 test/test_get_notifications200_response_one_of.py delete mode 100644 test/test_get_plugins200_response.py delete mode 100644 test/test_get_plugins200_response_one_of.py delete mode 100644 test/test_get_resources_application_types200_response.py delete mode 100644 test/test_get_resources_application_types200_response_one_of.py delete mode 100644 test/test_get_resources_apps200_response.py delete mode 100644 test/test_get_resources_apps200_response_one_of.py delete mode 100644 test/test_get_resources_attacks200_response.py delete mode 100644 test/test_get_resources_attacks200_response_one_of.py delete mode 100644 test/test_get_resources_auth_profiles200_response.py delete mode 100644 test/test_get_resources_auth_profiles200_response_one_of.py delete mode 100644 test/test_get_resources_certificates200_response.py delete mode 100644 test/test_get_resources_certificates200_response_one_of.py delete mode 100644 test/test_get_resources_custom_import_operations200_response.py delete mode 100644 test/test_get_resources_custom_import_operations200_response_one_of.py delete mode 100644 test/test_get_resources_http_profiles200_response.py delete mode 100644 test/test_get_resources_http_profiles200_response_one_of.py delete mode 100644 test/test_get_result_files200_response.py delete mode 100644 test/test_get_result_files200_response_one_of.py delete mode 100644 test/test_get_result_stats200_response.py delete mode 100644 test/test_get_result_stats200_response_one_of.py delete mode 100644 test/test_get_result_tags200_response.py delete mode 100644 test/test_get_result_tags200_response_one_of.py delete mode 100644 test/test_get_results200_response.py delete mode 100644 test/test_get_results200_response_one_of.py delete mode 100644 test/test_get_results_tags200_response.py delete mode 100644 test/test_get_results_tags200_response_one_of.py delete mode 100644 test/test_get_session_meta200_response.py delete mode 100644 test/test_get_session_meta200_response_one_of.py delete mode 100644 test/test_get_sessions200_response.py delete mode 100644 test/test_get_sessions200_response_one_of.py delete mode 100644 test/test_get_stats200_response.py delete mode 100644 test/test_get_stats200_response_one_of.py delete mode 100644 test/test_get_stats_plugins200_response.py delete mode 100644 test/test_get_stats_plugins200_response_one_of.py delete mode 100644 test/test_get_strikes_operation.py delete mode 100644 test/test_group_tls13.py delete mode 100644 test/test_hash_p1_algorithm.py delete mode 100644 test/test_hash_p2_algorithm.py delete mode 100644 test/test_health_check_config.py delete mode 100644 test/test_health_issue.py delete mode 100644 test/test_host_id.py delete mode 100644 test/test_http_profile.py delete mode 100644 test/test_http_req_meta.py delete mode 100644 test/test_http_res_meta.py delete mode 100644 test/test_http_version.py delete mode 100644 test/test_id_p_signature_algo.py delete mode 100644 test/test_import_all_operation.py delete mode 100644 test/test_import_offline_license_result.py delete mode 100644 test/test_ingest_operation.py delete mode 100644 test/test_inner_ip_range.py delete mode 100644 test/test_interface.py delete mode 100644 test/test_ip_mask.py delete mode 100644 test/test_ip_network.py delete mode 100644 test/test_ip_preference.py delete mode 100644 test/test_ip_range.py delete mode 100644 test/test_ip_sec_range.py delete mode 100644 test/test_ip_sec_stack.py delete mode 100644 test/test_ip_ver.py delete mode 100644 test/test_license.py delete mode 100644 test/test_license_receipt.py delete mode 100644 test/test_license_server_metadata.py delete mode 100644 test/test_license_servers_api.py delete mode 100644 test/test_licensing_api.py delete mode 100644 test/test_link.py delete mode 100644 test/test_load_config_operation.py delete mode 100644 test/test_local_subnet_config.py delete mode 100644 test/test_log_config.py delete mode 100644 test/test_log_level.py delete mode 100644 test/test_mac_dtls_stack.py delete mode 100644 test/test_mapping_type.py delete mode 100644 test/test_marked_as_deleted.py delete mode 100644 test/test_md2_tlv.py delete mode 100644 test/test_media_file.py delete mode 100644 test/test_media_track.py delete mode 100644 test/test_metadata.py delete mode 100644 test/test_mos_mode.py delete mode 100644 test/test_name_id_format.py delete mode 100644 test/test_name_server.py delete mode 100644 test/test_network_mapping.py delete mode 100644 test/test_network_meshing.py delete mode 100644 test/test_network_profile.py delete mode 100644 test/test_network_segment_base.py delete mode 100644 test/test_nodes_by_controller.py delete mode 100644 test/test_nodes_power_cycle_operation.py delete mode 100644 test/test_notification.py delete mode 100644 test/test_notification_counts.py delete mode 100644 test/test_notifications_api.py delete mode 100644 test/test_ntp_info.py delete mode 100644 test/test_objective_type.py delete mode 100644 test/test_objective_unit.py delete mode 100644 test/test_objective_value_entry.py delete mode 100644 test/test_objectives_and_timeline.py delete mode 100644 test/test_open_api_definitions.py delete mode 100644 test/test_p1_config.py delete mode 100644 test/test_p2_config.py delete mode 100644 test/test_pair.py delete mode 100644 test/test_pangp_encapsulation.py delete mode 100644 test/test_pangp_settings.py delete mode 100644 test/test_param_metadata.py delete mode 100644 test/test_param_metadata_type_info.py delete mode 100644 test/test_param_metadata_type_info_array_v2.py delete mode 100644 test/test_param_metadata_type_info_array_v2_elements_inner.py delete mode 100644 test/test_param_metadata_type_info_int.py delete mode 100644 test/test_param_metadata_type_info_media.py delete mode 100644 test/test_param_metadata_type_info_string.py delete mode 100644 test/test_param_source_type.py delete mode 100644 test/test_param_type.py delete mode 100644 test/test_parameter.py delete mode 100644 test/test_parameter_match.py delete mode 100644 test/test_parameter_meta.py delete mode 100644 test/test_parameter_metadata.py delete mode 100644 test/test_params.py delete mode 100644 test/test_params_enum.py delete mode 100644 test/test_payload_meta.py delete mode 100644 test/test_payload_metadata.py delete mode 100644 test/test_pep_dut.py delete mode 100644 test/test_pfs_p2_group.py delete mode 100644 test/test_playlist_metadata.py delete mode 100644 test/test_plugin.py delete mode 100644 test/test_plugin_stats.py delete mode 100644 test/test_port.py delete mode 100644 test/test_port_settings.py delete mode 100644 test/test_ports_by_controller.py delete mode 100644 test/test_ports_by_node.py delete mode 100644 test/test_prepare_test_operation.py delete mode 100644 test/test_prepared_test_options.py delete mode 100644 test/test_prf_p1_algorithm.py delete mode 100644 test/test_protected_subnet_config.py delete mode 100644 test/test_quic_profile.py delete mode 100644 test/test_quic_version.py delete mode 100644 test/test_reboot_operation_input.py delete mode 100644 test/test_reboot_ports_operation.py delete mode 100644 test/test_reference.py delete mode 100644 test/test_regex_match.py delete mode 100644 test/test_release_operation_input.py delete mode 100644 test/test_remote_access.py delete mode 100644 test/test_remote_subnet_config.py delete mode 100644 test/test_rename_input.py delete mode 100644 test/test_reorder_action_input.py delete mode 100644 test/test_reorder_exchanges_input.py delete mode 100644 test/test_replay_capture.py delete mode 100644 test/test_reports_api.py delete mode 100644 test/test_required_file_types.py delete mode 100644 test/test_reserve_operation_input.py delete mode 100644 test/test_result_file_metadata.py delete mode 100644 test/test_result_metadata.py delete mode 100644 test/test_results_group.py delete mode 100644 test/test_rtp_encryption_mode.py delete mode 100644 test/test_rtp_profile.py delete mode 100644 test/test_rtp_profile_meta.py delete mode 100644 test/test_save_config_operation.py delete mode 100644 test/test_scenario.py delete mode 100644 test/test_secondary_objective.py delete mode 100644 test/test_segment_type.py delete mode 100644 test/test_selected_env.py delete mode 100644 test/test_session.py delete mode 100644 test/test_session_reuse_method_tls12.py delete mode 100644 test/test_session_reuse_method_tls13.py delete mode 100644 test/test_sessions_api.py delete mode 100644 test/test_set_aggregation_mode_operation.py delete mode 100644 test/test_set_app_operation.py delete mode 100644 test/test_set_dpdk_mode_operation_input.py delete mode 100644 test/test_set_link_state_operation.py delete mode 100644 test/test_set_ntp_operation_input.py delete mode 100644 test/test_simulated_id_p.py delete mode 100644 test/test_snapshot.py delete mode 100644 test/test_snowflake_exporter.py delete mode 100644 test/test_sort_body_field.py delete mode 100644 test/test_specific_objective.py delete mode 100644 test/test_start_agents_batch_delete_request_inner.py delete mode 100644 test/test_start_batch_delete_request_inner.py delete mode 100644 test/test_start_root_batch_delete_request_inner.py delete mode 100644 test/test_stateless_stream.py delete mode 100644 test/test_static_arp_entry.py delete mode 100644 test/test_statistics_api.py delete mode 100644 test/test_stats_result.py delete mode 100644 test/test_steady_segment.py delete mode 100644 test/test_step_segment.py delete mode 100644 test/test_stream_direction.py delete mode 100644 test/test_stream_payload_type.py delete mode 100644 test/test_stream_profile.py delete mode 100644 test/test_supported_group_tls13.py delete mode 100644 test/test_switch_app_operation.py delete mode 100644 test/test_system_info.py delete mode 100644 test/test_tcp_profile.py delete mode 100644 test/test_test_info.py delete mode 100644 test/test_test_operations_api.py delete mode 100644 test/test_test_results_api.py delete mode 100644 test/test_test_state_changed_operation.py delete mode 100644 test/test_time_value.py delete mode 100644 test/test_timeline_segment.py delete mode 100644 test/test_timeline_segment_base.py delete mode 100644 test/test_timeline_segment_union.py delete mode 100644 test/test_timers.py delete mode 100644 test/test_tls_profile.py delete mode 100644 test/test_track.py delete mode 100644 test/test_track_type.py delete mode 100644 test/test_traffic_agent_info.py delete mode 100644 test/test_traffic_profile_base.py delete mode 100644 test/test_traffic_settings.py delete mode 100644 test/test_transport_profile.py delete mode 100644 test/test_transport_profile_base.py delete mode 100644 test/test_tunnel_range.py delete mode 100644 test/test_tunnel_settings.py delete mode 100644 test/test_tunnel_stack.py delete mode 100644 test/test_type_array_v2_metadata.py delete mode 100644 test/test_type_info_metadata.py delete mode 100644 test/test_type_int_metadata.py delete mode 100644 test/test_type_media_metadata.py delete mode 100644 test/test_type_string_metadata.py delete mode 100644 test/test_udp_profile.py delete mode 100644 test/test_update_network_mapping.py delete mode 100644 test/test_update_port_tags_operation.py delete mode 100644 test/test_utils_api.py delete mode 100644 test/test_validation_message.py delete mode 100644 test/test_version.py delete mode 100644 test/test_vlan_range.py delete mode 100644 test/test_vx_lan_range.py delete mode 100644 test/test_vx_lan_stack.py delete mode 100644 test/test_vx_lanid.py diff --git a/README.md b/README.md index 3ba1812..7fbfce4 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,6 @@ Then import the package: ```python import cyperf ``` -### Tests - -Execute `pytest` to run the tests. ## Getting Started diff --git a/jenkins/JenkinsFile b/jenkins/JenkinsFile index 3794add..bc0fd6c 100644 --- a/jenkins/JenkinsFile +++ b/jenkins/JenkinsFile @@ -79,13 +79,6 @@ node('wap') { . ''') } - stage('Run tests') { - sh(''' - docker run --rm \ - cyperf-api-wrapper-build:$DOCKER_VERSION \ - /cyperf-api-wrapper-build/test.sh /build/py3 - ''') - } stage('Build and publish to internal repo') { withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'e7e3fcc3-4f5f-4e68-b68c-76f40b75a3c7', diff --git a/pyproject.toml b/pyproject.toml index 0c4f9f6..829fad5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,9 +34,7 @@ extension-pkg-whitelist = "pydantic" [tool.mypy] files = [ - "cyperf", - #"test", # auto-generated tests - "tests", # hand-written tests + "cyperf" ] # TODO: enable "strict" once all these individual checks are passing # strict = true diff --git a/test/__init__.py b/test/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_action.py b/test/test_action.py deleted file mode 100644 index 2406369..0000000 --- a/test/test_action.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action import Action - -class TestAction(unittest.TestCase): - """Action unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Action: - """Test Action - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Action` - """ - model = Action() - if include_optional: - return Action( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Action( - ) - """ - - def testAction(self): - """Test Action""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_base.py b/test/test_action_base.py deleted file mode 100644 index 11bcb07..0000000 --- a/test/test_action_base.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_base import ActionBase - -class TestActionBase(unittest.TestCase): - """ActionBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionBase: - """Test ActionBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionBase` - """ - model = ActionBase() - if include_optional: - return ActionBase( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ActionBase( - ) - """ - - def testActionBase(self): - """Test ActionBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_input.py b/test/test_action_input.py deleted file mode 100644 index cceb7d6..0000000 --- a/test/test_action_input.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_input import ActionInput - -class TestActionInput(unittest.TestCase): - """ActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionInput: - """Test ActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionInput` - """ - model = ActionInput() - if include_optional: - return ActionInput( - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ] - ) - else: - return ActionInput( - ) - """ - - def testActionInput(self): - """Test ActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_input_find_param.py b/test/test_action_input_find_param.py deleted file mode 100644 index 2b37f35..0000000 --- a/test/test_action_input_find_param.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_input_find_param import ActionInputFindParam - -class TestActionInputFindParam(unittest.TestCase): - """ActionInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionInputFindParam: - """Test ActionInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionInputFindParam` - """ - model = ActionInputFindParam() - if include_optional: - return ActionInputFindParam( - captures = [ - cyperf.models.capture_input_find_param.CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ], ) - ], - name = '' - ) - else: - return ActionInputFindParam( - ) - """ - - def testActionInputFindParam(self): - """Test ActionInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_action_metadata.py b/test/test_action_metadata.py deleted file mode 100644 index 2c54fa7..0000000 --- a/test/test_action_metadata.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.action_metadata import ActionMetadata - -class TestActionMetadata(unittest.TestCase): - """ActionMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActionMetadata: - """Test ActionMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActionMetadata` - """ - model = ActionMetadata() - if include_optional: - return ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ] - ) - else: - return ActionMetadata( - ) - """ - - def testActionMetadata(self): - """Test ActionMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_info.py b/test/test_activation_code_info.py deleted file mode 100644 index b3251c0..0000000 --- a/test/test_activation_code_info.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_info import ActivationCodeInfo - -class TestActivationCodeInfo(unittest.TestCase): - """ActivationCodeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeInfo: - """Test ActivationCodeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeInfo` - """ - model = ActivationCodeInfo() - if include_optional: - return ActivationCodeInfo( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56 - ) - else: - return ActivationCodeInfo( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - ) - """ - - def testActivationCodeInfo(self): - """Test ActivationCodeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_list_request.py b/test/test_activation_code_list_request.py deleted file mode 100644 index 40288bc..0000000 --- a/test/test_activation_code_list_request.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_list_request import ActivationCodeListRequest - -class TestActivationCodeListRequest(unittest.TestCase): - """ActivationCodeListRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeListRequest: - """Test ActivationCodeListRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeListRequest` - """ - model = ActivationCodeListRequest() - if include_optional: - return ActivationCodeListRequest( - activation_code = [ - '' - ] - ) - else: - return ActivationCodeListRequest( - ) - """ - - def testActivationCodeListRequest(self): - """Test ActivationCodeListRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_activation_code_request.py b/test/test_activation_code_request.py deleted file mode 100644 index 75bfa2f..0000000 --- a/test/test_activation_code_request.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.activation_code_request import ActivationCodeRequest - -class TestActivationCodeRequest(unittest.TestCase): - """ActivationCodeRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationCodeRequest: - """Test ActivationCodeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationCodeRequest` - """ - model = ActivationCodeRequest() - if include_optional: - return ActivationCodeRequest( - activation_code = '' - ) - else: - return ActivationCodeRequest( - activation_code = '', - ) - """ - - def testActivationCodeRequest(self): - """Test ActivationCodeRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_add_action_info.py b/test/test_add_action_info.py deleted file mode 100644 index 977b55f..0000000 --- a/test/test_add_action_info.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.add_action_info import AddActionInfo - -class TestAddActionInfo(unittest.TestCase): - """AddActionInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AddActionInfo: - """Test AddActionInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AddActionInfo` - """ - model = AddActionInfo() - if include_optional: - return AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '' - ) - else: - return AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', - ) - """ - - def testAddActionInfo(self): - """Test AddActionInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_add_input.py b/test/test_add_input.py deleted file mode 100644 index 2da2f78..0000000 --- a/test/test_add_input.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.add_input import AddInput - -class TestAddInput(unittest.TestCase): - """AddInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AddInput: - """Test AddInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AddInput` - """ - model = AddInput() - if include_optional: - return AddInput( - action_index = 56, - action_name = '', - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - exchange_index_insert_at = 56, - flow_index_insert_at = 56, - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], - type = '' - ) - else: - return AddInput( - ) - """ - - def testAddInput(self): - """Test AddInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_advanced_settings.py b/test/test_advanced_settings.py deleted file mode 100644 index 69a531f..0000000 --- a/test/test_advanced_settings.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.advanced_settings import AdvancedSettings - -class TestAdvancedSettings(unittest.TestCase): - """AdvancedSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AdvancedSettings: - """Test AdvancedSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AdvancedSettings` - """ - model = AdvancedSettings() - if include_optional: - return AdvancedSettings( - agent_optimization_mode = 'BALANCED_MODE', - agent_streaming_purpose_cpu_percent = 56, - automatic_cpu_percent = True, - connection_graceful_stop_timeout = 56, - warm_up_period = 56 - ) - else: - return AdvancedSettings( - warm_up_period = 56, - ) - """ - - def testAdvancedSettings(self): - """Test AdvancedSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent.py b/test/test_agent.py deleted file mode 100644 index 3c84577..0000000 --- a/test/test_agent.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent import Agent - -class TestAgent(unittest.TestCase): - """Agent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Agent: - """Test Agent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Agent` - """ - model = Agent() - if include_optional: - return Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ), - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Agent( - ) - """ - - def testAgent(self): - """Test Agent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignment_by_port.py b/test/test_agent_assignment_by_port.py deleted file mode 100644 index 6565e24..0000000 --- a/test/test_agent_assignment_by_port.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort - -class TestAgentAssignmentByPort(unittest.TestCase): - """AgentAssignmentByPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignmentByPort: - """Test AgentAssignmentByPort - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignmentByPort` - """ - model = AgentAssignmentByPort() - if include_optional: - return AgentAssignmentByPort( - capture_settings = cyperf.models.capture_settings.CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = null, - max_capture_size = 56, ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - port_id = '' - ) - else: - return AgentAssignmentByPort( - id = '', - ) - """ - - def testAgentAssignmentByPort(self): - """Test AgentAssignmentByPort""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignment_details.py b/test/test_agent_assignment_details.py deleted file mode 100644 index db0bf5a..0000000 --- a/test/test_agent_assignment_details.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignment_details import AgentAssignmentDetails - -class TestAgentAssignmentDetails(unittest.TestCase): - """AgentAssignmentDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignmentDetails: - """Test AgentAssignmentDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignmentDetails` - """ - model = AgentAssignmentDetails() - if include_optional: - return AgentAssignmentDetails( - agent_id = '', - capture_settings = cyperf.models.capture_settings.CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = null, - max_capture_size = 56, ), - id = '', - interfaces = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AgentAssignmentDetails( - agent_id = '', - id = '', - ) - """ - - def testAgentAssignmentDetails(self): - """Test AgentAssignmentDetails""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_assignments.py b/test/test_agent_assignments.py deleted file mode 100644 index 31cb9e9..0000000 --- a/test/test_agent_assignments.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_assignments import AgentAssignments - -class TestAgentAssignments(unittest.TestCase): - """AgentAssignments unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentAssignments: - """Test AgentAssignments - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentAssignments` - """ - model = AgentAssignments() - if include_optional: - return AgentAssignments( - by_id = [ - null - ], - by_port = [ - null - ], - by_tag = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AgentAssignments( - ) - """ - - def testAgentAssignments(self): - """Test AgentAssignments""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_cpu_info.py b/test/test_agent_cpu_info.py deleted file mode 100644 index 8e4453c..0000000 --- a/test/test_agent_cpu_info.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_cpu_info import AgentCPUInfo - -class TestAgentCPUInfo(unittest.TestCase): - """AgentCPUInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentCPUInfo: - """Test AgentCPUInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentCPUInfo` - """ - model = AgentCPUInfo() - if include_optional: - return AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '' - ) - else: - return AgentCPUInfo( - ) - """ - - def testAgentCPUInfo(self): - """Test AgentCPUInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_features.py b/test/test_agent_features.py deleted file mode 100644 index d22bc59..0000000 --- a/test/test_agent_features.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_features import AgentFeatures - -class TestAgentFeatures(unittest.TestCase): - """AgentFeatures unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentFeatures: - """Test AgentFeatures - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentFeatures` - """ - model = AgentFeatures() - if include_optional: - return AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '' - ) - else: - return AgentFeatures( - ) - """ - - def testAgentFeatures(self): - """Test AgentFeatures""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_optimization_mode.py b/test/test_agent_optimization_mode.py deleted file mode 100644 index 2434525..0000000 --- a/test/test_agent_optimization_mode.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_optimization_mode import AgentOptimizationMode - -class TestAgentOptimizationMode(unittest.TestCase): - """AgentOptimizationMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAgentOptimizationMode(self): - """Test AgentOptimizationMode""" - # inst = AgentOptimizationMode() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_release.py b/test/test_agent_release.py deleted file mode 100644 index cd48053..0000000 --- a/test/test_agent_release.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_release import AgentRelease - -class TestAgentRelease(unittest.TestCase): - """AgentRelease unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentRelease: - """Test AgentRelease - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentRelease` - """ - model = AgentRelease() - if include_optional: - return AgentRelease( - agent_id = '' - ) - else: - return AgentRelease( - ) - """ - - def testAgentRelease(self): - """Test AgentRelease""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_reservation.py b/test/test_agent_reservation.py deleted file mode 100644 index 25c38c6..0000000 --- a/test/test_agent_reservation.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_reservation import AgentReservation - -class TestAgentReservation(unittest.TestCase): - """AgentReservation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentReservation: - """Test AgentReservation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentReservation` - """ - model = AgentReservation() - if include_optional: - return AgentReservation( - agent_id = '', - agent_payload_names = [ - '' - ], - general_purpose_cpu_percent = 56, - interfaces = [ - '' - ], - ip_address_version_used = '', - optimization_mode = '' - ) - else: - return AgentReservation( - ) - """ - - def testAgentReservation(self): - """Test AgentReservation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agent_to_be_rebooted.py b/test/test_agent_to_be_rebooted.py deleted file mode 100644 index a69e2fb..0000000 --- a/test/test_agent_to_be_rebooted.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agent_to_be_rebooted import AgentToBeRebooted - -class TestAgentToBeRebooted(unittest.TestCase): - """AgentToBeRebooted unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentToBeRebooted: - """Test AgentToBeRebooted - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentToBeRebooted` - """ - model = AgentToBeRebooted() - if include_optional: - return AgentToBeRebooted( - agent_id = '' - ) - else: - return AgentToBeRebooted( - ) - """ - - def testAgentToBeRebooted(self): - """Test AgentToBeRebooted""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agents_api.py b/test/test_agents_api.py deleted file mode 100644 index a4ace3f..0000000 --- a/test/test_agents_api.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.agents_api import AgentsApi - - -class TestAgentsApi(unittest.TestCase): - """AgentsApi unit test stubs""" - - def setUp(self) -> None: - self.api = AgentsApi() - - def tearDown(self) -> None: - pass - - - def test_delete_agent(self) -> None: - """Test case for delete_agent - - """ - pass - - def test_get_agent_by_id(self) -> None: - """Test case for get_agent_by_id - - """ - pass - - def test_get_agents(self) -> None: - """Test case for get_agents - - """ - pass - - def test_get_agents_tags(self) -> None: - """Test case for get_agents_tags - - """ - pass - - def test_get_compute_node_port_by_id(self) -> None: - """Test case for get_compute_node_port_by_id - - """ - pass - - def test_get_compute_node_ports(self) -> None: - """Test case for get_compute_node_ports - - """ - pass - - def test_get_controller_by_id(self) -> None: - """Test case for get_controller_by_id - - """ - pass - - def test_get_controller_compute_node_by_id(self) -> None: - """Test case for get_controller_compute_node_by_id - - """ - pass - - def test_get_controller_compute_nodes(self) -> None: - """Test case for get_controller_compute_nodes - - """ - pass - - def test_get_controllers(self) -> None: - """Test case for get_controllers - - """ - pass - - def test_patch_agent(self) -> None: - """Test case for patch_agent - - """ - pass - - - - - - - - - - - - - - - - - def test_start_agents_batch_delete(self) -> None: - """Test case for start_agents_batch_delete - - """ - pass - - def test_start_agents_export_files(self) -> None: - """Test case for start_agents_export_files - - """ - pass - - def test_start_agents_reboot(self) -> None: - """Test case for start_agents_reboot - - """ - pass - - def test_start_agents_release(self) -> None: - """Test case for start_agents_release - - """ - pass - - def test_start_agents_reserve(self) -> None: - """Test case for start_agents_reserve - - """ - pass - - def test_start_agents_set_dpdk_mode(self) -> None: - """Test case for start_agents_set_dpdk_mode - - """ - pass - - def test_start_agents_set_ntp(self) -> None: - """Test case for start_agents_set_ntp - - """ - pass - - def test_start_agents_update(self) -> None: - """Test case for start_agents_update - - """ - pass - - def test_start_controllers_clear_port_ownership(self) -> None: - """Test case for start_controllers_clear_port_ownership - - """ - pass - - def test_start_controllers_power_cycle_nodes(self) -> None: - """Test case for start_controllers_power_cycle_nodes - - """ - pass - - def test_start_controllers_reboot_port(self) -> None: - """Test case for start_controllers_reboot_port - - """ - pass - - def test_start_controllers_set_app(self) -> None: - """Test case for start_controllers_set_app - - """ - pass - - def test_start_controllers_set_node_aggregation(self) -> None: - """Test case for start_controllers_set_node_aggregation - - """ - pass - - def test_start_controllers_set_port_link_state(self) -> None: - """Test case for start_controllers_set_port_link_state - - """ - pass - - def test_start_controllers_update_port_tags(self) -> None: - """Test case for start_controllers_update_port_tags - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_agents_group.py b/test/test_agents_group.py deleted file mode 100644 index aacc607..0000000 --- a/test/test_agents_group.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.agents_group import AgentsGroup - -class TestAgentsGroup(unittest.TestCase): - """AgentsGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AgentsGroup: - """Test AgentsGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AgentsGroup` - """ - model = AgentsGroup() - if include_optional: - return AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True - ) - else: - return AgentsGroup( - ) - """ - - def testAgentsGroup(self): - """Test AgentsGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_api_link.py b/test/test_api_link.py deleted file mode 100644 index 5b231a7..0000000 --- a/test/test_api_link.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.api_link import APILink - -class TestAPILink(unittest.TestCase): - """APILink unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> APILink: - """Test APILink - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `APILink` - """ - model = APILink() - if include_optional: - return APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '' - ) - else: - return APILink( - ) - """ - - def testAPILink(self): - """Test APILink""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_api_relationship.py b/test/test_api_relationship.py deleted file mode 100644 index f752f7f..0000000 --- a/test/test_api_relationship.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.api_relationship import APIRelationship - -class TestAPIRelationship(unittest.TestCase): - """APIRelationship unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAPIRelationship(self): - """Test APIRelationship""" - # inst = APIRelationship() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_exchange.py b/test/test_app_exchange.py deleted file mode 100644 index 81bea07..0000000 --- a/test/test_app_exchange.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_exchange import AppExchange - -class TestAppExchange(unittest.TestCase): - """AppExchange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppExchange: - """Test AppExchange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppExchange` - """ - model = AppExchange() - if include_optional: - return AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - headers = { - 'key' : [ - '' - ] - }, - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ) - else: - return AppExchange( - ) - """ - - def testAppExchange(self): - """Test AppExchange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow.py b/test/test_app_flow.py deleted file mode 100644 index a767bc8..0000000 --- a/test/test_app_flow.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow import AppFlow - -class TestAppFlow(unittest.TestCase): - """AppFlow unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlow: - """Test AppFlow - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlow` - """ - model = AppFlow() - if include_optional: - return AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '' - ) - else: - return AppFlow( - ) - """ - - def testAppFlow(self): - """Test AppFlow""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_desc.py b/test/test_app_flow_desc.py deleted file mode 100644 index c4b2dba..0000000 --- a/test/test_app_flow_desc.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_desc import AppFlowDesc - -class TestAppFlowDesc(unittest.TestCase): - """AppFlowDesc unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowDesc: - """Test AppFlowDesc - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowDesc` - """ - model = AppFlowDesc() - if include_optional: - return AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56 - ) - else: - return AppFlowDesc( - ) - """ - - def testAppFlowDesc(self): - """Test AppFlowDesc""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_input.py b/test/test_app_flow_input.py deleted file mode 100644 index b062770..0000000 --- a/test/test_app_flow_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_input import AppFlowInput - -class TestAppFlowInput(unittest.TestCase): - """AppFlowInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowInput: - """Test AppFlowInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowInput` - """ - model = AppFlowInput() - if include_optional: - return AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ] - ) - else: - return AppFlowInput( - ) - """ - - def testAppFlowInput(self): - """Test AppFlowInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_flow_input_find_param.py b/test/test_app_flow_input_find_param.py deleted file mode 100644 index c53fbf2..0000000 --- a/test/test_app_flow_input_find_param.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_flow_input_find_param import AppFlowInputFindParam - -class TestAppFlowInputFindParam(unittest.TestCase): - """AppFlowInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppFlowInputFindParam: - """Test AppFlowInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppFlowInputFindParam` - """ - model = AppFlowInputFindParam() - if include_optional: - return AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ] - ) - else: - return AppFlowInputFindParam( - ) - """ - - def testAppFlowInputFindParam(self): - """Test AppFlowInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_id.py b/test/test_app_id.py deleted file mode 100644 index 6b7fe62..0000000 --- a/test/test_app_id.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_id import AppId - -class TestAppId(unittest.TestCase): - """AppId unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppId: - """Test AppId - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppId` - """ - model = AppId() - if include_optional: - return AppId( - id = '' - ) - else: - return AppId( - ) - """ - - def testAppId(self): - """Test AppId""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_mode.py b/test/test_app_mode.py deleted file mode 100644 index 8ab87ed..0000000 --- a/test/test_app_mode.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.app_mode import AppMode - -class TestAppMode(unittest.TestCase): - """AppMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppMode: - """Test AppMode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppMode` - """ - model = AppMode() - if include_optional: - return AppMode( - app_id = '', - ui_app_id = '' - ) - else: - return AppMode( - ) - """ - - def testAppMode(self): - """Test AppMode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application.py b/test/test_application.py deleted file mode 100644 index d30241c..0000000 --- a/test/test_application.py +++ /dev/null @@ -1,739 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application import Application - -class TestApplication(unittest.TestCase): - """Application unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Application: - """Test Application - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Application` - """ - model = Application() - if include_optional: - return Application( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - inherit_quic_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - inherit_tls = True, - is_stateless_stream = True, - is_streaming = True, - objective_weight = 56, - protocol_found = True, - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - stateless_stream = cyperf.models.stateless_stream.StatelessStream( - client_stream_profile = null, - direction = null, - is_flood_stream = True, - server_stream_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - static = True, - supported_apps = [ - '' - ], - supports_calibration = True, - supports_multi_flow = True, - supports_strikes = True, - supports_tls = True, - tracks = [ - cyperf.models.track.Track( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ] - ) - else: - return Application( - objective_weight = 56, - ) - """ - - def testApplication(self): - """Test Application""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_profile.py b/test/test_application_profile.py deleted file mode 100644 index f08fa69..0000000 --- a/test/test_application_profile.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application_profile import ApplicationProfile - -class TestApplicationProfile(unittest.TestCase): - """ApplicationProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ApplicationProfile: - """Test ApplicationProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ApplicationProfile` - """ - model = ApplicationProfile() - if include_optional: - return ApplicationProfile( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - use_all_source_ips_per_user = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - applications = [ - null - ], - default_network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - name = '', - objectives_and_timeline = cyperf.models.objectives_and_timeline.ObjectivesAndTimeline( - advanced_settings = null, - primary_objective = null, - secondary_objective = null, - secondary_objectives = [ - cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - add_applications = [ - cyperf.models.external_resource_info.ExternalResourceInfo( - external_resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - reset_tags_to_default = [ - 'YQ==' - ] - ) - else: - return ApplicationProfile( - name = '', - ) - """ - - def testApplicationProfile(self): - """Test ApplicationProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_resources_api.py b/test/test_application_resources_api.py deleted file mode 100644 index 1cf13fb..0000000 --- a/test/test_application_resources_api.py +++ /dev/null @@ -1,892 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.application_resources_api import ApplicationResourcesApi - - -class TestApplicationResourcesApi(unittest.TestCase): - """ApplicationResourcesApi unit test stubs""" - - def setUp(self) -> None: - self.api = ApplicationResourcesApi() - - def tearDown(self) -> None: - pass - - - def test_delete_resources_capture(self) -> None: - """Test case for delete_resources_capture - - """ - pass - - def test_delete_resources_certificate(self) -> None: - """Test case for delete_resources_certificate - - """ - pass - - def test_delete_resources_custom_fuzzing_script(self) -> None: - """Test case for delete_resources_custom_fuzzing_script - - """ - pass - - def test_delete_resources_flow_library(self) -> None: - """Test case for delete_resources_flow_library - - """ - pass - - def test_delete_resources_global_playlist(self) -> None: - """Test case for delete_resources_global_playlist - - """ - pass - - def test_delete_resources_http_library(self) -> None: - """Test case for delete_resources_http_library - - """ - pass - - def test_delete_resources_media_file(self) -> None: - """Test case for delete_resources_media_file - - """ - pass - - def test_delete_resources_media_library(self) -> None: - """Test case for delete_resources_media_library - - """ - pass - - def test_delete_resources_other_library(self) -> None: - """Test case for delete_resources_other_library - - """ - pass - - def test_delete_resources_payload(self) -> None: - """Test case for delete_resources_payload - - """ - pass - - def test_delete_resources_pcap(self) -> None: - """Test case for delete_resources_pcap - - """ - pass - - def test_delete_resources_playlist(self) -> None: - """Test case for delete_resources_playlist - - """ - pass - - def test_delete_resources_sip_library(self) -> None: - """Test case for delete_resources_sip_library - - """ - pass - - def test_delete_resources_stats_profile(self) -> None: - """Test case for delete_resources_stats_profile - - """ - pass - - def test_delete_resources_tls_certificate(self) -> None: - """Test case for delete_resources_tls_certificate - - """ - pass - - def test_delete_resources_tls_dh(self) -> None: - """Test case for delete_resources_tls_dh - - """ - pass - - def test_delete_resources_tls_key(self) -> None: - """Test case for delete_resources_tls_key - - """ - pass - - def test_delete_resources_user_defined_app(self) -> None: - """Test case for delete_resources_user_defined_app - - """ - pass - - def test_get_capture_flows(self) -> None: - """Test case for get_capture_flows - - """ - pass - - def test_get_flow_exchanges(self) -> None: - """Test case for get_flow_exchanges - - """ - pass - - def test_get_resources_app_by_id(self) -> None: - """Test case for get_resources_app_by_id - - """ - pass - - def test_get_resources_app_categories(self) -> None: - """Test case for get_resources_app_categories - - """ - pass - - def test_get_resources_application_type_by_id(self) -> None: - """Test case for get_resources_application_type_by_id - - """ - pass - - def test_get_resources_application_types(self) -> None: - """Test case for get_resources_application_types - - """ - pass - - def test_get_resources_apps(self) -> None: - """Test case for get_resources_apps - - """ - pass - - def test_get_resources_attack_by_id(self) -> None: - """Test case for get_resources_attack_by_id - - """ - pass - - def test_get_resources_attack_categories(self) -> None: - """Test case for get_resources_attack_categories - - """ - pass - - def test_get_resources_attacks(self) -> None: - """Test case for get_resources_attacks - - """ - pass - - def test_get_resources_auth_profile_by_id(self) -> None: - """Test case for get_resources_auth_profile_by_id - - """ - pass - - def test_get_resources_auth_profiles(self) -> None: - """Test case for get_resources_auth_profiles - - """ - pass - - def test_get_resources_capture_by_id(self) -> None: - """Test case for get_resources_capture_by_id - - """ - pass - - def test_get_resources_captures(self) -> None: - """Test case for get_resources_captures - - """ - pass - - def test_get_resources_captures_encrypted_upload_file_result(self) -> None: - """Test case for get_resources_captures_encrypted_upload_file_result - - """ - pass - - def test_get_resources_captures_upload_file_result(self) -> None: - """Test case for get_resources_captures_upload_file_result - - """ - pass - - def test_get_resources_certificate_by_id(self) -> None: - """Test case for get_resources_certificate_by_id - - """ - pass - - def test_get_resources_certificate_content_file(self) -> None: - """Test case for get_resources_certificate_content_file - - """ - pass - - def test_get_resources_certificates(self) -> None: - """Test case for get_resources_certificates - - """ - pass - - def test_get_resources_certificates_upload_file_result(self) -> None: - """Test case for get_resources_certificates_upload_file_result - - """ - pass - - def test_get_resources_custom_fuzzing_script_by_id(self) -> None: - """Test case for get_resources_custom_fuzzing_script_by_id - - """ - pass - - def test_get_resources_custom_fuzzing_script_content_file(self) -> None: - """Test case for get_resources_custom_fuzzing_script_content_file - - """ - pass - - def test_get_resources_custom_fuzzing_scripts(self) -> None: - """Test case for get_resources_custom_fuzzing_scripts - - """ - pass - - def test_get_resources_custom_fuzzing_scripts_upload_file_result(self) -> None: - """Test case for get_resources_custom_fuzzing_scripts_upload_file_result - - """ - pass - - def test_get_resources_flow_library(self) -> None: - """Test case for get_resources_flow_library - - """ - pass - - def test_get_resources_flow_library_by_id(self) -> None: - """Test case for get_resources_flow_library_by_id - - """ - pass - - def test_get_resources_flow_library_content_file(self) -> None: - """Test case for get_resources_flow_library_content_file - - """ - pass - - def test_get_resources_flow_library_upload_file_result(self) -> None: - """Test case for get_resources_flow_library_upload_file_result - - """ - pass - - def test_get_resources_global_playlist_by_id(self) -> None: - """Test case for get_resources_global_playlist_by_id - - """ - pass - - def test_get_resources_global_playlist_content_file(self) -> None: - """Test case for get_resources_global_playlist_content_file - - """ - pass - - def test_get_resources_global_playlists(self) -> None: - """Test case for get_resources_global_playlists - - """ - pass - - def test_get_resources_global_playlists_upload_file_result(self) -> None: - """Test case for get_resources_global_playlists_upload_file_result - - """ - pass - - def test_get_resources_http_library(self) -> None: - """Test case for get_resources_http_library - - """ - pass - - def test_get_resources_http_library_by_id(self) -> None: - """Test case for get_resources_http_library_by_id - - """ - pass - - def test_get_resources_http_library_content_file(self) -> None: - """Test case for get_resources_http_library_content_file - - """ - pass - - def test_get_resources_http_library_upload_file_result(self) -> None: - """Test case for get_resources_http_library_upload_file_result - - """ - pass - - def test_get_resources_http_profile_by_id(self) -> None: - """Test case for get_resources_http_profile_by_id - - """ - pass - - def test_get_resources_http_profiles(self) -> None: - """Test case for get_resources_http_profiles - - """ - pass - - def test_get_resources_media_file_by_id(self) -> None: - """Test case for get_resources_media_file_by_id - - """ - pass - - def test_get_resources_media_file_content_file(self) -> None: - """Test case for get_resources_media_file_content_file - - """ - pass - - def test_get_resources_media_files(self) -> None: - """Test case for get_resources_media_files - - """ - pass - - def test_get_resources_media_files_upload_file_result(self) -> None: - """Test case for get_resources_media_files_upload_file_result - - """ - pass - - def test_get_resources_media_library(self) -> None: - """Test case for get_resources_media_library - - """ - pass - - def test_get_resources_media_library_by_id(self) -> None: - """Test case for get_resources_media_library_by_id - - """ - pass - - def test_get_resources_media_library_content_file(self) -> None: - """Test case for get_resources_media_library_content_file - - """ - pass - - def test_get_resources_media_library_upload_file_result(self) -> None: - """Test case for get_resources_media_library_upload_file_result - - """ - pass - - def test_get_resources_other_library(self) -> None: - """Test case for get_resources_other_library - - """ - pass - - def test_get_resources_other_library_by_id(self) -> None: - """Test case for get_resources_other_library_by_id - - """ - pass - - def test_get_resources_other_library_content_file(self) -> None: - """Test case for get_resources_other_library_content_file - - """ - pass - - def test_get_resources_other_library_upload_file_result(self) -> None: - """Test case for get_resources_other_library_upload_file_result - - """ - pass - - def test_get_resources_payload_by_id(self) -> None: - """Test case for get_resources_payload_by_id - - """ - pass - - def test_get_resources_payload_content_file(self) -> None: - """Test case for get_resources_payload_content_file - - """ - pass - - def test_get_resources_payloads(self) -> None: - """Test case for get_resources_payloads - - """ - pass - - def test_get_resources_payloads_upload_file_result(self) -> None: - """Test case for get_resources_payloads_upload_file_result - - """ - pass - - def test_get_resources_pcap_by_id(self) -> None: - """Test case for get_resources_pcap_by_id - - """ - pass - - def test_get_resources_pcap_content_file(self) -> None: - """Test case for get_resources_pcap_content_file - - """ - pass - - def test_get_resources_pcaps(self) -> None: - """Test case for get_resources_pcaps - - """ - pass - - def test_get_resources_pcaps_upload_file_result(self) -> None: - """Test case for get_resources_pcaps_upload_file_result - - """ - pass - - def test_get_resources_playlist_by_id(self) -> None: - """Test case for get_resources_playlist_by_id - - """ - pass - - def test_get_resources_playlist_content_file(self) -> None: - """Test case for get_resources_playlist_content_file - - """ - pass - - def test_get_resources_playlist_values(self) -> None: - """Test case for get_resources_playlist_values - - """ - pass - - def test_get_resources_playlists(self) -> None: - """Test case for get_resources_playlists - - """ - pass - - def test_get_resources_playlists_upload_file_result(self) -> None: - """Test case for get_resources_playlists_upload_file_result - - """ - pass - - def test_get_resources_sip_library(self) -> None: - """Test case for get_resources_sip_library - - """ - pass - - def test_get_resources_sip_library_by_id(self) -> None: - """Test case for get_resources_sip_library_by_id - - """ - pass - - def test_get_resources_sip_library_content_file(self) -> None: - """Test case for get_resources_sip_library_content_file - - """ - pass - - def test_get_resources_sip_library_upload_file_result(self) -> None: - """Test case for get_resources_sip_library_upload_file_result - - """ - pass - - def test_get_resources_stats_profile(self) -> None: - """Test case for get_resources_stats_profile - - """ - pass - - def test_get_resources_stats_profile_by_id(self) -> None: - """Test case for get_resources_stats_profile_by_id - - """ - pass - - def test_get_resources_stats_profile_content_file(self) -> None: - """Test case for get_resources_stats_profile_content_file - - """ - pass - - def test_get_resources_stats_profile_upload_file_result(self) -> None: - """Test case for get_resources_stats_profile_upload_file_result - - """ - pass - - def test_get_resources_strike_by_id(self) -> None: - """Test case for get_resources_strike_by_id - - """ - pass - - def test_get_resources_strike_categories(self) -> None: - """Test case for get_resources_strike_categories - - """ - pass - - def test_get_resources_strikes(self) -> None: - """Test case for get_resources_strikes - - """ - pass - - def test_get_resources_tls_certificate_by_id(self) -> None: - """Test case for get_resources_tls_certificate_by_id - - """ - pass - - def test_get_resources_tls_certificate_content_file(self) -> None: - """Test case for get_resources_tls_certificate_content_file - - """ - pass - - def test_get_resources_tls_certificates(self) -> None: - """Test case for get_resources_tls_certificates - - """ - pass - - def test_get_resources_tls_certificates_upload_file_result(self) -> None: - """Test case for get_resources_tls_certificates_upload_file_result - - """ - pass - - def test_get_resources_tls_dh_by_id(self) -> None: - """Test case for get_resources_tls_dh_by_id - - """ - pass - - def test_get_resources_tls_dh_content_file(self) -> None: - """Test case for get_resources_tls_dh_content_file - - """ - pass - - def test_get_resources_tls_dhs(self) -> None: - """Test case for get_resources_tls_dhs - - """ - pass - - def test_get_resources_tls_dhs_upload_file_result(self) -> None: - """Test case for get_resources_tls_dhs_upload_file_result - - """ - pass - - def test_get_resources_tls_key_by_id(self) -> None: - """Test case for get_resources_tls_key_by_id - - """ - pass - - def test_get_resources_tls_key_content_file(self) -> None: - """Test case for get_resources_tls_key_content_file - - """ - pass - - def test_get_resources_tls_keys(self) -> None: - """Test case for get_resources_tls_keys - - """ - pass - - def test_get_resources_tls_keys_upload_file_result(self) -> None: - """Test case for get_resources_tls_keys_upload_file_result - - """ - pass - - def test_get_resources_user_defined_apps(self) -> None: - """Test case for get_resources_user_defined_apps - - """ - pass - - def test_get_resources_user_defined_apps_upload_file_result(self) -> None: - """Test case for get_resources_user_defined_apps_upload_file_result - - """ - pass - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - def test_start_resources_apps_export_all(self) -> None: - """Test case for start_resources_apps_export_all - - """ - pass - - def test_start_resources_captures_batch_delete(self) -> None: - """Test case for start_resources_captures_batch_delete - - """ - pass - - def test_start_resources_captures_encrypted_upload_file(self) -> None: - """Test case for start_resources_captures_encrypted_upload_file - - """ - pass - - def test_start_resources_captures_upload_file(self) -> None: - """Test case for start_resources_captures_upload_file - - """ - pass - - def test_start_resources_certificates_upload_file(self) -> None: - """Test case for start_resources_certificates_upload_file - - """ - pass - - def test_start_resources_config_export_user_defined_apps(self) -> None: - """Test case for start_resources_config_export_user_defined_apps - - """ - pass - - def test_start_resources_create_app(self) -> None: - """Test case for start_resources_create_app - - """ - pass - - def test_start_resources_custom_fuzzing_scripts_upload_file(self) -> None: - """Test case for start_resources_custom_fuzzing_scripts_upload_file - - """ - pass - - def test_start_resources_edit_app(self) -> None: - """Test case for start_resources_edit_app - - """ - pass - - def test_start_resources_find_param_matches(self) -> None: - """Test case for start_resources_find_param_matches - - """ - pass - - def test_start_resources_flow_library_upload_file(self) -> None: - """Test case for start_resources_flow_library_upload_file - - """ - pass - - def test_start_resources_get_app_categories(self) -> None: - """Test case for start_resources_get_app_categories - - """ - pass - - def test_start_resources_get_apps(self) -> None: - """Test case for start_resources_get_apps - - """ - pass - - def test_start_resources_get_attack_categories(self) -> None: - """Test case for start_resources_get_attack_categories - - """ - pass - - def test_start_resources_get_attacks(self) -> None: - """Test case for start_resources_get_attacks - - """ - pass - - def test_start_resources_get_strike_categories(self) -> None: - """Test case for start_resources_get_strike_categories - - """ - pass - - def test_start_resources_get_strikes(self) -> None: - """Test case for start_resources_get_strikes - - """ - pass - - def test_start_resources_global_playlists_upload_file(self) -> None: - """Test case for start_resources_global_playlists_upload_file - - """ - pass - - def test_start_resources_http_library_upload_file(self) -> None: - """Test case for start_resources_http_library_upload_file - - """ - pass - - def test_start_resources_media_files_upload_file(self) -> None: - """Test case for start_resources_media_files_upload_file - - """ - pass - - def test_start_resources_media_library_upload_file(self) -> None: - """Test case for start_resources_media_library_upload_file - - """ - pass - - def test_start_resources_other_library_upload_file(self) -> None: - """Test case for start_resources_other_library_upload_file - - """ - pass - - def test_start_resources_payloads_upload_file(self) -> None: - """Test case for start_resources_payloads_upload_file - - """ - pass - - def test_start_resources_pcaps_upload_file(self) -> None: - """Test case for start_resources_pcaps_upload_file - - """ - pass - - def test_start_resources_playlists_upload_file(self) -> None: - """Test case for start_resources_playlists_upload_file - - """ - pass - - def test_start_resources_sip_library_upload_file(self) -> None: - """Test case for start_resources_sip_library_upload_file - - """ - pass - - def test_start_resources_stats_profile_upload_file(self) -> None: - """Test case for start_resources_stats_profile_upload_file - - """ - pass - - def test_start_resources_tls_certificates_upload_file(self) -> None: - """Test case for start_resources_tls_certificates_upload_file - - """ - pass - - def test_start_resources_tls_dhs_upload_file(self) -> None: - """Test case for start_resources_tls_dhs_upload_file - - """ - pass - - def test_start_resources_tls_keys_upload_file(self) -> None: - """Test case for start_resources_tls_keys_upload_file - - """ - pass - - def test_start_resources_user_defined_apps_export_all(self) -> None: - """Test case for start_resources_user_defined_apps_export_all - - """ - pass - - def test_start_resources_user_defined_apps_upload_file(self) -> None: - """Test case for start_resources_user_defined_apps_upload_file - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_application_type.py b/test/test_application_type.py deleted file mode 100644 index cab24ec..0000000 --- a/test/test_application_type.py +++ /dev/null @@ -1,445 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.application_type import ApplicationType - -class TestApplicationType(unittest.TestCase): - """ApplicationType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ApplicationType: - """Test ApplicationType - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ApplicationType` - """ - model = ApplicationType() - if include_optional: - return ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - is_rate = True, - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ApplicationType( - ) - """ - - def testApplicationType(self): - """Test ApplicationType""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_app.py b/test/test_appsec_app.py deleted file mode 100644 index cd77b96..0000000 --- a/test/test_appsec_app.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_app import AppsecApp - -class TestAppsecApp(unittest.TestCase): - """AppsecApp unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecApp: - """Test AppsecApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecApp` - """ - model = AppsecApp() - if include_optional: - return AppsecApp( - app = None, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - name = '', ) - ], - keywords = [ - null - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '' - ) - else: - return AppsecApp( - ) - """ - - def testAppsecApp(self): - """Test AppsecApp""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_app_metadata.py b/test/test_appsec_app_metadata.py deleted file mode 100644 index 49a4c41..0000000 --- a/test/test_appsec_app_metadata.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_app_metadata import AppsecAppMetadata - -class TestAppsecAppMetadata(unittest.TestCase): - """AppsecAppMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecAppMetadata: - """Test AppsecAppMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecAppMetadata` - """ - model = AppsecAppMetadata() - if include_optional: - return AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], - keywords = [ - null - ] - ) - else: - return AppsecAppMetadata( - ) - """ - - def testAppsecAppMetadata(self): - """Test AppsecAppMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_app_metadata_keywords_inner.py b/test/test_appsec_app_metadata_keywords_inner.py deleted file mode 100644 index b04f531..0000000 --- a/test/test_appsec_app_metadata_keywords_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner - -class TestAppsecAppMetadataKeywordsInner(unittest.TestCase): - """AppsecAppMetadataKeywordsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecAppMetadataKeywordsInner: - """Test AppsecAppMetadataKeywordsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecAppMetadataKeywordsInner` - """ - model = AppsecAppMetadataKeywordsInner() - if include_optional: - return AppsecAppMetadataKeywordsInner( - ) - else: - return AppsecAppMetadataKeywordsInner( - ) - """ - - def testAppsecAppMetadataKeywordsInner(self): - """Test AppsecAppMetadataKeywordsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_attack.py b/test/test_appsec_attack.py deleted file mode 100644 index a986c65..0000000 --- a/test/test_appsec_attack.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_attack import AppsecAttack - -class TestAppsecAttack(unittest.TestCase): - """AppsecAttack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecAttack: - """Test AppsecAttack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecAttack` - """ - model = AppsecAttack() - if include_optional: - return AppsecAttack( - attack = None, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '' - ) - else: - return AppsecAttack( - ) - """ - - def testAppsecAttack(self): - """Test AppsecAttack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_appsec_config.py b/test/test_appsec_config.py deleted file mode 100644 index 395d0ba..0000000 --- a/test/test_appsec_config.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.appsec_config import AppsecConfig - -class TestAppsecConfig(unittest.TestCase): - """AppsecConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppsecConfig: - """Test AppsecConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppsecConfig` - """ - model = AppsecConfig() - if include_optional: - return AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = null, - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '' - ) - else: - return AppsecConfig( - config_type_name = '', - ) - """ - - def testAppsecConfig(self): - """Test AppsecConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_archive_info.py b/test/test_archive_info.py deleted file mode 100644 index 7566b54..0000000 --- a/test/test_archive_info.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.archive_info import ArchiveInfo - -class TestArchiveInfo(unittest.TestCase): - """ArchiveInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ArchiveInfo: - """Test ArchiveInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ArchiveInfo` - """ - model = ArchiveInfo() - if include_optional: - return ArchiveInfo( - filename = '', - id = 56, - message = '', - result_url = '', - size = 56, - state = '', - timestamp = '', - url = '' - ) - else: - return ArchiveInfo( - filename = '', - id = 56, - message = '', - result_url = '', - state = '', - timestamp = '', - url = '', - ) - """ - - def testArchiveInfo(self): - """Test ArchiveInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_array_v2_element_metadata.py b/test/test_array_v2_element_metadata.py deleted file mode 100644 index 5a95bd3..0000000 --- a/test/test_array_v2_element_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.array_v2_element_metadata import ArrayV2ElementMetadata - -class TestArrayV2ElementMetadata(unittest.TestCase): - """ArrayV2ElementMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ArrayV2ElementMetadata: - """Test ArrayV2ElementMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ArrayV2ElementMetadata` - """ - model = ArrayV2ElementMetadata() - if include_optional: - return ArrayV2ElementMetadata( - id = '', - type = '' - ) - else: - return ArrayV2ElementMetadata( - ) - """ - - def testArrayV2ElementMetadata(self): - """Test ArrayV2ElementMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_async_context.py b/test/test_async_context.py deleted file mode 100644 index 1850aaa..0000000 --- a/test/test_async_context.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.async_context import AsyncContext - -class TestAsyncContext(unittest.TestCase): - """AsyncContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AsyncContext: - """Test AsyncContext - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AsyncContext` - """ - model = AsyncContext() - if include_optional: - return AsyncContext( - id = 56, - message = '', - progress = 56, - result = None, - result_url = '', - state = '', - type = '', - url = '' - ) - else: - return AsyncContext( - ) - """ - - def testAsyncContext(self): - """Test AsyncContext""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack.py b/test/test_attack.py deleted file mode 100644 index 86bba3f..0000000 --- a/test/test_attack.py +++ /dev/null @@ -1,714 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack import Attack - -class TestAttack(unittest.TestCase): - """Attack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Attack: - """Test Attack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Attack` - """ - model = Attack() - if include_optional: - return Attack( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - inherit_quic_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - inherit_tls = True, - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - supports_tls = True, - tracks = [ - cyperf.models.attack_track.AttackTrack( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - create = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ] - ) - else: - return Attack( - ) - """ - - def testAttack(self): - """Test Attack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_action.py b/test/test_attack_action.py deleted file mode 100644 index 77c1235..0000000 --- a/test/test_attack_action.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_action import AttackAction - -class TestAttackAction(unittest.TestCase): - """AttackAction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackAction: - """Test AttackAction - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackAction` - """ - model = AttackAction() - if include_optional: - return AttackAction( - dst_host = '252.7.188.200', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - index = 56, - is_banner = True, - is_deprecated = True, - is_hostname = 56, - is_strike = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - protocol_id = '', - requires_uniqueness = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackAction( - ) - """ - - def testAttackAction(self): - """Test AttackAction""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_metadata.py b/test/test_attack_metadata.py deleted file mode 100644 index bdfd6b1..0000000 --- a/test/test_attack_metadata.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_metadata import AttackMetadata - -class TestAttackMetadata(unittest.TestCase): - """AttackMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackMetadata: - """Test AttackMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackMetadata` - """ - model = AttackMetadata() - if include_optional: - return AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56 - ) - else: - return AttackMetadata( - ) - """ - - def testAttackMetadata(self): - """Test AttackMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_metadata_keywords_inner.py b/test/test_attack_metadata_keywords_inner.py deleted file mode 100644 index 7268e1c..0000000 --- a/test/test_attack_metadata_keywords_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner - -class TestAttackMetadataKeywordsInner(unittest.TestCase): - """AttackMetadataKeywordsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackMetadataKeywordsInner: - """Test AttackMetadataKeywordsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackMetadataKeywordsInner` - """ - model = AttackMetadataKeywordsInner() - if include_optional: - return AttackMetadataKeywordsInner( - ) - else: - return AttackMetadataKeywordsInner( - ) - """ - - def testAttackMetadataKeywordsInner(self): - """Test AttackMetadataKeywordsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_objectives_and_timeline.py b/test/test_attack_objectives_and_timeline.py deleted file mode 100644 index 8d9a02d..0000000 --- a/test/test_attack_objectives_and_timeline.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline - -class TestAttackObjectivesAndTimeline(unittest.TestCase): - """AttackObjectivesAndTimeline unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackObjectivesAndTimeline: - """Test AttackObjectivesAndTimeline - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackObjectivesAndTimeline` - """ - model = AttackObjectivesAndTimeline() - if include_optional: - return AttackObjectivesAndTimeline( - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackObjectivesAndTimeline( - ) - """ - - def testAttackObjectivesAndTimeline(self): - """Test AttackObjectivesAndTimeline""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_profile.py b/test/test_attack_profile.py deleted file mode 100644 index a939f6f..0000000 --- a/test/test_attack_profile.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_profile import AttackProfile - -class TestAttackProfile(unittest.TestCase): - """AttackProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackProfile: - """Test AttackProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackProfile` - """ - model = AttackProfile() - if include_optional: - return AttackProfile( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - use_all_source_ips_per_user = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - attacks = [ - null - ], - default_network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - name = '', - objectives_and_timeline = cyperf.models.attack_objectives_and_timeline.AttackObjectivesAndTimeline( - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - add_attacks = [ - cyperf.models.external_resource_info.ExternalResourceInfo( - external_resource_url = '', ) - ], - modify_excluded_dut_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - modify_tags_recursively = [ - cyperf.models.update_network_mapping.UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ], ) - ], - reset_tags_to_default = [ - 'YQ==' - ] - ) - else: - return AttackProfile( - name = '', - ) - """ - - def testAttackProfile(self): - """Test AttackProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_timeline_segment.py b/test/test_attack_timeline_segment.py deleted file mode 100644 index 5cbc796..0000000 --- a/test/test_attack_timeline_segment.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_timeline_segment import AttackTimelineSegment - -class TestAttackTimelineSegment(unittest.TestCase): - """AttackTimelineSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackTimelineSegment: - """Test AttackTimelineSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackTimelineSegment` - """ - model = AttackTimelineSegment() - if include_optional: - return AttackTimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - attack_rate = 56, - connection_graceful_stop_timeout = 56, - iteration_count = 56, - max_concurrent_attack = 56 - ) - else: - return AttackTimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - attack_rate = 56, - max_concurrent_attack = 56, - ) - """ - - def testAttackTimelineSegment(self): - """Test AttackTimelineSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_attack_track.py b/test/test_attack_track.py deleted file mode 100644 index b9bc799..0000000 --- a/test/test_attack_track.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.attack_track import AttackTrack - -class TestAttackTrack(unittest.TestCase): - """AttackTrack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttackTrack: - """Test AttackTrack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttackTrack` - """ - model = AttackTrack() - if include_optional: - return AttackTrack( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AttackTrack( - id = '', - ) - """ - - def testAttackTrack(self): - """Test AttackTrack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_method_type.py b/test/test_auth_method_type.py deleted file mode 100644 index fadf297..0000000 --- a/test/test_auth_method_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_method_type import AuthMethodType - -class TestAuthMethodType(unittest.TestCase): - """AuthMethodType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAuthMethodType(self): - """Test AuthMethodType""" - # inst = AuthMethodType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_profile.py b/test/test_auth_profile.py deleted file mode 100644 index 8fbb296..0000000 --- a/test/test_auth_profile.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_profile import AuthProfile - -class TestAuthProfile(unittest.TestCase): - """AuthProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthProfile: - """Test AuthProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthProfile` - """ - model = AuthProfile() - if include_optional: - return AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '' - ) - else: - return AuthProfile( - ) - """ - - def testAuthProfile(self): - """Test AuthProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_profile_metadata.py b/test/test_auth_profile_metadata.py deleted file mode 100644 index 4acf2af..0000000 --- a/test/test_auth_profile_metadata.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_profile_metadata import AuthProfileMetadata - -class TestAuthProfileMetadata(unittest.TestCase): - """AuthProfileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthProfileMetadata: - """Test AuthProfileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthProfileMetadata` - """ - model = AuthProfileMetadata() - if include_optional: - return AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '' - ) - else: - return AuthProfileMetadata( - ) - """ - - def testAuthProfileMetadata(self): - """Test AuthProfileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py b/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py deleted file mode 100644 index 7bc5f6d..0000000 --- a/test/test_auth_realms_keysight_protocol_openid_connect_token_post200_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_realms_keysight_protocol_openid_connect_token_post200_response import AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - -class TestAuthRealmsKeysightProtocolOpenidConnectTokenPost200Response(unittest.TestCase): - """AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response: - """Test AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response` - """ - model = AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response() - if include_optional: - return AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response( - access_token = '', - expires_in = 1.337, - refresh_expires_in = 1.337, - refresh_token = '' - ) - else: - return AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response( - ) - """ - - def testAuthRealmsKeysightProtocolOpenidConnectTokenPost200Response(self): - """Test AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_auth_settings.py b/test/test_auth_settings.py deleted file mode 100644 index 3f098c6..0000000 --- a/test/test_auth_settings.py +++ /dev/null @@ -1,556 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.auth_settings import AuthSettings - -class TestAuthSettings(unittest.TestCase): - """AuthSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthSettings: - """Test AuthSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthSettings` - """ - model = AuthSettings() - if include_optional: - return AuthSettings( - auth_method = 'AAA', - auth_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - passwords = [ - '' - ], - passwords_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - simulated_id_p = cyperf.models.simulated_id_p.SimulatedIdP( - assertion_signature = True, - audience_uri = '', - cert_config = null, - name_id_format = null, - response_signature = True, - signature_algorithm = null, - single_sign_on_url = '', - xml_metadata = [ - 'YQ==' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - usernames = [ - '' - ], - usernames_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AuthSettings( - ) - """ - - def testAuthSettings(self): - """Test AuthSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authenticate200_response.py b/test/test_authenticate200_response.py deleted file mode 100644 index c3cf86b..0000000 --- a/test/test_authenticate200_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.authenticate200_response import Authenticate200Response - -class TestAuthenticate200Response(unittest.TestCase): - """Authenticate200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Authenticate200Response: - """Test Authenticate200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Authenticate200Response` - """ - model = Authenticate200Response() - if include_optional: - return Authenticate200Response( - access_token = '', - expires_in = 1.337, - refresh_expires_in = 1.337, - refresh_token = '' - ) - else: - return Authenticate200Response( - ) - """ - - def testAuthenticate200Response(self): - """Test Authenticate200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authentication_settings.py b/test/test_authentication_settings.py deleted file mode 100644 index 62e8e3b..0000000 --- a/test/test_authentication_settings.py +++ /dev/null @@ -1,251 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.authentication_settings import AuthenticationSettings - -class TestAuthenticationSettings(unittest.TestCase): - """AuthenticationSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthenticationSettings: - """Test AuthenticationSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthenticationSettings` - """ - model = AuthenticationSettings() - if include_optional: - return AuthenticationSettings( - auth_method = 'PRE-SHARED-KEY', - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - shared_key = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return AuthenticationSettings( - ) - """ - - def testAuthenticationSettings(self): - """Test AuthenticationSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_authorization_api.py b/test/test_authorization_api.py deleted file mode 100644 index 6c38f78..0000000 --- a/test/test_authorization_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.authorization_api import AuthorizationApi - - -class TestAuthorizationApi(unittest.TestCase): - """AuthorizationApi unit test stubs""" - - def setUp(self) -> None: - self.api = AuthorizationApi() - - def tearDown(self) -> None: - pass - - - def test_authenticate(self) -> None: - """Test case for authenticate - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_automatic_ip_type.py b/test/test_automatic_ip_type.py deleted file mode 100644 index 906050d..0000000 --- a/test/test_automatic_ip_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.automatic_ip_type import AutomaticIpType - -class TestAutomaticIpType(unittest.TestCase): - """AutomaticIpType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAutomaticIpType(self): - """Test AutomaticIpType""" - # inst = AutomaticIpType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_broker.py b/test/test_broker.py deleted file mode 100644 index 6f0ee21..0000000 --- a/test/test_broker.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.broker import Broker - -class TestBroker(unittest.TestCase): - """Broker unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Broker: - """Test Broker - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Broker` - """ - model = Broker() - if include_optional: - return Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '' - ) - else: - return Broker( - ) - """ - - def testBroker(self): - """Test Broker""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_brokers_api.py b/test/test_brokers_api.py deleted file mode 100644 index 9c1859d..0000000 --- a/test/test_brokers_api.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.brokers_api import BrokersApi - - -class TestBrokersApi(unittest.TestCase): - """BrokersApi unit test stubs""" - - def setUp(self) -> None: - self.api = BrokersApi() - - def tearDown(self) -> None: - pass - - - def test_create_brokers(self) -> None: - """Test case for create_brokers - - """ - pass - - def test_delete_broker(self) -> None: - """Test case for delete_broker - - """ - pass - - def test_get_broker_by_id(self) -> None: - """Test case for get_broker_by_id - - """ - pass - - def test_get_brokers(self) -> None: - """Test case for get_brokers - - """ - pass - - def test_patch_broker(self) -> None: - """Test case for patch_broker - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture.py b/test/test_capture.py deleted file mode 100644 index 19f8ccb..0000000 --- a/test/test_capture.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture import Capture - -class TestCapture(unittest.TestCase): - """Capture unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Capture: - """Test Capture - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Capture` - """ - model = Capture() - if include_optional: - return Capture( - capture_id = '', - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ] - ) - else: - return Capture( - ) - """ - - def testCapture(self): - """Test Capture""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_input.py b/test/test_capture_input.py deleted file mode 100644 index 8206790..0000000 --- a/test/test_capture_input.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_input import CaptureInput - -class TestCaptureInput(unittest.TestCase): - """CaptureInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureInput: - """Test CaptureInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureInput` - """ - model = CaptureInput() - if include_optional: - return CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ] - ) - else: - return CaptureInput( - ) - """ - - def testCaptureInput(self): - """Test CaptureInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_input_find_param.py b/test/test_capture_input_find_param.py deleted file mode 100644 index 951cf83..0000000 --- a/test/test_capture_input_find_param.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_input_find_param import CaptureInputFindParam - -class TestCaptureInputFindParam(unittest.TestCase): - """CaptureInputFindParam unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureInputFindParam: - """Test CaptureInputFindParam - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureInputFindParam` - """ - model = CaptureInputFindParam() - if include_optional: - return CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ] - ) - else: - return CaptureInputFindParam( - ) - """ - - def testCaptureInputFindParam(self): - """Test CaptureInputFindParam""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_capture_settings.py b/test/test_capture_settings.py deleted file mode 100644 index 2cce494..0000000 --- a/test/test_capture_settings.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.capture_settings import CaptureSettings - -class TestCaptureSettings(unittest.TestCase): - """CaptureSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CaptureSettings: - """Test CaptureSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CaptureSettings` - """ - model = CaptureSettings() - if include_optional: - return CaptureSettings( - capture_enabled = True, - capture_latest_packets = True, - log_level = 'NONE', - max_capture_size = 56 - ) - else: - return CaptureSettings( - capture_enabled = True, - log_level = 'NONE', - ) - """ - - def testCaptureSettings(self): - """Test CaptureSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category.py b/test/test_category.py deleted file mode 100644 index 69f858d..0000000 --- a/test/test_category.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category import Category - -class TestCategory(unittest.TestCase): - """Category unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Category: - """Test Category - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Category` - """ - model = Category() - if include_optional: - return Category( - index = 56, - name = '', - values = [ - cyperf.models.category_value.CategoryValue( - items_count = 56, - value = '', ) - ] - ) - else: - return Category( - ) - """ - - def testCategory(self): - """Test Category""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category_filter.py b/test/test_category_filter.py deleted file mode 100644 index e737113..0000000 --- a/test/test_category_filter.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category_filter import CategoryFilter - -class TestCategoryFilter(unittest.TestCase): - """CategoryFilter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CategoryFilter: - """Test CategoryFilter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CategoryFilter` - """ - model = CategoryFilter() - if include_optional: - return CategoryFilter( - category = '', - values = [ - '' - ] - ) - else: - return CategoryFilter( - ) - """ - - def testCategoryFilter(self): - """Test CategoryFilter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_category_value.py b/test/test_category_value.py deleted file mode 100644 index 2acac89..0000000 --- a/test/test_category_value.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.category_value import CategoryValue - -class TestCategoryValue(unittest.TestCase): - """CategoryValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CategoryValue: - """Test CategoryValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CategoryValue` - """ - model = CategoryValue() - if include_optional: - return CategoryValue( - items_count = 56, - value = '' - ) - else: - return CategoryValue( - ) - """ - - def testCategoryValue(self): - """Test CategoryValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cert_config.py b/test/test_cert_config.py deleted file mode 100644 index 593648d..0000000 --- a/test/test_cert_config.py +++ /dev/null @@ -1,360 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cert_config import CertConfig - -class TestCertConfig(unittest.TestCase): - """CertConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CertConfig: - """Test CertConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CertConfig` - """ - model = CertConfig() - if include_optional: - return CertConfig( - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - dh_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '' - ) - else: - return CertConfig( - id = '', - sni_hostname = '', - ) - """ - - def testCertConfig(self): - """Test CertConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_certificate.py b/test/test_certificate.py deleted file mode 100644 index 7bb1ede..0000000 --- a/test/test_certificate.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.certificate import Certificate - -class TestCertificate(unittest.TestCase): - """Certificate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Certificate: - """Test Certificate - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Certificate` - """ - model = Certificate() - if include_optional: - return Certificate( - auto = True, - dns_names = [ - '' - ], - ip_addresses = [ - '' - ], - issuer = '', - not_after = '', - not_before = '', - valid_for = 56 - ) - else: - return Certificate( - ) - """ - - def testCertificate(self): - """Test Certificate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_change_aggregation_mode_operation.py b/test/test_change_aggregation_mode_operation.py deleted file mode 100644 index c0c24ce..0000000 --- a/test/test_change_aggregation_mode_operation.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.change_aggregation_mode_operation import ChangeAggregationModeOperation - -class TestChangeAggregationModeOperation(unittest.TestCase): - """ChangeAggregationModeOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChangeAggregationModeOperation: - """Test ChangeAggregationModeOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChangeAggregationModeOperation` - """ - model = ChangeAggregationModeOperation() - if include_optional: - return ChangeAggregationModeOperation( - aggregated = True, - compute_nodes = [ - '' - ], - controller = '' - ) - else: - return ChangeAggregationModeOperation( - ) - """ - - def testChangeAggregationModeOperation(self): - """Test ChangeAggregationModeOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_change_link_state_operation.py b/test/test_change_link_state_operation.py deleted file mode 100644 index d48edff..0000000 --- a/test/test_change_link_state_operation.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.change_link_state_operation import ChangeLinkStateOperation - -class TestChangeLinkStateOperation(unittest.TestCase): - """ChangeLinkStateOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChangeLinkStateOperation: - """Test ChangeLinkStateOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChangeLinkStateOperation` - """ - model = ChangeLinkStateOperation() - if include_optional: - return ChangeLinkStateOperation( - link = 'DOWN', - ports = [ - '' - ] - ) - else: - return ChangeLinkStateOperation( - ) - """ - - def testChangeLinkStateOperation(self): - """Test ChangeLinkStateOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_chassis_info.py b/test/test_chassis_info.py deleted file mode 100644 index b4a2047..0000000 --- a/test/test_chassis_info.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.chassis_info import ChassisInfo - -class TestChassisInfo(unittest.TestCase): - """ChassisInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChassisInfo: - """Test ChassisInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChassisInfo` - """ - model = ChassisInfo() - if include_optional: - return ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '' - ) - else: - return ChassisInfo( - ) - """ - - def testChassisInfo(self): - """Test ChassisInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_choice.py b/test/test_choice.py deleted file mode 100644 index 72a7347..0000000 --- a/test/test_choice.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.choice import Choice - -class TestChoice(unittest.TestCase): - """Choice unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Choice: - """Test Choice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Choice` - """ - model = Choice() - if include_optional: - return Choice( - description = '', - hidden = True, - name = '', - value = '' - ) - else: - return Choice( - ) - """ - - def testChoice(self): - """Test Choice""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cipher_tls12.py b/test/test_cipher_tls12.py deleted file mode 100644 index c4ba3da..0000000 --- a/test/test_cipher_tls12.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cipher_tls12 import CipherTLS12 - -class TestCipherTLS12(unittest.TestCase): - """CipherTLS12 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCipherTLS12(self): - """Test CipherTLS12""" - # inst = CipherTLS12() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cipher_tls13.py b/test/test_cipher_tls13.py deleted file mode 100644 index 8347bfe..0000000 --- a/test/test_cipher_tls13.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cipher_tls13 import CipherTLS13 - -class TestCipherTLS13(unittest.TestCase): - """CipherTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCipherTLS13(self): - """Test CipherTLS13""" - # inst = CipherTLS13() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cisco_any_connect_settings.py b/test/test_cisco_any_connect_settings.py deleted file mode 100644 index d928a81..0000000 --- a/test/test_cisco_any_connect_settings.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cisco_any_connect_settings import CiscoAnyConnectSettings - -class TestCiscoAnyConnectSettings(unittest.TestCase): - """CiscoAnyConnectSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CiscoAnyConnectSettings: - """Test CiscoAnyConnectSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CiscoAnyConnectSettings` - """ - model = CiscoAnyConnectSettings() - if include_optional: - return CiscoAnyConnectSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - cisco_encapsulation = cyperf.models.cisco_encapsulation.CiscoEncapsulation( - dtls_enabled = True, - dtls_settings = null, - encapsulation_mode = 'DTLS', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connection_profiles = [ - '' - ], - esp_probe_retry_timeout = 56, - esp_probe_timeout = 56, - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return CiscoAnyConnectSettings( - vpn_gateway = '::', - ) - """ - - def testCiscoAnyConnectSettings(self): - """Test CiscoAnyConnectSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_cisco_encapsulation.py b/test/test_cisco_encapsulation.py deleted file mode 100644 index e9d88df..0000000 --- a/test/test_cisco_encapsulation.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.cisco_encapsulation import CiscoEncapsulation - -class TestCiscoEncapsulation(unittest.TestCase): - """CiscoEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CiscoEncapsulation: - """Test CiscoEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CiscoEncapsulation` - """ - model = CiscoEncapsulation() - if include_optional: - return CiscoEncapsulation( - dtls_enabled = True, - dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - encapsulation_mode = 'DTLS', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return CiscoEncapsulation( - dtls_enabled = True, - encapsulation_mode = 'DTLS', - udp_port = 56, - ) - """ - - def testCiscoEncapsulation(self): - """Test CiscoEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_clear_ports_ownership_operation.py b/test/test_clear_ports_ownership_operation.py deleted file mode 100644 index 133b66e..0000000 --- a/test/test_clear_ports_ownership_operation.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation - -class TestClearPortsOwnershipOperation(unittest.TestCase): - """ClearPortsOwnershipOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ClearPortsOwnershipOperation: - """Test ClearPortsOwnershipOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ClearPortsOwnershipOperation` - """ - model = ClearPortsOwnershipOperation() - if include_optional: - return ClearPortsOwnershipOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ] - ) - else: - return ClearPortsOwnershipOperation( - ) - """ - - def testClearPortsOwnershipOperation(self): - """Test ClearPortsOwnershipOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_command.py b/test/test_command.py deleted file mode 100644 index 522c3ad..0000000 --- a/test/test_command.py +++ /dev/null @@ -1,200 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.command import Command - -class TestCommand(unittest.TestCase): - """Command unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Command: - """Test Command - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Command` - """ - model = Command() - if include_optional: - return Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Command( - ) - """ - - def testCommand(self): - """Test Command""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_command_metadata.py b/test/test_command_metadata.py deleted file mode 100644 index 2aa1ceb..0000000 --- a/test/test_command_metadata.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.command_metadata import CommandMetadata - -class TestCommandMetadata(unittest.TestCase): - """CommandMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CommandMetadata: - """Test CommandMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CommandMetadata` - """ - model = CommandMetadata() - if include_optional: - return CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '' - ) - else: - return CommandMetadata( - ) - """ - - def testCommandMetadata(self): - """Test CommandMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_compute_node.py b/test/test_compute_node.py deleted file mode 100644 index afbd44c..0000000 --- a/test/test_compute_node.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.compute_node import ComputeNode - -class TestComputeNode(unittest.TestCase): - """ComputeNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ComputeNode: - """Test ComputeNode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ComputeNode` - """ - model = ComputeNode() - if include_optional: - return ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '' - ) - else: - return ComputeNode( - ) - """ - - def testComputeNode(self): - """Test ComputeNode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config.py b/test/test_config.py deleted file mode 100644 index c576435..0000000 --- a/test/test_config.py +++ /dev/null @@ -1,160 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config import Config - -class TestConfig(unittest.TestCase): - """Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Config: - """Test Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Config` - """ - model = Config() - if include_optional: - return Config( - attack_profiles = [ - null - ], - config_validation = cyperf.models.config_validation.ConfigValidation( - is_validated = True, - validation_messages = [ - cyperf.models.validation_message.ValidationMessage( - message = '', - severity = 'WARNING', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - custom_dashboards = cyperf.models.custom_dashboards.CustomDashboards( - active = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = cyperf.models.snowflake_exporter.SnowflakeExporter( - active = True, - polling_interval = 56, - profile = null, - server_url = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ] - ) - else: - return Config( - ) - """ - - def testConfig(self): - """Test Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_category.py b/test/test_config_category.py deleted file mode 100644 index 9b2cba2..0000000 --- a/test/test_config_category.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_category import ConfigCategory - -class TestConfigCategory(unittest.TestCase): - """ConfigCategory unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigCategory: - """Test ConfigCategory - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigCategory` - """ - model = ConfigCategory() - if include_optional: - return ConfigCategory( - display_name = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - subcategories = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ] - ) - else: - return ConfigCategory( - ) - """ - - def testConfigCategory(self): - """Test ConfigCategory""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_id.py b/test/test_config_id.py deleted file mode 100644 index afac615..0000000 --- a/test/test_config_id.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_id import ConfigId - -class TestConfigId(unittest.TestCase): - """ConfigId unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigId: - """Test ConfigId - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigId` - """ - model = ConfigId() - if include_optional: - return ConfigId( - id = '' - ) - else: - return ConfigId( - ) - """ - - def testConfigId(self): - """Test ConfigId""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_metadata.py b/test/test_config_metadata.py deleted file mode 100644 index 636a312..0000000 --- a/test/test_config_metadata.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_metadata import ConfigMetadata - -class TestConfigMetadata(unittest.TestCase): - """ConfigMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigMetadata: - """Test ConfigMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigMetadata` - """ - model = ConfigMetadata() - if include_optional: - return ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ) - ) - else: - return ConfigMetadata( - ) - """ - - def testConfigMetadata(self): - """Test ConfigMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_metadata_config_data_value.py b/test/test_config_metadata_config_data_value.py deleted file mode 100644 index 20c8cd6..0000000 --- a/test/test_config_metadata_config_data_value.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue - -class TestConfigMetadataConfigDataValue(unittest.TestCase): - """ConfigMetadataConfigDataValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigMetadataConfigDataValue: - """Test ConfigMetadataConfigDataValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigMetadataConfigDataValue` - """ - model = ConfigMetadataConfigDataValue() - if include_optional: - return ConfigMetadataConfigDataValue( - ) - else: - return ConfigMetadataConfigDataValue( - ) - """ - - def testConfigMetadataConfigDataValue(self): - """Test ConfigMetadataConfigDataValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_sub_category.py b/test/test_config_sub_category.py deleted file mode 100644 index c4f8e6e..0000000 --- a/test/test_config_sub_category.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_sub_category import ConfigSubCategory - -class TestConfigSubCategory(unittest.TestCase): - """ConfigSubCategory unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigSubCategory: - """Test ConfigSubCategory - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigSubCategory` - """ - model = ConfigSubCategory() - if include_optional: - return ConfigSubCategory( - display_name = '' - ) - else: - return ConfigSubCategory( - ) - """ - - def testConfigSubCategory(self): - """Test ConfigSubCategory""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_config_validation.py b/test/test_config_validation.py deleted file mode 100644 index 1905fd6..0000000 --- a/test/test_config_validation.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.config_validation import ConfigValidation - -class TestConfigValidation(unittest.TestCase): - """ConfigValidation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigValidation: - """Test ConfigValidation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigValidation` - """ - model = ConfigValidation() - if include_optional: - return ConfigValidation( - is_validated = True, - validation_messages = [ - cyperf.models.validation_message.ValidationMessage( - message = '', - severity = 'WARNING', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ConfigValidation( - is_validated = True, - ) - """ - - def testConfigValidation(self): - """Test ConfigValidation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_configurations_api.py b/test/test_configurations_api.py deleted file mode 100644 index 74987c3..0000000 --- a/test/test_configurations_api.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.configurations_api import ConfigurationsApi - - -class TestConfigurationsApi(unittest.TestCase): - """ConfigurationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ConfigurationsApi() - - def tearDown(self) -> None: - pass - - - def test_create_configs(self) -> None: - """Test case for create_configs - - """ - pass - - def test_delete_config(self) -> None: - """Test case for delete_config - - """ - pass - - def test_get_config_by_id(self) -> None: - """Test case for get_config_by_id - - """ - pass - - def test_get_config_categorie_by_id(self) -> None: - """Test case for get_config_categorie_by_id - - """ - pass - - def test_get_config_categorie_subcategories(self) -> None: - """Test case for get_config_categorie_subcategories - - """ - pass - - def test_get_config_categories(self) -> None: - """Test case for get_config_categories - - """ - pass - - def test_get_configs(self) -> None: - """Test case for get_configs - - """ - pass - - def test_get_resources_custom_import_operations(self) -> None: - """Test case for get_resources_custom_import_operations - - """ - pass - - def test_patch_config(self) -> None: - """Test case for patch_config - - """ - pass - - - - - - def test_start_configs_batch_delete(self) -> None: - """Test case for start_configs_batch_delete - - """ - pass - - def test_start_configs_export_all(self) -> None: - """Test case for start_configs_export_all - - """ - pass - - def test_start_configs_import(self) -> None: - """Test case for start_configs_import - - """ - pass - - def test_start_configs_import_all(self) -> None: - """Test case for start_configs_import_all - - """ - pass - - def test_update_config(self) -> None: - """Test case for update_config - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_conflict.py b/test/test_conflict.py deleted file mode 100644 index 71d4253..0000000 --- a/test/test_conflict.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.conflict import Conflict - -class TestConflict(unittest.TestCase): - """Conflict unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Conflict: - """Test Conflict - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Conflict` - """ - model = Conflict() - if include_optional: - return Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - } - ) - else: - return Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, - ) - """ - - def testConflict(self): - """Test Conflict""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_connection.py b/test/test_connection.py deleted file mode 100644 index cf069f2..0000000 --- a/test/test_connection.py +++ /dev/null @@ -1,196 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.connection import Connection - -class TestConnection(unittest.TestCase): - """Connection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Connection: - """Test Connection - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Connection` - """ - model = Connection() - if include_optional: - return Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = cyperf.models.port_settings.PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - effective_ports = cyperf.models.effective_ports.EffectivePorts(), - forward_proxy_port = 56, - readonly = True, - server_listen_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Connection( - client_endpoint = '', - client_port = 56, - max_transactions = 56, - server_port = 56, - id = '', - ) - """ - - def testConnection(self): - """Test Connection""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_connection_persistence.py b/test/test_connection_persistence.py deleted file mode 100644 index f63efcc..0000000 --- a/test/test_connection_persistence.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.connection_persistence import ConnectionPersistence - -class TestConnectionPersistence(unittest.TestCase): - """ConnectionPersistence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConnectionPersistence(self): - """Test ConnectionPersistence""" - # inst = ConnectionPersistence() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_consumer.py b/test/test_consumer.py deleted file mode 100644 index 5543eb7..0000000 --- a/test/test_consumer.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.consumer import Consumer - -class TestConsumer(unittest.TestCase): - """Consumer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Consumer: - """Test Consumer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Consumer` - """ - model = Consumer() - if include_optional: - return Consumer( - id = '', - pretty_size = '', - size = 56 - ) - else: - return Consumer( - ) - """ - - def testConsumer(self): - """Test Consumer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_controller.py b/test/test_controller.py deleted file mode 100644 index d986e8b..0000000 --- a/test/test_controller.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.controller import Controller - -class TestController(unittest.TestCase): - """Controller unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Controller: - """Test Controller - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Controller` - """ - model = Controller() - if include_optional: - return Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '' - ) - else: - return Controller( - ) - """ - - def testController(self): - """Test Controller""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_counted_feature_consumer.py b/test/test_counted_feature_consumer.py deleted file mode 100644 index 28f7e41..0000000 --- a/test/test_counted_feature_consumer.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.counted_feature_consumer import CountedFeatureConsumer - -class TestCountedFeatureConsumer(unittest.TestCase): - """CountedFeatureConsumer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CountedFeatureConsumer: - """Test CountedFeatureConsumer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CountedFeatureConsumer` - """ - model = CountedFeatureConsumer() - if include_optional: - return CountedFeatureConsumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '' - ) - else: - return CountedFeatureConsumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', - ) - """ - - def testCountedFeatureConsumer(self): - """Test CountedFeatureConsumer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_counted_feature_stats.py b/test/test_counted_feature_stats.py deleted file mode 100644 index 0298224..0000000 --- a/test/test_counted_feature_stats.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.counted_feature_stats import CountedFeatureStats - -class TestCountedFeatureStats(unittest.TestCase): - """CountedFeatureStats unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CountedFeatureStats: - """Test CountedFeatureStats - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CountedFeatureStats` - """ - model = CountedFeatureStats() - if include_optional: - return CountedFeatureStats( - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56 - ) - else: - return CountedFeatureStats( - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56, - ) - """ - - def testCountedFeatureStats(self): - """Test CountedFeatureStats""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_app_operation.py b/test/test_create_app_operation.py deleted file mode 100644 index 4d07f50..0000000 --- a/test/test_create_app_operation.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.create_app_operation import CreateAppOperation - -class TestCreateAppOperation(unittest.TestCase): - """CreateAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateAppOperation: - """Test CreateAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateAppOperation` - """ - model = CreateAppOperation() - if include_optional: - return CreateAppOperation( - actions = [ - cyperf.models.action_input.ActionInput( - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_name = '', - app_type = '', - description = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ] - ) - else: - return CreateAppOperation( - ) - """ - - def testCreateAppOperation(self): - """Test CreateAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_app_or_attack_operation_input.py b/test/test_create_app_or_attack_operation_input.py deleted file mode 100644 index 1a1ac7e..0000000 --- a/test/test_create_app_or_attack_operation_input.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput - -class TestCreateAppOrAttackOperationInput(unittest.TestCase): - """CreateAppOrAttackOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateAppOrAttackOperationInput: - """Test CreateAppOrAttackOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateAppOrAttackOperationInput` - """ - model = CreateAppOrAttackOperationInput() - if include_optional: - return CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '' - ) - else: - return CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - ) - """ - - def testCreateAppOrAttackOperationInput(self): - """Test CreateAppOrAttackOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_dashboards.py b/test/test_custom_dashboards.py deleted file mode 100644 index 18d4f1a..0000000 --- a/test/test_custom_dashboards.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_dashboards import CustomDashboards - -class TestCustomDashboards(unittest.TestCase): - """CustomDashboards unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomDashboards: - """Test CustomDashboards - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomDashboards` - """ - model = CustomDashboards() - if include_optional: - return CustomDashboards( - active = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return CustomDashboards( - active = True, - ) - """ - - def testCustomDashboards(self): - """Test CustomDashboards""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_import_handler.py b/test/test_custom_import_handler.py deleted file mode 100644 index d1aa397..0000000 --- a/test/test_custom_import_handler.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_import_handler import CustomImportHandler - -class TestCustomImportHandler(unittest.TestCase): - """CustomImportHandler unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomImportHandler: - """Test CustomImportHandler - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomImportHandler` - """ - model = CustomImportHandler() - if include_optional: - return CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '' - ) - else: - return CustomImportHandler( - ) - """ - - def testCustomImportHandler(self): - """Test CustomImportHandler""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_custom_stat.py b/test/test_custom_stat.py deleted file mode 100644 index c072a09..0000000 --- a/test/test_custom_stat.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.custom_stat import CustomStat - -class TestCustomStat(unittest.TestCase): - """CustomStat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomStat: - """Test CustomStat - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomStat` - """ - model = CustomStat() - if include_optional: - return CustomStat( - function = '', - is_rate = True, - path = '' - ) - else: - return CustomStat( - ) - """ - - def testCustomStat(self): - """Test CustomStat""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dashboard.py b/test/test_dashboard.py deleted file mode 100644 index 1b18219..0000000 --- a/test/test_dashboard.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dashboard import Dashboard - -class TestDashboard(unittest.TestCase): - """Dashboard unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Dashboard: - """Test Dashboard - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Dashboard` - """ - model = Dashboard() - if include_optional: - return Dashboard( - id = '', - name = '' - ) - else: - return Dashboard( - ) - """ - - def testDashboard(self): - """Test Dashboard""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_migration_api.py b/test/test_data_migration_api.py deleted file mode 100644 index 9b43983..0000000 --- a/test/test_data_migration_api.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.data_migration_api import DataMigrationApi - - -class TestDataMigrationApi(unittest.TestCase): - """DataMigrationApi unit test stubs""" - - def setUp(self) -> None: - self.api = DataMigrationApi() - - def tearDown(self) -> None: - pass - - - - - def test_start_controller_migration_export(self) -> None: - """Test case for start_controller_migration_export - - """ - pass - - def test_start_controller_migration_import(self) -> None: - """Test case for start_controller_migration_import - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_type.py b/test/test_data_type.py deleted file mode 100644 index 446008e..0000000 --- a/test/test_data_type.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.data_type import DataType - -class TestDataType(unittest.TestCase): - """DataType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataType: - """Test DataType - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DataType` - """ - model = DataType() - if include_optional: - return DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '' - ) - else: - return DataType( - ) - """ - - def testDataType(self): - """Test DataType""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_data_type_values_inner.py b/test/test_data_type_values_inner.py deleted file mode 100644 index 864d8e6..0000000 --- a/test/test_data_type_values_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.data_type_values_inner import DataTypeValuesInner - -class TestDataTypeValuesInner(unittest.TestCase): - """DataTypeValuesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DataTypeValuesInner: - """Test DataTypeValuesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DataTypeValuesInner` - """ - model = DataTypeValuesInner() - if include_optional: - return DataTypeValuesInner( - id = '', - value_type = '' - ) - else: - return DataTypeValuesInner( - ) - """ - - def testDataTypeValuesInner(self): - """Test DataTypeValuesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_definition.py b/test/test_definition.py deleted file mode 100644 index 5bde617..0000000 --- a/test/test_definition.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.definition import Definition - -class TestDefinition(unittest.TestCase): - """Definition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Definition: - """Test Definition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Definition` - """ - model = Definition() - if include_optional: - return Definition( - xml = 'YQ==' - ) - else: - return Definition( - ) - """ - - def testDefinition(self): - """Test Definition""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_delete_input.py b/test/test_delete_input.py deleted file mode 100644 index e7ad4fc..0000000 --- a/test/test_delete_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.delete_input import DeleteInput - -class TestDeleteInput(unittest.TestCase): - """DeleteInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteInput: - """Test DeleteInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteInput` - """ - model = DeleteInput() - if include_optional: - return DeleteInput( - action_index_delete_at = 56, - exchange_delete_at = 56, - flow_index_delete_at = 56, - type = '' - ) - else: - return DeleteInput( - ) - """ - - def testDeleteInput(self): - """Test DeleteInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dh_p1_group.py b/test/test_dh_p1_group.py deleted file mode 100644 index 8850446..0000000 --- a/test/test_dh_p1_group.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dh_p1_group import DhP1Group - -class TestDhP1Group(unittest.TestCase): - """DhP1Group unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDhP1Group(self): - """Test DhP1Group""" - # inst = DhP1Group() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_component.py b/test/test_diagnostic_component.py deleted file mode 100644 index a2a2790..0000000 --- a/test/test_diagnostic_component.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_component import DiagnosticComponent - -class TestDiagnosticComponent(unittest.TestCase): - """DiagnosticComponent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticComponent: - """Test DiagnosticComponent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticComponent` - """ - model = DiagnosticComponent() - if include_optional: - return DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ] - ) - else: - return DiagnosticComponent( - ) - """ - - def testDiagnosticComponent(self): - """Test DiagnosticComponent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_component_context.py b/test/test_diagnostic_component_context.py deleted file mode 100644 index 1ffa41a..0000000 --- a/test/test_diagnostic_component_context.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_component_context import DiagnosticComponentContext - -class TestDiagnosticComponentContext(unittest.TestCase): - """DiagnosticComponentContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticComponentContext: - """Test DiagnosticComponentContext - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticComponentContext` - """ - model = DiagnosticComponentContext() - if include_optional: - return DiagnosticComponentContext( - component_list = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ], - context = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ] - ) - else: - return DiagnosticComponentContext( - component_list = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', - options = [ - cyperf.models.diagnostic_options.DiagnosticOptions( - name = '', - value = '', ) - ], - sub_components = [ - cyperf.models.diagnostic_component.DiagnosticComponent( - component_name = '', ) - ], ) - ], - ) - """ - - def testDiagnosticComponentContext(self): - """Test DiagnosticComponentContext""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostic_options.py b/test/test_diagnostic_options.py deleted file mode 100644 index f9aa64a..0000000 --- a/test/test_diagnostic_options.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.diagnostic_options import DiagnosticOptions - -class TestDiagnosticOptions(unittest.TestCase): - """DiagnosticOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiagnosticOptions: - """Test DiagnosticOptions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiagnosticOptions` - """ - model = DiagnosticOptions() - if include_optional: - return DiagnosticOptions( - name = '', - value = '' - ) - else: - return DiagnosticOptions( - ) - """ - - def testDiagnosticOptions(self): - """Test DiagnosticOptions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_diagnostics_api.py b/test/test_diagnostics_api.py deleted file mode 100644 index e7fbfb1..0000000 --- a/test/test_diagnostics_api.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.diagnostics_api import DiagnosticsApi - - -class TestDiagnosticsApi(unittest.TestCase): - """DiagnosticsApi unit test stubs""" - - def setUp(self) -> None: - self.api = DiagnosticsApi() - - def tearDown(self) -> None: - pass - - - def test_api_v2_diagnostics_components_get(self) -> None: - """Test case for api_v2_diagnostics_components_get - - """ - pass - - def test_api_v2_diagnostics_operations_delete_delete(self) -> None: - """Test case for api_v2_diagnostics_operations_delete_delete - - """ - pass - - def test_api_v2_diagnostics_operations_delete_id_delete(self) -> None: - """Test case for api_v2_diagnostics_operations_delete_id_delete - - """ - pass - - def test_api_v2_diagnostics_operations_export_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_id_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_id_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_id_result_get(self) -> None: - """Test case for api_v2_diagnostics_operations_export_id_result_get - - """ - pass - - def test_api_v2_diagnostics_operations_export_post(self) -> None: - """Test case for api_v2_diagnostics_operations_export_post - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_disk_usage.py b/test/test_disk_usage.py deleted file mode 100644 index e2d7830..0000000 --- a/test/test_disk_usage.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.disk_usage import DiskUsage - -class TestDiskUsage(unittest.TestCase): - """DiskUsage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DiskUsage: - """Test DiskUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DiskUsage` - """ - model = DiskUsage() - if include_optional: - return DiskUsage( - available = 56, - consumers = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - critical_disk_space = True, - critical_threshold = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - low_disk_space = True, - low_threshold = 56, - message = '', - pretty_available = '', - pretty_size = '', - size = 56 - ) - else: - return DiskUsage( - ) - """ - - def testDiskUsage(self): - """Test DiskUsage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dns_resolver.py b/test/test_dns_resolver.py deleted file mode 100644 index c6abfb2..0000000 --- a/test/test_dns_resolver.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dns_resolver import DNSResolver - -class TestDNSResolver(unittest.TestCase): - """DNSResolver unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DNSResolver: - """Test DNSResolver - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DNSResolver` - """ - model = DNSResolver() - if include_optional: - return DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ] - ) - else: - return DNSResolver( - ) - """ - - def testDNSResolver(self): - """Test DNSResolver""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dns_server.py b/test/test_dns_server.py deleted file mode 100644 index 9b40409..0000000 --- a/test/test_dns_server.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dns_server import DNSServer - -class TestDNSServer(unittest.TestCase): - """DNSServer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DNSServer: - """Test DNSServer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DNSServer` - """ - model = DNSServer() - if include_optional: - return DNSServer( - automatic = True, - enabled = True, - ip_to_resolve_to = '::02:84:9:0cc0:F:CCf', - port = 56 - ) - else: - return DNSServer( - enabled = True, - port = 56, - ) - """ - - def testDNSServer(self): - """Test DNSServer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dtls_settings.py b/test/test_dtls_settings.py deleted file mode 100644 index 5a7d9d9..0000000 --- a/test/test_dtls_settings.py +++ /dev/null @@ -1,149 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dtls_settings import DTLSSettings - -class TestDTLSSettings(unittest.TestCase): - """DTLSSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DTLSSettings: - """Test DTLSSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DTLSSettings` - """ - model = DTLSSettings() - if include_optional: - return DTLSSettings( - tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return DTLSSettings( - ) - """ - - def testDTLSSettings(self): - """Test DTLSSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_dut_network.py b/test/test_dut_network.py deleted file mode 100644 index 7100ee9..0000000 --- a/test/test_dut_network.py +++ /dev/null @@ -1,789 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.dut_network import DUTNetwork - -class TestDUTNetwork(unittest.TestCase): - """DUTNetwork unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DUTNetwork: - """Test DUTNetwork - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DUTNetwork` - """ - model = DUTNetwork() - if include_optional: - return DUTNetwork( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ], - client_dut_active = True, - client_dut_host = '252.7.188.200', - client_dut_port = 56, - config_settings = 'SIMPLE_MODE', - forward_proxy_pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - forward_proxy_pep_dut_active = True, - http_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - https_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - hostname_suffix = '252.7.188.200', - http_forward_proxy_mode = 'PROXY_MODE', - non_proxied_hosts = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - pep_dut_active = True, - reverse_proxy_pep_dut = cyperf.models.pep_dut.PepDUT( - auth_method = null, - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = null, - idp_type = null, - is_explicit_proxy = True, - pep_host = null, - pep_port = 56, - simulated_id_p = null, - links = , ), - reverse_proxy_pep_dut_active = True, - server_dut_active = True, - server_dut_host = '252.7.188.200', - server_dut_port = 56, - tcp_health_check = cyperf.models.health_check_config.HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = , ), - use_real_host = True, - active = True, - host = '252.7.188.200', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return DUTNetwork( - name = 'YBuLd', - id = '', - ) - """ - - def testDUTNetwork(self): - """Test DUTNetwork""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_edit_action_input.py b/test/test_edit_action_input.py deleted file mode 100644 index 93f8415..0000000 --- a/test/test_edit_action_input.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.edit_action_input import EditActionInput - -class TestEditActionInput(unittest.TestCase): - """EditActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EditActionInput: - """Test EditActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EditActionInput` - """ - model = EditActionInput() - if include_optional: - return EditActionInput( - action_index = 56, - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ] - ) - else: - return EditActionInput( - ) - """ - - def testEditActionInput(self): - """Test EditActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_edit_app_operation.py b/test/test_edit_app_operation.py deleted file mode 100644 index ee70f2c..0000000 --- a/test/test_edit_app_operation.py +++ /dev/null @@ -1,150 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.edit_app_operation import EditAppOperation - -class TestEditAppOperation(unittest.TestCase): - """EditAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EditAppOperation: - """Test EditAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EditAppOperation` - """ - model = EditAppOperation() - if include_optional: - return EditAppOperation( - add_inputs = [ - cyperf.models.add_input.AddInput( - action_index = 56, - action_name = '', - captures = [ - cyperf.models.capture_input.CaptureInput( - capture_id = '', - flows = [ - cyperf.models.app_flow_input.AppFlowInput( - app_flow_id = '', - exchanges = [ - '' - ], ) - ], ) - ], - exchange_index_insert_at = 56, - flow_index_insert_at = 56, - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], - type = '', ) - ], - app_description = '', - app_id = '', - app_name = '', - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], - delete_inputs = [ - cyperf.models.delete_input.DeleteInput( - action_index_delete_at = 56, - exchange_delete_at = 56, - flow_index_delete_at = 56, - type = '', ) - ], - edit_action_inputs = [ - cyperf.models.edit_action_input.EditActionInput( - action_index = 56, - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - rename_inputs = [ - cyperf.models.rename_input.RenameInput( - new_action_name = '', - old_action_name = '', ) - ], - reorder_actions_inputs = [ - cyperf.models.reorder_action_input.ReorderActionInput( - action_idx = 56, - action_name = '', ) - ], - reorder_exchanges_inputs = [ - cyperf.models.reorder_exchanges_input.ReorderExchangesInput( - action_name = '', - exchanges_order = [ - cyperf.models.exchange_order.ExchangeOrder( - exchange_id = '', - exchange_idx = 56, ) - ], - flow_idx = 56, ) - ] - ) - else: - return EditAppOperation( - ) - """ - - def testEditAppOperation(self): - """Test EditAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_effective_ports.py b/test/test_effective_ports.py deleted file mode 100644 index d6c350d..0000000 --- a/test/test_effective_ports.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.effective_ports import EffectivePorts - -class TestEffectivePorts(unittest.TestCase): - """EffectivePorts unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EffectivePorts: - """Test EffectivePorts - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EffectivePorts` - """ - model = EffectivePorts() - if include_optional: - return EffectivePorts( - effective_destination_port = '', - effective_forward_proxy_port = '', - effective_server_port = '' - ) - else: - return EffectivePorts( - effective_destination_port = '', - effective_server_port = '', - ) - """ - - def testEffectivePorts(self): - """Test EffectivePorts""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_router.py b/test/test_emulated_router.py deleted file mode 100644 index a7cc440..0000000 --- a/test/test_emulated_router.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_router import EmulatedRouter - -class TestEmulatedRouter(unittest.TestCase): - """EmulatedRouter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedRouter: - """Test EmulatedRouter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedRouter` - """ - model = EmulatedRouter() - if include_optional: - return EmulatedRouter( - emulated_router_ranges = [ - null - ], - enabled = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return EmulatedRouter( - enabled = True, - ) - """ - - def testEmulatedRouter(self): - """Test EmulatedRouter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_router_range.py b/test/test_emulated_router_range.py deleted file mode 100644 index 0a41ab4..0000000 --- a/test/test_emulated_router_range.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_router_range import EmulatedRouterRange - -class TestEmulatedRouterRange(unittest.TestCase): - """EmulatedRouterRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedRouterRange: - """Test EmulatedRouterRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedRouterRange` - """ - model = EmulatedRouterRange() - if include_optional: - return EmulatedRouterRange( - automatic_ip_type = 'BOTH_IPV4_IPV6', - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = 'IPV4', - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ] - ) - else: - return EmulatedRouterRange( - gw_auto = True, - ip_auto = True, - ip_range_name = 'YBuLd', - ip_ver = 'IPV4', - mss = 56, - mss_auto = True, - net_mask_auto = True, - id = '', - ) - """ - - def testEmulatedRouterRange(self): - """Test EmulatedRouterRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_emulated_subnet_config.py b/test/test_emulated_subnet_config.py deleted file mode 100644 index 42a6a41..0000000 --- a/test/test_emulated_subnet_config.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.emulated_subnet_config import EmulatedSubnetConfig - -class TestEmulatedSubnetConfig(unittest.TestCase): - """EmulatedSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EmulatedSubnetConfig: - """Test EmulatedSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EmulatedSubnetConfig` - """ - model = EmulatedSubnetConfig() - if include_optional: - return EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ] - ) - else: - return EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], - ) - """ - - def testEmulatedSubnetConfig(self): - """Test EmulatedSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enc_p1_algorithm.py b/test/test_enc_p1_algorithm.py deleted file mode 100644 index ff4dfac..0000000 --- a/test/test_enc_p1_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enc_p1_algorithm import EncP1Algorithm - -class TestEncP1Algorithm(unittest.TestCase): - """EncP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEncP1Algorithm(self): - """Test EncP1Algorithm""" - # inst = EncP1Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enc_p2_algorithm.py b/test/test_enc_p2_algorithm.py deleted file mode 100644 index 9ed9dab..0000000 --- a/test/test_enc_p2_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enc_p2_algorithm import EncP2Algorithm - -class TestEncP2Algorithm(unittest.TestCase): - """EncP2Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEncP2Algorithm(self): - """Test EncP2Algorithm""" - # inst = EncP2Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_endpoint.py b/test/test_endpoint.py deleted file mode 100644 index 5d02f07..0000000 --- a/test/test_endpoint.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.endpoint import Endpoint - -class TestEndpoint(unittest.TestCase): - """Endpoint unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Endpoint: - """Test Endpoint - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Endpoint` - """ - model = Endpoint() - if include_optional: - return Endpoint( - name = '', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Endpoint( - name = '', - type = 'Client', - id = '', - ) - """ - - def testEndpoint(self): - """Test Endpoint""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_entitlement_code_info.py b/test/test_entitlement_code_info.py deleted file mode 100644 index 2cb6e29..0000000 --- a/test/test_entitlement_code_info.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.entitlement_code_info import EntitlementCodeInfo - -class TestEntitlementCodeInfo(unittest.TestCase): - """EntitlementCodeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EntitlementCodeInfo: - """Test EntitlementCodeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EntitlementCodeInfo` - """ - model = EntitlementCodeInfo() - if include_optional: - return EntitlementCodeInfo( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '' - ) - else: - return EntitlementCodeInfo( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - ) - """ - - def testEntitlementCodeInfo(self): - """Test EntitlementCodeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_entitlement_code_request.py b/test/test_entitlement_code_request.py deleted file mode 100644 index 664d044..0000000 --- a/test/test_entitlement_code_request.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.entitlement_code_request import EntitlementCodeRequest - -class TestEntitlementCodeRequest(unittest.TestCase): - """EntitlementCodeRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EntitlementCodeRequest: - """Test EntitlementCodeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EntitlementCodeRequest` - """ - model = EntitlementCodeRequest() - if include_optional: - return EntitlementCodeRequest( - entitlement_code = '' - ) - else: - return EntitlementCodeRequest( - entitlement_code = '', - ) - """ - - def testEntitlementCodeRequest(self): - """Test EntitlementCodeRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_enum.py b/test/test_enum.py deleted file mode 100644 index 5c1a63f..0000000 --- a/test/test_enum.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.enum import Enum - -class TestEnum(unittest.TestCase): - """Enum unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Enum: - """Test Enum - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Enum` - """ - model = Enum() - if include_optional: - return Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '' - ) - else: - return Enum( - ) - """ - - def testEnum(self): - """Test Enum""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_description.py b/test/test_error_description.py deleted file mode 100644 index 4822994..0000000 --- a/test/test_error_description.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.error_description import ErrorDescription - -class TestErrorDescription(unittest.TestCase): - """ErrorDescription unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorDescription: - """Test ErrorDescription - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ErrorDescription` - """ - model = ErrorDescription() - if include_optional: - return ErrorDescription( - error = '' - ) - else: - return ErrorDescription( - error = '', - ) - """ - - def testErrorDescription(self): - """Test ErrorDescription""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_response.py b/test/test_error_response.py deleted file mode 100644 index 44c8cd8..0000000 --- a/test/test_error_response.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.error_response import ErrorResponse - -class TestErrorResponse(unittest.TestCase): - """ErrorResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorResponse: - """Test ErrorResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ErrorResponse` - """ - model = ErrorResponse() - if include_optional: - return ErrorResponse( - message = '' - ) - else: - return ErrorResponse( - ) - """ - - def testErrorResponse(self): - """Test ErrorResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_esp_over_udp_settings.py b/test/test_esp_over_udp_settings.py deleted file mode 100644 index 44a1666..0000000 --- a/test/test_esp_over_udp_settings.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings - -class TestESPOverUDPSettings(unittest.TestCase): - """ESPOverUDPSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ESPOverUDPSettings: - """Test ESPOverUDPSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ESPOverUDPSettings` - """ - model = ESPOverUDPSettings() - if include_optional: - return ESPOverUDPSettings( - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ESPOverUDPSettings( - ) - """ - - def testESPOverUDPSettings(self): - """Test ESPOverUDPSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eth_range.py b/test/test_eth_range.py deleted file mode 100644 index e090676..0000000 --- a/test/test_eth_range.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eth_range import EthRange - -class TestEthRange(unittest.TestCase): - """EthRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EthRange: - """Test EthRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EthRange` - """ - model = EthRange() - if include_optional: - return EthRange( - count = 56, - mac_auto = True, - mac_incr = '2E-B0-08-29:0c:01', - mac_start = '2E-B0-08-29:0c:01', - one_mac_per_ip = True, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56 - ) - else: - return EthRange( - mac_auto = True, - ) - """ - - def testEthRange(self): - """Test EthRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eula_details.py b/test/test_eula_details.py deleted file mode 100644 index d1a8c1b..0000000 --- a/test/test_eula_details.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eula_details import EulaDetails - -class TestEulaDetails(unittest.TestCase): - """EulaDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EulaDetails: - """Test EulaDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EulaDetails` - """ - model = EulaDetails() - if include_optional: - return EulaDetails( - accepted = True, - id = '', - html = '', - text = '' - ) - else: - return EulaDetails( - accepted = True, - ) - """ - - def testEulaDetails(self): - """Test EulaDetails""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_eula_summary.py b/test/test_eula_summary.py deleted file mode 100644 index 29bf48b..0000000 --- a/test/test_eula_summary.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.eula_summary import EulaSummary - -class TestEulaSummary(unittest.TestCase): - """EulaSummary unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EulaSummary: - """Test EulaSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EulaSummary` - """ - model = EulaSummary() - if include_optional: - return EulaSummary( - accepted = True, - id = '' - ) - else: - return EulaSummary( - accepted = True, - ) - """ - - def testEulaSummary(self): - """Test EulaSummary""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange.py b/test/test_exchange.py deleted file mode 100644 index fc42292..0000000 --- a/test/test_exchange.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange import Exchange - -class TestExchange(unittest.TestCase): - """Exchange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Exchange: - """Test Exchange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Exchange` - """ - model = Exchange() - if include_optional: - return Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '' - ) - else: - return Exchange( - id = '', - ) - """ - - def testExchange(self): - """Test Exchange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange_order.py b/test/test_exchange_order.py deleted file mode 100644 index 60401d0..0000000 --- a/test/test_exchange_order.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange_order import ExchangeOrder - -class TestExchangeOrder(unittest.TestCase): - """ExchangeOrder unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExchangeOrder: - """Test ExchangeOrder - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExchangeOrder` - """ - model = ExchangeOrder() - if include_optional: - return ExchangeOrder( - exchange_id = '', - exchange_idx = 56 - ) - else: - return ExchangeOrder( - ) - """ - - def testExchangeOrder(self): - """Test ExchangeOrder""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_exchange_payload.py b/test/test_exchange_payload.py deleted file mode 100644 index 6547c53..0000000 --- a/test/test_exchange_payload.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.exchange_payload import ExchangePayload - -class TestExchangePayload(unittest.TestCase): - """ExchangePayload unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExchangePayload: - """Test ExchangePayload - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExchangePayload` - """ - model = ExchangePayload() - if include_optional: - return ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==' - ) - else: - return ExchangePayload( - ) - """ - - def testExchangePayload(self): - """Test ExchangePayload""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space.py b/test/test_expected_disk_space.py deleted file mode 100644 index de7986f..0000000 --- a/test/test_expected_disk_space.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space import ExpectedDiskSpace - -class TestExpectedDiskSpace(unittest.TestCase): - """ExpectedDiskSpace unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpace: - """Test ExpectedDiskSpace - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpace` - """ - model = ExpectedDiskSpace() - if include_optional: - return ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ) - ) - else: - return ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), - ) - """ - - def testExpectedDiskSpace(self): - """Test ExpectedDiskSpace""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_message.py b/test/test_expected_disk_space_message.py deleted file mode 100644 index 54fb84d..0000000 --- a/test/test_expected_disk_space_message.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_message import ExpectedDiskSpaceMessage - -class TestExpectedDiskSpaceMessage(unittest.TestCase): - """ExpectedDiskSpaceMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpaceMessage: - """Test ExpectedDiskSpaceMessage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpaceMessage` - """ - model = ExpectedDiskSpaceMessage() - if include_optional: - return ExpectedDiskSpaceMessage( - per_minute = '', - per_second = '', - total = '' - ) - else: - return ExpectedDiskSpaceMessage( - per_minute = '', - per_second = '', - total = '', - ) - """ - - def testExpectedDiskSpaceMessage(self): - """Test ExpectedDiskSpaceMessage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_pretty_size.py b/test/test_expected_disk_space_pretty_size.py deleted file mode 100644 index fb5c6cf..0000000 --- a/test/test_expected_disk_space_pretty_size.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_pretty_size import ExpectedDiskSpacePrettySize - -class TestExpectedDiskSpacePrettySize(unittest.TestCase): - """ExpectedDiskSpacePrettySize unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpacePrettySize: - """Test ExpectedDiskSpacePrettySize - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpacePrettySize` - """ - model = ExpectedDiskSpacePrettySize() - if include_optional: - return ExpectedDiskSpacePrettySize( - per_minute = '', - per_second = '', - total = '' - ) - else: - return ExpectedDiskSpacePrettySize( - per_minute = '', - per_second = '', - total = '', - ) - """ - - def testExpectedDiskSpacePrettySize(self): - """Test ExpectedDiskSpacePrettySize""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_expected_disk_space_size.py b/test/test_expected_disk_space_size.py deleted file mode 100644 index 3bd9b3d..0000000 --- a/test/test_expected_disk_space_size.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.expected_disk_space_size import ExpectedDiskSpaceSize - -class TestExpectedDiskSpaceSize(unittest.TestCase): - """ExpectedDiskSpaceSize unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExpectedDiskSpaceSize: - """Test ExpectedDiskSpaceSize - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExpectedDiskSpaceSize` - """ - model = ExpectedDiskSpaceSize() - if include_optional: - return ExpectedDiskSpaceSize( - per_minute = 56, - per_second = 56, - total = 56 - ) - else: - return ExpectedDiskSpaceSize( - per_minute = 56, - per_second = 56, - total = 56, - ) - """ - - def testExpectedDiskSpaceSize(self): - """Test ExpectedDiskSpaceSize""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_all_operation.py b/test/test_export_all_operation.py deleted file mode 100644 index 04c8641..0000000 --- a/test/test_export_all_operation.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_all_operation import ExportAllOperation - -class TestExportAllOperation(unittest.TestCase): - """ExportAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportAllOperation: - """Test ExportAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportAllOperation` - """ - model = ExportAllOperation() - if include_optional: - return ExportAllOperation( - config_ids = [ - cyperf.models.config_id.ConfigId( - id = '', ) - ] - ) - else: - return ExportAllOperation( - ) - """ - - def testExportAllOperation(self): - """Test ExportAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_apps_operation_input.py b/test/test_export_apps_operation_input.py deleted file mode 100644 index 6ebdc1c..0000000 --- a/test/test_export_apps_operation_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_apps_operation_input import ExportAppsOperationInput - -class TestExportAppsOperationInput(unittest.TestCase): - """ExportAppsOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportAppsOperationInput: - """Test ExportAppsOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportAppsOperationInput` - """ - model = ExportAppsOperationInput() - if include_optional: - return ExportAppsOperationInput( - app_ids = [ - cyperf.models.app_id.AppId( - id = '', ) - ] - ) - else: - return ExportAppsOperationInput( - ) - """ - - def testExportAppsOperationInput(self): - """Test ExportAppsOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_files_operation_input.py b/test/test_export_files_operation_input.py deleted file mode 100644 index 990561f..0000000 --- a/test/test_export_files_operation_input.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_files_operation_input import ExportFilesOperationInput - -class TestExportFilesOperationInput(unittest.TestCase): - """ExportFilesOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportFilesOperationInput: - """Test ExportFilesOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportFilesOperationInput` - """ - model = ExportFilesOperationInput() - if include_optional: - return ExportFilesOperationInput( - export_files_requests_by_agent = { - 'key' : [ - cyperf.models.export_files_request.ExportFilesRequest( - agent_id = '', - required_file_types = cyperf.models.required_file_types.RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True, ), - upload_location = '', ) - ] - }, - timeout = 56 - ) - else: - return ExportFilesOperationInput( - ) - """ - - def testExportFilesOperationInput(self): - """Test ExportFilesOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_files_request.py b/test/test_export_files_request.py deleted file mode 100644 index 47787c8..0000000 --- a/test/test_export_files_request.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_files_request import ExportFilesRequest - -class TestExportFilesRequest(unittest.TestCase): - """ExportFilesRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportFilesRequest: - """Test ExportFilesRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportFilesRequest` - """ - model = ExportFilesRequest() - if include_optional: - return ExportFilesRequest( - agent_id = '', - required_file_types = cyperf.models.required_file_types.RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True, ), - upload_location = '' - ) - else: - return ExportFilesRequest( - ) - """ - - def testExportFilesRequest(self): - """Test ExportFilesRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_export_package_operation.py b/test/test_export_package_operation.py deleted file mode 100644 index eb3302a..0000000 --- a/test/test_export_package_operation.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.export_package_operation import ExportPackageOperation - -class TestExportPackageOperation(unittest.TestCase): - """ExportPackageOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportPackageOperation: - """Test ExportPackageOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportPackageOperation` - """ - model = ExportPackageOperation() - if include_optional: - return ExportPackageOperation( - configs = True, - external_nats_brokers = True, - keycloak = True, - license_servers = True, - results = True - ) - else: - return ExportPackageOperation( - ) - """ - - def testExportPackageOperation(self): - """Test ExportPackageOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_external_resource_info.py b/test/test_external_resource_info.py deleted file mode 100644 index 5acd989..0000000 --- a/test/test_external_resource_info.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.external_resource_info import ExternalResourceInfo - -class TestExternalResourceInfo(unittest.TestCase): - """ExternalResourceInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExternalResourceInfo: - """Test ExternalResourceInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExternalResourceInfo` - """ - model = ExternalResourceInfo() - if include_optional: - return ExternalResourceInfo( - external_resource_url = '' - ) - else: - return ExternalResourceInfo( - ) - """ - - def testExternalResourceInfo(self): - """Test ExternalResourceInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_f5_encapsulation.py b/test/test_f5_encapsulation.py deleted file mode 100644 index 21c0677..0000000 --- a/test/test_f5_encapsulation.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.f5_encapsulation import F5Encapsulation - -class TestF5Encapsulation(unittest.TestCase): - """F5Encapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> F5Encapsulation: - """Test F5Encapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `F5Encapsulation` - """ - model = F5Encapsulation() - if include_optional: - return F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - udp_port = 56, - ) - """ - - def testF5Encapsulation(self): - """Test F5Encapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_f5_settings.py b/test/test_f5_settings.py deleted file mode 100644 index b51b8fa..0000000 --- a/test/test_f5_settings.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.f5_settings import F5Settings - -class TestF5Settings(unittest.TestCase): - """F5Settings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> F5Settings: - """Test F5Settings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `F5Settings` - """ - model = F5Settings() - if include_optional: - return F5Settings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - f5_encapsulation = cyperf.models.f5_encapsulation.F5Encapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = null, - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return F5Settings( - ) - """ - - def testF5Settings(self): - """Test F5Settings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py deleted file mode 100644 index 282ee60..0000000 --- a/test/test_feature.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature import Feature - -class TestFeature(unittest.TestCase): - """Feature unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Feature: - """Test Feature - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Feature` - """ - model = Feature() - if include_optional: - return Feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ) - ) - else: - return Feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), - ) - """ - - def testFeature(self): - """Test Feature""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature_reservation.py b/test/test_feature_reservation.py deleted file mode 100644 index c888b82..0000000 --- a/test/test_feature_reservation.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature_reservation import FeatureReservation - -class TestFeatureReservation(unittest.TestCase): - """FeatureReservation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FeatureReservation: - """Test FeatureReservation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FeatureReservation` - """ - model = FeatureReservation() - if include_optional: - return FeatureReservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56 - ) - else: - return FeatureReservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, - ) - """ - - def testFeatureReservation(self): - """Test FeatureReservation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_feature_reservation_reserve.py b/test/test_feature_reservation_reserve.py deleted file mode 100644 index 3e706b6..0000000 --- a/test/test_feature_reservation_reserve.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.feature_reservation_reserve import FeatureReservationReserve - -class TestFeatureReservationReserve(unittest.TestCase): - """FeatureReservationReserve unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FeatureReservationReserve: - """Test FeatureReservationReserve - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FeatureReservationReserve` - """ - model = FeatureReservationReserve() - if include_optional: - return FeatureReservationReserve( - count_to_reserve = 56, - duration = 56, - feature_name = '' - ) - else: - return FeatureReservationReserve( - count_to_reserve = 56, - duration = 56, - feature_name = '', - ) - """ - - def testFeatureReservationReserve(self): - """Test FeatureReservationReserve""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_file_metadata.py b/test/test_file_metadata.py deleted file mode 100644 index 69239f4..0000000 --- a/test/test_file_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.file_metadata import FileMetadata - -class TestFileMetadata(unittest.TestCase): - """FileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FileMetadata: - """Test FileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FileMetadata` - """ - model = FileMetadata() - if include_optional: - return FileMetadata( - default = True, - user_visible = True - ) - else: - return FileMetadata( - ) - """ - - def testFileMetadata(self): - """Test FileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_file_value.py b/test/test_file_value.py deleted file mode 100644 index 9ba8448..0000000 --- a/test/test_file_value.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.file_value import FileValue - -class TestFileValue(unittest.TestCase): - """FileValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FileValue: - """Test FileValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FileValue` - """ - model = FileValue() - if include_optional: - return FileValue( - file_name = '', - md5_sum = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '' - ) - else: - return FileValue( - ) - """ - - def testFileValue(self): - """Test FileValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_filter.py b/test/test_filter.py deleted file mode 100644 index 648f91e..0000000 --- a/test/test_filter.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.filter import Filter - -class TestFilter(unittest.TestCase): - """Filter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Filter: - """Test Filter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Filter` - """ - model = Filter() - if include_optional: - return Filter( - name = '', - value = '' - ) - else: - return Filter( - ) - """ - - def testFilter(self): - """Test Filter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_filtered_stat.py b/test/test_filtered_stat.py deleted file mode 100644 index 869cf3f..0000000 --- a/test/test_filtered_stat.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.filtered_stat import FilteredStat - -class TestFilteredStat(unittest.TestCase): - """FilteredStat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FilteredStat: - """Test FilteredStat - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FilteredStat` - """ - model = FilteredStat() - if include_optional: - return FilteredStat( - filters = [ - cyperf.models.filter.Filter( - name = '', - value = '', ) - ], - name = '' - ) - else: - return FilteredStat( - ) - """ - - def testFilteredStat(self): - """Test FilteredStat""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_find_param_matches_operation.py b/test/test_find_param_matches_operation.py deleted file mode 100644 index 69cd9ba..0000000 --- a/test/test_find_param_matches_operation.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.find_param_matches_operation import FindParamMatchesOperation - -class TestFindParamMatchesOperation(unittest.TestCase): - """FindParamMatchesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FindParamMatchesOperation: - """Test FindParamMatchesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FindParamMatchesOperation` - """ - model = FindParamMatchesOperation() - if include_optional: - return FindParamMatchesOperation( - actions = [ - cyperf.models.action_input_find_param.ActionInputFindParam( - captures = [ - cyperf.models.capture_input_find_param.CaptureInputFindParam( - capture_id = '', - flows = [ - cyperf.models.app_flow_input_find_param.AppFlowInputFindParam( - app_flow_desc = cyperf.models.app_flow_desc.AppFlowDesc( - dst_address = 'YQ==', - dst_port = 56, - http_host = '', - src_address = 'YQ==', - src_port = 56, ), - app_flow_id = '', - exchange_names = [ - '' - ], - exchanges = [ - '' - ], ) - ], ) - ], - name = '', ) - ], - app_id = '', - match_location = [ - '' - ], - pattern = '' - ) - else: - return FindParamMatchesOperation( - ) - """ - - def testFindParamMatchesOperation(self): - """Test FindParamMatchesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fortinet_encapsulation.py b/test/test_fortinet_encapsulation.py deleted file mode 100644 index 652cc5c..0000000 --- a/test/test_fortinet_encapsulation.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fortinet_encapsulation import FortinetEncapsulation - -class TestFortinetEncapsulation(unittest.TestCase): - """FortinetEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FortinetEncapsulation: - """Test FortinetEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FortinetEncapsulation` - """ - model = FortinetEncapsulation() - if include_optional: - return FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = cyperf.models.dtls_settings.DTLSSettings( - tls_client_profile = null, - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - udp_port = 56, - ) - """ - - def testFortinetEncapsulation(self): - """Test FortinetEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fortinet_settings.py b/test/test_fortinet_settings.py deleted file mode 100644 index ce0b7bb..0000000 --- a/test/test_fortinet_settings.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fortinet_settings import FortinetSettings - -class TestFortinetSettings(unittest.TestCase): - """FortinetSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FortinetSettings: - """Test FortinetSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FortinetSettings` - """ - model = FortinetSettings() - if include_optional: - return FortinetSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - fortinet_encapsulation = cyperf.models.fortinet_encapsulation.FortinetEncapsulation( - encapsulation_mode = 'PPP_OVER_DTLS', - ppp_over_dtls_enabled = True, - ppp_over_dtls_settings = null, - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - vpn_gateway = '::' - ) - else: - return FortinetSettings( - ) - """ - - def testFortinetSettings(self): - """Test FortinetSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fulfillment_request.py b/test/test_fulfillment_request.py deleted file mode 100644 index f60d103..0000000 --- a/test/test_fulfillment_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.fulfillment_request import FulfillmentRequest - -class TestFulfillmentRequest(unittest.TestCase): - """FulfillmentRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FulfillmentRequest: - """Test FulfillmentRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FulfillmentRequest` - """ - model = FulfillmentRequest() - if include_optional: - return FulfillmentRequest( - activation_code = '', - quantity = 56 - ) - else: - return FulfillmentRequest( - activation_code = '', - quantity = 56, - ) - """ - - def testFulfillmentRequest(self): - """Test FulfillmentRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_all_operation.py b/test/test_generate_all_operation.py deleted file mode 100644 index 1805517..0000000 --- a/test/test_generate_all_operation.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_all_operation import GenerateAllOperation - -class TestGenerateAllOperation(unittest.TestCase): - """GenerateAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerateAllOperation: - """Test GenerateAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenerateAllOperation` - """ - model = GenerateAllOperation() - if include_optional: - return GenerateAllOperation( - timezone_offset = 56 - ) - else: - return GenerateAllOperation( - ) - """ - - def testGenerateAllOperation(self): - """Test GenerateAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_csv_reports_operation.py b/test/test_generate_csv_reports_operation.py deleted file mode 100644 index 81f1f97..0000000 --- a/test/test_generate_csv_reports_operation.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_csv_reports_operation import GenerateCSVReportsOperation - -class TestGenerateCSVReportsOperation(unittest.TestCase): - """GenerateCSVReportsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerateCSVReportsOperation: - """Test GenerateCSVReportsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenerateCSVReportsOperation` - """ - model = GenerateCSVReportsOperation() - if include_optional: - return GenerateCSVReportsOperation( - force_generate = True, - var_from = '', - interval = '', - stats = [ - cyperf.models.filtered_stat.FilteredStat( - filters = [ - cyperf.models.filter.Filter( - name = '', - value = '', ) - ], - name = '', ) - ], - to = '', - use_relative_time = True - ) - else: - return GenerateCSVReportsOperation( - ) - """ - - def testGenerateCSVReportsOperation(self): - """Test GenerateCSVReportsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generate_pdf_report_operation.py b/test/test_generate_pdf_report_operation.py deleted file mode 100644 index d78459c..0000000 --- a/test/test_generate_pdf_report_operation.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generate_pdf_report_operation import GeneratePDFReportOperation - -class TestGeneratePDFReportOperation(unittest.TestCase): - """GeneratePDFReportOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GeneratePDFReportOperation: - """Test GeneratePDFReportOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GeneratePDFReportOperation` - """ - model = GeneratePDFReportOperation() - if include_optional: - return GeneratePDFReportOperation( - force_generate = True, - timezone_offset = 56 - ) - else: - return GeneratePDFReportOperation( - ) - """ - - def testGeneratePDFReportOperation(self): - """Test GeneratePDFReportOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_generic_file.py b/test/test_generic_file.py deleted file mode 100644 index c4b10c6..0000000 --- a/test/test_generic_file.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.generic_file import GenericFile - -class TestGenericFile(unittest.TestCase): - """GenericFile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenericFile: - """Test GenericFile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenericFile` - """ - model = GenericFile() - if include_optional: - return GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '' - ) - else: - return GenericFile( - ) - """ - - def testGenericFile(self): - """Test GenericFile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agent_tags200_response.py b/test/test_get_agent_tags200_response.py deleted file mode 100644 index f5ed198..0000000 --- a/test/test_get_agent_tags200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agent_tags200_response import GetAgentTags200Response - -class TestGetAgentTags200Response(unittest.TestCase): - """GetAgentTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentTags200Response: - """Test GetAgentTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentTags200Response` - """ - model = GetAgentTags200Response() - if include_optional: - return GetAgentTags200Response( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentTags200Response( - ) - """ - - def testGetAgentTags200Response(self): - """Test GetAgentTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agent_tags200_response_one_of.py b/test/test_get_agent_tags200_response_one_of.py deleted file mode 100644 index d0e2baa..0000000 --- a/test/test_get_agent_tags200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agent_tags200_response_one_of import GetAgentTags200ResponseOneOf - -class TestGetAgentTags200ResponseOneOf(unittest.TestCase): - """GetAgentTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentTags200ResponseOneOf: - """Test GetAgentTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentTags200ResponseOneOf` - """ - model = GetAgentTags200ResponseOneOf() - if include_optional: - return GetAgentTags200ResponseOneOf( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentTags200ResponseOneOf( - ) - """ - - def testGetAgentTags200ResponseOneOf(self): - """Test GetAgentTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents200_response.py b/test/test_get_agents200_response.py deleted file mode 100644 index 1e3789a..0000000 --- a/test/test_get_agents200_response.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents200_response import GetAgents200Response - -class TestGetAgents200Response(unittest.TestCase): - """GetAgents200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgents200Response: - """Test GetAgents200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgents200Response` - """ - model = GetAgents200Response() - if include_optional: - return GetAgents200Response( - data = [ - cyperf.models.agent.Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = , - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetAgents200Response( - ) - """ - - def testGetAgents200Response(self): - """Test GetAgents200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents200_response_one_of.py b/test/test_get_agents200_response_one_of.py deleted file mode 100644 index 9118001..0000000 --- a/test/test_get_agents200_response_one_of.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf - -class TestGetAgents200ResponseOneOf(unittest.TestCase): - """GetAgents200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgents200ResponseOneOf: - """Test GetAgents200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgents200ResponseOneOf` - """ - model = GetAgents200ResponseOneOf() - if include_optional: - return GetAgents200ResponseOneOf( - data = [ - cyperf.models.agent.Agent( - agent_tags = [ - '' - ], - ip = '', - interfaces = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - last_update = 56, - reservation_id = '', - selected_env = cyperf.models.selected_env.SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - mtu = 56, - mac = '', - name = '', ) - ], - token = '', ), - selection_status = '', - session_name = '', - status = '', - configured_proxy = '', - cpu_info = [ - cyperf.models.agent_cpu_info.AgentCPUInfo( - cpu_core_count = 56, - cpu_freq_mhz = 1.337, - family = '', - model = '', - model_name = '', - vendor_id = '', ) - ], - dpdk_enabled = True, - features = cyperf.models.agent_features.AgentFeatures( - debian_os = '', - dpdk_usage = '', - update = '', ), - hostname = '', - id = '', - memory_mb = 1.337, - mgmt_interface = , - ntp_info = cyperf.models.ntp_info.NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '', ), - offline = True, - owner = '', - owner_id = '', - package_version_status = '', - requires_updating = True, - system_info = cyperf.models.system_info.SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetAgents200ResponseOneOf( - ) - """ - - def testGetAgents200ResponseOneOf(self): - """Test GetAgents200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents_tags200_response.py b/test/test_get_agents_tags200_response.py deleted file mode 100644 index 129ed22..0000000 --- a/test/test_get_agents_tags200_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response - -class TestGetAgentsTags200Response(unittest.TestCase): - """GetAgentsTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentsTags200Response: - """Test GetAgentsTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentsTags200Response` - """ - model = GetAgentsTags200Response() - if include_optional: - return GetAgentsTags200Response( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentsTags200Response( - ) - """ - - def testGetAgentsTags200Response(self): - """Test GetAgentsTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_agents_tags200_response_one_of.py b/test/test_get_agents_tags200_response_one_of.py deleted file mode 100644 index 6ca13d5..0000000 --- a/test/test_get_agents_tags200_response_one_of.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf - -class TestGetAgentsTags200ResponseOneOf(unittest.TestCase): - """GetAgentsTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAgentsTags200ResponseOneOf: - """Test GetAgentsTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAgentsTags200ResponseOneOf` - """ - model = GetAgentsTags200ResponseOneOf() - if include_optional: - return GetAgentsTags200ResponseOneOf( - data = [ - cyperf.models.agents_group.AgentsGroup( - agents = [ - '' - ], - available = True, - name = '', - online = True, ) - ], - total_count = 56 - ) - else: - return GetAgentsTags200ResponseOneOf( - ) - """ - - def testGetAgentsTags200ResponseOneOf(self): - """Test GetAgentsTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_application_types200_response.py b/test/test_get_application_types200_response.py deleted file mode 100644 index f374f82..0000000 --- a/test/test_get_application_types200_response.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_application_types200_response import GetApplicationTypes200Response - -class TestGetApplicationTypes200Response(unittest.TestCase): - """GetApplicationTypes200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApplicationTypes200Response: - """Test GetApplicationTypes200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApplicationTypes200Response` - """ - model = GetApplicationTypes200Response() - if include_optional: - return GetApplicationTypes200Response( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetApplicationTypes200Response( - ) - """ - - def testGetApplicationTypes200Response(self): - """Test GetApplicationTypes200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_application_types200_response_one_of.py b/test/test_get_application_types200_response_one_of.py deleted file mode 100644 index a66b092..0000000 --- a/test/test_get_application_types200_response_one_of.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_application_types200_response_one_of import GetApplicationTypes200ResponseOneOf - -class TestGetApplicationTypes200ResponseOneOf(unittest.TestCase): - """GetApplicationTypes200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApplicationTypes200ResponseOneOf: - """Test GetApplicationTypes200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApplicationTypes200ResponseOneOf` - """ - model = GetApplicationTypes200ResponseOneOf() - if include_optional: - return GetApplicationTypes200ResponseOneOf( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - severity = '', - strikes_count = 56, ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetApplicationTypes200ResponseOneOf( - ) - """ - - def testGetApplicationTypes200ResponseOneOf(self): - """Test GetApplicationTypes200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_apps200_response.py b/test/test_get_apps200_response.py deleted file mode 100644 index 2effd05..0000000 --- a/test/test_get_apps200_response.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_apps200_response import GetApps200Response - -class TestGetApps200Response(unittest.TestCase): - """GetApps200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApps200Response: - """Test GetApps200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApps200Response` - """ - model = GetApps200Response() - if include_optional: - return GetApps200Response( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetApps200Response( - ) - """ - - def testGetApps200Response(self): - """Test GetApps200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_apps200_response_one_of.py b/test/test_get_apps200_response_one_of.py deleted file mode 100644 index e462ac4..0000000 --- a/test/test_get_apps200_response_one_of.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_apps200_response_one_of import GetApps200ResponseOneOf - -class TestGetApps200ResponseOneOf(unittest.TestCase): - """GetApps200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetApps200ResponseOneOf: - """Test GetApps200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetApps200ResponseOneOf` - """ - model = GetApps200ResponseOneOf() - if include_optional: - return GetApps200ResponseOneOf( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - id = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', ) - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetApps200ResponseOneOf( - ) - """ - - def testGetApps200ResponseOneOf(self): - """Test GetApps200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_apps_operation.py b/test/test_get_apps_operation.py deleted file mode 100644 index 96e849f..0000000 --- a/test/test_get_apps_operation.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_apps_operation import GetAppsOperation - -class TestGetAppsOperation(unittest.TestCase): - """GetAppsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAppsOperation: - """Test GetAppsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAppsOperation` - """ - model = GetAppsOperation() - if include_optional: - return GetAppsOperation( - categories = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ], - filter_mode = '', - search_col = [ - '' - ], - search_val = [ - '' - ], - skip = '', - sort = [ - cyperf.models.sort_body_field.SortBodyField( - field = '', - order = '', ) - ], - take = '' - ) - else: - return GetAppsOperation( - ) - """ - - def testGetAppsOperation(self): - """Test GetAppsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_async_operation_result200_response.py b/test/test_get_async_operation_result200_response.py deleted file mode 100644 index ed8812b..0000000 --- a/test/test_get_async_operation_result200_response.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response - -class TestGetAsyncOperationResult200Response(unittest.TestCase): - """GetAsyncOperationResult200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAsyncOperationResult200Response: - """Test GetAsyncOperationResult200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAsyncOperationResult200Response` - """ - model = GetAsyncOperationResult200Response() - if include_optional: - return GetAsyncOperationResult200Response( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56 - ) - else: - return GetAsyncOperationResult200Response( - activation_codes = [ - cyperf.models.activation_code_info.activation-code-info( - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, ) - ], - entitlement_code = '', - activation_code = '', - available_quantity = 56, - description = '', - product = '', - total_quantity = 56, - available_count = 56, - consumers = [ - cyperf.models.counted_feature_consumer.counted-feature-consumer( - app = '', - client = '', - consumed_count = 56, - reserved_count = 56, - reserved_remaining_duration = 56, - user = '', ) - ], - feature_name = '', - installed_count = 56, - ) - """ - - def testGetAsyncOperationResult200Response(self): - """Test GetAsyncOperationResult200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks200_response.py b/test/test_get_attacks200_response.py deleted file mode 100644 index 93c4d50..0000000 --- a/test/test_get_attacks200_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks200_response import GetAttacks200Response - -class TestGetAttacks200Response(unittest.TestCase): - """GetAttacks200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacks200Response: - """Test GetAttacks200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacks200Response` - """ - model = GetAttacks200Response() - if include_optional: - return GetAttacks200Response( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetAttacks200Response( - ) - """ - - def testGetAttacks200Response(self): - """Test GetAttacks200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks200_response_one_of.py b/test/test_get_attacks200_response_one_of.py deleted file mode 100644 index 8f460a2..0000000 --- a/test/test_get_attacks200_response_one_of.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks200_response_one_of import GetAttacks200ResponseOneOf - -class TestGetAttacks200ResponseOneOf(unittest.TestCase): - """GetAttacks200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacks200ResponseOneOf: - """Test GetAttacks200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacks200ResponseOneOf` - """ - model = GetAttacks200ResponseOneOf() - if include_optional: - return GetAttacks200ResponseOneOf( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetAttacks200ResponseOneOf( - ) - """ - - def testGetAttacks200ResponseOneOf(self): - """Test GetAttacks200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_attacks_operation.py b/test/test_get_attacks_operation.py deleted file mode 100644 index bcf1f0d..0000000 --- a/test/test_get_attacks_operation.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_attacks_operation import GetAttacksOperation - -class TestGetAttacksOperation(unittest.TestCase): - """GetAttacksOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAttacksOperation: - """Test GetAttacksOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAttacksOperation` - """ - model = GetAttacksOperation() - if include_optional: - return GetAttacksOperation( - categories = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ], - filter_mode = '', - search_col = [ - '' - ], - search_val = [ - '' - ], - skip = '', - sort = [ - cyperf.models.sort_body_field.SortBodyField( - field = '', - order = '', ) - ], - take = '' - ) - else: - return GetAttacksOperation( - ) - """ - - def testGetAttacksOperation(self): - """Test GetAttacksOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_auth_profiles200_response.py b/test/test_get_auth_profiles200_response.py deleted file mode 100644 index eef82e1..0000000 --- a/test/test_get_auth_profiles200_response.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_auth_profiles200_response import GetAuthProfiles200Response - -class TestGetAuthProfiles200Response(unittest.TestCase): - """GetAuthProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAuthProfiles200Response: - """Test GetAuthProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAuthProfiles200Response` - """ - model = GetAuthProfiles200Response() - if include_optional: - return GetAuthProfiles200Response( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetAuthProfiles200Response( - ) - """ - - def testGetAuthProfiles200Response(self): - """Test GetAuthProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_auth_profiles200_response_one_of.py b/test/test_get_auth_profiles200_response_one_of.py deleted file mode 100644 index 5ddf5b1..0000000 --- a/test/test_get_auth_profiles200_response_one_of.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_auth_profiles200_response_one_of import GetAuthProfiles200ResponseOneOf - -class TestGetAuthProfiles200ResponseOneOf(unittest.TestCase): - """GetAuthProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAuthProfiles200ResponseOneOf: - """Test GetAuthProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAuthProfiles200ResponseOneOf` - """ - model = GetAuthProfiles200ResponseOneOf() - if include_optional: - return GetAuthProfiles200ResponseOneOf( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.metadata.Metadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetAuthProfiles200ResponseOneOf( - ) - """ - - def testGetAuthProfiles200ResponseOneOf(self): - """Test GetAuthProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_brokers200_response.py b/test/test_get_brokers200_response.py deleted file mode 100644 index 55b2cb3..0000000 --- a/test/test_get_brokers200_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_brokers200_response import GetBrokers200Response - -class TestGetBrokers200Response(unittest.TestCase): - """GetBrokers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetBrokers200Response: - """Test GetBrokers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetBrokers200Response` - """ - model = GetBrokers200Response() - if include_optional: - return GetBrokers200Response( - data = [ - cyperf.models.broker.Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '', ) - ], - total_count = 56 - ) - else: - return GetBrokers200Response( - ) - """ - - def testGetBrokers200Response(self): - """Test GetBrokers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_brokers200_response_one_of.py b/test/test_get_brokers200_response_one_of.py deleted file mode 100644 index ba56136..0000000 --- a/test/test_get_brokers200_response_one_of.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf - -class TestGetBrokers200ResponseOneOf(unittest.TestCase): - """GetBrokers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetBrokers200ResponseOneOf: - """Test GetBrokers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetBrokers200ResponseOneOf` - """ - model = GetBrokers200ResponseOneOf() - if include_optional: - return GetBrokers200ResponseOneOf( - data = [ - cyperf.models.broker.Broker( - connection_status = '', - failure_reason = '', - fingerprint = '', - host = '', - host_name = '', - id = '', - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - user = '', ) - ], - total_count = 56 - ) - else: - return GetBrokers200ResponseOneOf( - ) - """ - - def testGetBrokers200ResponseOneOf(self): - """Test GetBrokers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_categories_operation.py b/test/test_get_categories_operation.py deleted file mode 100644 index da2d217..0000000 --- a/test/test_get_categories_operation.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_categories_operation import GetCategoriesOperation - -class TestGetCategoriesOperation(unittest.TestCase): - """GetCategoriesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCategoriesOperation: - """Test GetCategoriesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCategoriesOperation` - """ - model = GetCategoriesOperation() - if include_optional: - return GetCategoriesOperation( - filter = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ] - ) - else: - return GetCategoriesOperation( - ) - """ - - def testGetCategoriesOperation(self): - """Test GetCategoriesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_certificates200_response.py b/test/test_get_certificates200_response.py deleted file mode 100644 index 46943bd..0000000 --- a/test/test_get_certificates200_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_certificates200_response import GetCertificates200Response - -class TestGetCertificates200Response(unittest.TestCase): - """GetCertificates200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCertificates200Response: - """Test GetCertificates200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCertificates200Response` - """ - model = GetCertificates200Response() - if include_optional: - return GetCertificates200Response( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetCertificates200Response( - ) - """ - - def testGetCertificates200Response(self): - """Test GetCertificates200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_certificates200_response_one_of.py b/test/test_get_certificates200_response_one_of.py deleted file mode 100644 index 4235d39..0000000 --- a/test/test_get_certificates200_response_one_of.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_certificates200_response_one_of import GetCertificates200ResponseOneOf - -class TestGetCertificates200ResponseOneOf(unittest.TestCase): - """GetCertificates200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCertificates200ResponseOneOf: - """Test GetCertificates200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCertificates200ResponseOneOf` - """ - model = GetCertificates200ResponseOneOf() - if include_optional: - return GetCertificates200ResponseOneOf( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetCertificates200ResponseOneOf( - ) - """ - - def testGetCertificates200ResponseOneOf(self): - """Test GetCertificates200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categorie_subcategories200_response.py b/test/test_get_config_categorie_subcategories200_response.py deleted file mode 100644 index cea704c..0000000 --- a/test/test_get_config_categorie_subcategories200_response.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response - -class TestGetConfigCategorieSubcategories200Response(unittest.TestCase): - """GetConfigCategorieSubcategories200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategorieSubcategories200Response: - """Test GetConfigCategorieSubcategories200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategorieSubcategories200Response` - """ - model = GetConfigCategorieSubcategories200Response() - if include_optional: - return GetConfigCategorieSubcategories200Response( - data = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ], - total_count = 56 - ) - else: - return GetConfigCategorieSubcategories200Response( - ) - """ - - def testGetConfigCategorieSubcategories200Response(self): - """Test GetConfigCategorieSubcategories200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categorie_subcategories200_response_one_of.py b/test/test_get_config_categorie_subcategories200_response_one_of.py deleted file mode 100644 index bc9b584..0000000 --- a/test/test_get_config_categorie_subcategories200_response_one_of.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf - -class TestGetConfigCategorieSubcategories200ResponseOneOf(unittest.TestCase): - """GetConfigCategorieSubcategories200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategorieSubcategories200ResponseOneOf: - """Test GetConfigCategorieSubcategories200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategorieSubcategories200ResponseOneOf` - """ - model = GetConfigCategorieSubcategories200ResponseOneOf() - if include_optional: - return GetConfigCategorieSubcategories200ResponseOneOf( - data = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ], - total_count = 56 - ) - else: - return GetConfigCategorieSubcategories200ResponseOneOf( - ) - """ - - def testGetConfigCategorieSubcategories200ResponseOneOf(self): - """Test GetConfigCategorieSubcategories200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categories200_response.py b/test/test_get_config_categories200_response.py deleted file mode 100644 index 50716c1..0000000 --- a/test/test_get_config_categories200_response.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categories200_response import GetConfigCategories200Response - -class TestGetConfigCategories200Response(unittest.TestCase): - """GetConfigCategories200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategories200Response: - """Test GetConfigCategories200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategories200Response` - """ - model = GetConfigCategories200Response() - if include_optional: - return GetConfigCategories200Response( - data = [ - cyperf.models.config_category.ConfigCategory( - display_name = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - subcategories = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetConfigCategories200Response( - ) - """ - - def testGetConfigCategories200Response(self): - """Test GetConfigCategories200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_config_categories200_response_one_of.py b/test/test_get_config_categories200_response_one_of.py deleted file mode 100644 index e9cbfe6..0000000 --- a/test/test_get_config_categories200_response_one_of.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf - -class TestGetConfigCategories200ResponseOneOf(unittest.TestCase): - """GetConfigCategories200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigCategories200ResponseOneOf: - """Test GetConfigCategories200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigCategories200ResponseOneOf` - """ - model = GetConfigCategories200ResponseOneOf() - if include_optional: - return GetConfigCategories200ResponseOneOf( - data = [ - cyperf.models.config_category.ConfigCategory( - display_name = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - subcategories = [ - cyperf.models.config_sub_category.ConfigSubCategory( - display_name = '', ) - ], ) - ], - total_count = 56 - ) - else: - return GetConfigCategories200ResponseOneOf( - ) - """ - - def testGetConfigCategories200ResponseOneOf(self): - """Test GetConfigCategories200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_configs200_response.py b/test/test_get_configs200_response.py deleted file mode 100644 index c0f4ea2..0000000 --- a/test/test_get_configs200_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_configs200_response import GetConfigs200Response - -class TestGetConfigs200Response(unittest.TestCase): - """GetConfigs200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigs200Response: - """Test GetConfigs200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigs200Response` - """ - model = GetConfigs200Response() - if include_optional: - return GetConfigs200Response( - data = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ], - total_count = 56 - ) - else: - return GetConfigs200Response( - ) - """ - - def testGetConfigs200Response(self): - """Test GetConfigs200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_configs200_response_one_of.py b/test/test_get_configs200_response_one_of.py deleted file mode 100644 index cd8ed17..0000000 --- a/test/test_get_configs200_response_one_of.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_configs200_response_one_of import GetConfigs200ResponseOneOf - -class TestGetConfigs200ResponseOneOf(unittest.TestCase): - """GetConfigs200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConfigs200ResponseOneOf: - """Test GetConfigs200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConfigs200ResponseOneOf` - """ - model = GetConfigs200ResponseOneOf() - if include_optional: - return GetConfigs200ResponseOneOf( - data = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ], - total_count = 56 - ) - else: - return GetConfigs200ResponseOneOf( - ) - """ - - def testGetConfigs200ResponseOneOf(self): - """Test GetConfigs200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_consumers200_response.py b/test/test_get_consumers200_response.py deleted file mode 100644 index 1e446a3..0000000 --- a/test/test_get_consumers200_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_consumers200_response import GetConsumers200Response - -class TestGetConsumers200Response(unittest.TestCase): - """GetConsumers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConsumers200Response: - """Test GetConsumers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConsumers200Response` - """ - model = GetConsumers200Response() - if include_optional: - return GetConsumers200Response( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetConsumers200Response( - ) - """ - - def testGetConsumers200Response(self): - """Test GetConsumers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_consumers200_response_one_of.py b/test/test_get_consumers200_response_one_of.py deleted file mode 100644 index 5dc5f78..0000000 --- a/test/test_get_consumers200_response_one_of.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_consumers200_response_one_of import GetConsumers200ResponseOneOf - -class TestGetConsumers200ResponseOneOf(unittest.TestCase): - """GetConsumers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetConsumers200ResponseOneOf: - """Test GetConsumers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetConsumers200ResponseOneOf` - """ - model = GetConsumers200ResponseOneOf() - if include_optional: - return GetConsumers200ResponseOneOf( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetConsumers200ResponseOneOf( - ) - """ - - def testGetConsumers200ResponseOneOf(self): - """Test GetConsumers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_controllers200_response.py b/test/test_get_controllers200_response.py deleted file mode 100644 index 8da8882..0000000 --- a/test/test_get_controllers200_response.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_controllers200_response import GetControllers200Response - -class TestGetControllers200Response(unittest.TestCase): - """GetControllers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetControllers200Response: - """Test GetControllers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetControllers200Response` - """ - model = GetControllers200Response() - if include_optional: - return GetControllers200Response( - data = [ - cyperf.models.controller.Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetControllers200Response( - ) - """ - - def testGetControllers200Response(self): - """Test GetControllers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_controllers200_response_one_of.py b/test/test_get_controllers200_response_one_of.py deleted file mode 100644 index 6d28d36..0000000 --- a/test/test_get_controllers200_response_one_of.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_controllers200_response_one_of import GetControllers200ResponseOneOf - -class TestGetControllers200ResponseOneOf(unittest.TestCase): - """GetControllers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetControllers200ResponseOneOf: - """Test GetControllers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetControllers200ResponseOneOf` - """ - model = GetControllers200ResponseOneOf() - if include_optional: - return GetControllers200ResponseOneOf( - data = [ - cyperf.models.controller.Controller( - compute_nodes = [ - cyperf.models.compute_node.ComputeNode( - aggregated_mode = True, - app_mode = cyperf.models.app_mode.AppMode( - app_id = '', - ui_app_id = '', ), - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - ports = [ - cyperf.models.port.Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '', ) - ], - serial = '', - slot_number = 56, - status = '', - type = '', ) - ], - health_details = [ - cyperf.models.health_issue.HealthIssue( - message = '', - type = '', ) - ], - healthy = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - serial = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetControllers200ResponseOneOf( - ) - """ - - def testGetControllers200ResponseOneOf(self): - """Test GetControllers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_custom_import_operations200_response.py b/test/test_get_custom_import_operations200_response.py deleted file mode 100644 index cf3c2c8..0000000 --- a/test/test_get_custom_import_operations200_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_custom_import_operations200_response import GetCustomImportOperations200Response - -class TestGetCustomImportOperations200Response(unittest.TestCase): - """GetCustomImportOperations200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCustomImportOperations200Response: - """Test GetCustomImportOperations200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCustomImportOperations200Response` - """ - model = GetCustomImportOperations200Response() - if include_optional: - return GetCustomImportOperations200Response( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetCustomImportOperations200Response( - ) - """ - - def testGetCustomImportOperations200Response(self): - """Test GetCustomImportOperations200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_custom_import_operations200_response_one_of.py b/test/test_get_custom_import_operations200_response_one_of.py deleted file mode 100644 index f3de1ab..0000000 --- a/test/test_get_custom_import_operations200_response_one_of.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_custom_import_operations200_response_one_of import GetCustomImportOperations200ResponseOneOf - -class TestGetCustomImportOperations200ResponseOneOf(unittest.TestCase): - """GetCustomImportOperations200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCustomImportOperations200ResponseOneOf: - """Test GetCustomImportOperations200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCustomImportOperations200ResponseOneOf` - """ - model = GetCustomImportOperations200ResponseOneOf() - if include_optional: - return GetCustomImportOperations200ResponseOneOf( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetCustomImportOperations200ResponseOneOf( - ) - """ - - def testGetCustomImportOperations200ResponseOneOf(self): - """Test GetCustomImportOperations200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response.py b/test/test_get_disk_usage_consumers200_response.py deleted file mode 100644 index c6be685..0000000 --- a/test/test_get_disk_usage_consumers200_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_disk_usage_consumers200_response import GetDiskUsageConsumers200Response - -class TestGetDiskUsageConsumers200Response(unittest.TestCase): - """GetDiskUsageConsumers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetDiskUsageConsumers200Response: - """Test GetDiskUsageConsumers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetDiskUsageConsumers200Response` - """ - model = GetDiskUsageConsumers200Response() - if include_optional: - return GetDiskUsageConsumers200Response( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetDiskUsageConsumers200Response( - ) - """ - - def testGetDiskUsageConsumers200Response(self): - """Test GetDiskUsageConsumers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_disk_usage_consumers200_response_one_of.py b/test/test_get_disk_usage_consumers200_response_one_of.py deleted file mode 100644 index 6c399df..0000000 --- a/test/test_get_disk_usage_consumers200_response_one_of.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_disk_usage_consumers200_response_one_of import GetDiskUsageConsumers200ResponseOneOf - -class TestGetDiskUsageConsumers200ResponseOneOf(unittest.TestCase): - """GetDiskUsageConsumers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetDiskUsageConsumers200ResponseOneOf: - """Test GetDiskUsageConsumers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetDiskUsageConsumers200ResponseOneOf` - """ - model = GetDiskUsageConsumers200ResponseOneOf() - if include_optional: - return GetDiskUsageConsumers200ResponseOneOf( - data = [ - cyperf.models.consumer.Consumer( - id = '', - pretty_size = '', - size = 56, ) - ], - total_count = 56 - ) - else: - return GetDiskUsageConsumers200ResponseOneOf( - ) - """ - - def testGetDiskUsageConsumers200ResponseOneOf(self): - """Test GetDiskUsageConsumers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_files200_response.py b/test/test_get_files200_response.py deleted file mode 100644 index beea41a..0000000 --- a/test/test_get_files200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_files200_response import GetFiles200Response - -class TestGetFiles200Response(unittest.TestCase): - """GetFiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFiles200Response: - """Test GetFiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFiles200Response` - """ - model = GetFiles200Response() - if include_optional: - return GetFiles200Response( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetFiles200Response( - ) - """ - - def testGetFiles200Response(self): - """Test GetFiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_files200_response_one_of.py b/test/test_get_files200_response_one_of.py deleted file mode 100644 index 5f785af..0000000 --- a/test/test_get_files200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_files200_response_one_of import GetFiles200ResponseOneOf - -class TestGetFiles200ResponseOneOf(unittest.TestCase): - """GetFiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFiles200ResponseOneOf: - """Test GetFiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFiles200ResponseOneOf` - """ - model = GetFiles200ResponseOneOf() - if include_optional: - return GetFiles200ResponseOneOf( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetFiles200ResponseOneOf( - ) - """ - - def testGetFiles200ResponseOneOf(self): - """Test GetFiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_http_profiles200_response.py b/test/test_get_http_profiles200_response.py deleted file mode 100644 index 49f0d3e..0000000 --- a/test/test_get_http_profiles200_response.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_http_profiles200_response import GetHttpProfiles200Response - -class TestGetHttpProfiles200Response(unittest.TestCase): - """GetHttpProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHttpProfiles200Response: - """Test GetHttpProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHttpProfiles200Response` - """ - model = GetHttpProfiles200Response() - if include_optional: - return GetHttpProfiles200Response( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetHttpProfiles200Response( - ) - """ - - def testGetHttpProfiles200Response(self): - """Test GetHttpProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_http_profiles200_response_one_of.py b/test/test_get_http_profiles200_response_one_of.py deleted file mode 100644 index d397f30..0000000 --- a/test/test_get_http_profiles200_response_one_of.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_http_profiles200_response_one_of import GetHttpProfiles200ResponseOneOf - -class TestGetHttpProfiles200ResponseOneOf(unittest.TestCase): - """GetHttpProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHttpProfiles200ResponseOneOf: - """Test GetHttpProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHttpProfiles200ResponseOneOf` - """ - model = GetHttpProfiles200ResponseOneOf() - if include_optional: - return GetHttpProfiles200ResponseOneOf( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetHttpProfiles200ResponseOneOf( - ) - """ - - def testGetHttpProfiles200ResponseOneOf(self): - """Test GetHttpProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_async_operation_result200_response.py b/test/test_get_license_async_operation_result200_response.py deleted file mode 100644 index 76f3335..0000000 --- a/test/test_get_license_async_operation_result200_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_async_operation_result200_response import GetLicenseAsyncOperationResult200Response - -class TestGetLicenseAsyncOperationResult200Response(unittest.TestCase): - """GetLicenseAsyncOperationResult200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseAsyncOperationResult200Response: - """Test GetLicenseAsyncOperationResult200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseAsyncOperationResult200Response` - """ - model = GetLicenseAsyncOperationResult200Response() - if include_optional: - return GetLicenseAsyncOperationResult200Response( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56 - ) - else: - return GetLicenseAsyncOperationResult200Response( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, - ) - """ - - def testGetLicenseAsyncOperationResult200Response(self): - """Test GetLicenseAsyncOperationResult200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_servers200_response.py b/test/test_get_license_servers200_response.py deleted file mode 100644 index dfa1c7d..0000000 --- a/test/test_get_license_servers200_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_servers200_response import GetLicenseServers200Response - -class TestGetLicenseServers200Response(unittest.TestCase): - """GetLicenseServers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseServers200Response: - """Test GetLicenseServers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseServers200Response` - """ - model = GetLicenseServers200Response() - if include_optional: - return GetLicenseServers200Response( - data = [ - cyperf.models.license_server_metadata.LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '', ) - ], - total_count = 56 - ) - else: - return GetLicenseServers200Response( - ) - """ - - def testGetLicenseServers200Response(self): - """Test GetLicenseServers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_license_servers200_response_one_of.py b/test/test_get_license_servers200_response_one_of.py deleted file mode 100644 index 4074a90..0000000 --- a/test/test_get_license_servers200_response_one_of.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_license_servers200_response_one_of import GetLicenseServers200ResponseOneOf - -class TestGetLicenseServers200ResponseOneOf(unittest.TestCase): - """GetLicenseServers200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetLicenseServers200ResponseOneOf: - """Test GetLicenseServers200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetLicenseServers200ResponseOneOf` - """ - model = GetLicenseServers200ResponseOneOf() - if include_optional: - return GetLicenseServers200ResponseOneOf( - data = [ - cyperf.models.license_server_metadata.LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '', ) - ], - total_count = 56 - ) - else: - return GetLicenseServers200ResponseOneOf( - ) - """ - - def testGetLicenseServers200ResponseOneOf(self): - """Test GetLicenseServers200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_meta200_response.py b/test/test_get_meta200_response.py deleted file mode 100644 index 4f786aa..0000000 --- a/test/test_get_meta200_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_meta200_response import GetMeta200Response - -class TestGetMeta200Response(unittest.TestCase): - """GetMeta200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetMeta200Response: - """Test GetMeta200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetMeta200Response` - """ - model = GetMeta200Response() - if include_optional: - return GetMeta200Response( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetMeta200Response( - ) - """ - - def testGetMeta200Response(self): - """Test GetMeta200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_meta200_response_one_of.py b/test/test_get_meta200_response_one_of.py deleted file mode 100644 index 75db313..0000000 --- a/test/test_get_meta200_response_one_of.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_meta200_response_one_of import GetMeta200ResponseOneOf - -class TestGetMeta200ResponseOneOf(unittest.TestCase): - """GetMeta200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetMeta200ResponseOneOf: - """Test GetMeta200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetMeta200ResponseOneOf` - """ - model = GetMeta200ResponseOneOf() - if include_optional: - return GetMeta200ResponseOneOf( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetMeta200ResponseOneOf( - ) - """ - - def testGetMeta200ResponseOneOf(self): - """Test GetMeta200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_notifications200_response.py b/test/test_get_notifications200_response.py deleted file mode 100644 index 731272c..0000000 --- a/test/test_get_notifications200_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_notifications200_response import GetNotifications200Response - -class TestGetNotifications200Response(unittest.TestCase): - """GetNotifications200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetNotifications200Response: - """Test GetNotifications200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetNotifications200Response` - """ - model = GetNotifications200Response() - if include_optional: - return GetNotifications200Response( - data = [ - cyperf.models.notification.Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56, ) - ], - total_count = 56 - ) - else: - return GetNotifications200Response( - ) - """ - - def testGetNotifications200Response(self): - """Test GetNotifications200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_notifications200_response_one_of.py b/test/test_get_notifications200_response_one_of.py deleted file mode 100644 index 4b56725..0000000 --- a/test/test_get_notifications200_response_one_of.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_notifications200_response_one_of import GetNotifications200ResponseOneOf - -class TestGetNotifications200ResponseOneOf(unittest.TestCase): - """GetNotifications200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetNotifications200ResponseOneOf: - """Test GetNotifications200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetNotifications200ResponseOneOf` - """ - model = GetNotifications200ResponseOneOf() - if include_optional: - return GetNotifications200ResponseOneOf( - data = [ - cyperf.models.notification.Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56, ) - ], - total_count = 56 - ) - else: - return GetNotifications200ResponseOneOf( - ) - """ - - def testGetNotifications200ResponseOneOf(self): - """Test GetNotifications200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_plugins200_response.py b/test/test_get_plugins200_response.py deleted file mode 100644 index 50caf4e..0000000 --- a/test/test_get_plugins200_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_plugins200_response import GetPlugins200Response - -class TestGetPlugins200Response(unittest.TestCase): - """GetPlugins200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPlugins200Response: - """Test GetPlugins200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPlugins200Response` - """ - model = GetPlugins200Response() - if include_optional: - return GetPlugins200Response( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetPlugins200Response( - ) - """ - - def testGetPlugins200Response(self): - """Test GetPlugins200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_plugins200_response_one_of.py b/test/test_get_plugins200_response_one_of.py deleted file mode 100644 index 4333dcd..0000000 --- a/test/test_get_plugins200_response_one_of.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_plugins200_response_one_of import GetPlugins200ResponseOneOf - -class TestGetPlugins200ResponseOneOf(unittest.TestCase): - """GetPlugins200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPlugins200ResponseOneOf: - """Test GetPlugins200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPlugins200ResponseOneOf` - """ - model = GetPlugins200ResponseOneOf() - if include_optional: - return GetPlugins200ResponseOneOf( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetPlugins200ResponseOneOf( - ) - """ - - def testGetPlugins200ResponseOneOf(self): - """Test GetPlugins200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_application_types200_response.py b/test/test_get_resources_application_types200_response.py deleted file mode 100644 index fe3ffdc..0000000 --- a/test/test_get_resources_application_types200_response.py +++ /dev/null @@ -1,238 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_application_types200_response import GetResourcesApplicationTypes200Response - -class TestGetResourcesApplicationTypes200Response(unittest.TestCase): - """GetResourcesApplicationTypes200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApplicationTypes200Response: - """Test GetResourcesApplicationTypes200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApplicationTypes200Response` - """ - model = GetResourcesApplicationTypes200Response() - if include_optional: - return GetResourcesApplicationTypes200Response( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - is_rate = True, - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - is_streaming = True, - no_multi_flow_support = True, - protocol = '', - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesApplicationTypes200Response( - ) - """ - - def testGetResourcesApplicationTypes200Response(self): - """Test GetResourcesApplicationTypes200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_application_types200_response_one_of.py b/test/test_get_resources_application_types200_response_one_of.py deleted file mode 100644 index 151ab42..0000000 --- a/test/test_get_resources_application_types200_response_one_of.py +++ /dev/null @@ -1,238 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_application_types200_response_one_of import GetResourcesApplicationTypes200ResponseOneOf - -class TestGetResourcesApplicationTypes200ResponseOneOf(unittest.TestCase): - """GetResourcesApplicationTypes200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApplicationTypes200ResponseOneOf: - """Test GetResourcesApplicationTypes200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApplicationTypes200ResponseOneOf` - """ - model = GetResourcesApplicationTypes200ResponseOneOf() - if include_optional: - return GetResourcesApplicationTypes200ResponseOneOf( - data = [ - cyperf.models.application_type.ApplicationType( - commands = [ - cyperf.models.command.Command( - action_id = '', - description = '', - exchanges = [ - cyperf.models.exchange.Exchange( - client_endpoint = '', - name = '', - server_endpoint = '', - id = '', ) - ], - is_strike = True, - metadata = cyperf.models.command_metadata.CommandMetadata( - direction = '', - is_banner = True, - is_for_app_traffic_only = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - supported_protocols = [ - '' - ], - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', ) - ], - custom_stats = [ - cyperf.models.custom_stat.CustomStat( - function = '', - is_rate = True, - path = '', ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - definition = cyperf.models.definition.Definition( - xml = 'YQ==', ), - description = '', - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - has_banner_command = True, - md5_content = '', - md5_metadata = '', - metadata = cyperf.models.metadata.Metadata( - direction = '', - is_banner = True, - is_streaming = True, - no_multi_flow_support = True, - protocol = '', - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - year = '', ), - name = '', - parameters = [ - cyperf.models.parameter.Parameter( - default_source = '', - default_value = '', - element_type = '', - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - protocol_found = True, - strikes = [ - cyperf.models.command.Command( - action_id = '', - description = '', - is_strike = True, - name = '', ) - ], - supports_calibration = True, - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - supports_strikes = True, - supports_tls = True, - id = '', - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesApplicationTypes200ResponseOneOf( - ) - """ - - def testGetResourcesApplicationTypes200ResponseOneOf(self): - """Test GetResourcesApplicationTypes200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_apps200_response.py b/test/test_get_resources_apps200_response.py deleted file mode 100644 index cd815bb..0000000 --- a/test/test_get_resources_apps200_response.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_apps200_response import GetResourcesApps200Response - -class TestGetResourcesApps200Response(unittest.TestCase): - """GetResourcesApps200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApps200Response: - """Test GetResourcesApps200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApps200Response` - """ - model = GetResourcesApps200Response() - if include_optional: - return GetResourcesApps200Response( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - name = '', ) - ], - keywords = [ - null - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesApps200Response( - ) - """ - - def testGetResourcesApps200Response(self): - """Test GetResourcesApps200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_apps200_response_one_of.py b/test/test_get_resources_apps200_response_one_of.py deleted file mode 100644 index 5cf8c29..0000000 --- a/test/test_get_resources_apps200_response_one_of.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_apps200_response_one_of import GetResourcesApps200ResponseOneOf - -class TestGetResourcesApps200ResponseOneOf(unittest.TestCase): - """GetResourcesApps200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesApps200ResponseOneOf: - """Test GetResourcesApps200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesApps200ResponseOneOf` - """ - model = GetResourcesApps200ResponseOneOf() - if include_optional: - return GetResourcesApps200ResponseOneOf( - data = [ - cyperf.models.appsec_app.AppsecApp( - app = null, - description = '', - name = '', - static = True, - user_defined = True, - app_metadata = cyperf.models.appsec_app_metadata.AppsecAppMetadata( - actions_metadata = [ - cyperf.models.action_metadata.ActionMetadata( - flow_index = { - 'key' : 56 - }, - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - index = 56, - name = '', - parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '', ) - ], ) - ], - app_parameters = [ - cyperf.models.parameter_meta.ParameterMeta( - name = '', ) - ], - keywords = [ - null - ], ), - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesApps200ResponseOneOf( - ) - """ - - def testGetResourcesApps200ResponseOneOf(self): - """Test GetResourcesApps200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_attacks200_response.py b/test/test_get_resources_attacks200_response.py deleted file mode 100644 index e35ea31..0000000 --- a/test/test_get_resources_attacks200_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_attacks200_response import GetResourcesAttacks200Response - -class TestGetResourcesAttacks200Response(unittest.TestCase): - """GetResourcesAttacks200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAttacks200Response: - """Test GetResourcesAttacks200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAttacks200Response` - """ - model = GetResourcesAttacks200Response() - if include_optional: - return GetResourcesAttacks200Response( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAttacks200Response( - ) - """ - - def testGetResourcesAttacks200Response(self): - """Test GetResourcesAttacks200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_attacks200_response_one_of.py b/test/test_get_resources_attacks200_response_one_of.py deleted file mode 100644 index c1a3b9f..0000000 --- a/test/test_get_resources_attacks200_response_one_of.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_attacks200_response_one_of import GetResourcesAttacks200ResponseOneOf - -class TestGetResourcesAttacks200ResponseOneOf(unittest.TestCase): - """GetResourcesAttacks200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAttacks200ResponseOneOf: - """Test GetResourcesAttacks200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAttacks200ResponseOneOf` - """ - model = GetResourcesAttacks200ResponseOneOf() - if include_optional: - return GetResourcesAttacks200ResponseOneOf( - data = [ - cyperf.models.appsec_attack.AppsecAttack( - attack = null, - description = '', - metadata = cyperf.models.attack_metadata.AttackMetadata( - cve_count = 56, - direction = '', - keywords = [ - null - ], - legacy_names = [ - '' - ], - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - severity = '', - strikes_count = 56, ), - name = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAttacks200ResponseOneOf( - ) - """ - - def testGetResourcesAttacks200ResponseOneOf(self): - """Test GetResourcesAttacks200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response.py b/test/test_get_resources_auth_profiles200_response.py deleted file mode 100644 index 96f8b17..0000000 --- a/test/test_get_resources_auth_profiles200_response.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_auth_profiles200_response import GetResourcesAuthProfiles200Response - -class TestGetResourcesAuthProfiles200Response(unittest.TestCase): - """GetResourcesAuthProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAuthProfiles200Response: - """Test GetResourcesAuthProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAuthProfiles200Response` - """ - model = GetResourcesAuthProfiles200Response() - if include_optional: - return GetResourcesAuthProfiles200Response( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAuthProfiles200Response( - ) - """ - - def testGetResourcesAuthProfiles200Response(self): - """Test GetResourcesAuthProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_auth_profiles200_response_one_of.py b/test/test_get_resources_auth_profiles200_response_one_of.py deleted file mode 100644 index 7eadb17..0000000 --- a/test/test_get_resources_auth_profiles200_response_one_of.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_auth_profiles200_response_one_of import GetResourcesAuthProfiles200ResponseOneOf - -class TestGetResourcesAuthProfiles200ResponseOneOf(unittest.TestCase): - """GetResourcesAuthProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesAuthProfiles200ResponseOneOf: - """Test GetResourcesAuthProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesAuthProfiles200ResponseOneOf` - """ - model = GetResourcesAuthProfiles200ResponseOneOf() - if include_optional: - return GetResourcesAuthProfiles200ResponseOneOf( - data = [ - cyperf.models.auth_profile.AuthProfile( - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - data_types = [ - cyperf.models.data_type.DataType( - values = [ - cyperf.models.data_type_values_inner.DataType_Values_inner( - id = '', - value_type = '', ) - ], - id = '', ) - ], - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', ) - ], - file_name = '', - metadata = cyperf.models.auth_profile_metadata.AuthProfileMetadata( - auth_method = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - explicit_proxy = True, - idp_type = cyperf.models.enum.Enum( - default = '', ), - sgw_name = '', - sgw_type = '', - sgw_type_value = '', ), - parameters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - sources = [ - '' - ], - type = '', - field = '', - id = '', - operator = '', - query_param = '', ) - ], - description = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesAuthProfiles200ResponseOneOf( - ) - """ - - def testGetResourcesAuthProfiles200ResponseOneOf(self): - """Test GetResourcesAuthProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_certificates200_response.py b/test/test_get_resources_certificates200_response.py deleted file mode 100644 index 855d3ac..0000000 --- a/test/test_get_resources_certificates200_response.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response - -class TestGetResourcesCertificates200Response(unittest.TestCase): - """GetResourcesCertificates200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCertificates200Response: - """Test GetResourcesCertificates200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCertificates200Response` - """ - model = GetResourcesCertificates200Response() - if include_optional: - return GetResourcesCertificates200Response( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCertificates200Response( - ) - """ - - def testGetResourcesCertificates200Response(self): - """Test GetResourcesCertificates200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_certificates200_response_one_of.py b/test/test_get_resources_certificates200_response_one_of.py deleted file mode 100644 index 3e82134..0000000 --- a/test/test_get_resources_certificates200_response_one_of.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_certificates200_response_one_of import GetResourcesCertificates200ResponseOneOf - -class TestGetResourcesCertificates200ResponseOneOf(unittest.TestCase): - """GetResourcesCertificates200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCertificates200ResponseOneOf: - """Test GetResourcesCertificates200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCertificates200ResponseOneOf` - """ - model = GetResourcesCertificates200ResponseOneOf() - if include_optional: - return GetResourcesCertificates200ResponseOneOf( - data = [ - cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCertificates200ResponseOneOf( - ) - """ - - def testGetResourcesCertificates200ResponseOneOf(self): - """Test GetResourcesCertificates200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response.py b/test/test_get_resources_custom_import_operations200_response.py deleted file mode 100644 index a956bbd..0000000 --- a/test/test_get_resources_custom_import_operations200_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_custom_import_operations200_response import GetResourcesCustomImportOperations200Response - -class TestGetResourcesCustomImportOperations200Response(unittest.TestCase): - """GetResourcesCustomImportOperations200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCustomImportOperations200Response: - """Test GetResourcesCustomImportOperations200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCustomImportOperations200Response` - """ - model = GetResourcesCustomImportOperations200Response() - if include_optional: - return GetResourcesCustomImportOperations200Response( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCustomImportOperations200Response( - ) - """ - - def testGetResourcesCustomImportOperations200Response(self): - """Test GetResourcesCustomImportOperations200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_custom_import_operations200_response_one_of.py b/test/test_get_resources_custom_import_operations200_response_one_of.py deleted file mode 100644 index 797d9a2..0000000 --- a/test/test_get_resources_custom_import_operations200_response_one_of.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_custom_import_operations200_response_one_of import GetResourcesCustomImportOperations200ResponseOneOf - -class TestGetResourcesCustomImportOperations200ResponseOneOf(unittest.TestCase): - """GetResourcesCustomImportOperations200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesCustomImportOperations200ResponseOneOf: - """Test GetResourcesCustomImportOperations200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesCustomImportOperations200ResponseOneOf` - """ - model = GetResourcesCustomImportOperations200ResponseOneOf() - if include_optional: - return GetResourcesCustomImportOperations200ResponseOneOf( - data = [ - cyperf.models.custom_import_handler.CustomImportHandler( - link = cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ), - name = '', ) - ], - total_count = 56 - ) - else: - return GetResourcesCustomImportOperations200ResponseOneOf( - ) - """ - - def testGetResourcesCustomImportOperations200ResponseOneOf(self): - """Test GetResourcesCustomImportOperations200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_http_profiles200_response.py b/test/test_get_resources_http_profiles200_response.py deleted file mode 100644 index b511955..0000000 --- a/test/test_get_resources_http_profiles200_response.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_http_profiles200_response import GetResourcesHttpProfiles200Response - -class TestGetResourcesHttpProfiles200Response(unittest.TestCase): - """GetResourcesHttpProfiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesHttpProfiles200Response: - """Test GetResourcesHttpProfiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesHttpProfiles200Response` - """ - model = GetResourcesHttpProfiles200Response() - if include_optional: - return GetResourcesHttpProfiles200Response( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesHttpProfiles200Response( - ) - """ - - def testGetResourcesHttpProfiles200Response(self): - """Test GetResourcesHttpProfiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_resources_http_profiles200_response_one_of.py b/test/test_get_resources_http_profiles200_response_one_of.py deleted file mode 100644 index 6710b73..0000000 --- a/test/test_get_resources_http_profiles200_response_one_of.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_resources_http_profiles200_response_one_of import GetResourcesHttpProfiles200ResponseOneOf - -class TestGetResourcesHttpProfiles200ResponseOneOf(unittest.TestCase): - """GetResourcesHttpProfiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResourcesHttpProfiles200ResponseOneOf: - """Test GetResourcesHttpProfiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResourcesHttpProfiles200ResponseOneOf` - """ - model = GetResourcesHttpProfiles200ResponseOneOf() - if include_optional: - return GetResourcesHttpProfiles200ResponseOneOf( - data = [ - cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ) - ], - total_count = 56 - ) - else: - return GetResourcesHttpProfiles200ResponseOneOf( - ) - """ - - def testGetResourcesHttpProfiles200ResponseOneOf(self): - """Test GetResourcesHttpProfiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_files200_response.py b/test/test_get_result_files200_response.py deleted file mode 100644 index 8dc73f3..0000000 --- a/test/test_get_result_files200_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_files200_response import GetResultFiles200Response - -class TestGetResultFiles200Response(unittest.TestCase): - """GetResultFiles200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultFiles200Response: - """Test GetResultFiles200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultFiles200Response` - """ - model = GetResultFiles200Response() - if include_optional: - return GetResultFiles200Response( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetResultFiles200Response( - ) - """ - - def testGetResultFiles200Response(self): - """Test GetResultFiles200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_files200_response_one_of.py b/test/test_get_result_files200_response_one_of.py deleted file mode 100644 index 85dad76..0000000 --- a/test/test_get_result_files200_response_one_of.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_files200_response_one_of import GetResultFiles200ResponseOneOf - -class TestGetResultFiles200ResponseOneOf(unittest.TestCase): - """GetResultFiles200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultFiles200ResponseOneOf: - """Test GetResultFiles200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultFiles200ResponseOneOf` - """ - model = GetResultFiles200ResponseOneOf() - if include_optional: - return GetResultFiles200ResponseOneOf( - data = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - total_count = 56 - ) - else: - return GetResultFiles200ResponseOneOf( - ) - """ - - def testGetResultFiles200ResponseOneOf(self): - """Test GetResultFiles200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_stats200_response.py b/test/test_get_result_stats200_response.py deleted file mode 100644 index 37b462c..0000000 --- a/test/test_get_result_stats200_response.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_stats200_response import GetResultStats200Response - -class TestGetResultStats200Response(unittest.TestCase): - """GetResultStats200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultStats200Response: - """Test GetResultStats200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultStats200Response` - """ - model = GetResultStats200Response() - if include_optional: - return GetResultStats200Response( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetResultStats200Response( - ) - """ - - def testGetResultStats200Response(self): - """Test GetResultStats200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_stats200_response_one_of.py b/test/test_get_result_stats200_response_one_of.py deleted file mode 100644 index e55fcdd..0000000 --- a/test/test_get_result_stats200_response_one_of.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_stats200_response_one_of import GetResultStats200ResponseOneOf - -class TestGetResultStats200ResponseOneOf(unittest.TestCase): - """GetResultStats200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultStats200ResponseOneOf: - """Test GetResultStats200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultStats200ResponseOneOf` - """ - model = GetResultStats200ResponseOneOf() - if include_optional: - return GetResultStats200ResponseOneOf( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetResultStats200ResponseOneOf( - ) - """ - - def testGetResultStats200ResponseOneOf(self): - """Test GetResultStats200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_tags200_response.py b/test/test_get_result_tags200_response.py deleted file mode 100644 index 7802291..0000000 --- a/test/test_get_result_tags200_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_tags200_response import GetResultTags200Response - -class TestGetResultTags200Response(unittest.TestCase): - """GetResultTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultTags200Response: - """Test GetResultTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultTags200Response` - """ - model = GetResultTags200Response() - if include_optional: - return GetResultTags200Response( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultTags200Response( - ) - """ - - def testGetResultTags200Response(self): - """Test GetResultTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_result_tags200_response_one_of.py b/test/test_get_result_tags200_response_one_of.py deleted file mode 100644 index 4d24ae5..0000000 --- a/test/test_get_result_tags200_response_one_of.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_result_tags200_response_one_of import GetResultTags200ResponseOneOf - -class TestGetResultTags200ResponseOneOf(unittest.TestCase): - """GetResultTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultTags200ResponseOneOf: - """Test GetResultTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultTags200ResponseOneOf` - """ - model = GetResultTags200ResponseOneOf() - if include_optional: - return GetResultTags200ResponseOneOf( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultTags200ResponseOneOf( - ) - """ - - def testGetResultTags200ResponseOneOf(self): - """Test GetResultTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results200_response.py b/test/test_get_results200_response.py deleted file mode 100644 index ba5dbda..0000000 --- a/test/test_get_results200_response.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results200_response import GetResults200Response - -class TestGetResults200Response(unittest.TestCase): - """GetResults200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResults200Response: - """Test GetResults200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResults200Response` - """ - model = GetResults200Response() - if include_optional: - return GetResults200Response( - data = [ - cyperf.models.result_metadata.ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = null, - download_diagnostic = null, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - report_types = [ - '' - ], - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResults200Response( - ) - """ - - def testGetResults200Response(self): - """Test GetResults200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results200_response_one_of.py b/test/test_get_results200_response_one_of.py deleted file mode 100644 index fe1e224..0000000 --- a/test/test_get_results200_response_one_of.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results200_response_one_of import GetResults200ResponseOneOf - -class TestGetResults200ResponseOneOf(unittest.TestCase): - """GetResults200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResults200ResponseOneOf: - """Test GetResults200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResults200ResponseOneOf` - """ - model = GetResults200ResponseOneOf() - if include_optional: - return GetResults200ResponseOneOf( - data = [ - cyperf.models.result_metadata.ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = null, - download_diagnostic = null, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - report_types = [ - '' - ], - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResults200ResponseOneOf( - ) - """ - - def testGetResults200ResponseOneOf(self): - """Test GetResults200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results_tags200_response.py b/test/test_get_results_tags200_response.py deleted file mode 100644 index 8939c6c..0000000 --- a/test/test_get_results_tags200_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results_tags200_response import GetResultsTags200Response - -class TestGetResultsTags200Response(unittest.TestCase): - """GetResultsTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultsTags200Response: - """Test GetResultsTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultsTags200Response` - """ - model = GetResultsTags200Response() - if include_optional: - return GetResultsTags200Response( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultsTags200Response( - ) - """ - - def testGetResultsTags200Response(self): - """Test GetResultsTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_results_tags200_response_one_of.py b/test/test_get_results_tags200_response_one_of.py deleted file mode 100644 index 986b528..0000000 --- a/test/test_get_results_tags200_response_one_of.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_results_tags200_response_one_of import GetResultsTags200ResponseOneOf - -class TestGetResultsTags200ResponseOneOf(unittest.TestCase): - """GetResultsTags200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetResultsTags200ResponseOneOf: - """Test GetResultsTags200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetResultsTags200ResponseOneOf` - """ - model = GetResultsTags200ResponseOneOf() - if include_optional: - return GetResultsTags200ResponseOneOf( - data = [ - cyperf.models.results_group.ResultsGroup( - name = '', - results = [ - '' - ], ) - ], - total_count = 56 - ) - else: - return GetResultsTags200ResponseOneOf( - ) - """ - - def testGetResultsTags200ResponseOneOf(self): - """Test GetResultsTags200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_session_meta200_response.py b/test/test_get_session_meta200_response.py deleted file mode 100644 index fba290f..0000000 --- a/test/test_get_session_meta200_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_session_meta200_response import GetSessionMeta200Response - -class TestGetSessionMeta200Response(unittest.TestCase): - """GetSessionMeta200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessionMeta200Response: - """Test GetSessionMeta200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessionMeta200Response` - """ - model = GetSessionMeta200Response() - if include_optional: - return GetSessionMeta200Response( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetSessionMeta200Response( - ) - """ - - def testGetSessionMeta200Response(self): - """Test GetSessionMeta200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_session_meta200_response_one_of.py b/test/test_get_session_meta200_response_one_of.py deleted file mode 100644 index e3fee4e..0000000 --- a/test/test_get_session_meta200_response_one_of.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_session_meta200_response_one_of import GetSessionMeta200ResponseOneOf - -class TestGetSessionMeta200ResponseOneOf(unittest.TestCase): - """GetSessionMeta200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessionMeta200ResponseOneOf: - """Test GetSessionMeta200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessionMeta200ResponseOneOf` - """ - model = GetSessionMeta200ResponseOneOf() - if include_optional: - return GetSessionMeta200ResponseOneOf( - data = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - total_count = 56 - ) - else: - return GetSessionMeta200ResponseOneOf( - ) - """ - - def testGetSessionMeta200ResponseOneOf(self): - """Test GetSessionMeta200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_sessions200_response.py b/test/test_get_sessions200_response.py deleted file mode 100644 index 3ecec94..0000000 --- a/test/test_get_sessions200_response.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_sessions200_response import GetSessions200Response - -class TestGetSessions200Response(unittest.TestCase): - """GetSessions200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessions200Response: - """Test GetSessions200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessions200Response` - """ - model = GetSessions200Response() - if include_optional: - return GetSessions200Response( - data = [ - cyperf.models.session.Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = null, - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = , - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ), ) - ], - total_count = 56 - ) - else: - return GetSessions200Response( - ) - """ - - def testGetSessions200Response(self): - """Test GetSessions200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_sessions200_response_one_of.py b/test/test_get_sessions200_response_one_of.py deleted file mode 100644 index 7450daf..0000000 --- a/test/test_get_sessions200_response_one_of.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_sessions200_response_one_of import GetSessions200ResponseOneOf - -class TestGetSessions200ResponseOneOf(unittest.TestCase): - """GetSessions200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetSessions200ResponseOneOf: - """Test GetSessions200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetSessions200ResponseOneOf` - """ - model = GetSessions200ResponseOneOf() - if include_optional: - return GetSessions200ResponseOneOf( - data = [ - cyperf.models.session.Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = null, - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = , - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ), ) - ], - total_count = 56 - ) - else: - return GetSessions200ResponseOneOf( - ) - """ - - def testGetSessions200ResponseOneOf(self): - """Test GetSessions200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats200_response.py b/test/test_get_stats200_response.py deleted file mode 100644 index 21a7e88..0000000 --- a/test/test_get_stats200_response.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats200_response import GetStats200Response - -class TestGetStats200Response(unittest.TestCase): - """GetStats200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStats200Response: - """Test GetStats200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStats200Response` - """ - model = GetStats200Response() - if include_optional: - return GetStats200Response( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetStats200Response( - ) - """ - - def testGetStats200Response(self): - """Test GetStats200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats200_response_one_of.py b/test/test_get_stats200_response_one_of.py deleted file mode 100644 index 4ace336..0000000 --- a/test/test_get_stats200_response_one_of.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats200_response_one_of import GetStats200ResponseOneOf - -class TestGetStats200ResponseOneOf(unittest.TestCase): - """GetStats200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStats200ResponseOneOf: - """Test GetStats200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStats200ResponseOneOf` - """ - model = GetStats200ResponseOneOf() - if include_optional: - return GetStats200ResponseOneOf( - data = [ - cyperf.models.stats_result.StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ], ) - ], - total_count = 56 - ) - else: - return GetStats200ResponseOneOf( - ) - """ - - def testGetStats200ResponseOneOf(self): - """Test GetStats200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats_plugins200_response.py b/test/test_get_stats_plugins200_response.py deleted file mode 100644 index 76ac2fd..0000000 --- a/test/test_get_stats_plugins200_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response - -class TestGetStatsPlugins200Response(unittest.TestCase): - """GetStatsPlugins200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStatsPlugins200Response: - """Test GetStatsPlugins200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStatsPlugins200Response` - """ - model = GetStatsPlugins200Response() - if include_optional: - return GetStatsPlugins200Response( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetStatsPlugins200Response( - ) - """ - - def testGetStatsPlugins200Response(self): - """Test GetStatsPlugins200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_stats_plugins200_response_one_of.py b/test/test_get_stats_plugins200_response_one_of.py deleted file mode 100644 index e5fdf1f..0000000 --- a/test/test_get_stats_plugins200_response_one_of.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf - -class TestGetStatsPlugins200ResponseOneOf(unittest.TestCase): - """GetStatsPlugins200ResponseOneOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStatsPlugins200ResponseOneOf: - """Test GetStatsPlugins200ResponseOneOf - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStatsPlugins200ResponseOneOf` - """ - model = GetStatsPlugins200ResponseOneOf() - if include_optional: - return GetStatsPlugins200ResponseOneOf( - data = [ - cyperf.models.plugin.Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '', ) - ], - total_count = 56 - ) - else: - return GetStatsPlugins200ResponseOneOf( - ) - """ - - def testGetStatsPlugins200ResponseOneOf(self): - """Test GetStatsPlugins200ResponseOneOf""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_strikes_operation.py b/test/test_get_strikes_operation.py deleted file mode 100644 index 2c3d489..0000000 --- a/test/test_get_strikes_operation.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.get_strikes_operation import GetStrikesOperation - -class TestGetStrikesOperation(unittest.TestCase): - """GetStrikesOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetStrikesOperation: - """Test GetStrikesOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetStrikesOperation` - """ - model = GetStrikesOperation() - if include_optional: - return GetStrikesOperation( - categories = [ - cyperf.models.category_filter.CategoryFilter( - category = '', - values = [ - '' - ], ) - ], - compatible_with = '', - filter_mode = '', - search_col = [ - '' - ], - search_val = [ - '' - ], - skip = '', - sort = [ - cyperf.models.sort_body_field.SortBodyField( - field = '', - order = '', ) - ], - take = '' - ) - else: - return GetStrikesOperation( - ) - """ - - def testGetStrikesOperation(self): - """Test GetStrikesOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_group_tls13.py b/test/test_group_tls13.py deleted file mode 100644 index 0b12753..0000000 --- a/test/test_group_tls13.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.group_tls13 import GroupTLS13 - -class TestGroupTLS13(unittest.TestCase): - """GroupTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GroupTLS13: - """Test GroupTLS13 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GroupTLS13` - """ - model = GroupTLS13() - if include_optional: - return GroupTLS13( - is_deprecated = True, - name = 'P-256' - ) - else: - return GroupTLS13( - is_deprecated = True, - name = 'P-256', - ) - """ - - def testGroupTLS13(self): - """Test GroupTLS13""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_hash_p1_algorithm.py b/test/test_hash_p1_algorithm.py deleted file mode 100644 index f1575ec..0000000 --- a/test/test_hash_p1_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.hash_p1_algorithm import HashP1Algorithm - -class TestHashP1Algorithm(unittest.TestCase): - """HashP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHashP1Algorithm(self): - """Test HashP1Algorithm""" - # inst = HashP1Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_hash_p2_algorithm.py b/test/test_hash_p2_algorithm.py deleted file mode 100644 index d79d206..0000000 --- a/test/test_hash_p2_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.hash_p2_algorithm import HashP2Algorithm - -class TestHashP2Algorithm(unittest.TestCase): - """HashP2Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHashP2Algorithm(self): - """Test HashP2Algorithm""" - # inst = HashP2Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_health_check_config.py b/test/test_health_check_config.py deleted file mode 100644 index bf2f4d2..0000000 --- a/test/test_health_check_config.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.health_check_config import HealthCheckConfig - -class TestHealthCheckConfig(unittest.TestCase): - """HealthCheckConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HealthCheckConfig: - """Test HealthCheckConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HealthCheckConfig` - """ - model = HealthCheckConfig() - if include_optional: - return HealthCheckConfig( - enabled = True, - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return HealthCheckConfig( - ) - """ - - def testHealthCheckConfig(self): - """Test HealthCheckConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_health_issue.py b/test/test_health_issue.py deleted file mode 100644 index 14fbeff..0000000 --- a/test/test_health_issue.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.health_issue import HealthIssue - -class TestHealthIssue(unittest.TestCase): - """HealthIssue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HealthIssue: - """Test HealthIssue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HealthIssue` - """ - model = HealthIssue() - if include_optional: - return HealthIssue( - message = '', - type = '' - ) - else: - return HealthIssue( - ) - """ - - def testHealthIssue(self): - """Test HealthIssue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_host_id.py b/test/test_host_id.py deleted file mode 100644 index 951b9b2..0000000 --- a/test/test_host_id.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.host_id import HostID - -class TestHostID(unittest.TestCase): - """HostID unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HostID: - """Test HostID - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HostID` - """ - model = HostID() - if include_optional: - return HostID( - hostid = '' - ) - else: - return HostID( - ) - """ - - def testHostID(self): - """Test HostID""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_profile.py b/test/test_http_profile.py deleted file mode 100644 index 9a7a147..0000000 --- a/test/test_http_profile.py +++ /dev/null @@ -1,354 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_profile import HTTPProfile - -class TestHTTPProfile(unittest.TestCase): - """HTTPProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPProfile: - """Test HTTPProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPProfile` - """ - model = HTTPProfile() - if include_optional: - return HTTPProfile( - additional_headers = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - connection_persistence = 'ConnectionPersistenceStandard', - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = 'HTTP11', - headers = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return HTTPProfile( - description = '', - name = '', - ) - """ - - def testHTTPProfile(self): - """Test HTTPProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_req_meta.py b/test/test_http_req_meta.py deleted file mode 100644 index ab22267..0000000 --- a/test/test_http_req_meta.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_req_meta import HTTPReqMeta - -class TestHTTPReqMeta(unittest.TestCase): - """HTTPReqMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPReqMeta: - """Test HTTPReqMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPReqMeta` - """ - model = HTTPReqMeta() - if include_optional: - return HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '' - ) - else: - return HTTPReqMeta( - ) - """ - - def testHTTPReqMeta(self): - """Test HTTPReqMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_res_meta.py b/test/test_http_res_meta.py deleted file mode 100644 index 7d78155..0000000 --- a/test/test_http_res_meta.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_res_meta import HTTPResMeta - -class TestHTTPResMeta(unittest.TestCase): - """HTTPResMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HTTPResMeta: - """Test HTTPResMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HTTPResMeta` - """ - model = HTTPResMeta() - if include_optional: - return HTTPResMeta( - headers = { - 'key' : [ - '' - ] - }, - size = 56, - status = '', - status_code = 56, - version = '' - ) - else: - return HTTPResMeta( - ) - """ - - def testHTTPResMeta(self): - """Test HTTPResMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_http_version.py b/test/test_http_version.py deleted file mode 100644 index f0ee508..0000000 --- a/test/test_http_version.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.http_version import HTTPVersion - -class TestHTTPVersion(unittest.TestCase): - """HTTPVersion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testHTTPVersion(self): - """Test HTTPVersion""" - # inst = HTTPVersion() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_id_p_signature_algo.py b/test/test_id_p_signature_algo.py deleted file mode 100644 index 77da5e9..0000000 --- a/test/test_id_p_signature_algo.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.id_p_signature_algo import IdPSignatureAlgo - -class TestIdPSignatureAlgo(unittest.TestCase): - """IdPSignatureAlgo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdPSignatureAlgo(self): - """Test IdPSignatureAlgo""" - # inst = IdPSignatureAlgo() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_import_all_operation.py b/test/test_import_all_operation.py deleted file mode 100644 index 398a84b..0000000 --- a/test/test_import_all_operation.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.import_all_operation import ImportAllOperation - -class TestImportAllOperation(unittest.TestCase): - """ImportAllOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportAllOperation: - """Test ImportAllOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImportAllOperation` - """ - model = ImportAllOperation() - if include_optional: - return ImportAllOperation( - configs = [ - cyperf.models.config_metadata.ConfigMetadata( - application = '', - config_data = { - 'key' : null - }, - config_url = '', - created_on = 56, - display_name = '', - encoded_files = True, - id = '', - is_public = True, - last_accessed = 56, - last_modified = 56, - linked_resources = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - owner = '', - owner_id = '', - readonly = True, - tags = { - 'key' : '' - }, - type = '', - version = cyperf.models.version.Version( - config_service_version = '', - data_model_version = '', ), ) - ] - ) - else: - return ImportAllOperation( - ) - """ - - def testImportAllOperation(self): - """Test ImportAllOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_import_offline_license_result.py b/test/test_import_offline_license_result.py deleted file mode 100644 index 60ef1de..0000000 --- a/test/test_import_offline_license_result.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.import_offline_license_result import ImportOfflineLicenseResult - -class TestImportOfflineLicenseResult(unittest.TestCase): - """ImportOfflineLicenseResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportOfflineLicenseResult: - """Test ImportOfflineLicenseResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImportOfflineLicenseResult` - """ - model = ImportOfflineLicenseResult() - if include_optional: - return ImportOfflineLicenseResult( - confirmation_code = '', - is_deactivation = True, - receipt = cyperf.models.license_receipt.license-receipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', ) - ) - else: - return ImportOfflineLicenseResult( - confirmation_code = '', - is_deactivation = True, - receipt = cyperf.models.license_receipt.license-receipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', ), - ) - """ - - def testImportOfflineLicenseResult(self): - """Test ImportOfflineLicenseResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ingest_operation.py b/test/test_ingest_operation.py deleted file mode 100644 index 9b82c9b..0000000 --- a/test/test_ingest_operation.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ingest_operation import IngestOperation - -class TestIngestOperation(unittest.TestCase): - """IngestOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IngestOperation: - """Test IngestOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IngestOperation` - """ - model = IngestOperation() - if include_optional: - return IngestOperation( - plugin_stats = cyperf.models.plugin_stats.PluginStats( - plugin = '', - stats = [ - { - 'key' : null - } - ], - version = '', ) - ) - else: - return IngestOperation( - ) - """ - - def testIngestOperation(self): - """Test IngestOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_inner_ip_range.py b/test/test_inner_ip_range.py deleted file mode 100644 index d93cf12..0000000 --- a/test/test_inner_ip_range.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.inner_ip_range import InnerIPRange - -class TestInnerIPRange(unittest.TestCase): - """InnerIPRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InnerIPRange: - """Test InnerIPRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `InnerIPRange` - """ - model = InnerIPRange() - if include_optional: - return InnerIPRange( - network_tags = [ - '' - ] - ) - else: - return InnerIPRange( - ) - """ - - def testInnerIPRange(self): - """Test InnerIPRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_interface.py b/test/test_interface.py deleted file mode 100644 index 5bb9321..0000000 --- a/test/test_interface.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.interface import Interface - -class TestInterface(unittest.TestCase): - """Interface unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Interface: - """Test Interface - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Interface` - """ - model = Interface() - if include_optional: - return Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '' - ) - else: - return Interface( - ) - """ - - def testInterface(self): - """Test Interface""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_mask.py b/test/test_ip_mask.py deleted file mode 100644 index af46945..0000000 --- a/test/test_ip_mask.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_mask import IpMask - -class TestIpMask(unittest.TestCase): - """IpMask unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IpMask: - """Test IpMask - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IpMask` - """ - model = IpMask() - if include_optional: - return IpMask( - ip = '', - net_mask = 56 - ) - else: - return IpMask( - ) - """ - - def testIpMask(self): - """Test IpMask""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_network.py b/test/test_ip_network.py deleted file mode 100644 index 950edea..0000000 --- a/test/test_ip_network.py +++ /dev/null @@ -1,294 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_network import IPNetwork - -class TestIPNetwork(unittest.TestCase): - """IPNetwork unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPNetwork: - """Test IPNetwork - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPNetwork` - """ - model = IPNetwork() - if include_optional: - return IPNetwork( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ], - dns_resolver = cyperf.models.dns_resolver.DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ], ), - dns_server = cyperf.models.dns_server.DNSServer( - automatic = True, - enabled = True, - ip_to_resolve_to = '::02:84:9:0cc0:F:CCf', - port = 56, ), - dut_connections = [ - '' - ], - emulated_router = cyperf.models.emulated_router.EmulatedRouter( - emulated_router_ranges = [ - null - ], - enabled = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - eth_range = cyperf.models.eth_range.EthRange( - count = 56, - mac_auto = True, - mac_incr = '2E-B0-08-29:0c:01', - mac_start = '2E-B0-08-29:0c:01', - one_mac_per_ip = True, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, ), - ip_ranges = [ - cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ) - ], - ip_sec_stacks = [ - cyperf.models.ip_sec_stack.IPSecStack( - ca_certificate_file = null, - emulated_sub_config = null, - enable_rekey = True, - ip_sec_range = null, - ip_sec_stack_name = 'YBuLd', - local_sub_config = null, - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - outer_ip_range = null, - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - retry_interval = 56, - retry_interval_increment = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - mac_dtls_stacks = [ - cyperf.models.mac_dtls_stack.MacDtlsStack( - dtls_enabled = True, - dtls_range_name = 'YBuLd', - epoch = 56, - epoch_incr = 56, - ip_range = null, - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - network_meshing = null, - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - vlan_range = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - tunnel_stacks = [ - cyperf.models.tunnel_stack.TunnelStack( - inner_ip_range = null, - outer_ip_range = null, - tunnel_range = null, - tunnel_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - vx_lan_stacks = [ - cyperf.models.vx_lan_stack.VxLANStack( - inner_ip_range = null, - outer_ip_range = null, - vx_lan_range = null, - vx_lan_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - active = True, - agent_assignments = cyperf.models.agent_assignments.AgentAssignments( - by_id = [ - null - ], - by_port = [ - null - ], - by_tag = [ - '' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - inherit_streaming_cpu_allocation = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - min_agents = 56, - streaming_cpu_allocation = 56 - ) - else: - return IPNetwork( - name = 'YBuLd', - id = '', - ) - """ - - def testIPNetwork(self): - """Test IPNetwork""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_preference.py b/test/test_ip_preference.py deleted file mode 100644 index df96485..0000000 --- a/test/test_ip_preference.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_preference import IpPreference - -class TestIpPreference(unittest.TestCase): - """IpPreference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIpPreference(self): - """Test IpPreference""" - # inst = IpPreference() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_range.py b/test/test_ip_range.py deleted file mode 100644 index 2144764..0000000 --- a/test/test_ip_range.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_range import IPRange - -class TestIPRange(unittest.TestCase): - """IPRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPRange: - """Test IPRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPRange` - """ - model = IPRange() - if include_optional: - return IPRange( - automatic_ip_type = 'BOTH_IPV4_IPV6', - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = 'IPV4', - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ] - ) - else: - return IPRange( - gw_auto = True, - ip_auto = True, - ip_range_name = 'YBuLd', - ip_ver = 'IPV4', - mss_auto = True, - net_mask_auto = True, - ) - """ - - def testIPRange(self): - """Test IPRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_sec_range.py b/test/test_ip_sec_range.py deleted file mode 100644 index 6b469db..0000000 --- a/test/test_ip_sec_range.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_sec_range import IPSecRange - -class TestIPSecRange(unittest.TestCase): - """IPSecRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPSecRange: - """Test IPSecRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPSecRange` - """ - model = IPSecRange() - if include_optional: - return IPSecRange( - var_auth_settings = cyperf.models.authentication_settings.AuthenticationSettings( - auth_method = 'PRE-SHARED-KEY', - certificate_file = null, - key_file = null, - key_file_password = '', - shared_key = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ike_phase1_config = cyperf.models.p1_config.P1Config( - dh_group = null, - enc_algorithm = null, - hash_algorithm = null, - initial_contact = True, - lifetime = 56, - prf_algorithm = null, ), - ike_phase2_config = cyperf.models.p2_config.P2Config( - enc_algorithm = null, - hash_algorithm = null, - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = null, ), - ip_sec_range_name = 'YBuLd', - multi_p2_over_p1 = True, - protected_sub_config = cyperf.models.protected_subnet_config.ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf', ), - public_peer = '02::84', - public_peer_increment = '02::84', - remote_access = cyperf.models.remote_access.RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_start = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56, ), - remote_sub_config = cyperf.models.remote_subnet_config.RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf', ), - test_scenario = 'REMOTE-ACCESS', - timers = cyperf.models.timers.Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56, ), - tunnel_count_per_outer_ip = 56, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return IPSecRange( - ip_sec_range_name = 'YBuLd', - public_peer = '02::84', - public_peer_increment = '02::84', - test_scenario = 'REMOTE-ACCESS', - tunnel_count_per_outer_ip = 56, - id = '', - ) - """ - - def testIPSecRange(self): - """Test IPSecRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_sec_stack.py b/test/test_ip_sec_stack.py deleted file mode 100644 index 2fe2c21..0000000 --- a/test/test_ip_sec_stack.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_sec_stack import IPSecStack - -class TestIPSecStack(unittest.TestCase): - """IPSecStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IPSecStack: - """Test IPSecStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IPSecStack` - """ - model = IPSecStack() - if include_optional: - return IPSecStack( - ca_certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - emulated_sub_config = cyperf.models.emulated_subnet_config.EmulatedSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], ), - enable_rekey = True, - ip_sec_range = cyperf.models.ip_sec_range.IPSecRange( - auth_settings = null, - ike_phase1_config = null, - ike_phase2_config = null, - ip_sec_range_name = 'YBuLd', - multi_p2_over_p1 = True, - protected_sub_config = null, - public_peer = '02::84', - public_peer_increment = '02::84', - remote_access = null, - remote_sub_config = null, - test_scenario = 'REMOTE-ACCESS', - timers = null, - tunnel_count_per_outer_ip = 56, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - ip_sec_stack_name = 'YBuLd', - local_sub_config = cyperf.models.local_subnet_config.LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], ), - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - outer_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - retry_interval = 56, - retry_interval_increment = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return IPSecStack( - enable_rekey = True, - ip_sec_stack_name = 'YBuLd', - log_keys = True, - max_initiation_rate = 56, - max_pending = 56, - rekey_margin = 56, - rekey_retry_count = 56, - retransmission_timeout = 56, - retry_count = 56, - setup_timeout = 56, - stack_role = 'INITIATOR', - id = '', - ) - """ - - def testIPSecStack(self): - """Test IPSecStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ip_ver.py b/test/test_ip_ver.py deleted file mode 100644 index 0f2b8d3..0000000 --- a/test/test_ip_ver.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ip_ver import IpVer - -class TestIpVer(unittest.TestCase): - """IpVer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIpVer(self): - """Test IpVer""" - # inst = IpVer() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license.py b/test/test_license.py deleted file mode 100644 index cafb6a9..0000000 --- a/test/test_license.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license import License - -class TestLicense(unittest.TestCase): - """License unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> License: - """Test License - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `License` - """ - model = License() - if include_optional: - return License( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56 - ) - else: - return License( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, - ) - """ - - def testLicense(self): - """Test License""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_receipt.py b/test/test_license_receipt.py deleted file mode 100644 index 053b21c..0000000 --- a/test/test_license_receipt.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license_receipt import LicenseReceipt - -class TestLicenseReceipt(unittest.TestCase): - """LicenseReceipt unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LicenseReceipt: - """Test LicenseReceipt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LicenseReceipt` - """ - model = LicenseReceipt() - if include_optional: - return LicenseReceipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation' - ) - else: - return LicenseReceipt( - changed_licenses = [ - cyperf.models.license.license( - activation_code = '', - days_left_to_expire = 56, - expiry_date = '', - features = [ - cyperf.models.feature.feature( - count = 56, - feature_type = 'nodeLocked', - is_uncounted = True, - name = '', - reservation = cyperf.models.feature_reservation.feature_reservation( - available_count = 56, - is_allowed = True, - reserved_count = 56, - reserved_remaining_duration = 56, ), ) - ], - is_expired = True, - links = [ - cyperf.models.link.link( - href = '', - method = '', - type = '', ) - ], - maintenance_date = '', - part_number_description = '', - part_number_id = '', - product = '', - quantity = 56, ) - ], - is_online = True, - operation_type = 'activation', - ) - """ - - def testLicenseReceipt(self): - """Test LicenseReceipt""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_server_metadata.py b/test/test_license_server_metadata.py deleted file mode 100644 index d444697..0000000 --- a/test/test_license_server_metadata.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.license_server_metadata import LicenseServerMetadata - -class TestLicenseServerMetadata(unittest.TestCase): - """LicenseServerMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LicenseServerMetadata: - """Test LicenseServerMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LicenseServerMetadata` - """ - model = LicenseServerMetadata() - if include_optional: - return LicenseServerMetadata( - connection_status = '', - failure_reason = '', - fingerprint = '', - host_name = '', - id = 56, - interactive_fingerprint_verification = True, - password = '', - pretty_conn_status = '', - trust_new = True, - tunnel_host_name = '', - user = '' - ) - else: - return LicenseServerMetadata( - ) - """ - - def testLicenseServerMetadata(self): - """Test LicenseServerMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_license_servers_api.py b/test/test_license_servers_api.py deleted file mode 100644 index ace6bb9..0000000 --- a/test/test_license_servers_api.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.license_servers_api import LicenseServersApi - - -class TestLicenseServersApi(unittest.TestCase): - """LicenseServersApi unit test stubs""" - - def setUp(self) -> None: - self.api = LicenseServersApi() - - def tearDown(self) -> None: - pass - - - def test_create_license_servers(self) -> None: - """Test case for create_license_servers - - """ - pass - - def test_delete_license_server(self) -> None: - """Test case for delete_license_server - - """ - pass - - def test_get_license_server_by_id(self) -> None: - """Test case for get_license_server_by_id - - """ - pass - - def test_get_license_servers(self) -> None: - """Test case for get_license_servers - - """ - pass - - def test_patch_license_server(self) -> None: - """Test case for patch_license_server - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_licensing_api.py b/test/test_licensing_api.py deleted file mode 100644 index d3946f5..0000000 --- a/test/test_licensing_api.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.licensing_api import LicensingApi - - -class TestLicensingApi(unittest.TestCase): - """LicensingApi unit test stubs""" - - def setUp(self) -> None: - self.api = LicensingApi() - - def tearDown(self) -> None: - pass - - - def test_activate_licenses(self) -> None: - """Test case for activate_licenses - - Performs an online request to KSM and activates the requested licenses. - """ - pass - - def test_deactivate_licenses(self) -> None: - """Test case for deactivate_licenses - - Performs an online request to KSM to deactivate the requested licenses. - """ - pass - - def test_generate_offline_request(self) -> None: - """Test case for generate_offline_request - - Generates an offline request that can be used on the offline licensing portal. - """ - pass - - def test_get_activation_code_info(self) -> None: - """Test case for get_activation_code_info - - Retrieves the activation code info from KSM. - """ - pass - - def test_get_activation_code_info_list(self) -> None: - """Test case for get_activation_code_info_list - - Retrieves the activation code info list from KSM. - """ - pass - - def test_get_async_operation_result(self) -> None: - """Test case for get_async_operation_result - - Returns the result of async operation. - """ - pass - - def test_get_async_operation_status(self) -> None: - """Test case for get_async_operation_status - - Returns the status of an ongoing async operation. - """ - pass - - def test_get_counted_feature_stats(self) -> None: - """Test case for get_counted_feature_stats - - Retrieves the counted feature stats. - """ - pass - - def test_get_entitlement_code_info(self) -> None: - """Test case for get_entitlement_code_info - - Retrieves the activations codes of the supplied entitlement code from KSM. - """ - pass - - def test_get_hostid(self) -> None: - """Test case for get_hostid - - Retrieves the host ID of the license server. - """ - pass - - def test_get_installed_licenses(self) -> None: - """Test case for get_installed_licenses - - Returns the installed licenses. - """ - pass - - def test_get_license(self) -> None: - """Test case for get_license - - Returns the requested license. - """ - pass - - def test_get_license_async_operation_result(self) -> None: - """Test case for get_license_async_operation_result - - Returns the result of async operation. - """ - pass - - def test_get_license_async_operation_status(self) -> None: - """Test case for get_license_async_operation_status - - Returns the status of an ongoing async operation. - """ - pass - - def test_import_offline_license(self) -> None: - """Test case for import_offline_license - - Installs the offline license. - """ - pass - - def test_remove_reservation(self) -> None: - """Test case for remove_reservation - - Remove previously reserved features, thus making them available for checkout by other users. - """ - pass - - def test_sync_licenses(self) -> None: - """Test case for sync_licenses - - Synchronize local licenses with KSM. - """ - pass - - def test_test_backend_connectivity(self) -> None: - """Test case for test_backend_connectivity - - Tests connection of the license server with KSM. - """ - pass - - def test_update_reservation(self) -> None: - """Test case for update_reservation - - Retain over a period of time specific counts of installed features, that can be consumed only by current user. - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_link.py b/test/test_link.py deleted file mode 100644 index 83418dc..0000000 --- a/test/test_link.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.link import Link - -class TestLink(unittest.TestCase): - """Link unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Link: - """Test Link - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Link` - """ - model = Link() - if include_optional: - return Link( - href = '', - method = '', - type = '' - ) - else: - return Link( - href = '', - method = '', - type = '', - ) - """ - - def testLink(self): - """Test Link""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_load_config_operation.py b/test/test_load_config_operation.py deleted file mode 100644 index 7138c11..0000000 --- a/test/test_load_config_operation.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.load_config_operation import LoadConfigOperation - -class TestLoadConfigOperation(unittest.TestCase): - """LoadConfigOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LoadConfigOperation: - """Test LoadConfigOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LoadConfigOperation` - """ - model = LoadConfigOperation() - if include_optional: - return LoadConfigOperation( - config_url = '' - ) - else: - return LoadConfigOperation( - ) - """ - - def testLoadConfigOperation(self): - """Test LoadConfigOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_local_subnet_config.py b/test/test_local_subnet_config.py deleted file mode 100644 index 61a181a..0000000 --- a/test/test_local_subnet_config.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.local_subnet_config import LocalSubnetConfig - -class TestLocalSubnetConfig(unittest.TestCase): - """LocalSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LocalSubnetConfig: - """Test LocalSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LocalSubnetConfig` - """ - model = LocalSubnetConfig() - if include_optional: - return LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ] - ) - else: - return LocalSubnetConfig( - host_count_per_tunnel = 56, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - start = '::02:84:9:0cc0:F:CCf', - total_host_count = '', - network_tags = [ - '' - ], - ) - """ - - def testLocalSubnetConfig(self): - """Test LocalSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_log_config.py b/test/test_log_config.py deleted file mode 100644 index 33f838e..0000000 --- a/test/test_log_config.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.log_config import LogConfig - -class TestLogConfig(unittest.TestCase): - """LogConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LogConfig: - """Test LogConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LogConfig` - """ - model = LogConfig() - if include_optional: - return LogConfig( - level = '' - ) - else: - return LogConfig( - ) - """ - - def testLogConfig(self): - """Test LogConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_log_level.py b/test/test_log_level.py deleted file mode 100644 index 04cb031..0000000 --- a/test/test_log_level.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.log_level import LogLevel - -class TestLogLevel(unittest.TestCase): - """LogLevel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLogLevel(self): - """Test LogLevel""" - # inst = LogLevel() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mac_dtls_stack.py b/test/test_mac_dtls_stack.py deleted file mode 100644 index 744943b..0000000 --- a/test/test_mac_dtls_stack.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mac_dtls_stack import MacDtlsStack - -class TestMacDtlsStack(unittest.TestCase): - """MacDtlsStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MacDtlsStack: - """Test MacDtlsStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MacDtlsStack` - """ - model = MacDtlsStack() - if include_optional: - return MacDtlsStack( - dtls_enabled = True, - dtls_range_name = 'YBuLd', - epoch = 56, - epoch_incr = 56, - ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - network_meshing = cyperf.models.network_meshing.NetworkMeshing( - dst_ips_per_group = 56, - mapping_type = null, - src_vlans_per_group = 56, ), - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - vlan_range = cyperf.models.vlan_range.VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return MacDtlsStack( - dtls_range_name = 'YBuLd', - epoch = 56, - in_iv = '0x62ECB020', - in_iv_incr = '0x62ECB020', - in_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - in_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_iv = '0x62ECB020', - out_iv_incr = '0x62ECB020', - out_key = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - out_key_incr = '0x62ECB020842930cc01FFCCfeEe150AC32DcAEc8a83DDD7dBF7567C88195ffcea', - tunnel_count = 56, - tunnel_destination_mac_incr = '2E-B0-08-29:0c:01', - tunnel_destination_mac_start = '2E-B0-08-29:0c:01', - id = '', - ) - """ - - def testMacDtlsStack(self): - """Test MacDtlsStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mapping_type.py b/test/test_mapping_type.py deleted file mode 100644 index 46bfe08..0000000 --- a/test/test_mapping_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mapping_type import MappingType - -class TestMappingType(unittest.TestCase): - """MappingType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMappingType(self): - """Test MappingType""" - # inst = MappingType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_marked_as_deleted.py b/test/test_marked_as_deleted.py deleted file mode 100644 index d7d8ab4..0000000 --- a/test/test_marked_as_deleted.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.marked_as_deleted import MarkedAsDeleted - -class TestMarkedAsDeleted(unittest.TestCase): - """MarkedAsDeleted unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MarkedAsDeleted: - """Test MarkedAsDeleted - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MarkedAsDeleted` - """ - model = MarkedAsDeleted() - if include_optional: - return MarkedAsDeleted( - delete_progress = 56, - value = True - ) - else: - return MarkedAsDeleted( - ) - """ - - def testMarkedAsDeleted(self): - """Test MarkedAsDeleted""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_md2_tlv.py b/test/test_md2_tlv.py deleted file mode 100644 index 8b8b018..0000000 --- a/test/test_md2_tlv.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.md2_tlv import Md2Tlv - -class TestMd2Tlv(unittest.TestCase): - """Md2Tlv unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Md2Tlv: - """Test Md2Tlv - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Md2Tlv` - """ - model = Md2Tlv() - if include_optional: - return Md2Tlv( - md2_class = 56, - md2_type = 56, - md2_value = 56, - id = '' - ) - else: - return Md2Tlv( - md2_class = 56, - md2_type = 56, - md2_value = 56, - id = '', - ) - """ - - def testMd2Tlv(self): - """Test Md2Tlv""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_media_file.py b/test/test_media_file.py deleted file mode 100644 index 64a5041..0000000 --- a/test/test_media_file.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.media_file import MediaFile - -class TestMediaFile(unittest.TestCase): - """MediaFile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MediaFile: - """Test MediaFile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MediaFile` - """ - model = MediaFile() - if include_optional: - return MediaFile( - file_value = cyperf.models.file_value.FileValue( - file_name = '', - md5_sum = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '', ), - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return MediaFile( - ) - """ - - def testMediaFile(self): - """Test MediaFile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_media_track.py b/test/test_media_track.py deleted file mode 100644 index 3fd5d2e..0000000 --- a/test/test_media_track.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.media_track import MediaTrack - -class TestMediaTrack(unittest.TestCase): - """MediaTrack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MediaTrack: - """Test MediaTrack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MediaTrack` - """ - model = MediaTrack() - if include_optional: - return MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = 'VIDEO', - id = '' - ) - else: - return MediaTrack( - track_id = '', - track_type = 'VIDEO', - id = '', - ) - """ - - def testMediaTrack(self): - """Test MediaTrack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_metadata.py b/test/test_metadata.py deleted file mode 100644 index a45b674..0000000 --- a/test/test_metadata.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.metadata import Metadata - -class TestMetadata(unittest.TestCase): - """Metadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Metadata: - """Test Metadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Metadata` - """ - model = Metadata() - if include_optional: - return Metadata( - direction = '', - is_banner = True, - is_streaming = True, - keywords = [ - null - ], - legacy_names = [ - '' - ], - no_multi_flow_support = True, - protocol = '', - rtp_profile_meta = cyperf.models.rtp_profile_meta.RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True, ), - references = [ - cyperf.models.reference.Reference( - type = '', - value = '', ) - ], - requires_uniqueness = True, - severity = '', - skip_attack_generation = True, - sort_severity = '', - static = True, - supported_apps = [ - '' - ], - year = '' - ) - else: - return Metadata( - ) - """ - - def testMetadata(self): - """Test Metadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_mos_mode.py b/test/test_mos_mode.py deleted file mode 100644 index 28d0255..0000000 --- a/test/test_mos_mode.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.mos_mode import MosMode - -class TestMosMode(unittest.TestCase): - """MosMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMosMode(self): - """Test MosMode""" - # inst = MosMode() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_name_id_format.py b/test/test_name_id_format.py deleted file mode 100644 index e9babba..0000000 --- a/test/test_name_id_format.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.name_id_format import NameIdFormat - -class TestNameIdFormat(unittest.TestCase): - """NameIdFormat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNameIdFormat(self): - """Test NameIdFormat""" - # inst = NameIdFormat() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_name_server.py b/test/test_name_server.py deleted file mode 100644 index b8b81d8..0000000 --- a/test/test_name_server.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.name_server import NameServer - -class TestNameServer(unittest.TestCase): - """NameServer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NameServer: - """Test NameServer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NameServer` - """ - model = NameServer() - if include_optional: - return NameServer( - name = '4.207.188.200' - ) - else: - return NameServer( - ) - """ - - def testNameServer(self): - """Test NameServer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_mapping.py b/test/test_network_mapping.py deleted file mode 100644 index 7e72866..0000000 --- a/test/test_network_mapping.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_mapping import NetworkMapping - -class TestNetworkMapping(unittest.TestCase): - """NetworkMapping unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkMapping: - """Test NetworkMapping - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkMapping` - """ - model = NetworkMapping() - if include_optional: - return NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ] - ) - else: - return NetworkMapping( - client_network_tags = [ - '' - ], - server_network_tags = [ - '' - ], - ) - """ - - def testNetworkMapping(self): - """Test NetworkMapping""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_meshing.py b/test/test_network_meshing.py deleted file mode 100644 index 3a9d68b..0000000 --- a/test/test_network_meshing.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_meshing import NetworkMeshing - -class TestNetworkMeshing(unittest.TestCase): - """NetworkMeshing unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkMeshing: - """Test NetworkMeshing - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkMeshing` - """ - model = NetworkMeshing() - if include_optional: - return NetworkMeshing( - dst_ips_per_group = 56, - mapping_type = 'FULL_MESH', - src_vlans_per_group = 56 - ) - else: - return NetworkMeshing( - ) - """ - - def testNetworkMeshing(self): - """Test NetworkMeshing""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_profile.py b/test/test_network_profile.py deleted file mode 100644 index 2c4c8bc..0000000 --- a/test/test_network_profile.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_profile import NetworkProfile - -class TestNetworkProfile(unittest.TestCase): - """NetworkProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkProfile: - """Test NetworkProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkProfile` - """ - model = NetworkProfile() - if include_optional: - return NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return NetworkProfile( - id = '', - ) - """ - - def testNetworkProfile(self): - """Test NetworkProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_network_segment_base.py b/test/test_network_segment_base.py deleted file mode 100644 index b1b9c1c..0000000 --- a/test/test_network_segment_base.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.network_segment_base import NetworkSegmentBase - -class TestNetworkSegmentBase(unittest.TestCase): - """NetworkSegmentBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkSegmentBase: - """Test NetworkSegmentBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkSegmentBase` - """ - model = NetworkSegmentBase() - if include_optional: - return NetworkSegmentBase( - name = 'YBuLd', - id = '', - network_tags = [ - '' - ] - ) - else: - return NetworkSegmentBase( - name = 'YBuLd', - id = '', - ) - """ - - def testNetworkSegmentBase(self): - """Test NetworkSegmentBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_nodes_by_controller.py b/test/test_nodes_by_controller.py deleted file mode 100644 index 806af26..0000000 --- a/test/test_nodes_by_controller.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.nodes_by_controller import NodesByController - -class TestNodesByController(unittest.TestCase): - """NodesByController unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NodesByController: - """Test NodesByController - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NodesByController` - """ - model = NodesByController() - if include_optional: - return NodesByController( - compute_nodes = [ - '' - ], - controller_id = '' - ) - else: - return NodesByController( - ) - """ - - def testNodesByController(self): - """Test NodesByController""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_nodes_power_cycle_operation.py b/test/test_nodes_power_cycle_operation.py deleted file mode 100644 index d4ae2ff..0000000 --- a/test/test_nodes_power_cycle_operation.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation - -class TestNodesPowerCycleOperation(unittest.TestCase): - """NodesPowerCycleOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NodesPowerCycleOperation: - """Test NodesPowerCycleOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NodesPowerCycleOperation` - """ - model = NodesPowerCycleOperation() - if include_optional: - return NodesPowerCycleOperation( - controllers = [ - cyperf.models.nodes_by_controller.NodesByController( - compute_nodes = [ - '' - ], - controller_id = '', ) - ] - ) - else: - return NodesPowerCycleOperation( - ) - """ - - def testNodesPowerCycleOperation(self): - """Test NodesPowerCycleOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notification.py b/test/test_notification.py deleted file mode 100644 index b1e9fca..0000000 --- a/test/test_notification.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.notification import Notification - -class TestNotification(unittest.TestCase): - """Notification unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Notification: - """Test Notification - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Notification` - """ - model = Notification() - if include_optional: - return Notification( - alerting = True, - id = '', - message = '', - owner = '', - owner_id = '', - seen = True, - severity = '', - sticky = True, - tags = { - 'key' : '' - }, - timestamp = 56 - ) - else: - return Notification( - ) - """ - - def testNotification(self): - """Test Notification""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notification_counts.py b/test/test_notification_counts.py deleted file mode 100644 index 2e8972c..0000000 --- a/test/test_notification_counts.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.notification_counts import NotificationCounts - -class TestNotificationCounts(unittest.TestCase): - """NotificationCounts unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NotificationCounts: - """Test NotificationCounts - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NotificationCounts` - """ - model = NotificationCounts() - if include_optional: - return NotificationCounts( - all = 56, - error = 56, - info = 56, - warning = 56 - ) - else: - return NotificationCounts( - ) - """ - - def testNotificationCounts(self): - """Test NotificationCounts""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notifications_api.py b/test/test_notifications_api.py deleted file mode 100644 index 8e9988e..0000000 --- a/test/test_notifications_api.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.notifications_api import NotificationsApi - - -class TestNotificationsApi(unittest.TestCase): - """NotificationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = NotificationsApi() - - def tearDown(self) -> None: - pass - - - def test_delete_notification(self) -> None: - """Test case for delete_notification - - """ - pass - - def test_get_notification_by_id(self) -> None: - """Test case for get_notification_by_id - - """ - pass - - def test_get_notification_counts(self) -> None: - """Test case for get_notification_counts - - """ - pass - - def test_get_notifications(self) -> None: - """Test case for get_notifications - - """ - pass - - - - def test_start_notifications_cleanup(self) -> None: - """Test case for start_notifications_cleanup - - """ - pass - - def test_start_notifications_dismiss(self) -> None: - """Test case for start_notifications_dismiss - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ntp_info.py b/test/test_ntp_info.py deleted file mode 100644 index d6498ff..0000000 --- a/test/test_ntp_info.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ntp_info import NtpInfo - -class TestNtpInfo(unittest.TestCase): - """NtpInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NtpInfo: - """Test NtpInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NtpInfo` - """ - model = NtpInfo() - if include_optional: - return NtpInfo( - active_server = '', - servers = [ - '' - ], - status = '' - ) - else: - return NtpInfo( - ) - """ - - def testNtpInfo(self): - """Test NtpInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_type.py b/test/test_objective_type.py deleted file mode 100644 index 282044e..0000000 --- a/test/test_objective_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_type import ObjectiveType - -class TestObjectiveType(unittest.TestCase): - """ObjectiveType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testObjectiveType(self): - """Test ObjectiveType""" - # inst = ObjectiveType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_unit.py b/test/test_objective_unit.py deleted file mode 100644 index cd44560..0000000 --- a/test/test_objective_unit.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_unit import ObjectiveUnit - -class TestObjectiveUnit(unittest.TestCase): - """ObjectiveUnit unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testObjectiveUnit(self): - """Test ObjectiveUnit""" - # inst = ObjectiveUnit() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objective_value_entry.py b/test/test_objective_value_entry.py deleted file mode 100644 index 9c81df8..0000000 --- a/test/test_objective_value_entry.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objective_value_entry import ObjectiveValueEntry - -class TestObjectiveValueEntry(unittest.TestCase): - """ObjectiveValueEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectiveValueEntry: - """Test ObjectiveValueEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ObjectiveValueEntry` - """ - model = ObjectiveValueEntry() - if include_optional: - return ObjectiveValueEntry( - unit = '', - value = 1.337, - id = '' - ) - else: - return ObjectiveValueEntry( - value = 1.337, - id = '', - ) - """ - - def testObjectiveValueEntry(self): - """Test ObjectiveValueEntry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_objectives_and_timeline.py b/test/test_objectives_and_timeline.py deleted file mode 100644 index cc49bb0..0000000 --- a/test/test_objectives_and_timeline.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline - -class TestObjectivesAndTimeline(unittest.TestCase): - """ObjectivesAndTimeline unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ObjectivesAndTimeline: - """Test ObjectivesAndTimeline - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ObjectivesAndTimeline` - """ - model = ObjectivesAndTimeline() - if include_optional: - return ObjectivesAndTimeline( - advanced_settings = cyperf.models.advanced_settings.AdvancedSettings( - agent_optimization_mode = null, - agent_streaming_purpose_cpu_percent = 56, - automatic_cpu_percent = True, - connection_graceful_stop_timeout = 56, - warm_up_period = 56, ), - primary_objective = cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - secondary_objective = cyperf.models.secondary_objective.SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - max_simulated_users_per_interval = 56, - objective_unit = '', - objective_value = 1.337, - type = 'Simulated users', ), - secondary_objectives = [ - cyperf.models.specific_objective.SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = null, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - timeline_segments = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ObjectivesAndTimeline( - ) - """ - - def testObjectivesAndTimeline(self): - """Test ObjectivesAndTimeline""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_open_api_definitions.py b/test/test_open_api_definitions.py deleted file mode 100644 index 3eadcc9..0000000 --- a/test/test_open_api_definitions.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.open_api_definitions import OpenAPIDefinitions - -class TestOpenAPIDefinitions(unittest.TestCase): - """OpenAPIDefinitions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> OpenAPIDefinitions: - """Test OpenAPIDefinitions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `OpenAPIDefinitions` - """ - model = OpenAPIDefinitions() - if include_optional: - return OpenAPIDefinitions( - open_api_definitions = { - 'key' : null - } - ) - else: - return OpenAPIDefinitions( - ) - """ - - def testOpenAPIDefinitions(self): - """Test OpenAPIDefinitions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_p1_config.py b/test/test_p1_config.py deleted file mode 100644 index f98460b..0000000 --- a/test/test_p1_config.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.p1_config import P1Config - -class TestP1Config(unittest.TestCase): - """P1Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> P1Config: - """Test P1Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `P1Config` - """ - model = P1Config() - if include_optional: - return P1Config( - dh_group = 'MODP 768', - enc_algorithm = 'DES CBC', - hash_algorithm = 'HMAC MD5', - initial_contact = True, - lifetime = 56, - prf_algorithm = 'HMAC MD5' - ) - else: - return P1Config( - dh_group = 'MODP 768', - enc_algorithm = 'DES CBC', - hash_algorithm = 'HMAC MD5', - initial_contact = True, - lifetime = 56, - prf_algorithm = 'HMAC MD5', - ) - """ - - def testP1Config(self): - """Test P1Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_p2_config.py b/test/test_p2_config.py deleted file mode 100644 index b580fe4..0000000 --- a/test/test_p2_config.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.p2_config import P2Config - -class TestP2Config(unittest.TestCase): - """P2Config unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> P2Config: - """Test P2Config - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `P2Config` - """ - model = P2Config() - if include_optional: - return P2Config( - enc_algorithm = 'NONE', - hash_algorithm = 'HMAC MD5 96', - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = 'MODP 768' - ) - else: - return P2Config( - enc_algorithm = 'NONE', - hash_algorithm = 'HMAC MD5 96', - lifetime = 56, - nat_enabled = True, - pfs_enabled = True, - pfs_group = 'MODP 768', - ) - """ - - def testP2Config(self): - """Test P2Config""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pair.py b/test/test_pair.py deleted file mode 100644 index 8e0d795..0000000 --- a/test/test_pair.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pair import Pair - -class TestPair(unittest.TestCase): - """Pair unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Pair: - """Test Pair - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Pair` - """ - model = Pair() - if include_optional: - return Pair( - id = 56, - key = '', - value = '' - ) - else: - return Pair( - ) - """ - - def testPair(self): - """Test Pair""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pangp_encapsulation.py b/test/test_pangp_encapsulation.py deleted file mode 100644 index 1262637..0000000 --- a/test/test_pangp_encapsulation.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pangp_encapsulation import PANGPEncapsulation - -class TestPANGPEncapsulation(unittest.TestCase): - """PANGPEncapsulation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PANGPEncapsulation: - """Test PANGPEncapsulation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PANGPEncapsulation` - """ - model = PANGPEncapsulation() - if include_optional: - return PANGPEncapsulation( - esp_over_udp_enabled = True, - esp_over_udp_settings = cyperf.models.esp_over_udp_settings.ESPOverUDPSettings( - udp_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PANGPEncapsulation( - esp_over_udp_enabled = True, - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - ) - """ - - def testPANGPEncapsulation(self): - """Test PANGPEncapsulation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pangp_settings.py b/test/test_pangp_settings.py deleted file mode 100644 index de1f305..0000000 --- a/test/test_pangp_settings.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pangp_settings import PANGPSettings - -class TestPANGPSettings(unittest.TestCase): - """PANGPSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PANGPSettings: - """Test PANGPSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PANGPSettings` - """ - model = PANGPSettings() - if include_optional: - return PANGPSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - esp_probe_retry_timeout = 56, - esp_probe_timeout = 56, - gp_client_version = '', - is_portal = True, - outer_tls_client_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - pangp_encapsulation = cyperf.models.pangp_encapsulation.PANGPEncapsulation( - esp_over_udp_enabled = True, - esp_over_udp_settings = null, - encapsulation_mode = 'ESP_OVER_UDP', - udp_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - portal_hostname = '02::84', - vpn_gateway = '', - vpn_gateways = [ - '' - ] - ) - else: - return PANGPSettings( - portal_hostname = '02::84', - vpn_gateways = [ - '' - ], - ) - """ - - def testPANGPSettings(self): - """Test PANGPSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata.py b/test/test_param_metadata.py deleted file mode 100644 index 671456e..0000000 --- a/test/test_param_metadata.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata import ParamMetadata - -class TestParamMetadata(unittest.TestCase): - """ParamMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadata: - """Test ParamMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadata` - """ - model = ParamMetadata() - if include_optional: - return ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ) - ) - else: - return ParamMetadata( - ) - """ - - def testParamMetadata(self): - """Test ParamMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info.py b/test/test_param_metadata_type_info.py deleted file mode 100644 index 16afc83..0000000 --- a/test/test_param_metadata_type_info.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo - -class TestParamMetadataTypeInfo(unittest.TestCase): - """ParamMetadataTypeInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfo: - """Test ParamMetadataTypeInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfo` - """ - model = ParamMetadataTypeInfo() - if include_optional: - return ParamMetadataTypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ) - ) - else: - return ParamMetadataTypeInfo( - ) - """ - - def testParamMetadataTypeInfo(self): - """Test ParamMetadataTypeInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2.py b/test/test_param_metadata_type_info_array_v2.py deleted file mode 100644 index 320889d..0000000 --- a/test/test_param_metadata_type_info_array_v2.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_array_v2 import ParamMetadataTypeInfoArrayV2 - -class TestParamMetadataTypeInfoArrayV2(unittest.TestCase): - """ParamMetadataTypeInfoArrayV2 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoArrayV2: - """Test ParamMetadataTypeInfoArrayV2 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoArrayV2` - """ - model = ParamMetadataTypeInfoArrayV2() - if include_optional: - return ParamMetadataTypeInfoArrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ] - ) - else: - return ParamMetadataTypeInfoArrayV2( - ) - """ - - def testParamMetadataTypeInfoArrayV2(self): - """Test ParamMetadataTypeInfoArrayV2""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_array_v2_elements_inner.py b/test/test_param_metadata_type_info_array_v2_elements_inner.py deleted file mode 100644 index 78d5d80..0000000 --- a/test/test_param_metadata_type_info_array_v2_elements_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_array_v2_elements_inner import ParamMetadataTypeInfoArrayV2ElementsInner - -class TestParamMetadataTypeInfoArrayV2ElementsInner(unittest.TestCase): - """ParamMetadataTypeInfoArrayV2ElementsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoArrayV2ElementsInner: - """Test ParamMetadataTypeInfoArrayV2ElementsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoArrayV2ElementsInner` - """ - model = ParamMetadataTypeInfoArrayV2ElementsInner() - if include_optional: - return ParamMetadataTypeInfoArrayV2ElementsInner( - id = '', - type = '' - ) - else: - return ParamMetadataTypeInfoArrayV2ElementsInner( - ) - """ - - def testParamMetadataTypeInfoArrayV2ElementsInner(self): - """Test ParamMetadataTypeInfoArrayV2ElementsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_int.py b/test/test_param_metadata_type_info_int.py deleted file mode 100644 index 26867ce..0000000 --- a/test/test_param_metadata_type_info_int.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_int import ParamMetadataTypeInfoInt - -class TestParamMetadataTypeInfoInt(unittest.TestCase): - """ParamMetadataTypeInfoInt unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoInt: - """Test ParamMetadataTypeInfoInt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoInt` - """ - model = ParamMetadataTypeInfoInt() - if include_optional: - return ParamMetadataTypeInfoInt( - max_value = 56, - min_value = 56 - ) - else: - return ParamMetadataTypeInfoInt( - ) - """ - - def testParamMetadataTypeInfoInt(self): - """Test ParamMetadataTypeInfoInt""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_media.py b/test/test_param_metadata_type_info_media.py deleted file mode 100644 index 2c155ab..0000000 --- a/test/test_param_metadata_type_info_media.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_media import ParamMetadataTypeInfoMedia - -class TestParamMetadataTypeInfoMedia(unittest.TestCase): - """ParamMetadataTypeInfoMedia unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoMedia: - """Test ParamMetadataTypeInfoMedia - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoMedia` - """ - model = ParamMetadataTypeInfoMedia() - if include_optional: - return ParamMetadataTypeInfoMedia( - track_id = '', - track_type = '' - ) - else: - return ParamMetadataTypeInfoMedia( - ) - """ - - def testParamMetadataTypeInfoMedia(self): - """Test ParamMetadataTypeInfoMedia""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_metadata_type_info_string.py b/test/test_param_metadata_type_info_string.py deleted file mode 100644 index 232aa16..0000000 --- a/test/test_param_metadata_type_info_string.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_metadata_type_info_string import ParamMetadataTypeInfoString - -class TestParamMetadataTypeInfoString(unittest.TestCase): - """ParamMetadataTypeInfoString unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamMetadataTypeInfoString: - """Test ParamMetadataTypeInfoString - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamMetadataTypeInfoString` - """ - model = ParamMetadataTypeInfoString() - if include_optional: - return ParamMetadataTypeInfoString( - charset = '', - max_length = 56, - min_length = 56 - ) - else: - return ParamMetadataTypeInfoString( - ) - """ - - def testParamMetadataTypeInfoString(self): - """Test ParamMetadataTypeInfoString""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_source_type.py b/test/test_param_source_type.py deleted file mode 100644 index 863519f..0000000 --- a/test/test_param_source_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_source_type import ParamSourceType - -class TestParamSourceType(unittest.TestCase): - """ParamSourceType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testParamSourceType(self): - """Test ParamSourceType""" - # inst = ParamSourceType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_param_type.py b/test/test_param_type.py deleted file mode 100644 index 74786e6..0000000 --- a/test/test_param_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.param_type import ParamType - -class TestParamType(unittest.TestCase): - """ParamType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testParamType(self): - """Test ParamType""" - # inst = ParamType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter.py b/test/test_parameter.py deleted file mode 100644 index e1359db..0000000 --- a/test/test_parameter.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter import Parameter - -class TestParameter(unittest.TestCase): - """Parameter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Parameter: - """Test Parameter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Parameter` - """ - model = Parameter() - if include_optional: - return Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - var_field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '' - ) - else: - return Parameter( - ) - """ - - def testParameter(self): - """Test Parameter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter_match.py b/test/test_parameter_match.py deleted file mode 100644 index b365033..0000000 --- a/test/test_parameter_match.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter_match import ParameterMatch - -class TestParameterMatch(unittest.TestCase): - """ParameterMatch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterMatch: - """Test ParameterMatch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParameterMatch` - """ - model = ParameterMatch() - if include_optional: - return ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ) - ) - else: - return ParameterMatch( - ) - """ - - def testParameterMatch(self): - """Test ParameterMatch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter_meta.py b/test/test_parameter_meta.py deleted file mode 100644 index 1052ca1..0000000 --- a/test/test_parameter_meta.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter_meta import ParameterMeta - -class TestParameterMeta(unittest.TestCase): - """ParameterMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterMeta: - """Test ParameterMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParameterMeta` - """ - model = ParameterMeta() - if include_optional: - return ParameterMeta( - matches = [ - cyperf.models.parameter_match.ParameterMatch( - match_location = [ - '' - ], - match_type = '', - regex_match = cyperf.models.regex_match.RegexMatch( - patterns = [ - '' - ], ), ) - ], - name = '' - ) - else: - return ParameterMeta( - ) - """ - - def testParameterMeta(self): - """Test ParameterMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_parameter_metadata.py b/test/test_parameter_metadata.py deleted file mode 100644 index 563d577..0000000 --- a/test/test_parameter_metadata.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.parameter_metadata import ParameterMetadata - -class TestParameterMetadata(unittest.TestCase): - """ParameterMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParameterMetadata: - """Test ParameterMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParameterMetadata` - """ - model = ParameterMetadata() - if include_optional: - return ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return ParameterMetadata( - ) - """ - - def testParameterMetadata(self): - """Test ParameterMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_params.py b/test/test_params.py deleted file mode 100644 index 7bdb54b..0000000 --- a/test/test_params.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.params import Params - -class TestParams(unittest.TestCase): - """Params unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Params: - """Test Params - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Params` - """ - model = Params() - if include_optional: - return Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = cyperf.models.file_value.FileValue( - file_name = '', - md5_sum = '', - payload = [ - 'YQ==' - ], - resource_url = '', - value = '', ), - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '' - ) - else: - return Params( - id = '', - ) - """ - - def testParams(self): - """Test Params""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_params_enum.py b/test/test_params_enum.py deleted file mode 100644 index 47ac4f7..0000000 --- a/test/test_params_enum.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.params_enum import ParamsEnum - -class TestParamsEnum(unittest.TestCase): - """ParamsEnum unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ParamsEnum: - """Test ParamsEnum - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ParamsEnum` - """ - model = ParamsEnum() - if include_optional: - return ParamsEnum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ] - ) - else: - return ParamsEnum( - ) - """ - - def testParamsEnum(self): - """Test ParamsEnum""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payload_meta.py b/test/test_payload_meta.py deleted file mode 100644 index 8a48d0d..0000000 --- a/test/test_payload_meta.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.payload_meta import PayloadMeta - -class TestPayloadMeta(unittest.TestCase): - """PayloadMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PayloadMeta: - """Test PayloadMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PayloadMeta` - """ - model = PayloadMeta() - if include_optional: - return PayloadMeta( - byte_size = 56, - content_file_url = '', - file_name = '', - location = '', - md5sum = '', - resource_url = '' - ) - else: - return PayloadMeta( - ) - """ - - def testPayloadMeta(self): - """Test PayloadMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_payload_metadata.py b/test/test_payload_metadata.py deleted file mode 100644 index 6f53040..0000000 --- a/test/test_payload_metadata.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.payload_metadata import PayloadMetadata - -class TestPayloadMetadata(unittest.TestCase): - """PayloadMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PayloadMetadata: - """Test PayloadMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PayloadMetadata` - """ - model = PayloadMetadata() - if include_optional: - return PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '' - ) - else: - return PayloadMetadata( - ) - """ - - def testPayloadMetadata(self): - """Test PayloadMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pep_dut.py b/test/test_pep_dut.py deleted file mode 100644 index ac5940f..0000000 --- a/test/test_pep_dut.py +++ /dev/null @@ -1,372 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pep_dut import PepDUT - -class TestPepDUT(unittest.TestCase): - """PepDUT unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PepDUT: - """Test PepDUT - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PepDUT` - """ - model = PepDUT() - if include_optional: - return PepDUT( - auth_method = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - auth_profile_params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - auth_profile_type = '', - hostname_suffix = '252.7.188.200', - idp_type = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - is_explicit_proxy = True, - pep_host = '252.7.188.200', - pep_port = 56, - simulated_id_p = cyperf.models.simulated_id_p.SimulatedIdP( - assertion_signature = True, - audience_uri = '', - cert_config = null, - name_id_format = null, - response_signature = True, - signature_algorithm = null, - single_sign_on_url = '', - xml_metadata = [ - 'YQ==' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PepDUT( - ) - """ - - def testPepDUT(self): - """Test PepDUT""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_pfs_p2_group.py b/test/test_pfs_p2_group.py deleted file mode 100644 index fd35cad..0000000 --- a/test/test_pfs_p2_group.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.pfs_p2_group import PfsP2Group - -class TestPfsP2Group(unittest.TestCase): - """PfsP2Group unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPfsP2Group(self): - """Test PfsP2Group""" - # inst = PfsP2Group() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_playlist_metadata.py b/test/test_playlist_metadata.py deleted file mode 100644 index f5c3ca0..0000000 --- a/test/test_playlist_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.playlist_metadata import PlaylistMetadata - -class TestPlaylistMetadata(unittest.TestCase): - """PlaylistMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlaylistMetadata: - """Test PlaylistMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlaylistMetadata` - """ - model = PlaylistMetadata() - if include_optional: - return PlaylistMetadata( - column = '', - file_name = '' - ) - else: - return PlaylistMetadata( - ) - """ - - def testPlaylistMetadata(self): - """Test PlaylistMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_plugin.py b/test/test_plugin.py deleted file mode 100644 index 3c160a7..0000000 --- a/test/test_plugin.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.plugin import Plugin - -class TestPlugin(unittest.TestCase): - """Plugin unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Plugin: - """Test Plugin - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Plugin` - """ - model = Plugin() - if include_optional: - return Plugin( - id = '', - keys = [ - '' - ], - name = '', - version = '' - ) - else: - return Plugin( - ) - """ - - def testPlugin(self): - """Test Plugin""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_plugin_stats.py b/test/test_plugin_stats.py deleted file mode 100644 index 4eee84e..0000000 --- a/test/test_plugin_stats.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.plugin_stats import PluginStats - -class TestPluginStats(unittest.TestCase): - """PluginStats unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PluginStats: - """Test PluginStats - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PluginStats` - """ - model = PluginStats() - if include_optional: - return PluginStats( - plugin = '', - stats = [ - { - 'key' : null - } - ], - version = '' - ) - else: - return PluginStats( - ) - """ - - def testPluginStats(self): - """Test PluginStats""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_port.py b/test/test_port.py deleted file mode 100644 index 9721884..0000000 --- a/test/test_port.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.port import Port - -class TestPort(unittest.TestCase): - """Port unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Port: - """Test Port - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Port` - """ - model = Port() - if include_optional: - return Port( - disabled = True, - id = '', - link = '', - name = '', - reserved_by = '', - speed = '', - status = '', - tags = [ - '' - ], - traffic_status = '' - ) - else: - return Port( - ) - """ - - def testPort(self): - """Test Port""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_port_settings.py b/test/test_port_settings.py deleted file mode 100644 index 7960e20..0000000 --- a/test/test_port_settings.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.port_settings import PortSettings - -class TestPortSettings(unittest.TestCase): - """PortSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortSettings: - """Test PortSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortSettings` - """ - model = PortSettings() - if include_optional: - return PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - effective_ports = cyperf.models.effective_ports.EffectivePorts( - effective_destination_port = '', - effective_forward_proxy_port = '', - effective_server_port = '', ), - forward_proxy_port = 56, - readonly = True, - server_listen_port = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return PortSettings( - automatic = True, - automatic_destination_port = True, - automatic_forward_proxy_port = True, - destination_port = 56, - forward_proxy_port = 56, - server_listen_port = 56, - ) - """ - - def testPortSettings(self): - """Test PortSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ports_by_controller.py b/test/test_ports_by_controller.py deleted file mode 100644 index 931f38b..0000000 --- a/test/test_ports_by_controller.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ports_by_controller import PortsByController - -class TestPortsByController(unittest.TestCase): - """PortsByController unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortsByController: - """Test PortsByController - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortsByController` - """ - model = PortsByController() - if include_optional: - return PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '' - ) - else: - return PortsByController( - ) - """ - - def testPortsByController(self): - """Test PortsByController""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ports_by_node.py b/test/test_ports_by_node.py deleted file mode 100644 index 7c0e989..0000000 --- a/test/test_ports_by_node.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.ports_by_node import PortsByNode - -class TestPortsByNode(unittest.TestCase): - """PortsByNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PortsByNode: - """Test PortsByNode - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PortsByNode` - """ - model = PortsByNode() - if include_optional: - return PortsByNode( - compute_node_id = '', - ports = [ - '' - ] - ) - else: - return PortsByNode( - ) - """ - - def testPortsByNode(self): - """Test PortsByNode""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prepare_test_operation.py b/test/test_prepare_test_operation.py deleted file mode 100644 index 84a3983..0000000 --- a/test/test_prepare_test_operation.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prepare_test_operation import PrepareTestOperation - -class TestPrepareTestOperation(unittest.TestCase): - """PrepareTestOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PrepareTestOperation: - """Test PrepareTestOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PrepareTestOperation` - """ - model = PrepareTestOperation() - if include_optional: - return PrepareTestOperation( - options = cyperf.models.prepared_test_options.PreparedTestOptions( - add_activity_meta = True, - datasource_for_ui_views = '', - extra_tags = { - 'key' : [ - '' - ] - }, - filter_by_properties = { - 'key' : '' - }, - format_protocol_name = True, - override_properties = { - 'key' : '' - }, ), - message = '', - new_state = '', - old_state = '', - owner = '', - owner_id = '', - reason = '', - test_id = '', - timestamp = 56 - ) - else: - return PrepareTestOperation( - ) - """ - - def testPrepareTestOperation(self): - """Test PrepareTestOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prepared_test_options.py b/test/test_prepared_test_options.py deleted file mode 100644 index 4a09fd5..0000000 --- a/test/test_prepared_test_options.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prepared_test_options import PreparedTestOptions - -class TestPreparedTestOptions(unittest.TestCase): - """PreparedTestOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PreparedTestOptions: - """Test PreparedTestOptions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PreparedTestOptions` - """ - model = PreparedTestOptions() - if include_optional: - return PreparedTestOptions( - add_activity_meta = True, - datasource_for_ui_views = '', - extra_tags = { - 'key' : [ - '' - ] - }, - filter_by_properties = { - 'key' : '' - }, - format_protocol_name = True, - override_properties = { - 'key' : '' - } - ) - else: - return PreparedTestOptions( - ) - """ - - def testPreparedTestOptions(self): - """Test PreparedTestOptions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_prf_p1_algorithm.py b/test/test_prf_p1_algorithm.py deleted file mode 100644 index 7767976..0000000 --- a/test/test_prf_p1_algorithm.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.prf_p1_algorithm import PrfP1Algorithm - -class TestPrfP1Algorithm(unittest.TestCase): - """PrfP1Algorithm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPrfP1Algorithm(self): - """Test PrfP1Algorithm""" - # inst = PrfP1Algorithm() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_protected_subnet_config.py b/test/test_protected_subnet_config.py deleted file mode 100644 index f9d0eff..0000000 --- a/test/test_protected_subnet_config.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.protected_subnet_config import ProtectedSubnetConfig - -class TestProtectedSubnetConfig(unittest.TestCase): - """ProtectedSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProtectedSubnetConfig: - """Test ProtectedSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProtectedSubnetConfig` - """ - model = ProtectedSubnetConfig() - if include_optional: - return ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf' - ) - else: - return ProtectedSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_protected_subnet = True, - start = '::02:84:9:0cc0:F:CCf', - ) - """ - - def testProtectedSubnetConfig(self): - """Test ProtectedSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_quic_profile.py b/test/test_quic_profile.py deleted file mode 100644 index 904dfe4..0000000 --- a/test/test_quic_profile.py +++ /dev/null @@ -1,224 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.quic_profile import QUICProfile - -class TestQUICProfile(unittest.TestCase): - """QUICProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QUICProfile: - """Test QUICProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QUICProfile` - """ - model = QUICProfile() - if include_optional: - return QUICProfile( - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - min_rto = 56, - name = '', - quic_version = 'Q043', - rx_buffer = 56, - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return QUICProfile( - ) - """ - - def testQUICProfile(self): - """Test QUICProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_quic_version.py b/test/test_quic_version.py deleted file mode 100644 index 274a51c..0000000 --- a/test/test_quic_version.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.quic_version import QUICVersion - -class TestQUICVersion(unittest.TestCase): - """QUICVersion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testQUICVersion(self): - """Test QUICVersion""" - # inst = QUICVersion() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reboot_operation_input.py b/test/test_reboot_operation_input.py deleted file mode 100644 index 272a6d0..0000000 --- a/test/test_reboot_operation_input.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reboot_operation_input import RebootOperationInput - -class TestRebootOperationInput(unittest.TestCase): - """RebootOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RebootOperationInput: - """Test RebootOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RebootOperationInput` - """ - model = RebootOperationInput() - if include_optional: - return RebootOperationInput( - agents = [ - cyperf.models.agent_to_be_rebooted.AgentToBeRebooted( - agent_id = '', ) - ], - soft_reboot = True - ) - else: - return RebootOperationInput( - ) - """ - - def testRebootOperationInput(self): - """Test RebootOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reboot_ports_operation.py b/test/test_reboot_ports_operation.py deleted file mode 100644 index a59b4a6..0000000 --- a/test/test_reboot_ports_operation.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reboot_ports_operation import RebootPortsOperation - -class TestRebootPortsOperation(unittest.TestCase): - """RebootPortsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RebootPortsOperation: - """Test RebootPortsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RebootPortsOperation` - """ - model = RebootPortsOperation() - if include_optional: - return RebootPortsOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ] - ) - else: - return RebootPortsOperation( - ) - """ - - def testRebootPortsOperation(self): - """Test RebootPortsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reference.py b/test/test_reference.py deleted file mode 100644 index b0e506d..0000000 --- a/test/test_reference.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reference import Reference - -class TestReference(unittest.TestCase): - """Reference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Reference: - """Test Reference - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Reference` - """ - model = Reference() - if include_optional: - return Reference( - type = '', - value = '' - ) - else: - return Reference( - ) - """ - - def testReference(self): - """Test Reference""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_regex_match.py b/test/test_regex_match.py deleted file mode 100644 index b7348ba..0000000 --- a/test/test_regex_match.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.regex_match import RegexMatch - -class TestRegexMatch(unittest.TestCase): - """RegexMatch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RegexMatch: - """Test RegexMatch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RegexMatch` - """ - model = RegexMatch() - if include_optional: - return RegexMatch( - patterns = [ - '' - ] - ) - else: - return RegexMatch( - ) - """ - - def testRegexMatch(self): - """Test RegexMatch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_release_operation_input.py b/test/test_release_operation_input.py deleted file mode 100644 index ed92eff..0000000 --- a/test/test_release_operation_input.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.release_operation_input import ReleaseOperationInput - -class TestReleaseOperationInput(unittest.TestCase): - """ReleaseOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReleaseOperationInput: - """Test ReleaseOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReleaseOperationInput` - """ - model = ReleaseOperationInput() - if include_optional: - return ReleaseOperationInput( - agents_data = [ - cyperf.models.agent_release.AgentRelease( - agent_id = '', ) - ], - session_id = '' - ) - else: - return ReleaseOperationInput( - ) - """ - - def testReleaseOperationInput(self): - """Test ReleaseOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_remote_access.py b/test/test_remote_access.py deleted file mode 100644 index d6e9077..0000000 --- a/test/test_remote_access.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.remote_access import RemoteAccess - -class TestRemoteAccess(unittest.TestCase): - """RemoteAccess unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RemoteAccess: - """Test RemoteAccess - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RemoteAccess` - """ - model = RemoteAccess() - if include_optional: - return RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_start = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56 - ) - else: - return RemoteAccess( - mode_cfg_increment = '::02:84:9:0cc0:F:CCf', - mode_cfg_suffix = 56, - ) - """ - - def testRemoteAccess(self): - """Test RemoteAccess""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_remote_subnet_config.py b/test/test_remote_subnet_config.py deleted file mode 100644 index 14424a9..0000000 --- a/test/test_remote_subnet_config.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.remote_subnet_config import RemoteSubnetConfig - -class TestRemoteSubnetConfig(unittest.TestCase): - """RemoteSubnetConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RemoteSubnetConfig: - """Test RemoteSubnetConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RemoteSubnetConfig` - """ - model = RemoteSubnetConfig() - if include_optional: - return RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf' - ) - else: - return RemoteSubnetConfig( - automatic = True, - hosts_increment = '::02:84:9:0cc0:F:CCf', - hosts_prefix = 56, - increment = '::02:84:9:0cc0:F:CCf', - prefix = 56, - single_remote_subnet = True, - start = '::02:84:9:0cc0:F:CCf', - ) - """ - - def testRemoteSubnetConfig(self): - """Test RemoteSubnetConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rename_input.py b/test/test_rename_input.py deleted file mode 100644 index c21c1bd..0000000 --- a/test/test_rename_input.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rename_input import RenameInput - -class TestRenameInput(unittest.TestCase): - """RenameInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RenameInput: - """Test RenameInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RenameInput` - """ - model = RenameInput() - if include_optional: - return RenameInput( - new_action_name = '', - old_action_name = '' - ) - else: - return RenameInput( - ) - """ - - def testRenameInput(self): - """Test RenameInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reorder_action_input.py b/test/test_reorder_action_input.py deleted file mode 100644 index 6a09a71..0000000 --- a/test/test_reorder_action_input.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reorder_action_input import ReorderActionInput - -class TestReorderActionInput(unittest.TestCase): - """ReorderActionInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReorderActionInput: - """Test ReorderActionInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReorderActionInput` - """ - model = ReorderActionInput() - if include_optional: - return ReorderActionInput( - action_idx = 56, - action_name = '' - ) - else: - return ReorderActionInput( - ) - """ - - def testReorderActionInput(self): - """Test ReorderActionInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reorder_exchanges_input.py b/test/test_reorder_exchanges_input.py deleted file mode 100644 index e39345a..0000000 --- a/test/test_reorder_exchanges_input.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reorder_exchanges_input import ReorderExchangesInput - -class TestReorderExchangesInput(unittest.TestCase): - """ReorderExchangesInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReorderExchangesInput: - """Test ReorderExchangesInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReorderExchangesInput` - """ - model = ReorderExchangesInput() - if include_optional: - return ReorderExchangesInput( - action_name = '', - exchanges_order = [ - cyperf.models.exchange_order.ExchangeOrder( - exchange_id = '', - exchange_idx = 56, ) - ], - flow_idx = 56 - ) - else: - return ReorderExchangesInput( - ) - """ - - def testReorderExchangesInput(self): - """Test ReorderExchangesInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_replay_capture.py b/test/test_replay_capture.py deleted file mode 100644 index d4f9440..0000000 --- a/test/test_replay_capture.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.replay_capture import ReplayCapture - -class TestReplayCapture(unittest.TestCase): - """ReplayCapture unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReplayCapture: - """Test ReplayCapture - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReplayCapture` - """ - model = ReplayCapture() - if include_optional: - return ReplayCapture( - flows = [ - cyperf.models.app_flow.AppFlow( - display_id = '', - dst_address = 'YQ==', - dst_port = 56, - exchanges = [ - cyperf.models.app_exchange.AppExchange( - c2s_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - metadata = cyperf.models.file_metadata.FileMetadata( - default = True, - user_visible = True, ), - name = '', - options = { - 'key' : null - }, - owner = '', - owner_id = '', - reference_links = { - 'key' : 56 - }, - size = 56, - type = '', ), - http_req_meta = cyperf.models.http_req_meta.HTTPReqMeta( - headers = { - 'key' : [ - '' - ] - }, - hostname = '', - method = '', - size = 56, - uri = '', - version = '', ), - http_res_meta = cyperf.models.http_res_meta.HTTPResMeta( - size = 56, - status = '', - status_code = 56, - version = '', ), - id = '', - name = '', - payload = cyperf.models.exchange_payload.ExchangePayload( - c2s = 'YQ==', - s2c = 'YQ==', ), - s2c_payload = cyperf.models.generic_file.GenericFile( - content = 'YQ==', - id = '', - is_public = True, - md5 = '', - name = '', - owner = '', - owner_id = '', - size = 56, - type = '', ), ) - ], - http_host = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - src_address = 'YQ==', - src_port = 56, - transport_type = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name = '', - owner = '', - owner_id = '' - ) - else: - return ReplayCapture( - ) - """ - - def testReplayCapture(self): - """Test ReplayCapture""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reports_api.py b/test/test_reports_api.py deleted file mode 100644 index d193b45..0000000 --- a/test/test_reports_api.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.reports_api import ReportsApi - - -class TestReportsApi(unittest.TestCase): - """ReportsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ReportsApi() - - def tearDown(self) -> None: - pass - - - def test_download_pdf(self) -> None: - """Test case for download_pdf - - """ - pass - - def test_get_result_download_csv_by_id(self) -> None: - """Test case for get_result_download_csv_by_id - - """ - pass - - - - def test_start_result_generate_csv(self) -> None: - """Test case for start_result_generate_csv - - """ - pass - - def test_start_result_generate_pdf(self) -> None: - """Test case for start_result_generate_pdf - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_required_file_types.py b/test/test_required_file_types.py deleted file mode 100644 index ccfeeba..0000000 --- a/test/test_required_file_types.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.required_file_types import RequiredFileTypes - -class TestRequiredFileTypes(unittest.TestCase): - """RequiredFileTypes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RequiredFileTypes: - """Test RequiredFileTypes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RequiredFileTypes` - """ - model = RequiredFileTypes() - if include_optional: - return RequiredFileTypes( - csvs = True, - packet_capture = True, - syslog = True, - traffic_agent_log = True - ) - else: - return RequiredFileTypes( - ) - """ - - def testRequiredFileTypes(self): - """Test RequiredFileTypes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_reserve_operation_input.py b/test/test_reserve_operation_input.py deleted file mode 100644 index 24be352..0000000 --- a/test/test_reserve_operation_input.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.reserve_operation_input import ReserveOperationInput - -class TestReserveOperationInput(unittest.TestCase): - """ReserveOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReserveOperationInput: - """Test ReserveOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReserveOperationInput` - """ - model = ReserveOperationInput() - if include_optional: - return ReserveOperationInput( - agents_data = [ - cyperf.models.agent_reservation.AgentReservation( - agent_id = '', - agent_payload_names = [ - '' - ], - general_purpose_cpu_percent = 56, - interfaces = [ - '' - ], - ip_address_version_used = '', - optimization_mode = '', ) - ], - force = True, - owner = '', - owner_id = '', - payloads = { - 'key' : cyperf.models.payload_meta.PayloadMeta( - byte_size = 56, - content_file_url = '', - file_name = '', - location = '', - md5sum = '', - resource_url = '', ) - }, - session_id = '', - session_name = '' - ) - else: - return ReserveOperationInput( - ) - """ - - def testReserveOperationInput(self): - """Test ReserveOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_result_file_metadata.py b/test/test_result_file_metadata.py deleted file mode 100644 index e9b71f8..0000000 --- a/test/test_result_file_metadata.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.result_file_metadata import ResultFileMetadata - -class TestResultFileMetadata(unittest.TestCase): - """ResultFileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultFileMetadata: - """Test ResultFileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultFileMetadata` - """ - model = ResultFileMetadata() - if include_optional: - return ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '' - ) - else: - return ResultFileMetadata( - ) - """ - - def testResultFileMetadata(self): - """Test ResultFileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_result_metadata.py b/test/test_result_metadata.py deleted file mode 100644 index f11cd7e..0000000 --- a/test/test_result_metadata.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.result_metadata import ResultMetadata - -class TestResultMetadata(unittest.TestCase): - """ResultMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultMetadata: - """Test ResultMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultMetadata` - """ - model = ResultMetadata() - if include_optional: - return ResultMetadata( - active_session = '', - config_url = '', - csv_url = '', - display_name = '', - download_all = None, - download_diagnostic = None, - end_time = 56, - files = [ - cyperf.models.result_file_metadata.ResultFileMetadata( - file_id = '', - file_name = '', - id = '', - last_modified = 56, - result_id = '', - type = '', ) - ], - id = '', - last_modified = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - marked_as_deleted = cyperf.models.marked_as_deleted.MarkedAsDeleted( - delete_progress = 56, - value = True, ), - owner = '', - owner_id = '', - pdf_url = '', - pinned = True, - report_types = [ - '' - ], - reporting_links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - result_url = '', - start_time = 56, - tags = { - 'key' : '' - }, - test_name = '', - type = '', - user_tags = [ - '' - ] - ) - else: - return ResultMetadata( - ) - """ - - def testResultMetadata(self): - """Test ResultMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_results_group.py b/test/test_results_group.py deleted file mode 100644 index 87f4108..0000000 --- a/test/test_results_group.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.results_group import ResultsGroup - -class TestResultsGroup(unittest.TestCase): - """ResultsGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultsGroup: - """Test ResultsGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultsGroup` - """ - model = ResultsGroup() - if include_optional: - return ResultsGroup( - name = '', - results = [ - '' - ] - ) - else: - return ResultsGroup( - ) - """ - - def testResultsGroup(self): - """Test ResultsGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_encryption_mode.py b/test/test_rtp_encryption_mode.py deleted file mode 100644 index d1bd493..0000000 --- a/test/test_rtp_encryption_mode.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_encryption_mode import RTPEncryptionMode - -class TestRTPEncryptionMode(unittest.TestCase): - """RTPEncryptionMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRTPEncryptionMode(self): - """Test RTPEncryptionMode""" - # inst = RTPEncryptionMode() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_profile.py b/test/test_rtp_profile.py deleted file mode 100644 index 0916121..0000000 --- a/test/test_rtp_profile.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_profile import RTPProfile - -class TestRTPProfile(unittest.TestCase): - """RTPProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RTPProfile: - """Test RTPProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RTPProfile` - """ - model = RTPProfile() - if include_optional: - return RTPProfile( - encryption_mode = 'ZOOM', - mos_mode = 'DISABLED', - profile_id = '' - ) - else: - return RTPProfile( - encryption_mode = 'ZOOM', - mos_mode = 'DISABLED', - profile_id = '', - ) - """ - - def testRTPProfile(self): - """Test RTPProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_rtp_profile_meta.py b/test/test_rtp_profile_meta.py deleted file mode 100644 index 6b48767..0000000 --- a/test/test_rtp_profile_meta.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.rtp_profile_meta import RTPProfileMeta - -class TestRTPProfileMeta(unittest.TestCase): - """RTPProfileMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RTPProfileMeta: - """Test RTPProfileMeta - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RTPProfileMeta` - """ - model = RTPProfileMeta() - if include_optional: - return RTPProfileMeta( - custom_header_len_offset = 56, - custom_header_len_size = 56, - custom_header_signature = 'YQ==', - custom_header_signature_offset = 56, - custom_header_size = 56, - encryption_mode = '', - requires_rtp_profile = True - ) - else: - return RTPProfileMeta( - ) - """ - - def testRTPProfileMeta(self): - """Test RTPProfileMeta""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_save_config_operation.py b/test/test_save_config_operation.py deleted file mode 100644 index ab5c4ad..0000000 --- a/test/test_save_config_operation.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.save_config_operation import SaveConfigOperation - -class TestSaveConfigOperation(unittest.TestCase): - """SaveConfigOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SaveConfigOperation: - """Test SaveConfigOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SaveConfigOperation` - """ - model = SaveConfigOperation() - if include_optional: - return SaveConfigOperation( - name = '' - ) - else: - return SaveConfigOperation( - ) - """ - - def testSaveConfigOperation(self): - """Test SaveConfigOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_scenario.py b/test/test_scenario.py deleted file mode 100644 index 9a20c65..0000000 --- a/test/test_scenario.py +++ /dev/null @@ -1,489 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.scenario import Scenario - -class TestScenario(unittest.TestCase): - """Scenario unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Scenario: - """Test Scenario - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Scenario` - """ - model = Scenario() - if include_optional: - return Scenario( - action_timeout = 56, - active = True, - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - connections = [ - cyperf.models.connection.Connection( - client_endpoint = '', - client_port = 56, - closing_end = '', - disable_encryption = True, - hostname = '', - hostname_param = null, - http_forward_proxy_mode = 'INHERIT_DUT', - is_deprecated = True, - max_transactions = 56, - name = '', - port_settings = null, - readonly = True, - readonly_hostname = True, - readonly_max_trans = True, - readonly_type = True, - server_endpoint = '', - server_port = 56, - type = 'http', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - connections_max_transactions = 56, - description = '', - destination_hostname = '', - dnn_id = '', - end_point_id = 56, - endpoints = [ - cyperf.models.endpoint.Endpoint( - name = '', - network_mapping = null, - type = 'Client', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - external_resource_url = '', - index = 56, - inherit_http_profile = True, - inherit_quic_profile = True, - ip_preference = 'IPV4_ONLY', - is_deprecated = True, - iteration_count = 56, - max_active_limit = 56, - name = 'YBuLd', - network_mapping = cyperf.models.network_mapping.NetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - server_network_tags = [ - '' - ], ), - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - protocol_id = '', - qos_flow_id = '', - readonly_max_trans = True, - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - supports_client_http_profile = True, - supports_http_profiles = True, - supports_server_http_profile = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Scenario( - ) - """ - - def testScenario(self): - """Test Scenario""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_secondary_objective.py b/test/test_secondary_objective.py deleted file mode 100644 index 871bee3..0000000 --- a/test/test_secondary_objective.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.secondary_objective import SecondaryObjective - -class TestSecondaryObjective(unittest.TestCase): - """SecondaryObjective unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecondaryObjective: - """Test SecondaryObjective - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SecondaryObjective` - """ - model = SecondaryObjective() - if include_optional: - return SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - max_simulated_users_per_interval = 56, - objective_unit = '', - objective_value = 1.337, - type = 'Simulated users' - ) - else: - return SecondaryObjective( - enabled = True, - max_pending_simulated_users = '4', - objective_unit = '', - objective_value = 1.337, - type = 'Simulated users', - ) - """ - - def testSecondaryObjective(self): - """Test SecondaryObjective""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_segment_type.py b/test/test_segment_type.py deleted file mode 100644 index 6deee34..0000000 --- a/test/test_segment_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.segment_type import SegmentType - -class TestSegmentType(unittest.TestCase): - """SegmentType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSegmentType(self): - """Test SegmentType""" - # inst = SegmentType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_selected_env.py b/test/test_selected_env.py deleted file mode 100644 index bce8dce..0000000 --- a/test/test_selected_env.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.selected_env import SelectedEnv - -class TestSelectedEnv(unittest.TestCase): - """SelectedEnv unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SelectedEnv: - """Test SelectedEnv - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SelectedEnv` - """ - model = SelectedEnv() - if include_optional: - return SelectedEnv( - session_id = '', - test_interface = [ - cyperf.models.interface.Interface( - gateway = '', - ip = [ - cyperf.models.ip_mask.IpMask( - net_mask = 56, ) - ], - mtu = 56, - mac = '', - name = '', ) - ], - token = '' - ) - else: - return SelectedEnv( - ) - """ - - def testSelectedEnv(self): - """Test SelectedEnv""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session.py b/test/test_session.py deleted file mode 100644 index c02176a..0000000 --- a/test/test_session.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session import Session - -class TestSession(unittest.TestCase): - """Session unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Session: - """Test Session - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Session` - """ - model = Session() - if include_optional: - return Session( - application = '', - config = cyperf.models.appsec_config.AppsecConfig( - config = cyperf.models.config.Config( - attack_profiles = [ - null - ], - config_validation = null, - custom_dashboards = null, - expected_disk_space = [ - cyperf.models.expected_disk_space.ExpectedDiskSpace( - message = cyperf.models.expected_disk_space_message.ExpectedDiskSpace_message( - per_minute = '', - per_second = '', - total = '', ), - pretty_size = cyperf.models.expected_disk_space_pretty_size.ExpectedDiskSpace_prettySize( - per_minute = '', - per_second = '', - total = '', ), - size = cyperf.models.expected_disk_space_size.ExpectedDiskSpace_size( - per_minute = 56, - per_second = 56, - total = 56, ), ) - ], - network_profiles = [ - cyperf.models.network_profile.NetworkProfile( - dut_network_segment = [ - null - ], - ip_network_segment = [ - null - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - snowflake_exporter = null, - traffic_profiles = [ - null - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - validate_session_config = [ - 'YQ==' - ], ), - session_id = '', - template_id = '', - config_type_name = '', - data_model_version = '', - id = '', - links = , - name = '', ), - config_name = '', - config_url = '', - created = 56, - data_model_url = '', - id = '', - index = 56, - last_visited = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - meta = [ - cyperf.models.pair.Pair( - id = 56, - key = '', - value = '', ) - ], - name = '', - owner = '', - owner_id = '', - pinned = True, - state = '', - test = cyperf.models.test_info.TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56, ) - ) - else: - return Session( - ) - """ - - def testSession(self): - """Test Session""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session_reuse_method_tls12.py b/test/test_session_reuse_method_tls12.py deleted file mode 100644 index cba922c..0000000 --- a/test/test_session_reuse_method_tls12.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 - -class TestSessionReuseMethodTLS12(unittest.TestCase): - """SessionReuseMethodTLS12 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSessionReuseMethodTLS12(self): - """Test SessionReuseMethodTLS12""" - # inst = SessionReuseMethodTLS12() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_session_reuse_method_tls13.py b/test/test_session_reuse_method_tls13.py deleted file mode 100644 index da12401..0000000 --- a/test/test_session_reuse_method_tls13.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 - -class TestSessionReuseMethodTLS13(unittest.TestCase): - """SessionReuseMethodTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSessionReuseMethodTLS13(self): - """Test SessionReuseMethodTLS13""" - # inst = SessionReuseMethodTLS13() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sessions_api.py b/test/test_sessions_api.py deleted file mode 100644 index 28b8619..0000000 --- a/test/test_sessions_api.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.sessions_api import SessionsApi - - -class TestSessionsApi(unittest.TestCase): - """SessionsApi unit test stubs""" - - def setUp(self) -> None: - self.api = SessionsApi() - - def tearDown(self) -> None: - pass - - - def test_create_session_meta(self) -> None: - """Test case for create_session_meta - - """ - pass - - def test_create_sessions(self) -> None: - """Test case for create_sessions - - """ - pass - - def test_delete_session(self) -> None: - """Test case for delete_session - - """ - pass - - def test_delete_session_meta(self) -> None: - """Test case for delete_session_meta - - """ - pass - - def test_get_config_docs(self) -> None: - """Test case for get_config_docs - - """ - pass - - def test_get_config_granular_stats(self) -> None: - """Test case for get_config_granular_stats - - """ - pass - - def test_get_config_granular_stats_filters(self) -> None: - """Test case for get_config_granular_stats_filters - - """ - pass - - def test_get_session_by_id(self) -> None: - """Test case for get_session_by_id - - """ - pass - - def test_get_session_config(self) -> None: - """Test case for get_session_config - - """ - pass - - def test_get_session_meta(self) -> None: - """Test case for get_session_meta - - """ - pass - - def test_get_session_meta_by_id(self) -> None: - """Test case for get_session_meta_by_id - - """ - pass - - def test_get_session_test(self) -> None: - """Test case for get_session_test - - """ - pass - - def test_get_sessions(self) -> None: - """Test case for get_sessions - - """ - pass - - def test_patch_session(self) -> None: - """Test case for patch_session - - """ - pass - - def test_patch_session_meta(self) -> None: - """Test case for patch_session_meta - - """ - pass - - def test_patch_session_test(self) -> None: - """Test case for patch_session_test - - """ - pass - - - - - - - - - - - def test_start_config_add_applications(self) -> None: - """Test case for start_config_add_applications - - """ - pass - - def test_start_session_config_granular_stats_default_dashboards(self) -> None: - """Test case for start_session_config_granular_stats_default_dashboards - - """ - pass - - def test_start_session_config_save(self) -> None: - """Test case for start_session_config_save - - """ - pass - - def test_start_session_load_config(self) -> None: - """Test case for start_session_load_config - - """ - pass - - def test_start_session_prepare_test(self) -> None: - """Test case for start_session_prepare_test - - """ - pass - - def test_start_session_test_end(self) -> None: - """Test case for start_session_test_end - - """ - pass - - def test_start_session_test_init(self) -> None: - """Test case for start_session_test_init - - """ - pass - - def test_start_session_touch(self) -> None: - """Test case for start_session_touch - - """ - pass - - def test_start_sessions_batch_delete(self) -> None: - """Test case for start_sessions_batch_delete - - """ - pass - - def test_update_session(self) -> None: - """Test case for update_session - - """ - pass - - def test_update_session_config(self) -> None: - """Test case for update_session_config - - """ - pass - - def test_update_session_meta(self) -> None: - """Test case for update_session_meta - - """ - pass - - def test_update_session_test(self) -> None: - """Test case for update_session_test - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_aggregation_mode_operation.py b/test/test_set_aggregation_mode_operation.py deleted file mode 100644 index 5a26a7e..0000000 --- a/test/test_set_aggregation_mode_operation.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation - -class TestSetAggregationModeOperation(unittest.TestCase): - """SetAggregationModeOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetAggregationModeOperation: - """Test SetAggregationModeOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetAggregationModeOperation` - """ - model = SetAggregationModeOperation() - if include_optional: - return SetAggregationModeOperation( - aggregated = True, - controllers = [ - cyperf.models.nodes_by_controller.NodesByController( - compute_nodes = [ - '' - ], - controller_id = '', ) - ] - ) - else: - return SetAggregationModeOperation( - ) - """ - - def testSetAggregationModeOperation(self): - """Test SetAggregationModeOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_app_operation.py b/test/test_set_app_operation.py deleted file mode 100644 index eb8b9c8..0000000 --- a/test/test_set_app_operation.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_app_operation import SetAppOperation - -class TestSetAppOperation(unittest.TestCase): - """SetAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetAppOperation: - """Test SetAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetAppOperation` - """ - model = SetAppOperation() - if include_optional: - return SetAppOperation( - app_id = '', - controllers = [ - '' - ], - force = True - ) - else: - return SetAppOperation( - ) - """ - - def testSetAppOperation(self): - """Test SetAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_dpdk_mode_operation_input.py b/test/test_set_dpdk_mode_operation_input.py deleted file mode 100644 index 511a024..0000000 --- a/test/test_set_dpdk_mode_operation_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput - -class TestSetDpdkModeOperationInput(unittest.TestCase): - """SetDpdkModeOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetDpdkModeOperationInput: - """Test SetDpdkModeOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetDpdkModeOperationInput` - """ - model = SetDpdkModeOperationInput() - if include_optional: - return SetDpdkModeOperationInput( - agent_ids = [ - '' - ], - enabled = True - ) - else: - return SetDpdkModeOperationInput( - ) - """ - - def testSetDpdkModeOperationInput(self): - """Test SetDpdkModeOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_link_state_operation.py b/test/test_set_link_state_operation.py deleted file mode 100644 index 3be18a3..0000000 --- a/test/test_set_link_state_operation.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_link_state_operation import SetLinkStateOperation - -class TestSetLinkStateOperation(unittest.TestCase): - """SetLinkStateOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetLinkStateOperation: - """Test SetLinkStateOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetLinkStateOperation` - """ - model = SetLinkStateOperation() - if include_optional: - return SetLinkStateOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ], - link = 'DOWN' - ) - else: - return SetLinkStateOperation( - ) - """ - - def testSetLinkStateOperation(self): - """Test SetLinkStateOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_set_ntp_operation_input.py b/test/test_set_ntp_operation_input.py deleted file mode 100644 index f30d79f..0000000 --- a/test/test_set_ntp_operation_input.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.set_ntp_operation_input import SetNtpOperationInput - -class TestSetNtpOperationInput(unittest.TestCase): - """SetNtpOperationInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetNtpOperationInput: - """Test SetNtpOperationInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetNtpOperationInput` - """ - model = SetNtpOperationInput() - if include_optional: - return SetNtpOperationInput( - agent_ids = [ - '' - ], - servers = [ - '' - ] - ) - else: - return SetNtpOperationInput( - ) - """ - - def testSetNtpOperationInput(self): - """Test SetNtpOperationInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_simulated_id_p.py b/test/test_simulated_id_p.py deleted file mode 100644 index 2eee503..0000000 --- a/test/test_simulated_id_p.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.simulated_id_p import SimulatedIdP - -class TestSimulatedIdP(unittest.TestCase): - """SimulatedIdP unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimulatedIdP: - """Test SimulatedIdP - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SimulatedIdP` - """ - model = SimulatedIdP() - if include_optional: - return SimulatedIdP( - assertion_signature = True, - audience_uri = '', - cert_config = cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ), - name_id_format = 'emailAddress', - response_signature = True, - signature_algorithm = 'SHA256_SIGN', - single_sign_on_url = '', - xml_metadata = [ - 'YQ==' - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return SimulatedIdP( - assertion_signature = True, - audience_uri = '', - name_id_format = 'emailAddress', - response_signature = True, - single_sign_on_url = '', - ) - """ - - def testSimulatedIdP(self): - """Test SimulatedIdP""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_snapshot.py b/test/test_snapshot.py deleted file mode 100644 index 9fff965..0000000 --- a/test/test_snapshot.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.snapshot import Snapshot - -class TestSnapshot(unittest.TestCase): - """Snapshot unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Snapshot: - """Test Snapshot - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Snapshot` - """ - model = Snapshot() - if include_optional: - return Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ] - ) - else: - return Snapshot( - ) - """ - - def testSnapshot(self): - """Test Snapshot""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_snowflake_exporter.py b/test/test_snowflake_exporter.py deleted file mode 100644 index 7875924..0000000 --- a/test/test_snowflake_exporter.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.snowflake_exporter import SnowflakeExporter - -class TestSnowflakeExporter(unittest.TestCase): - """SnowflakeExporter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SnowflakeExporter: - """Test SnowflakeExporter - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SnowflakeExporter` - """ - model = SnowflakeExporter() - if include_optional: - return SnowflakeExporter( - active = True, - polling_interval = 56, - profile = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - id = '', - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - server_url = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return SnowflakeExporter( - active = True, - server_url = '', - ) - """ - - def testSnowflakeExporter(self): - """Test SnowflakeExporter""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sort_body_field.py b/test/test_sort_body_field.py deleted file mode 100644 index 286e0d0..0000000 --- a/test/test_sort_body_field.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.sort_body_field import SortBodyField - -class TestSortBodyField(unittest.TestCase): - """SortBodyField unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SortBodyField: - """Test SortBodyField - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SortBodyField` - """ - model = SortBodyField() - if include_optional: - return SortBodyField( - var_field = '', - order = '' - ) - else: - return SortBodyField( - ) - """ - - def testSortBodyField(self): - """Test SortBodyField""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_specific_objective.py b/test/test_specific_objective.py deleted file mode 100644 index 6e26e9e..0000000 --- a/test/test_specific_objective.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.specific_objective import SpecificObjective - -class TestSpecificObjective(unittest.TestCase): - """SpecificObjective unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SpecificObjective: - """Test SpecificObjective - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SpecificObjective` - """ - model = SpecificObjective() - if include_optional: - return SpecificObjective( - max_pending_simulated_users = '80728', - max_simulated_users_per_interval = 56, - timeline = [ - null - ], - type = 'Simulated users', - unit = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return SpecificObjective( - max_pending_simulated_users = '80728', - type = 'Simulated users', - unit = '', - id = '', - ) - """ - - def testSpecificObjective(self): - """Test SpecificObjective""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_agents_batch_delete_request_inner.py b/test/test_start_agents_batch_delete_request_inner.py deleted file mode 100644 index d634b29..0000000 --- a/test/test_start_agents_batch_delete_request_inner.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner - -class TestStartAgentsBatchDeleteRequestInner(unittest.TestCase): - """StartAgentsBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartAgentsBatchDeleteRequestInner: - """Test StartAgentsBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartAgentsBatchDeleteRequestInner` - """ - model = StartAgentsBatchDeleteRequestInner() - if include_optional: - return StartAgentsBatchDeleteRequestInner( - id = '' - ) - else: - return StartAgentsBatchDeleteRequestInner( - ) - """ - - def testStartAgentsBatchDeleteRequestInner(self): - """Test StartAgentsBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_batch_delete_request_inner.py b/test/test_start_batch_delete_request_inner.py deleted file mode 100644 index 6a3f5b1..0000000 --- a/test/test_start_batch_delete_request_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_batch_delete_request_inner import StartBatchDeleteRequestInner - -class TestStartBatchDeleteRequestInner(unittest.TestCase): - """StartBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartBatchDeleteRequestInner: - """Test StartBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartBatchDeleteRequestInner` - """ - model = StartBatchDeleteRequestInner() - if include_optional: - return StartBatchDeleteRequestInner( - id = '' - ) - else: - return StartBatchDeleteRequestInner( - ) - """ - - def testStartBatchDeleteRequestInner(self): - """Test StartBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_start_root_batch_delete_request_inner.py b/test/test_start_root_batch_delete_request_inner.py deleted file mode 100644 index fa328f2..0000000 --- a/test/test_start_root_batch_delete_request_inner.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.start_root_batch_delete_request_inner import StartRootBatchDeleteRequestInner - -class TestStartRootBatchDeleteRequestInner(unittest.TestCase): - """StartRootBatchDeleteRequestInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StartRootBatchDeleteRequestInner: - """Test StartRootBatchDeleteRequestInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StartRootBatchDeleteRequestInner` - """ - model = StartRootBatchDeleteRequestInner() - if include_optional: - return StartRootBatchDeleteRequestInner( - id = '' - ) - else: - return StartRootBatchDeleteRequestInner( - ) - """ - - def testStartRootBatchDeleteRequestInner(self): - """Test StartRootBatchDeleteRequestInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stateless_stream.py b/test/test_stateless_stream.py deleted file mode 100644 index a6f22ae..0000000 --- a/test/test_stateless_stream.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stateless_stream import StatelessStream - -class TestStatelessStream(unittest.TestCase): - """StatelessStream unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StatelessStream: - """Test StatelessStream - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StatelessStream` - """ - model = StatelessStream() - if include_optional: - return StatelessStream( - client_stream_profile = cyperf.models.stream_profile.StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = null, - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56, ), - direction = 'ClientToServer', - is_flood_stream = True, - server_stream_profile = cyperf.models.stream_profile.StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = null, - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return StatelessStream( - ) - """ - - def testStatelessStream(self): - """Test StatelessStream""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_static_arp_entry.py b/test/test_static_arp_entry.py deleted file mode 100644 index c7d3f71..0000000 --- a/test/test_static_arp_entry.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.static_arp_entry import StaticARPEntry - -class TestStaticARPEntry(unittest.TestCase): - """StaticARPEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StaticARPEntry: - """Test StaticARPEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StaticARPEntry` - """ - model = StaticARPEntry() - if include_optional: - return StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '' - ) - else: - return StaticARPEntry( - static_arp_entry_name = 'YBuLd', - id = '', - ) - """ - - def testStaticARPEntry(self): - """Test StaticARPEntry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_statistics_api.py b/test/test_statistics_api.py deleted file mode 100644 index 7ffc06e..0000000 --- a/test/test_statistics_api.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.statistics_api import StatisticsApi - - -class TestStatisticsApi(unittest.TestCase): - """StatisticsApi unit test stubs""" - - def setUp(self) -> None: - self.api = StatisticsApi() - - def tearDown(self) -> None: - pass - - - def test_create_stats_plugins(self) -> None: - """Test case for create_stats_plugins - - """ - pass - - def test_delete_stats_plugin(self) -> None: - """Test case for delete_stats_plugin - - """ - pass - - def test_get_result_stat_by_id(self) -> None: - """Test case for get_result_stat_by_id - - """ - pass - - def test_get_result_stats(self) -> None: - """Test case for get_result_stats - - """ - pass - - def test_get_stats_plugins(self) -> None: - """Test case for get_stats_plugins - - """ - pass - - - def test_start_stats_plugins_ingest(self) -> None: - """Test case for start_stats_plugins_ingest - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stats_result.py b/test/test_stats_result.py deleted file mode 100644 index e1e4aa4..0000000 --- a/test/test_stats_result.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stats_result import StatsResult - -class TestStatsResult(unittest.TestCase): - """StatsResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StatsResult: - """Test StatsResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StatsResult` - """ - model = StatsResult() - if include_optional: - return StatsResult( - available_filters = [ - cyperf.models.parameter.Parameter( - default_array_elements = [ - { - 'key' : '' - } - ], - default_source = '', - default_value = '', - element_type = '', - metadata = cyperf.models.parameter_metadata.ParameterMetadata( - category = '', - category_index = 56, - default = '', - description = '', - display_name = '', - enum = cyperf.models.enum.Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], - default = '', ), - flow_identifier = True, - input = '', - legacy_names = [ - '' - ], - mandatory = True, - payload = cyperf.models.payload_metadata.PayloadMetadata( - file_extension = '', - file_name = '', - file_type = '', - file_url = '', ), - playlist = cyperf.models.playlist_metadata.PlaylistMetadata( - column = '', - file_name = '', ), - readonly = True, - shared = True, - type = '', - type_info = cyperf.models.type_info_metadata.TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ), ), - unique_value = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - sources = [ - '' - ], - type = '', - field = '', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - operator = '', - query_param = '', ) - ], - columns = [ - '' - ], - name = '', - snapshots = [ - cyperf.models.snapshot.Snapshot( - timestamp = 56, - values = [ - [ - null - ] - ], ) - ] - ) - else: - return StatsResult( - ) - """ - - def testStatsResult(self): - """Test StatsResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_steady_segment.py b/test/test_steady_segment.py deleted file mode 100644 index 7dcbfbb..0000000 --- a/test/test_steady_segment.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.steady_segment import SteadySegment - -class TestSteadySegment(unittest.TestCase): - """SteadySegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SteadySegment: - """Test SteadySegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SteadySegment` - """ - model = SteadySegment() - if include_optional: - return SteadySegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337 - ) - else: - return SteadySegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - objective_unit = '', - objective_value = 1.337, - ) - """ - - def testSteadySegment(self): - """Test SteadySegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_step_segment.py b/test/test_step_segment.py deleted file mode 100644 index c7c6c6f..0000000 --- a/test/test_step_segment.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.step_segment import StepSegment - -class TestStepSegment(unittest.TestCase): - """StepSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StepSegment: - """Test StepSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StepSegment` - """ - model = StepSegment() - if include_optional: - return StepSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - enabled = True, - number_of_steps = 56 - ) - else: - return StepSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - enabled = True, - number_of_steps = 56, - ) - """ - - def testStepSegment(self): - """Test StepSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_direction.py b/test/test_stream_direction.py deleted file mode 100644 index 1674185..0000000 --- a/test/test_stream_direction.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_direction import StreamDirection - -class TestStreamDirection(unittest.TestCase): - """StreamDirection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStreamDirection(self): - """Test StreamDirection""" - # inst = StreamDirection() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_payload_type.py b/test/test_stream_payload_type.py deleted file mode 100644 index 4393a67..0000000 --- a/test/test_stream_payload_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_payload_type import StreamPayloadType - -class TestStreamPayloadType(unittest.TestCase): - """StreamPayloadType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStreamPayloadType(self): - """Test StreamPayloadType""" - # inst = StreamPayloadType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_stream_profile.py b/test/test_stream_profile.py deleted file mode 100644 index 0036cd3..0000000 --- a/test/test_stream_profile.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.stream_profile import StreamProfile - -class TestStreamProfile(unittest.TestCase): - """StreamProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StreamProfile: - """Test StreamProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StreamProfile` - """ - model = StreamProfile() - if include_optional: - return StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = 'RANDOM', - total_estimated_throughput = '', - total_estimated_throughput_per_simulated_user = '', - unique_pool_size = 56 - ) - else: - return StreamProfile( - packet_rate = 56, - payload_size = 56, - payload_type = 'RANDOM', - ) - """ - - def testStreamProfile(self): - """Test StreamProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_supported_group_tls13.py b/test/test_supported_group_tls13.py deleted file mode 100644 index a67e43a..0000000 --- a/test/test_supported_group_tls13.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 - -class TestSupportedGroupTLS13(unittest.TestCase): - """SupportedGroupTLS13 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSupportedGroupTLS13(self): - """Test SupportedGroupTLS13""" - # inst = SupportedGroupTLS13() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_switch_app_operation.py b/test/test_switch_app_operation.py deleted file mode 100644 index 249f93c..0000000 --- a/test/test_switch_app_operation.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.switch_app_operation import SwitchAppOperation - -class TestSwitchAppOperation(unittest.TestCase): - """SwitchAppOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SwitchAppOperation: - """Test SwitchAppOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SwitchAppOperation` - """ - model = SwitchAppOperation() - if include_optional: - return SwitchAppOperation( - app_id = '' - ) - else: - return SwitchAppOperation( - ) - """ - - def testSwitchAppOperation(self): - """Test SwitchAppOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_system_info.py b/test/test_system_info.py deleted file mode 100644 index 37e5280..0000000 --- a/test/test_system_info.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.system_info import SystemInfo - -class TestSystemInfo(unittest.TestCase): - """SystemInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SystemInfo: - """Test SystemInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SystemInfo` - """ - model = SystemInfo() - if include_optional: - return SystemInfo( - chassis_info = cyperf.models.chassis_info.ChassisInfo( - checkout_id = 56, - compute_node_id = '', - hw_platform = '', - hw_revision = '', - port_id = '', ), - kernel_version = '', - os_name = '', - port_manager_version = '', - traffic_agent_info = [ - cyperf.models.traffic_agent_info.TrafficAgentInfo( - type = '', - version = '', ) - ] - ) - else: - return SystemInfo( - ) - """ - - def testSystemInfo(self): - """Test SystemInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tcp_profile.py b/test/test_tcp_profile.py deleted file mode 100644 index fd8a9b7..0000000 --- a/test/test_tcp_profile.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tcp_profile import TcpProfile - -class TestTcpProfile(unittest.TestCase): - """TcpProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TcpProfile: - """Test TcpProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TcpProfile` - """ - model = TcpProfile() - if include_optional: - return TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True - ) - else: - return TcpProfile( - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - rx_buffer = 56, - tx_buffer = 56, - ) - """ - - def testTcpProfile(self): - """Test TcpProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_info.py b/test/test_test_info.py deleted file mode 100644 index f4c4c2d..0000000 --- a/test/test_test_info.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.test_info import TestInfo - -class TestTestInfo(unittest.TestCase): - """TestInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestInfo: - """Test TestInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestInfo` - """ - model = TestInfo() - if include_optional: - return TestInfo( - dashboards = [ - cyperf.models.dashboard.Dashboard( - id = '', - name = '', ) - ], - default_dashboard_index = 56, - default_polling_interval = 56, - status = '', - test_details = '', - test_duration = 56, - test_elapsed = 56, - test_id = '', - test_initialized = 56, - test_started = 56, - test_stopped = 56 - ) - else: - return TestInfo( - ) - """ - - def testTestInfo(self): - """Test TestInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_operations_api.py b/test/test_test_operations_api.py deleted file mode 100644 index 3983674..0000000 --- a/test/test_test_operations_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.test_operations_api import TestOperationsApi - - -class TestTestOperationsApi(unittest.TestCase): - """TestOperationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = TestOperationsApi() - - def tearDown(self) -> None: - pass - - - - - - - - def test_start_test_calibrate_start(self) -> None: - """Test case for start_test_calibrate_start - - """ - pass - - def test_start_test_calibrate_stop(self) -> None: - """Test case for start_test_calibrate_stop - - """ - pass - - def test_start_test_run_abort(self) -> None: - """Test case for start_test_run_abort - - """ - pass - - def test_start_test_run_start(self) -> None: - """Test case for start_test_run_start - - """ - pass - - def test_start_test_run_stop(self) -> None: - """Test case for start_test_run_stop - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_results_api.py b/test/test_test_results_api.py deleted file mode 100644 index 7384694..0000000 --- a/test/test_test_results_api.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.test_results_api import TestResultsApi - - -class TestTestResultsApi(unittest.TestCase): - """TestResultsApi unit test stubs""" - - def setUp(self) -> None: - self.api = TestResultsApi() - - def tearDown(self) -> None: - pass - - - def test_delete_result(self) -> None: - """Test case for delete_result - - """ - pass - - def test_delete_result_file(self) -> None: - """Test case for delete_result_file - - """ - pass - - def test_get_result_by_id(self) -> None: - """Test case for get_result_by_id - - """ - pass - - def test_get_result_download_all_by_id(self) -> None: - """Test case for get_result_download_all_by_id - - """ - pass - - def test_get_result_download_result_config(self) -> None: - """Test case for get_result_download_result_config - - """ - pass - - def test_get_result_file_by_id(self) -> None: - """Test case for get_result_file_by_id - - """ - pass - - def test_get_result_file_content(self) -> None: - """Test case for get_result_file_content - - """ - pass - - def test_get_result_files(self) -> None: - """Test case for get_result_files - - """ - pass - - def test_get_results(self) -> None: - """Test case for get_results - - """ - pass - - def test_get_results_tags(self) -> None: - """Test case for get_results_tags - - """ - pass - - - - - - - def test_start_result_export_events(self) -> None: - """Test case for start_result_export_events - - """ - pass - - def test_start_result_generate_all(self) -> None: - """Test case for start_result_generate_all - - """ - pass - - def test_start_result_generate_results(self) -> None: - """Test case for start_result_generate_results - - """ - pass - - def test_start_result_load(self) -> None: - """Test case for start_result_load - - """ - pass - - def test_start_results_batch_delete(self) -> None: - """Test case for start_results_batch_delete - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_test_state_changed_operation.py b/test/test_test_state_changed_operation.py deleted file mode 100644 index 1b704a4..0000000 --- a/test/test_test_state_changed_operation.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.test_state_changed_operation import TestStateChangedOperation - -class TestTestStateChangedOperation(unittest.TestCase): - """TestStateChangedOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestStateChangedOperation: - """Test TestStateChangedOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestStateChangedOperation` - """ - model = TestStateChangedOperation() - if include_optional: - return TestStateChangedOperation( - message = '', - new_state = '', - old_state = '', - owner = '', - owner_id = '', - reason = '', - test_id = '', - timestamp = 56 - ) - else: - return TestStateChangedOperation( - ) - """ - - def testTestStateChangedOperation(self): - """Test TestStateChangedOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_time_value.py b/test/test_time_value.py deleted file mode 100644 index 7722e44..0000000 --- a/test/test_time_value.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.time_value import TimeValue - -class TestTimeValue(unittest.TestCase): - """TimeValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimeValue: - """Test TimeValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimeValue` - """ - model = TimeValue() - if include_optional: - return TimeValue( - now = 56 - ) - else: - return TimeValue( - ) - """ - - def testTimeValue(self): - """Test TimeValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment.py b/test/test_timeline_segment.py deleted file mode 100644 index 57e53ce..0000000 --- a/test/test_timeline_segment.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment import TimelineSegment - -class TestTimelineSegment(unittest.TestCase): - """TimelineSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegment: - """Test TimelineSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegment` - """ - model = TimelineSegment() - if include_optional: - return TimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337, - primary_objective_unit = '', - primary_objective_value = 1.337, - secondary_objective_values = [ - cyperf.models.objective_value_entry.ObjectiveValueEntry( - unit = '', - value = 1.337, - id = '', ) - ], - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TimelineSegment( - duration = 56, - segment_type = 'SteadySegment', - id = '', - primary_objective_unit = '', - primary_objective_value = 1.337, - ) - """ - - def testTimelineSegment(self): - """Test TimelineSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment_base.py b/test/test_timeline_segment_base.py deleted file mode 100644 index fe3ec69..0000000 --- a/test/test_timeline_segment_base.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment_base import TimelineSegmentBase - -class TestTimelineSegmentBase(unittest.TestCase): - """TimelineSegmentBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegmentBase: - """Test TimelineSegmentBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegmentBase` - """ - model = TimelineSegmentBase() - if include_optional: - return TimelineSegmentBase( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '' - ) - else: - return TimelineSegmentBase( - duration = 56, - segment_type = 'SteadySegment', - id = '', - ) - """ - - def testTimelineSegmentBase(self): - """Test TimelineSegmentBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timeline_segment_union.py b/test/test_timeline_segment_union.py deleted file mode 100644 index 451bd08..0000000 --- a/test/test_timeline_segment_union.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timeline_segment_union import TimelineSegmentUnion - -class TestTimelineSegmentUnion(unittest.TestCase): - """TimelineSegmentUnion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimelineSegmentUnion: - """Test TimelineSegmentUnion - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimelineSegmentUnion` - """ - model = TimelineSegmentUnion() - if include_optional: - return TimelineSegmentUnion( - duration = 56, - segment_type = 'SteadySegment', - warm_up_period = 56, - id = '', - objective_unit = '', - objective_value = 1.337, - enabled = True, - number_of_steps = 56 - ) - else: - return TimelineSegmentUnion( - duration = 56, - segment_type = 'SteadySegment', - id = '', - objective_unit = '', - objective_value = 1.337, - enabled = True, - number_of_steps = 56, - ) - """ - - def testTimelineSegmentUnion(self): - """Test TimelineSegmentUnion""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_timers.py b/test/test_timers.py deleted file mode 100644 index 2ac147f..0000000 --- a/test/test_timers.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.timers import Timers - -class TestTimers(unittest.TestCase): - """Timers unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Timers: - """Test Timers - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Timers` - """ - model = Timers() - if include_optional: - return Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56 - ) - else: - return Timers( - dpd_enabled = True, - dpd_idle_period = 56, - dpd_timeout = 56, - ) - """ - - def testTimers(self): - """Test Timers""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tls_profile.py b/test/test_tls_profile.py deleted file mode 100644 index 8d807fc..0000000 --- a/test/test_tls_profile.py +++ /dev/null @@ -1,420 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tls_profile import TLSProfile - -class TestTLSProfile(unittest.TestCase): - """TLSProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TLSProfile: - """Test TLSProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TLSProfile` - """ - model = TLSProfile() - if include_optional: - return TLSProfile( - certificate_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - cipher = 'ECDHE-RSA-AES256-GCM-SHA384', - cipher12 = 'ECDHE-RSA-AES256-GCM-SHA384', - cipher13 = 'AES-256-GCM-SHA384', - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ), - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = 'DISABLE', - session_reuse_method12 = 'DISABLE', - session_reuse_method13 = 'DISABLE', - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE' - ) - else: - return TLSProfile( - profile_id = '', - sni_enabled = True, - tls12_enabled = True, - version = 'NONE', - ) - """ - - def testTLSProfile(self): - """Test TLSProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_track.py b/test/test_track.py deleted file mode 100644 index b440b47..0000000 --- a/test/test_track.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.track import Track - -class TestTrack(unittest.TestCase): - """Track unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Track: - """Test Track - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Track` - """ - model = Track() - if include_optional: - return Track( - actions = [ - null - ], - add_actions = [ - cyperf.models.create_app_or_attack_operation_input.CreateAppOrAttackOperationInput( - actions = [ - cyperf.models.add_action_info.AddActionInfo( - action_id = '', - insert_at_index = 56, - is_strike = True, - protocol_id = '', ) - ], - resource_url = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return Track( - id = '', - ) - """ - - def testTrack(self): - """Test Track""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_track_type.py b/test/test_track_type.py deleted file mode 100644 index 7f080ac..0000000 --- a/test/test_track_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.track_type import TrackType - -class TestTrackType(unittest.TestCase): - """TrackType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTrackType(self): - """Test TrackType""" - # inst = TrackType() - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_agent_info.py b/test/test_traffic_agent_info.py deleted file mode 100644 index d3e9933..0000000 --- a/test/test_traffic_agent_info.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_agent_info import TrafficAgentInfo - -class TestTrafficAgentInfo(unittest.TestCase): - """TrafficAgentInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficAgentInfo: - """Test TrafficAgentInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficAgentInfo` - """ - model = TrafficAgentInfo() - if include_optional: - return TrafficAgentInfo( - type = '', - version = '' - ) - else: - return TrafficAgentInfo( - ) - """ - - def testTrafficAgentInfo(self): - """Test TrafficAgentInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_profile_base.py b/test/test_traffic_profile_base.py deleted file mode 100644 index 40e3173..0000000 --- a/test/test_traffic_profile_base.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_profile_base import TrafficProfileBase - -class TestTrafficProfileBase(unittest.TestCase): - """TrafficProfileBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficProfileBase: - """Test TrafficProfileBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficProfileBase` - """ - model = TrafficProfileBase() - if include_optional: - return TrafficProfileBase( - active = True, - traffic_settings = cyperf.models.traffic_settings.TrafficSettings( - default_transport_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - use_all_source_ips_per_user = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TrafficProfileBase( - ) - """ - - def testTrafficProfileBase(self): - """Test TrafficProfileBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_traffic_settings.py b/test/test_traffic_settings.py deleted file mode 100644 index a3a70ed..0000000 --- a/test/test_traffic_settings.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.traffic_settings import TrafficSettings - -class TestTrafficSettings(unittest.TestCase): - """TrafficSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TrafficSettings: - """Test TrafficSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TrafficSettings` - """ - model = TrafficSettings() - if include_optional: - return TrafficSettings( - default_transport_profile = None, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TrafficSettings( - ) - """ - - def testTrafficSettings(self): - """Test TrafficSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_transport_profile.py b/test/test_transport_profile.py deleted file mode 100644 index e299cd7..0000000 --- a/test/test_transport_profile.py +++ /dev/null @@ -1,526 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.transport_profile import TransportProfile - -class TestTransportProfile(unittest.TestCase): - """TransportProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TransportProfile: - """Test TransportProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TransportProfile` - """ - model = TransportProfile() - if include_optional: - return TransportProfile( - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - client_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - ip_tos = 56, - rtp_profile = cyperf.models.rtp_profile.RTPProfile( - encryption_mode = null, - mos_mode = null, - profile_id = '', ), - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - server_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - vlan_prio = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - l4_profile_name = '' - ) - else: - return TransportProfile( - l4_profile_name = '', - ) - """ - - def testTransportProfile(self): - """Test TransportProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_transport_profile_base.py b/test/test_transport_profile_base.py deleted file mode 100644 index 4e9641e..0000000 --- a/test/test_transport_profile_base.py +++ /dev/null @@ -1,524 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.transport_profile_base import TransportProfileBase - -class TestTransportProfileBase(unittest.TestCase): - """TransportProfileBase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TransportProfileBase: - """Test TransportProfileBase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TransportProfileBase` - """ - model = TransportProfileBase() - if include_optional: - return TransportProfileBase( - client_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - client_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - client_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - client_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - ip_tos = 56, - rtp_profile = cyperf.models.rtp_profile.RTPProfile( - encryption_mode = null, - mos_mode = null, - profile_id = '', ), - server_http_profile = cyperf.models.http_profile.HTTPProfile( - additional_headers = null, - connection_persistence = null, - connections_max_transactions = 56, - description = '', - external_resource_url = '', - http_version = null, - headers = null, - is_modified = True, - max_concurrent_streams = 56, - name = '', - params = [ - cyperf.models.params.Params( - array_element_type = '', - array_elements = [ - { - 'key' : '' - } - ], - category = '', - category_index = 56, - deprecated_previous_source = '', - description = '', - dictionary_value = { - 'key' : '' - }, - enum = cyperf.models.params_enum.Params_Enum( - choices = [ - cyperf.models.choice.Choice( - description = '', - hidden = True, - name = '', - value = '', ) - ], ), - file_value = null, - flow_identifier = True, - is_deprecated = True, - is_modified = True, - media_files = [ - cyperf.models.media_file.MediaFile( - file_value = null, - media_tracks = [ - cyperf.models.media_track.MediaTrack( - bitrate = 56, - bitrate_kbps = 56, - codec = '', - codec_description = '', - track_id = '', - track_type = null, - id = '', ) - ], - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ) - ], - metadata = cyperf.models.param_metadata.ParamMetadata( - type_info = cyperf.models.param_metadata_type_info.ParamMetadata_TypeInfo( - array_v2 = cyperf.models.param_metadata_type_info_array_v2.ParamMetadata_TypeInfo_arrayV2( - elements = [ - cyperf.models.param_metadata_type_info_array_v2_elements_inner.ParamMetadata_TypeInfo_arrayV2_elements_inner( - type = '', ) - ], ), - int = cyperf.models.param_metadata_type_info_int.ParamMetadata_TypeInfo_int( - max_value = 56, - min_value = 56, ), - media = cyperf.models.param_metadata_type_info_media.ParamMetadata_TypeInfo_media( - track_id = '', - track_type = '', ), - string = cyperf.models.param_metadata_type_info_string.ParamMetadata_TypeInfo_string( - charset = '', - max_length = 56, - min_length = 56, ), ), ), - name = '', - param_id = '', - readonly = True, - source = '', - supported_sources = [ - '' - ], - type = '', - value = '', - file_upload = [ - 'YQ==' - ], - id = , - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - supports_dynamic_payload = True, - upload_url = '', ) - ], - use_application_server_headers = True, - links = , ), - server_quic_profile = cyperf.models.quic_profile.QUICProfile( - client_tls_profile = null, - min_rto = 56, - name = '', - quic_version = null, - rx_buffer = 56, - server_tls_profile = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - server_tls_profile = cyperf.models.tls_profile.TLSProfile( - certificate_file = null, - cipher = null, - cipher12 = null, - cipher13 = null, - ciphers12 = [ - 'ECDHE-RSA-AES256-GCM-SHA384' - ], - ciphers13 = [ - 'AES-256-GCM-SHA384' - ], - dh_file = null, - get_tls_conflicts = [ - 'YQ==' - ], - groups13 = [ - cyperf.models.group_tls13.GroupTLS13( - is_deprecated = True, - name = 'P-256', ) - ], - immediate_close = True, - key_file = null, - key_file_password = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - middle_box_enabled = True, - profile_id = '', - resolve_tls_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - send_close_notify = True, - session_reuse_count = 56, - session_reuse_method = null, - session_reuse_method12 = null, - session_reuse_method13 = null, - sni_cert_configs = [ - cyperf.models.cert_config.CertConfig( - certificate_file = null, - dh_file = null, - get_sni_conflicts = [ - 'YQ==' - ], - id = '', - is_playlist = True, - key_file = null, - key_file_password = '', - playlist_column_name = '', - playlist_filename = '', - resolve_sni_conflicts = [ - cyperf.models.conflict.Conflict( - name = '', - path_to_target = '', - path_vars = { - 'key' : '' - }, ) - ], - sni_hostname = '', ) - ], - sni_enabled = True, - supported_groups13 = [ - 'P-256' - ], - tls12_enabled = True, - tls13_enabled = True, - use_tls_profile = True, - version = 'NONE', ), - server_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - udp_profile = cyperf.models.udp_profile.UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56, ), - vlan_prio = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TransportProfileBase( - ) - """ - - def testTransportProfileBase(self): - """Test TransportProfileBase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_range.py b/test/test_tunnel_range.py deleted file mode 100644 index fadb734..0000000 --- a/test/test_tunnel_range.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_range import TunnelRange - -class TestTunnelRange(unittest.TestCase): - """TunnelRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelRange: - """Test TunnelRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelRange` - """ - model = TunnelRange() - if include_optional: - return TunnelRange( - cisco_any_connect_settings = None, - dcp_request_timeout = 56, - dns_resolver = cyperf.models.dns_resolver.DNSResolver( - cache_timeout = 56, - enable_perconnect = True, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - name_servers = [ - cyperf.models.name_server.NameServer( - name = '4.207.188.200', ) - ], ), - f5_settings = None, - fortinet_settings = None, - pangp_settings = None, - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - tunnel_establishment_timeout = 56, - vendor_type = 'CISCO_ANY_CONNECT', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelRange( - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - vendor_type = 'CISCO_ANY_CONNECT', - ) - """ - - def testTunnelRange(self): - """Test TunnelRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_settings.py b/test/test_tunnel_settings.py deleted file mode 100644 index 0bb97f3..0000000 --- a/test/test_tunnel_settings.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_settings import TunnelSettings - -class TestTunnelSettings(unittest.TestCase): - """TunnelSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelSettings: - """Test TunnelSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelSettings` - """ - model = TunnelSettings() - if include_optional: - return TunnelSettings( - var_auth_settings = cyperf.models.auth_settings.AuthSettings( - auth_method = null, - auth_param = null, - certificate_file = null, - key_file = null, - key_file_password = '', - passwords = [ - '' - ], - passwords_param = null, - simulated_id_p = null, - usernames = [ - '' - ], - usernames_param = null, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - outer_tcp_profile = cyperf.models.tcp_profile.TcpProfile( - close_with_reset = True, - defer_accept = True, - ecn_enabled = True, - max_rto = 56, - max_src_port = 56, - min_rto = 56, - min_src_port = 56, - ping_pong = True, - pmtu_disc_disabled = True, - recycle_tw_enabled = True, - reordering = True, - reuse_tw_enabled = True, - rx_buffer = 56, - sack_enabled = True, - sock_group = '', - timestamp_hdr_enabled = True, - tx_buffer = 56, - user_mss = 56, - wscale_enabled = True, ), - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelSettings( - ) - """ - - def testTunnelSettings(self): - """Test TunnelSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tunnel_stack.py b/test/test_tunnel_stack.py deleted file mode 100644 index fc4c8ba..0000000 --- a/test/test_tunnel_stack.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.tunnel_stack import TunnelStack - -class TestTunnelStack(unittest.TestCase): - """TunnelStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TunnelStack: - """Test TunnelStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TunnelStack` - """ - model = TunnelStack() - if include_optional: - return TunnelStack( - inner_ip_range = cyperf.models.inner_ip_range.InnerIPRange( - network_tags = [ - '' - ], ), - outer_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - tunnel_range = cyperf.models.tunnel_range.TunnelRange( - cisco_any_connect_settings = null, - dcp_request_timeout = 56, - dns_resolver = null, - f5_settings = null, - fortinet_settings = null, - pangp_settings = null, - tcp_dst_port = 56, - tunnel_count_per_outer_ip = 56, - tunnel_establishment_timeout = 56, - vendor_type = 'CISCO_ANY_CONNECT', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - tunnel_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return TunnelStack( - tunnel_stack_name = 'YBuLd', - id = '', - ) - """ - - def testTunnelStack(self): - """Test TunnelStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_array_v2_metadata.py b/test/test_type_array_v2_metadata.py deleted file mode 100644 index 06b7249..0000000 --- a/test/test_type_array_v2_metadata.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_array_v2_metadata import TypeArrayV2Metadata - -class TestTypeArrayV2Metadata(unittest.TestCase): - """TypeArrayV2Metadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeArrayV2Metadata: - """Test TypeArrayV2Metadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeArrayV2Metadata` - """ - model = TypeArrayV2Metadata() - if include_optional: - return TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ] - ) - else: - return TypeArrayV2Metadata( - ) - """ - - def testTypeArrayV2Metadata(self): - """Test TypeArrayV2Metadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_info_metadata.py b/test/test_type_info_metadata.py deleted file mode 100644 index 16c248c..0000000 --- a/test/test_type_info_metadata.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_info_metadata import TypeInfoMetadata - -class TestTypeInfoMetadata(unittest.TestCase): - """TypeInfoMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeInfoMetadata: - """Test TypeInfoMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeInfoMetadata` - """ - model = TypeInfoMetadata() - if include_optional: - return TypeInfoMetadata( - array_v2 = cyperf.models.type_array_v2_metadata.TypeArrayV2Metadata( - elements = [ - cyperf.models.array_v2_element_metadata.ArrayV2ElementMetadata( - id = '', - type = '', ) - ], ), - int = cyperf.models.type_int_metadata.TypeIntMetadata( - max_value = 56, - min_value = 56, ), - media = cyperf.models.type_media_metadata.TypeMediaMetadata( - track_id = '', - track_type = '', ), - string = cyperf.models.type_string_metadata.TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56, ) - ) - else: - return TypeInfoMetadata( - ) - """ - - def testTypeInfoMetadata(self): - """Test TypeInfoMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_int_metadata.py b/test/test_type_int_metadata.py deleted file mode 100644 index 2b800c6..0000000 --- a/test/test_type_int_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_int_metadata import TypeIntMetadata - -class TestTypeIntMetadata(unittest.TestCase): - """TypeIntMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeIntMetadata: - """Test TypeIntMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeIntMetadata` - """ - model = TypeIntMetadata() - if include_optional: - return TypeIntMetadata( - max_value = 56, - min_value = 56 - ) - else: - return TypeIntMetadata( - ) - """ - - def testTypeIntMetadata(self): - """Test TypeIntMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_media_metadata.py b/test/test_type_media_metadata.py deleted file mode 100644 index d9cbce2..0000000 --- a/test/test_type_media_metadata.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_media_metadata import TypeMediaMetadata - -class TestTypeMediaMetadata(unittest.TestCase): - """TypeMediaMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeMediaMetadata: - """Test TypeMediaMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeMediaMetadata` - """ - model = TypeMediaMetadata() - if include_optional: - return TypeMediaMetadata( - track_id = '', - track_type = '' - ) - else: - return TypeMediaMetadata( - ) - """ - - def testTypeMediaMetadata(self): - """Test TypeMediaMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_type_string_metadata.py b/test/test_type_string_metadata.py deleted file mode 100644 index 91468e1..0000000 --- a/test/test_type_string_metadata.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.type_string_metadata import TypeStringMetadata - -class TestTypeStringMetadata(unittest.TestCase): - """TypeStringMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeStringMetadata: - """Test TypeStringMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeStringMetadata` - """ - model = TypeStringMetadata() - if include_optional: - return TypeStringMetadata( - charset = '', - max_length = 56, - min_length = 56 - ) - else: - return TypeStringMetadata( - ) - """ - - def testTypeStringMetadata(self): - """Test TypeStringMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_udp_profile.py b/test/test_udp_profile.py deleted file mode 100644 index a68e473..0000000 --- a/test/test_udp_profile.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.udp_profile import UdpProfile - -class TestUdpProfile(unittest.TestCase): - """UdpProfile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UdpProfile: - """Test UdpProfile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UdpProfile` - """ - model = UdpProfile() - if include_optional: - return UdpProfile( - max_src_port = 56, - min_src_port = 56, - recv_buff_size_ini = 56, - recv_buff_size_res = 56, - rx_buffer = 56, - sock_group = '', - tx_buffer = 56 - ) - else: - return UdpProfile( - ) - """ - - def testUdpProfile(self): - """Test UdpProfile""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_network_mapping.py b/test/test_update_network_mapping.py deleted file mode 100644 index ca2dc09..0000000 --- a/test/test_update_network_mapping.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.update_network_mapping import UpdateNetworkMapping - -class TestUpdateNetworkMapping(unittest.TestCase): - """UpdateNetworkMapping unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdateNetworkMapping: - """Test UpdateNetworkMapping - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdateNetworkMapping` - """ - model = UpdateNetworkMapping() - if include_optional: - return UpdateNetworkMapping( - client_network_tags = [ - '' - ], - excluded_dut_list = [ - '' - ], - select_tags = True, - server_network_tags = [ - '' - ] - ) - else: - return UpdateNetworkMapping( - ) - """ - - def testUpdateNetworkMapping(self): - """Test UpdateNetworkMapping""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_update_port_tags_operation.py b/test/test_update_port_tags_operation.py deleted file mode 100644 index 54d34b9..0000000 --- a/test/test_update_port_tags_operation.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation - -class TestUpdatePortTagsOperation(unittest.TestCase): - """UpdatePortTagsOperation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdatePortTagsOperation: - """Test UpdatePortTagsOperation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdatePortTagsOperation` - """ - model = UpdatePortTagsOperation() - if include_optional: - return UpdatePortTagsOperation( - controllers = [ - cyperf.models.ports_by_controller.PortsByController( - compute_nodes = [ - cyperf.models.ports_by_node.PortsByNode( - compute_node_id = '', - ports = [ - '' - ], ) - ], - controller_id = '', ) - ], - tags_to_add = [ - '' - ], - tags_to_remove = [ - '' - ] - ) - else: - return UpdatePortTagsOperation( - ) - """ - - def testUpdatePortTagsOperation(self): - """Test UpdatePortTagsOperation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_utils_api.py b/test/test_utils_api.py deleted file mode 100644 index 1e32d81..0000000 --- a/test/test_utils_api.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.api.utils_api import UtilsApi - - -class TestUtilsApi(unittest.TestCase): - """UtilsApi unit test stubs""" - - def setUp(self) -> None: - self.api = UtilsApi() - - def tearDown(self) -> None: - pass - - - def test_check_eulas(self) -> None: - """Test case for check_eulas - - Check if all EULAs are accepted - """ - pass - - def test_get_cert_manager_certificate(self) -> None: - """Test case for get_cert_manager_certificate - - """ - pass - - def test_get_disk_usage(self) -> None: - """Test case for get_disk_usage - - """ - pass - - def test_get_disk_usage_consumer_by_id(self) -> None: - """Test case for get_disk_usage_consumer_by_id - - """ - pass - - def test_get_disk_usage_consumers(self) -> None: - """Test case for get_disk_usage_consumers - - """ - pass - - def test_get_docs(self) -> None: - """Test case for get_docs - - """ - pass - - def test_get_docs_json(self) -> None: - """Test case for get_docs_json - - """ - pass - - def test_get_docs_yaml(self) -> None: - """Test case for get_docs_yaml - - """ - pass - - def test_get_eula(self) -> None: - """Test case for get_eula - - Retrieve EULA detail - """ - pass - - def test_get_log_config(self) -> None: - """Test case for get_log_config - - """ - pass - - def test_get_time(self) -> None: - """Test case for get_time - - """ - pass - - def test_list_eulas(self) -> None: - """Test case for list_eulas - - list of EULAs - """ - pass - - - - - - - - - def test_post_eula(self) -> None: - """Test case for post_eula - - Update properties an EULA - """ - pass - - def test_start_cert_manager_generate(self) -> None: - """Test case for start_cert_manager_generate - - """ - pass - - def test_start_cert_manager_upload(self) -> None: - """Test case for start_cert_manager_upload - - """ - pass - - def test_start_disk_usage_cleanup_diagnostics(self) -> None: - """Test case for start_disk_usage_cleanup_diagnostics - - """ - pass - - def test_start_disk_usage_cleanup_logs(self) -> None: - """Test case for start_disk_usage_cleanup_logs - - """ - pass - - def test_start_disk_usage_cleanup_migration(self) -> None: - """Test case for start_disk_usage_cleanup_migration - - """ - pass - - def test_start_disk_usage_cleanup_notifications(self) -> None: - """Test case for start_disk_usage_cleanup_notifications - - """ - pass - - def test_start_disk_usage_cleanup_results(self) -> None: - """Test case for start_disk_usage_cleanup_results - - """ - pass - - def test_update_log_config(self) -> None: - """Test case for update_log_config - - """ - pass - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_validation_message.py b/test/test_validation_message.py deleted file mode 100644 index ed38104..0000000 --- a/test/test_validation_message.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.validation_message import ValidationMessage - -class TestValidationMessage(unittest.TestCase): - """ValidationMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ValidationMessage: - """Test ValidationMessage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ValidationMessage` - """ - model = ValidationMessage() - if include_optional: - return ValidationMessage( - message = '', - severity = 'WARNING' - ) - else: - return ValidationMessage( - message = '', - severity = 'WARNING', - ) - """ - - def testValidationMessage(self): - """Test ValidationMessage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_version.py b/test/test_version.py deleted file mode 100644 index e2b6089..0000000 --- a/test/test_version.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.version import Version - -class TestVersion(unittest.TestCase): - """Version unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Version: - """Test Version - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Version` - """ - model = Version() - if include_optional: - return Version( - config_service_version = '', - data_model_version = '' - ) - else: - return Version( - ) - """ - - def testVersion(self): - """Test Version""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vlan_range.py b/test/test_vlan_range.py deleted file mode 100644 index ddc7df5..0000000 --- a/test/test_vlan_range.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vlan_range import VLANRange - -class TestVLANRange(unittest.TestCase): - """VLANRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VLANRange: - """Test VLANRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VLANRange` - """ - model = VLANRange() - if include_optional: - return VLANRange( - count = 56, - count_per_agent = 56, - max_count_per_agent = 56, - priority = 56, - static_arp_table = [ - cyperf.models.static_arp_entry.StaticARPEntry( - count = 56, - remote_ip = '::02:84:9:0cc0:F:CCf', - remote_ip_incr = '::02:84:9:0cc0:F:CCf', - remote_mac = '2E-B0-08-29:0c:01', - remote_mac_incr = '2E-B0-08-29:0c:01', - static_arp_entry_name = 'YBuLd', - id = '', ) - ], - tag_protocol_id = 33024, - vlan_auto = True, - vlan_enabled = True, - vlan_id = 56, - vlan_incr = 56, - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return VLANRange( - vlan_auto = True, - ) - """ - - def testVLANRange(self): - """Test VLANRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vx_lan_range.py b/test/test_vx_lan_range.py deleted file mode 100644 index 8511ecf..0000000 --- a/test/test_vx_lan_range.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vx_lan_range import VxLANRange - -class TestVxLANRange(unittest.TestCase): - """VxLANRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VxLANRange: - """Test VxLANRange - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VxLANRange` - """ - model = VxLANRange() - if include_optional: - return VxLANRange( - hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', - hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', - md2_tlvs = [ - cyperf.models.md2_tlv.Md2Tlv( - md2_class = 56, - md2_type = 56, - md2_value = 56, - id = '', ) - ], - remote_vtep_ip_local_count = 56, - remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', - total_tunnel_count = 56, - use_vx_lan_ids = True, - vx_lanid_incr = 56, - vx_lanid_per_vtep_pair_count = 56, - vx_lanid_start = 56, - vx_lan_ids = [ - cyperf.models.vx_lanid.VxLANId( - vx_lan_id = 56, - id = '', ) - ], - vx_lan_range_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return VxLANRange( - hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', - hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_local_count = 56, - remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', - total_tunnel_count = 56, - use_vx_lan_ids = True, - vx_lanid_incr = 56, - vx_lanid_per_vtep_pair_count = 56, - vx_lanid_start = 56, - vx_lan_range_name = 'YBuLd', - id = '', - ) - """ - - def testVxLANRange(self): - """Test VxLANRange""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vx_lan_stack.py b/test/test_vx_lan_stack.py deleted file mode 100644 index 18232fa..0000000 --- a/test/test_vx_lan_stack.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vx_lan_stack import VxLANStack - -class TestVxLANStack(unittest.TestCase): - """VxLANStack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VxLANStack: - """Test VxLANStack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VxLANStack` - """ - model = VxLANStack() - if include_optional: - return VxLANStack( - inner_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - outer_ip_range = cyperf.models.ip_range.IPRange( - automatic_ip_type = null, - count = 56, - gw_auto = True, - gw_start = '::02:84:9:0cc0:F:CCf', - host_count = 56, - inner_vlan_range = null, - ip_auto = True, - ip_incr = '::02:84:9:0cc0:F:CCf', - ip_range_name = 'YBuLd', - ip_start = '::02:84:9:0cc0:F:CCf', - ip_ver = null, - is_emulated_router = True, - mss = 56, - mss_auto = True, - net_mask = 56, - net_mask_auto = True, - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], - max_count_per_agent = 56, - network_tags = [ - '' - ], ), - vx_lan_range = cyperf.models.vx_lan_range.VxLANRange( - hacked_inner_remote_ip_incr = '::02:84:9:0cc0:F:CCf', - hacked_inner_remote_ip_start = '::02:84:9:0cc0:F:CCf', - md2_tlvs = [ - cyperf.models.md2_tlv.Md2Tlv( - md2_class = 56, - md2_type = 56, - md2_value = 56, - id = '', ) - ], - remote_vtep_ip_local_count = 56, - remote_vtep_ip_local_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_range_incr = '::02:84:9:0cc0:F:CCf', - remote_vtep_ip_start = '::02:84:9:0cc0:F:CCf', - total_tunnel_count = 56, - use_vx_lan_ids = True, - vx_lanid_incr = 56, - vx_lanid_per_vtep_pair_count = 56, - vx_lanid_start = 56, - vx_lan_ids = [ - cyperf.models.vx_lanid.VxLANId( - vx_lan_id = 56, - id = '', ) - ], - vx_lan_range_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ], ), - vx_lan_stack_name = 'YBuLd', - id = '', - links = [ - cyperf.models.api_link.APILink( - content_type = '', - href = '', - method = '', - name = '', - references_count = 56, - rel = '', - type = '', ) - ] - ) - else: - return VxLANStack( - vx_lan_stack_name = 'YBuLd', - id = '', - ) - """ - - def testVxLANStack(self): - """Test VxLANStack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_vx_lanid.py b/test/test_vx_lanid.py deleted file mode 100644 index 9e71968..0000000 --- a/test/test_vx_lanid.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from cyperf.models.vx_lanid import VxLANId - -class TestVxLANId(unittest.TestCase): - """VxLANId unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VxLANId: - """Test VxLANId - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VxLANId` - """ - model = VxLANId() - if include_optional: - return VxLANId( - vx_lan_id = 56, - id = '' - ) - else: - return VxLANId( - vx_lan_id = 56, - id = '', - ) - """ - - def testVxLANId(self): - """Test VxLANId""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() From 5d4d7ee0856c8dfd57f2d5f4d05e440beef884ea Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 19 Feb 2026 07:51:25 -0700 Subject: [PATCH 27/53] Pull request #57: ISGAPPSEC2-36897 added wrapper support for prisma airs and model armor (wrapper) Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-36897-wrapper-integrate-model-armor-and-prisma-airs-params to main Squashed commit of the following: commit a5d6d9b7c606758389de6cc0bc4dbcaf8af88701 Author: iustmitu Date: Wed Feb 18 15:59:43 2026 +0200 regenerated wrapper commit 2f2dce98568d02becb495345be221ae811656ba2 Author: iustmitu Date: Wed Feb 18 15:49:54 2026 +0200 model armor and prisma airs utils methods --- cyperf/utils.py | 130 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 129 insertions(+), 1 deletion(-) diff --git a/cyperf/utils.py b/cyperf/utils.py index 3d09251..07e342e 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -350,7 +350,135 @@ def format_stats_dict_as_table(self, stats_dict={}): lines = ['|'.join([f'{val:^{col_width}}' for val, col_width in zip(item, col_widths)]) for item in zip(*stats_dict.values())] return [line_delim, header, line_delim] + lines + [line_delim] - + + def set_prisma_airs_params(self, session, pan_auth_token, airs_profile_name = None, airs_profile_id = None): + # Update Attacks + prisma_airs_attacks_found = False + try: + attack_profiles = session.config.config.attack_profiles + if not attack_profiles: + raise ValueError("No attack profiles found in the session configuration.") + for attack in attack_profiles[0].attacks: + if "Prisma AIRS" not in attack.name: + continue + for track in attack.tracks: + for action in track.actions: + for param in action.params: + if param.name == "PAN auth token": + prisma_airs_attacks_found = True + param.value = pan_auth_token + print(f"Updated PAN auth token for attack: {attack.name}") + elif param.name == "AIRS Profile Name" and airs_profile_name: + param.value = airs_profile_name + print(f"Updated AIRS Profile Name for attack: {attack.name}") + elif param.name == "AIRS Profile ID" and airs_profile_id: + param.value = airs_profile_id + print(f"Updated AIRS Profile ID for attack: {attack.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Prisma AIRS params: {e}") + except Exception as e: + print(f"Unexpected error while setting Prisma AIRS params: {e}") + if not prisma_airs_attacks_found: + print("No Prisma AIRS Attacks found in the provided session.") + + # Update Applications + prisma_airs_applications_found = False + try: + traffic_profiles = session.config.config.traffic_profiles + if not traffic_profiles: + raise ValueError("No application profiles found in the session configuration.") + for application in traffic_profiles[0].applications: + if "Prisma AIRS" not in application.name: + continue + for track in application.tracks: + for action in track.actions: + for param in action.params: + if param.name == "PAN Auth Token": + prisma_airs_applications_found = True + param.value = pan_auth_token + print(f"Updated PAN auth token for Application: {application.name}") + elif param.name == "AIRS Profile Name" and airs_profile_name: + param.value = airs_profile_name + print(f"Updated AIRS Profile Name for Application: {application.name}") + elif param.name == "AIRS Profile ID" and airs_profile_id: + param.value = airs_profile_id + print(f"Updated AIRS Profile ID for Application: {application.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Prisma AIRS params: {e}") + except Exception as e: + print(f"Unexpected error while setting Prisma AIRS params: {e}") + if not prisma_airs_applications_found: + print("No Prisma AIRS Applications found in the provided session.") + + def set_model_armor_params(self, session, template_id, location, project_id, access_token): + # Update Attacks + model_armor_attacks_found = False + try: + attack_profiles = session.config.config.attack_profiles + if not attack_profiles: + raise ValueError("No attack profiles found in the session configuration.") + for attack in attack_profiles[0].attacks: + if "Model Armor" not in attack.name: + continue + for track in attack.tracks: + for action in track.actions: + params = action.params + for param in params: + if param.name == "Template ID": + model_armor_attacks_found = True + param.value = template_id + print(f"Updated Template ID for attack: {attack.name}") + elif param.name == "Project ID": + param.value = project_id + print(f"Updated Project ID for attack: {attack.name}") + elif param.name == "Location": + param.value = location + print(f"Updated Location for attack: {attack.name}") + elif param.name == "Access Token": + param.value = access_token + print(f"Updated Access Token for attack: {attack.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Model Armor params: {e}") + except Exception as e: + print(f"Unexpected error while setting Model Armor params: {e}") + if not model_armor_attacks_found: + print("No Model Armor Attacks found in the provided session.") + + # Update Applications + model_armor_applications_found = False + try: + traffic_profiles = session.config.config.traffic_profiles + if not traffic_profiles: + raise ValueError("No application profiles found in the session configuration.") + for application in traffic_profiles[0].applications: + if "Model Armor" not in application.name: + continue + for track in application.tracks: + for action in track.actions: + for param in action.params: + if param.name == "Template ID": + model_armor_applications_found = True + param.value = template_id + print(f"Updated Template ID for Application: {application.name}") + elif param.name == "Project ID": + param.value = project_id + print(f"Updated Project ID for Application: {application.name}") + elif param.name == "Location": + param.value = location + print(f"Updated Location for Application: {application.name}") + elif param.name == "Access Token": + param.value = access_token + print(f"Updated Access Token for Application: {application.name}") + param.update() + except AttributeError as e: + print(f"Error while setting Model Armor params: {e}") + except Exception as e: + print(f"Unexpected error while setting Model Armor params: {e}") + if not model_armor_applications_found: + print("No Model Armor Applications found in the provided session.") def parse_cli_options(extra_options=[]): """Can be used to get parameters from the CLI or env vars that are broadly useful for CLI tests""" From bdb3303a252a1efccea66813311c7120408b152c Mon Sep 17 00:00:00 2001 From: AndreiCostin Martin Date: Fri, 20 Mar 2026 05:03:27 -0600 Subject: [PATCH 28/53] Pull request #60: Re-generate wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from testing/ISGAPPSEC2-37118/ipsec-integration-tests to main Squashed commit of the following: commit 79561cdfb25882432cf90d86630060c4f9bc8a4a Author: Andrei Martin Date: Fri Mar 20 11:56:57 2026 +0200 Re-generate wrapper Signed-off-by: Andrei Martin --- README.md | 20 +- cyperf/__init__.py | 8 +- cyperf/api/agents_api.py | 308 +- cyperf/api/application_resources_api.py | 5938 +++++++++++------ cyperf/dynamic_models/__init__.py | 8 +- cyperf/models/__init__.py | 8 +- cyperf/models/action.py | 4 +- cyperf/models/action_base.py | 4 +- cyperf/models/agent.py | 6 +- cyperf/models/attack.py | 14 +- cyperf/models/attack_action.py | 4 +- cyperf/models/command_metadata.py | 4 +- cyperf/models/dut_network.py | 6 +- ..._resources_llm_api_profiles200_response.py | 147 + ...ces_llm_api_profiles200_response_one_of.py | 103 + cyperf/models/inner_ip_sec_range.py | 186 + cyperf/models/ip_sec_range.py | 16 +- cyperf/models/ip_sec_stack.py | 2 +- cyperf/models/llmapi_profile.py | 134 + cyperf/models/metadata.py | 4 +- cyperf/models/objective_type.py | 1 + cyperf/models/set_controller_app_operation.py | 97 + cyperf/models/set_nodes_app_operation.py | 105 + cyperf/models/system_info.py | 8 +- cyperf/models/test_info.py | 10 +- cyperf/models/test_usage.py | 95 + cyperf/models/transport_profile.py | 12 +- cyperf/models/transport_profile_base.py | 12 +- cyperf/models/tunnel_range.py | 6 +- docs/Action.md | 1 + docs/ActionBase.md | 1 + docs/Agent.md | 2 + docs/AgentsApi.md | 89 +- docs/ApplicationResourcesApi.md | 698 +- docs/Attack.md | 2 + docs/AttackAction.md | 1 + docs/CommandMetadata.md | 1 + docs/DUTNetwork.md | 2 + docs/GetResourcesLlmApiProfiles200Response.md | 30 + ...ResourcesLlmApiProfiles200ResponseOneOf.md | 30 + docs/IPSecRange.md | 3 + docs/IPSecStack.md | 2 +- docs/InnerIPSecRange.md | 43 + docs/LLMAPIProfile.md | 34 + docs/Metadata.md | 1 + docs/ObjectiveType.md | 2 + docs/SetControllerAppOperation.md | 31 + docs/SetNodesAppOperation.md | 31 + docs/SystemInfo.md | 1 + docs/TestInfo.md | 1 + docs/TestUsage.md | 30 + docs/TransportProfile.md | 1 + docs/TransportProfileBase.md | 1 + docs/TunnelRange.md | 3 +- 54 files changed, 6325 insertions(+), 1986 deletions(-) create mode 100644 cyperf/models/get_resources_llm_api_profiles200_response.py create mode 100644 cyperf/models/get_resources_llm_api_profiles200_response_one_of.py create mode 100644 cyperf/models/inner_ip_sec_range.py create mode 100644 cyperf/models/llmapi_profile.py create mode 100644 cyperf/models/set_controller_app_operation.py create mode 100644 cyperf/models/set_nodes_app_operation.py create mode 100644 cyperf/models/test_usage.py create mode 100644 docs/GetResourcesLlmApiProfiles200Response.md create mode 100644 docs/GetResourcesLlmApiProfiles200ResponseOneOf.md create mode 100644 docs/InnerIPSecRange.md create mode 100644 docs/LLMAPIProfile.md create mode 100644 docs/SetControllerAppOperation.md create mode 100644 docs/SetNodesAppOperation.md create mode 100644 docs/TestUsage.md diff --git a/README.md b/README.md index 7fbfce4..407fbd2 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,9 @@ Then import the package: ```python import cyperf ``` +### Tests + +Execute `pytest` to run the tests. ## Getting Started @@ -97,6 +100,7 @@ Class | Method | HTTP request | Description *AgentsApi* | [**start_controllers_reboot_port**](docs/AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | *AgentsApi* | [**start_controllers_set_app**](docs/AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | *AgentsApi* | [**start_controllers_set_node_aggregation**](docs/AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | +*AgentsApi* | [**start_controllers_set_node_app**](docs/AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | *AgentsApi* | [**start_controllers_set_port_link_state**](docs/AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | *AgentsApi* | [**start_controllers_update_port_tags**](docs/AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | *ApplicationResourcesApi* | [**delete_resources_capture**](docs/ApplicationResourcesApi.md#delete_resources_capture) | **DELETE** /api/v2/resources/captures/{captureId} | @@ -117,6 +121,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**delete_resources_tls_dh**](docs/ApplicationResourcesApi.md#delete_resources_tls_dh) | **DELETE** /api/v2/resources/tls-dhs/{tlsDhId} | *ApplicationResourcesApi* | [**delete_resources_tls_key**](docs/ApplicationResourcesApi.md#delete_resources_tls_key) | **DELETE** /api/v2/resources/tls-keys/{tlsKeyId} | *ApplicationResourcesApi* | [**delete_resources_user_defined_app**](docs/ApplicationResourcesApi.md#delete_resources_user_defined_app) | **DELETE** /api/v2/resources/user-defined-apps/{userDefinedAppId} | +*ApplicationResourcesApi* | [**delete_resources_voice_custom_flow**](docs/ApplicationResourcesApi.md#delete_resources_voice_custom_flow) | **DELETE** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | *ApplicationResourcesApi* | [**get_capture_flows**](docs/ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | *ApplicationResourcesApi* | [**get_flow_exchanges**](docs/ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | *ApplicationResourcesApi* | [**get_resources_app_by_id**](docs/ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | @@ -155,6 +160,8 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_http_library_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_http_library_upload_file_result) | **GET** /api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_http_profile_by_id**](docs/ApplicationResourcesApi.md#get_resources_http_profile_by_id) | **GET** /api/v2/resources/http-profiles/{httpProfileId} | *ApplicationResourcesApi* | [**get_resources_http_profiles**](docs/ApplicationResourcesApi.md#get_resources_http_profiles) | **GET** /api/v2/resources/http-profiles | +*ApplicationResourcesApi* | [**get_resources_llm_api_profile_by_id**](docs/ApplicationResourcesApi.md#get_resources_llm_api_profile_by_id) | **GET** /api/v2/resources/llm-api-profiles/{llmApiProfileId} | +*ApplicationResourcesApi* | [**get_resources_llm_api_profiles**](docs/ApplicationResourcesApi.md#get_resources_llm_api_profiles) | **GET** /api/v2/resources/llm-api-profiles | *ApplicationResourcesApi* | [**get_resources_media_file_by_id**](docs/ApplicationResourcesApi.md#get_resources_media_file_by_id) | **GET** /api/v2/resources/media-files/{mediaFileId} | *ApplicationResourcesApi* | [**get_resources_media_file_content_file**](docs/ApplicationResourcesApi.md#get_resources_media_file_content_file) | **GET** /api/v2/resources/media-files/{mediaFileId}/contentFile | *ApplicationResourcesApi* | [**get_resources_media_files**](docs/ApplicationResourcesApi.md#get_resources_media_files) | **GET** /api/v2/resources/media-files | @@ -205,6 +212,10 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**get_resources_tls_keys_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**get_resources_user_defined_apps**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | *ApplicationResourcesApi* | [**get_resources_user_defined_apps_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flow_by_id**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flow_by_id) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flow_content_file**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flow_content_file) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId}/contentFile | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flows**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flows) | **GET** /api/v2/resources/voice-custom-flows | +*ApplicationResourcesApi* | [**get_resources_voice_custom_flows_upload_file_result**](docs/ApplicationResourcesApi.md#get_resources_voice_custom_flows_upload_file_result) | **GET** /api/v2/resources/voice-custom-flows/operations/uploadFile/{uploadFileId}/result | *ApplicationResourcesApi* | [**start_resources_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_captures_batch_delete**](docs/ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | *ApplicationResourcesApi* | [**start_resources_captures_encrypted_upload_file**](docs/ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | @@ -237,6 +248,7 @@ Class | Method | HTTP request | Description *ApplicationResourcesApi* | [**start_resources_tls_keys_upload_file**](docs/ApplicationResourcesApi.md#start_resources_tls_keys_upload_file) | **POST** /api/v2/resources/tls-keys/operations/uploadFile | *ApplicationResourcesApi* | [**start_resources_user_defined_apps_export_all**](docs/ApplicationResourcesApi.md#start_resources_user_defined_apps_export_all) | **POST** /api/v2/resources/user-defined-apps/operations/export-all | *ApplicationResourcesApi* | [**start_resources_user_defined_apps_upload_file**](docs/ApplicationResourcesApi.md#start_resources_user_defined_apps_upload_file) | **POST** /api/v2/resources/user-defined-apps/operations/uploadFile | +*ApplicationResourcesApi* | [**start_resources_voice_custom_flows_upload_file**](docs/ApplicationResourcesApi.md#start_resources_voice_custom_flows_upload_file) | **POST** /api/v2/resources/voice-custom-flows/operations/uploadFile | *AuthorizationApi* | [**authenticate**](docs/AuthorizationApi.md#authenticate) | **POST** /auth/realms/keysight/protocol/openid-connect/token | *BrokersApi* | [**create_brokers**](docs/BrokersApi.md#create_brokers) | **POST** /api/v2/brokers | *BrokersApi* | [**delete_broker**](docs/BrokersApi.md#delete_broker) | **DELETE** /api/v2/brokers/{brokerId} | @@ -574,6 +586,8 @@ Class | Method | HTTP request | Description - [GetResourcesCustomImportOperations200ResponseOneOf](docs/GetResourcesCustomImportOperations200ResponseOneOf.md) - [GetResourcesHttpProfiles200Response](docs/GetResourcesHttpProfiles200Response.md) - [GetResourcesHttpProfiles200ResponseOneOf](docs/GetResourcesHttpProfiles200ResponseOneOf.md) + - [GetResourcesLlmApiProfiles200Response](docs/GetResourcesLlmApiProfiles200Response.md) + - [GetResourcesLlmApiProfiles200ResponseOneOf](docs/GetResourcesLlmApiProfiles200ResponseOneOf.md) - [GetResultFiles200Response](docs/GetResultFiles200Response.md) - [GetResultFiles200ResponseOneOf](docs/GetResultFiles200ResponseOneOf.md) - [GetResultStats200Response](docs/GetResultStats200Response.md) @@ -608,10 +622,12 @@ Class | Method | HTTP request | Description - [ImportOfflineLicenseResult](docs/ImportOfflineLicenseResult.md) - [IngestOperation](docs/IngestOperation.md) - [InnerIPRange](docs/InnerIPRange.md) + - [InnerIPSecRange](docs/InnerIPSecRange.md) - [Interface](docs/Interface.md) - [IpMask](docs/IpMask.md) - [IpPreference](docs/IpPreference.md) - [IpVer](docs/IpVer.md) + - [LLMAPIProfile](docs/LLMAPIProfile.md) - [License](docs/License.md) - [LicenseReceipt](docs/LicenseReceipt.md) - [LicenseServerMetadata](docs/LicenseServerMetadata.md) @@ -709,9 +725,10 @@ Class | Method | HTTP request | Description - [SessionReuseMethodTLS12](docs/SessionReuseMethodTLS12.md) - [SessionReuseMethodTLS13](docs/SessionReuseMethodTLS13.md) - [SetAggregationModeOperation](docs/SetAggregationModeOperation.md) - - [SetAppOperation](docs/SetAppOperation.md) + - [SetControllerAppOperation](docs/SetControllerAppOperation.md) - [SetDpdkModeOperationInput](docs/SetDpdkModeOperationInput.md) - [SetLinkStateOperation](docs/SetLinkStateOperation.md) + - [SetNodesAppOperation](docs/SetNodesAppOperation.md) - [SetNtpOperationInput](docs/SetNtpOperationInput.md) - [SimulatedIdP](docs/SimulatedIdP.md) - [Snapshot](docs/Snapshot.md) @@ -733,6 +750,7 @@ Class | Method | HTTP request | Description - [TcpProfile](docs/TcpProfile.md) - [TestInfo](docs/TestInfo.md) - [TestStateChangedOperation](docs/TestStateChangedOperation.md) + - [TestUsage](docs/TestUsage.md) - [TimeValue](docs/TimeValue.md) - [TimelineSegment](docs/TimelineSegment.md) - [TimelineSegmentBase](docs/TimelineSegmentBase.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 62104c3..2735277 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -246,6 +246,8 @@ from cyperf.models.get_resources_custom_import_operations200_response_one_of import GetResourcesCustomImportOperations200ResponseOneOf from cyperf.models.get_resources_http_profiles200_response import GetResourcesHttpProfiles200Response from cyperf.models.get_resources_http_profiles200_response_one_of import GetResourcesHttpProfiles200ResponseOneOf +from cyperf.models.get_resources_llm_api_profiles200_response import GetResourcesLlmApiProfiles200Response +from cyperf.models.get_resources_llm_api_profiles200_response_one_of import GetResourcesLlmApiProfiles200ResponseOneOf from cyperf.models.get_result_files200_response import GetResultFiles200Response from cyperf.models.get_result_files200_response_one_of import GetResultFiles200ResponseOneOf from cyperf.models.get_result_stats200_response import GetResultStats200Response @@ -280,10 +282,12 @@ from cyperf.models.import_offline_license_result import ImportOfflineLicenseResult from cyperf.models.ingest_operation import IngestOperation from cyperf.models.inner_ip_range import InnerIPRange +from cyperf.models.inner_ip_sec_range import InnerIPSecRange from cyperf.models.interface import Interface from cyperf.models.ip_mask import IpMask from cyperf.models.ip_preference import IpPreference from cyperf.models.ip_ver import IpVer +from cyperf.models.llmapi_profile import LLMAPIProfile from cyperf.models.license import License from cyperf.models.license_receipt import LicenseReceipt from cyperf.models.license_server_metadata import LicenseServerMetadata @@ -381,9 +385,10 @@ from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot @@ -405,6 +410,7 @@ from cyperf.models.tcp_profile import TcpProfile from cyperf.models.test_info import TestInfo from cyperf.models.test_state_changed_operation import TestStateChangedOperation +from cyperf.models.test_usage import TestUsage from cyperf.models.time_value import TimeValue from cyperf.models.timeline_segment import TimelineSegment from cyperf.models.timeline_segment_base import TimelineSegmentBase diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 03005f5..58b5f49 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -36,9 +36,10 @@ from cyperf.models.release_operation_input import ReleaseOperationInput from cyperf.models.reserve_operation_input import ReserveOperationInput from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation @@ -3324,6 +3325,16 @@ def _patch_agent_serialize( + + + + + + + + + + @@ -6226,7 +6237,7 @@ def _start_controllers_reboot_port_serialize( @validate_call def start_controllers_set_app( self, - set_app_operation: Optional[SetAppOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6244,8 +6255,8 @@ def start_controllers_set_app( Set the active app of the controllers. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6269,7 +6280,7 @@ def start_controllers_set_app( """ # noqa: E501 _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6289,7 +6300,7 @@ def start_controllers_set_app( @validate_call def start_controllers_set_app_with_http_info( self, - set_app_operation: Optional[SetAppOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6307,8 +6318,8 @@ def start_controllers_set_app_with_http_info( Set the active app of the controllers. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6332,7 +6343,7 @@ def start_controllers_set_app_with_http_info( """ # noqa: E501 _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6352,7 +6363,7 @@ def start_controllers_set_app_with_http_info( @validate_call def start_controllers_set_app_without_preload_content( self, - set_app_operation: Optional[SetAppOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6370,8 +6381,8 @@ def start_controllers_set_app_without_preload_content( Set the active app of the controllers. - :param set_app_operation: - :type set_app_operation: SetAppOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6395,7 +6406,7 @@ def start_controllers_set_app_without_preload_content( """ # noqa: E501 _param = self._start_controllers_set_app_serialize( - set_app_operation=set_app_operation, + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6414,7 +6425,7 @@ def start_controllers_set_app_without_preload_content( def _start_controllers_set_app_serialize( self, - set_app_operation, + set_controller_app_operation, _request_auth, _content_type, _headers, @@ -6438,8 +6449,8 @@ def _start_controllers_set_app_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_app_operation is not None: - _body_params = set_app_operation + if set_controller_app_operation is not None: + _body_params = set_controller_app_operation # set the HTTP header `Accept` @@ -6753,6 +6764,271 @@ def _start_controllers_set_node_aggregation_serialize( + @validate_call + def start_controllers_set_node_app( + self, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_controllers_set_node_app + + Set the active app of the compute nodes. + + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_set_node_app_with_http_info( + self, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_controllers_set_node_app + + Set the active app of the compute nodes. + + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_set_node_app_without_preload_content( + self, + set_nodes_app_operation: Optional[SetNodesAppOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_controllers_set_node_app + + Set the active app of the compute nodes. + + :param set_nodes_app_operation: + :type set_nodes_app_operation: SetNodesAppOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_node_app_serialize( + set_nodes_app_operation=set_nodes_app_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_controllers_set_node_app_serialize( + self, + set_nodes_app_operation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if set_nodes_app_operation is not None: + _body_params = set_nodes_app_operation + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/controllers/operations/set-node-app', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def start_controllers_set_port_link_state( self, diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index 26c605a..3bf9bca 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -42,8 +42,10 @@ from cyperf.models.get_resources_auth_profiles200_response import GetResourcesAuthProfiles200Response from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response from cyperf.models.get_resources_http_profiles200_response import GetResourcesHttpProfiles200Response +from cyperf.models.get_resources_llm_api_profiles200_response import GetResourcesLlmApiProfiles200Response from cyperf.models.get_strikes_operation import GetStrikesOperation from cyperf.models.http_profile import HTTPProfile +from cyperf.models.llmapi_profile import LLMAPIProfile from cyperf.models.replay_capture import ReplayCapture from cyperf import DynamicModel @@ -4709,6 +4711,264 @@ def _delete_resources_user_defined_app_serialize( + @validate_call + def delete_resources_voice_custom_flow( + self, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """delete_resources_voice_custom_flow + + Delete a particular voice custom flow. + + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_resources_voice_custom_flow_serialize( + voice_custom_flow_id=voice_custom_flow_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def delete_resources_voice_custom_flow_with_http_info( + self, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """delete_resources_voice_custom_flow + + Delete a particular voice custom flow. + + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_resources_voice_custom_flow_serialize( + voice_custom_flow_id=voice_custom_flow_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def delete_resources_voice_custom_flow_without_preload_content( + self, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_resources_voice_custom_flow + + Delete a particular voice custom flow. + + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_resources_voice_custom_flow_serialize( + voice_custom_flow_id=voice_custom_flow_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _delete_resources_voice_custom_flow_serialize( + self, + voice_custom_flow_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if voice_custom_flow_id is not None: + _path_params['voiceCustomFlowId'] = voice_custom_flow_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v2/resources/voice-custom-flows/{voiceCustomFlowId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_capture_flows( self, @@ -14992,9 +15252,9 @@ def _get_resources_http_profiles_serialize( @validate_call - def get_resources_media_file_by_id( + def get_resources_llm_api_profile_by_id( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + llm_api_profile_id: Annotated[StrictStr, Field(description="The ID of the llm api profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15007,13 +15267,13 @@ def get_resources_media_file_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_media_file_by_id + ) -> LLMAPIProfile: + """get_resources_llm_api_profile_by_id - Get a particular media file. + Get a particular LLM API profile. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param llm_api_profile_id: The ID of the llm api profile. (required) + :type llm_api_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15036,8 +15296,8 @@ def get_resources_media_file_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_llm_api_profile_by_id_serialize( + llm_api_profile_id=llm_api_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15045,8 +15305,7 @@ def get_resources_media_file_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "LLMAPIProfile", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -15058,9 +15317,9 @@ def get_resources_media_file_by_id( @validate_call - def get_resources_media_file_by_id_with_http_info( + def get_resources_llm_api_profile_by_id_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + llm_api_profile_id: Annotated[StrictStr, Field(description="The ID of the llm api profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15073,13 +15332,13 @@ def get_resources_media_file_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_media_file_by_id + ) -> ApiResponse[LLMAPIProfile]: + """get_resources_llm_api_profile_by_id - Get a particular media file. + Get a particular LLM API profile. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param llm_api_profile_id: The ID of the llm api profile. (required) + :type llm_api_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15102,8 +15361,8 @@ def get_resources_media_file_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_llm_api_profile_by_id_serialize( + llm_api_profile_id=llm_api_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15111,8 +15370,7 @@ def get_resources_media_file_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "LLMAPIProfile", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -15124,9 +15382,9 @@ def get_resources_media_file_by_id_with_http_info( @validate_call - def get_resources_media_file_by_id_without_preload_content( + def get_resources_llm_api_profile_by_id_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + llm_api_profile_id: Annotated[StrictStr, Field(description="The ID of the llm api profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15140,12 +15398,12 @@ def get_resources_media_file_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_file_by_id + """get_resources_llm_api_profile_by_id - Get a particular media file. + Get a particular LLM API profile. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param llm_api_profile_id: The ID of the llm api profile. (required) + :type llm_api_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15168,8 +15426,8 @@ def get_resources_media_file_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_by_id_serialize( - media_file_id=media_file_id, + _param = self._get_resources_llm_api_profile_by_id_serialize( + llm_api_profile_id=llm_api_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15177,8 +15435,7 @@ def get_resources_media_file_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "LLMAPIProfile", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -15189,9 +15446,9 @@ def get_resources_media_file_by_id_without_preload_content( ) - def _get_resources_media_file_by_id_serialize( + def _get_resources_llm_api_profile_by_id_serialize( self, - media_file_id, + llm_api_profile_id, _request_auth, _content_type, _headers, @@ -15211,8 +15468,8 @@ def _get_resources_media_file_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_file_id is not None: - _path_params['mediaFileId'] = media_file_id + if llm_api_profile_id is not None: + _path_params['llmApiProfileId'] = llm_api_profile_id # process the query parameters # process the header parameters # process the form parameters @@ -15236,7 +15493,7 @@ def _get_resources_media_file_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/{mediaFileId}', + resource_path='/api/v2/resources/llm-api-profiles/{llmApiProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15253,9 +15510,10 @@ def _get_resources_media_file_by_id_serialize( @validate_call - def get_resources_media_file_content_file( + def get_resources_llm_api_profiles( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15268,13 +15526,15 @@ def get_resources_media_file_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_media_file_content_file + ) -> GetResourcesLlmApiProfiles200Response: + """get_resources_llm_api_profiles - Get the content of a particular media file. + Get all the available LLM API profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15297,8 +15557,9 @@ def get_resources_media_file_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( - media_file_id=media_file_id, + _param = self._get_resources_llm_api_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15306,8 +15567,8 @@ def get_resources_media_file_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesLlmApiProfiles200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15317,9 +15578,10 @@ def get_resources_media_file_content_file( @validate_call - def get_resources_media_file_content_file_with_http_info( + def get_resources_llm_api_profiles_with_http_info( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15332,13 +15594,15 @@ def get_resources_media_file_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_media_file_content_file + ) -> ApiResponse[GetResourcesLlmApiProfiles200Response]: + """get_resources_llm_api_profiles - Get the content of a particular media file. + Get all the available LLM API profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15361,8 +15625,9 @@ def get_resources_media_file_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( - media_file_id=media_file_id, + _param = self._get_resources_llm_api_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15370,8 +15635,8 @@ def get_resources_media_file_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesLlmApiProfiles200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15381,9 +15646,10 @@ def get_resources_media_file_content_file_with_http_info( @validate_call - def get_resources_media_file_content_file_without_preload_content( + def get_resources_llm_api_profiles_without_preload_content( self, - media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15397,12 +15663,14 @@ def get_resources_media_file_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_file_content_file + """get_resources_llm_api_profiles - Get the content of a particular media file. + Get all the available LLM API profiles. - :param media_file_id: The ID of the media file. (required) - :type media_file_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15425,8 +15693,9 @@ def get_resources_media_file_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_file_content_file_serialize( - media_file_id=media_file_id, + _param = self._get_resources_llm_api_profiles_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15434,8 +15703,8 @@ def get_resources_media_file_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesLlmApiProfiles200Response", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15444,9 +15713,10 @@ def get_resources_media_file_content_file_without_preload_content( ) - def _get_resources_media_file_content_file_serialize( + def _get_resources_llm_api_profiles_serialize( self, - media_file_id, + take, + skip, _request_auth, _content_type, _headers, @@ -15466,9 +15736,15 @@ def _get_resources_media_file_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_file_id is not None: - _path_params['mediaFileId'] = media_file_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -15478,7 +15754,6 @@ def _get_resources_media_file_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -15492,7 +15767,7 @@ def _get_resources_media_file_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/{mediaFileId}/contentFile', + resource_path='/api/v2/resources/llm-api-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15509,10 +15784,9 @@ def _get_resources_media_file_content_file_serialize( @validate_call - def get_resources_media_files( + def get_resources_media_file_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15525,15 +15799,13 @@ def get_resources_media_files( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_media_files + ) -> GenericFile: + """get_resources_media_file_by_id - Get all the available media files. + Get a particular media file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15556,9 +15828,8 @@ def get_resources_media_files( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15566,8 +15837,9 @@ def get_resources_media_files( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -15578,10 +15850,9 @@ def get_resources_media_files( @validate_call - def get_resources_media_files_with_http_info( + def get_resources_media_file_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15594,15 +15865,13 @@ def get_resources_media_files_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_media_files + ) -> ApiResponse[GenericFile]: + """get_resources_media_file_by_id - Get all the available media files. + Get a particular media file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15625,9 +15894,8 @@ def get_resources_media_files_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15635,8 +15903,9 @@ def get_resources_media_files_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -15647,10 +15916,9 @@ def get_resources_media_files_with_http_info( @validate_call - def get_resources_media_files_without_preload_content( + def get_resources_media_file_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15664,14 +15932,12 @@ def get_resources_media_files_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_files + """get_resources_media_file_by_id - Get all the available media files. + Get a particular media file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15694,9 +15960,8 @@ def get_resources_media_files_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_file_by_id_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15704,8 +15969,9 @@ def get_resources_media_files_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -15715,10 +15981,9 @@ def get_resources_media_files_without_preload_content( ) - def _get_resources_media_files_serialize( + def _get_resources_media_file_by_id_serialize( self, - take, - skip, + media_file_id, _request_auth, _content_type, _headers, @@ -15738,15 +16003,9 @@ def _get_resources_media_files_serialize( _body_params: Optional[bytes] = None # process the path parameters + if media_file_id is not None: + _path_params['mediaFileId'] = media_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -15769,7 +16028,7 @@ def _get_resources_media_files_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files', + resource_path='/api/v2/resources/media-files/{mediaFileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15786,9 +16045,9 @@ def _get_resources_media_files_serialize( @validate_call - def get_resources_media_files_upload_file_result( + def get_resources_media_file_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15801,13 +16060,13 @@ def get_resources_media_files_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_media_files_upload_file_result + ) -> bytearray: + """get_resources_media_file_content_file - Get the result of the upload file operation. + Get the content of a particular media file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15830,8 +16089,8 @@ def get_resources_media_files_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15839,9 +16098,8 @@ def get_resources_media_files_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15851,9 +16109,9 @@ def get_resources_media_files_upload_file_result( @validate_call - def get_resources_media_files_upload_file_result_with_http_info( + def get_resources_media_file_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15866,13 +16124,13 @@ def get_resources_media_files_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_media_files_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_media_file_content_file - Get the result of the upload file operation. + Get the content of a particular media file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15895,8 +16153,8 @@ def get_resources_media_files_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15904,9 +16162,8 @@ def get_resources_media_files_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15916,9 +16173,9 @@ def get_resources_media_files_upload_file_result_with_http_info( @validate_call - def get_resources_media_files_upload_file_result_without_preload_content( + def get_resources_media_file_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + media_file_id: Annotated[StrictStr, Field(description="The ID of the media file.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15932,12 +16189,12 @@ def get_resources_media_files_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_files_upload_file_result + """get_resources_media_file_content_file - Get the result of the upload file operation. + Get the content of a particular media file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param media_file_id: The ID of the media file. (required) + :type media_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15960,8 +16217,8 @@ def get_resources_media_files_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_files_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_media_file_content_file_serialize( + media_file_id=media_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15969,9 +16226,8 @@ def get_resources_media_files_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -15980,9 +16236,9 @@ def get_resources_media_files_upload_file_result_without_preload_content( ) - def _get_resources_media_files_upload_file_result_serialize( + def _get_resources_media_file_content_file_serialize( self, - upload_file_id, + media_file_id, _request_auth, _content_type, _headers, @@ -16002,8 +16258,8 @@ def _get_resources_media_files_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if media_file_id is not None: + _path_params['mediaFileId'] = media_file_id # process the query parameters # process the header parameters # process the form parameters @@ -16014,6 +16270,7 @@ def _get_resources_media_files_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -16027,7 +16284,7 @@ def _get_resources_media_files_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-files/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/media-files/{mediaFileId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16044,7 +16301,7 @@ def _get_resources_media_files_upload_file_result_serialize( @validate_call - def get_resources_media_library( + def get_resources_media_files( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -16061,9 +16318,9 @@ def get_resources_media_library( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_media_library + """get_resources_media_files - Get all the available media library files. + Get all the available media files. :param take: The number of search results to return :type take: int @@ -16091,7 +16348,7 @@ def get_resources_media_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_serialize( + _param = self._get_resources_media_files_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -16113,7 +16370,7 @@ def get_resources_media_library( @validate_call - def get_resources_media_library_with_http_info( + def get_resources_media_files_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -16130,9 +16387,9 @@ def get_resources_media_library_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_media_library + """get_resources_media_files - Get all the available media library files. + Get all the available media files. :param take: The number of search results to return :type take: int @@ -16160,7 +16417,7 @@ def get_resources_media_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_serialize( + _param = self._get_resources_media_files_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -16182,7 +16439,7 @@ def get_resources_media_library_with_http_info( @validate_call - def get_resources_media_library_without_preload_content( + def get_resources_media_files_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -16199,9 +16456,9 @@ def get_resources_media_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_library + """get_resources_media_files - Get all the available media library files. + Get all the available media files. :param take: The number of search results to return :type take: int @@ -16229,7 +16486,7 @@ def get_resources_media_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_serialize( + _param = self._get_resources_media_files_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -16250,7 +16507,7 @@ def get_resources_media_library_without_preload_content( ) - def _get_resources_media_library_serialize( + def _get_resources_media_files_serialize( self, take, skip, @@ -16304,7 +16561,7 @@ def _get_resources_media_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library', + resource_path='/api/v2/resources/media-files', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16321,9 +16578,9 @@ def _get_resources_media_library_serialize( @validate_call - def get_resources_media_library_by_id( + def get_resources_media_files_upload_file_result( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16336,13 +16593,13 @@ def get_resources_media_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_media_library_by_id + ) -> None: + """get_resources_media_files_upload_file_result - Get a particular media library file. + Get the result of the upload file operation. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16365,8 +16622,8 @@ def get_resources_media_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_by_id_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_files_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16374,9 +16631,8 @@ def get_resources_media_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -16387,9 +16643,9 @@ def get_resources_media_library_by_id( @validate_call - def get_resources_media_library_by_id_with_http_info( + def get_resources_media_files_upload_file_result_with_http_info( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16402,13 +16658,13 @@ def get_resources_media_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_media_library_by_id + ) -> ApiResponse[None]: + """get_resources_media_files_upload_file_result - Get a particular media library file. + Get the result of the upload file operation. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16431,8 +16687,8 @@ def get_resources_media_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_by_id_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_files_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16440,9 +16696,8 @@ def get_resources_media_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -16453,9 +16708,9 @@ def get_resources_media_library_by_id_with_http_info( @validate_call - def get_resources_media_library_by_id_without_preload_content( + def get_resources_media_files_upload_file_result_without_preload_content( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16469,12 +16724,12 @@ def get_resources_media_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_library_by_id + """get_resources_media_files_upload_file_result - Get a particular media library file. + Get the result of the upload file operation. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16497,8 +16752,8 @@ def get_resources_media_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_by_id_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_files_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16506,9 +16761,8 @@ def get_resources_media_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -16518,9 +16772,9 @@ def get_resources_media_library_by_id_without_preload_content( ) - def _get_resources_media_library_by_id_serialize( + def _get_resources_media_files_upload_file_result_serialize( self, - media_library_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -16540,8 +16794,8 @@ def _get_resources_media_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_library_id is not None: - _path_params['mediaLibraryId'] = media_library_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -16565,7 +16819,7 @@ def _get_resources_media_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library/{mediaLibraryId}', + resource_path='/api/v2/resources/media-files/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16582,9 +16836,10 @@ def _get_resources_media_library_by_id_serialize( @validate_call - def get_resources_media_library_content_file( + def get_resources_media_library( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16597,13 +16852,15 @@ def get_resources_media_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_media_library_content_file + ) -> GetResourcesCertificates200Response: + """get_resources_media_library - Get the content of a particular media library file. + Get all the available media library files. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16626,8 +16883,9 @@ def get_resources_media_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_content_file_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16635,8 +16893,9 @@ def get_resources_media_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16646,9 +16905,10 @@ def get_resources_media_library_content_file( @validate_call - def get_resources_media_library_content_file_with_http_info( + def get_resources_media_library_with_http_info( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16661,13 +16921,15 @@ def get_resources_media_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_media_library_content_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_media_library - Get the content of a particular media library file. + Get all the available media library files. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16690,8 +16952,9 @@ def get_resources_media_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_content_file_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16699,8 +16962,9 @@ def get_resources_media_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16710,9 +16974,10 @@ def get_resources_media_library_content_file_with_http_info( @validate_call - def get_resources_media_library_content_file_without_preload_content( + def get_resources_media_library_without_preload_content( self, - media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16726,12 +16991,14 @@ def get_resources_media_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_library_content_file + """get_resources_media_library - Get the content of a particular media library file. + Get all the available media library files. - :param media_library_id: The ID of the media library. (required) - :type media_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16754,8 +17021,9 @@ def get_resources_media_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_content_file_serialize( - media_library_id=media_library_id, + _param = self._get_resources_media_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16763,8 +17031,9 @@ def get_resources_media_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -16773,9 +17042,10 @@ def get_resources_media_library_content_file_without_preload_content( ) - def _get_resources_media_library_content_file_serialize( + def _get_resources_media_library_serialize( self, - media_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -16795,9 +17065,15 @@ def _get_resources_media_library_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if media_library_id is not None: - _path_params['mediaLibraryId'] = media_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -16807,7 +17083,6 @@ def _get_resources_media_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -16821,7 +17096,7 @@ def _get_resources_media_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library/{mediaLibraryId}/contentFile', + resource_path='/api/v2/resources/media-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16838,9 +17113,9 @@ def _get_resources_media_library_content_file_serialize( @validate_call - def get_resources_media_library_upload_file_result( + def get_resources_media_library_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16853,13 +17128,13 @@ def get_resources_media_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_media_library_upload_file_result + ) -> GenericFile: + """get_resources_media_library_by_id - Get the result of the upload file operation. + Get a particular media library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16882,8 +17157,8 @@ def get_resources_media_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16891,8 +17166,9 @@ def get_resources_media_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -16903,9 +17179,9 @@ def get_resources_media_library_upload_file_result( @validate_call - def get_resources_media_library_upload_file_result_with_http_info( + def get_resources_media_library_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16918,13 +17194,13 @@ def get_resources_media_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_media_library_upload_file_result + ) -> ApiResponse[GenericFile]: + """get_resources_media_library_by_id - Get the result of the upload file operation. + Get a particular media library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16947,8 +17223,8 @@ def get_resources_media_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16956,8 +17232,9 @@ def get_resources_media_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -16968,9 +17245,9 @@ def get_resources_media_library_upload_file_result_with_http_info( @validate_call - def get_resources_media_library_upload_file_result_without_preload_content( + def get_resources_media_library_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16984,12 +17261,12 @@ def get_resources_media_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_media_library_upload_file_result + """get_resources_media_library_by_id - Get the result of the upload file operation. + Get a particular media library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17012,8 +17289,8 @@ def get_resources_media_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_media_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_media_library_by_id_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17021,8 +17298,9 @@ def get_resources_media_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -17032,9 +17310,9 @@ def get_resources_media_library_upload_file_result_without_preload_content( ) - def _get_resources_media_library_upload_file_result_serialize( + def _get_resources_media_library_by_id_serialize( self, - upload_file_id, + media_library_id, _request_auth, _content_type, _headers, @@ -17054,8 +17332,8 @@ def _get_resources_media_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if media_library_id is not None: + _path_params['mediaLibraryId'] = media_library_id # process the query parameters # process the header parameters # process the form parameters @@ -17079,7 +17357,7 @@ def _get_resources_media_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/media-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/media-library/{mediaLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17096,10 +17374,9 @@ def _get_resources_media_library_upload_file_result_serialize( @validate_call - def get_resources_other_library( + def get_resources_media_library_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17112,15 +17389,13 @@ def get_resources_other_library( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_other_library + ) -> bytearray: + """get_resources_media_library_content_file - Get all the available other library files. + Get the content of a particular media library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17143,9 +17418,8 @@ def get_resources_other_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17153,9 +17427,8 @@ def get_resources_other_library( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -17165,10 +17438,9 @@ def get_resources_other_library( @validate_call - def get_resources_other_library_with_http_info( + def get_resources_media_library_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17181,15 +17453,13 @@ def get_resources_other_library_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_other_library + ) -> ApiResponse[bytearray]: + """get_resources_media_library_content_file - Get all the available other library files. + Get the content of a particular media library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17212,9 +17482,8 @@ def get_resources_other_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17222,9 +17491,8 @@ def get_resources_other_library_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -17234,10 +17502,9 @@ def get_resources_other_library_with_http_info( @validate_call - def get_resources_other_library_without_preload_content( + def get_resources_media_library_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + media_library_id: Annotated[StrictStr, Field(description="The ID of the media library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17251,14 +17518,12 @@ def get_resources_other_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library + """get_resources_media_library_content_file - Get all the available other library files. + Get the content of a particular media library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param media_library_id: The ID of the media library. (required) + :type media_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17281,9 +17546,8 @@ def get_resources_other_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_serialize( - take=take, - skip=skip, + _param = self._get_resources_media_library_content_file_serialize( + media_library_id=media_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17291,9 +17555,8 @@ def get_resources_other_library_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -17302,10 +17565,9 @@ def get_resources_other_library_without_preload_content( ) - def _get_resources_other_library_serialize( + def _get_resources_media_library_content_file_serialize( self, - take, - skip, + media_library_id, _request_auth, _content_type, _headers, @@ -17325,15 +17587,9 @@ def _get_resources_other_library_serialize( _body_params: Optional[bytes] = None # process the path parameters + if media_library_id is not None: + _path_params['mediaLibraryId'] = media_library_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -17343,6 +17599,7 @@ def _get_resources_other_library_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -17356,7 +17613,7 @@ def _get_resources_other_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library', + resource_path='/api/v2/resources/media-library/{mediaLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17373,9 +17630,9 @@ def _get_resources_other_library_serialize( @validate_call - def get_resources_other_library_by_id( + def get_resources_media_library_upload_file_result( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17388,13 +17645,13 @@ def get_resources_other_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_other_library_by_id + ) -> None: + """get_resources_media_library_upload_file_result - Get a particular other library file. + Get the result of the upload file operation. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17417,8 +17674,8 @@ def get_resources_other_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_by_id_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17426,9 +17683,8 @@ def get_resources_other_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -17439,9 +17695,9 @@ def get_resources_other_library_by_id( @validate_call - def get_resources_other_library_by_id_with_http_info( + def get_resources_media_library_upload_file_result_with_http_info( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17454,13 +17710,13 @@ def get_resources_other_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_other_library_by_id + ) -> ApiResponse[None]: + """get_resources_media_library_upload_file_result - Get a particular other library file. + Get the result of the upload file operation. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17483,8 +17739,8 @@ def get_resources_other_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_by_id_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17492,9 +17748,8 @@ def get_resources_other_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -17505,9 +17760,9 @@ def get_resources_other_library_by_id_with_http_info( @validate_call - def get_resources_other_library_by_id_without_preload_content( + def get_resources_media_library_upload_file_result_without_preload_content( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17521,12 +17776,12 @@ def get_resources_other_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library_by_id + """get_resources_media_library_upload_file_result - Get a particular other library file. + Get the result of the upload file operation. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17549,8 +17804,8 @@ def get_resources_other_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_by_id_serialize( - other_library_id=other_library_id, + _param = self._get_resources_media_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17558,9 +17813,8 @@ def get_resources_other_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -17570,9 +17824,9 @@ def get_resources_other_library_by_id_without_preload_content( ) - def _get_resources_other_library_by_id_serialize( + def _get_resources_media_library_upload_file_result_serialize( self, - other_library_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -17592,8 +17846,8 @@ def _get_resources_other_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if other_library_id is not None: - _path_params['otherLibraryId'] = other_library_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -17617,7 +17871,7 @@ def _get_resources_other_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library/{otherLibraryId}', + resource_path='/api/v2/resources/media-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17634,9 +17888,10 @@ def _get_resources_other_library_by_id_serialize( @validate_call - def get_resources_other_library_content_file( + def get_resources_other_library( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17649,13 +17904,15 @@ def get_resources_other_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_other_library_content_file + ) -> GetResourcesCertificates200Response: + """get_resources_other_library - Get the content of a particular other library file. + Get all the available other library files. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17678,8 +17935,9 @@ def get_resources_other_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_content_file_serialize( - other_library_id=other_library_id, + _param = self._get_resources_other_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17687,8 +17945,9 @@ def get_resources_other_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -17698,9 +17957,10 @@ def get_resources_other_library_content_file( @validate_call - def get_resources_other_library_content_file_with_http_info( + def get_resources_other_library_with_http_info( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17713,13 +17973,15 @@ def get_resources_other_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_other_library_content_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_other_library - Get the content of a particular other library file. + Get all the available other library files. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17742,8 +18004,9 @@ def get_resources_other_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_content_file_serialize( - other_library_id=other_library_id, + _param = self._get_resources_other_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17751,8 +18014,9 @@ def get_resources_other_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -17762,9 +18026,10 @@ def get_resources_other_library_content_file_with_http_info( @validate_call - def get_resources_other_library_content_file_without_preload_content( + def get_resources_other_library_without_preload_content( self, - other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17778,12 +18043,14 @@ def get_resources_other_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library_content_file + """get_resources_other_library - Get the content of a particular other library file. + Get all the available other library files. - :param other_library_id: The ID of the other library. (required) - :type other_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17806,8 +18073,9 @@ def get_resources_other_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_content_file_serialize( - other_library_id=other_library_id, + _param = self._get_resources_other_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17815,8 +18083,9 @@ def get_resources_other_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -17825,9 +18094,10 @@ def get_resources_other_library_content_file_without_preload_content( ) - def _get_resources_other_library_content_file_serialize( + def _get_resources_other_library_serialize( self, - other_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -17847,9 +18117,15 @@ def _get_resources_other_library_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if other_library_id is not None: - _path_params['otherLibraryId'] = other_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -17859,7 +18135,6 @@ def _get_resources_other_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -17873,7 +18148,7 @@ def _get_resources_other_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library/{otherLibraryId}/contentFile', + resource_path='/api/v2/resources/other-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17890,9 +18165,9 @@ def _get_resources_other_library_content_file_serialize( @validate_call - def get_resources_other_library_upload_file_result( + def get_resources_other_library_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17905,13 +18180,13 @@ def get_resources_other_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_other_library_upload_file_result + ) -> GenericFile: + """get_resources_other_library_by_id - Get the result of the upload file operation. + Get a particular other library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17934,8 +18209,8 @@ def get_resources_other_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17943,8 +18218,9 @@ def get_resources_other_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -17955,9 +18231,9 @@ def get_resources_other_library_upload_file_result( @validate_call - def get_resources_other_library_upload_file_result_with_http_info( + def get_resources_other_library_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17970,13 +18246,13 @@ def get_resources_other_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_other_library_upload_file_result + ) -> ApiResponse[GenericFile]: + """get_resources_other_library_by_id - Get the result of the upload file operation. + Get a particular other library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -17999,8 +18275,8 @@ def get_resources_other_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18008,8 +18284,9 @@ def get_resources_other_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18020,9 +18297,9 @@ def get_resources_other_library_upload_file_result_with_http_info( @validate_call - def get_resources_other_library_upload_file_result_without_preload_content( + def get_resources_other_library_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18036,12 +18313,12 @@ def get_resources_other_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_other_library_upload_file_result + """get_resources_other_library_by_id - Get the result of the upload file operation. + Get a particular other library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18064,8 +18341,8 @@ def get_resources_other_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_other_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_other_library_by_id_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18073,8 +18350,9 @@ def get_resources_other_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18084,9 +18362,9 @@ def get_resources_other_library_upload_file_result_without_preload_content( ) - def _get_resources_other_library_upload_file_result_serialize( + def _get_resources_other_library_by_id_serialize( self, - upload_file_id, + other_library_id, _request_auth, _content_type, _headers, @@ -18106,8 +18384,8 @@ def _get_resources_other_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if other_library_id is not None: + _path_params['otherLibraryId'] = other_library_id # process the query parameters # process the header parameters # process the form parameters @@ -18131,7 +18409,7 @@ def _get_resources_other_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/other-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/other-library/{otherLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18148,9 +18426,9 @@ def _get_resources_other_library_upload_file_result_serialize( @validate_call - def get_resources_payload_by_id( + def get_resources_other_library_content_file( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18163,13 +18441,13 @@ def get_resources_payload_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_payload_by_id + ) -> bytearray: + """get_resources_other_library_content_file - Get a particular payload file. + Get the content of a particular other library file. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18192,8 +18470,8 @@ def get_resources_payload_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18201,10 +18479,8 @@ def get_resources_payload_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -18214,9 +18490,9 @@ def get_resources_payload_by_id( @validate_call - def get_resources_payload_by_id_with_http_info( + def get_resources_other_library_content_file_with_http_info( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18229,13 +18505,13 @@ def get_resources_payload_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_payload_by_id + ) -> ApiResponse[bytearray]: + """get_resources_other_library_content_file - Get a particular payload file. + Get the content of a particular other library file. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18258,8 +18534,8 @@ def get_resources_payload_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18267,10 +18543,8 @@ def get_resources_payload_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -18280,9 +18554,9 @@ def get_resources_payload_by_id_with_http_info( @validate_call - def get_resources_payload_by_id_without_preload_content( + def get_resources_other_library_content_file_without_preload_content( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + other_library_id: Annotated[StrictStr, Field(description="The ID of the other library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18296,12 +18570,12 @@ def get_resources_payload_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payload_by_id + """get_resources_other_library_content_file - Get a particular payload file. + Get the content of a particular other library file. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param other_library_id: The ID of the other library. (required) + :type other_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18324,8 +18598,8 @@ def get_resources_payload_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_by_id_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_content_file_serialize( + other_library_id=other_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18333,10 +18607,8 @@ def get_resources_payload_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", + '200': "bytearray", '404': "ErrorResponse", - '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -18345,9 +18617,9 @@ def get_resources_payload_by_id_without_preload_content( ) - def _get_resources_payload_by_id_serialize( + def _get_resources_other_library_content_file_serialize( self, - payload_id, + other_library_id, _request_auth, _content_type, _headers, @@ -18367,8 +18639,8 @@ def _get_resources_payload_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if payload_id is not None: - _path_params['payloadId'] = payload_id + if other_library_id is not None: + _path_params['otherLibraryId'] = other_library_id # process the query parameters # process the header parameters # process the form parameters @@ -18379,6 +18651,7 @@ def _get_resources_payload_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -18392,7 +18665,7 @@ def _get_resources_payload_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads/{payloadId}', + resource_path='/api/v2/resources/other-library/{otherLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18409,9 +18682,9 @@ def _get_resources_payload_by_id_serialize( @validate_call - def get_resources_payload_content_file( + def get_resources_other_library_upload_file_result( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18424,13 +18697,13 @@ def get_resources_payload_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_payload_content_file + ) -> None: + """get_resources_other_library_upload_file_result - Get the content of a particular payload file. + Get the result of the upload file operation. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18453,8 +18726,8 @@ def get_resources_payload_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_content_file_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18462,8 +18735,9 @@ def get_resources_payload_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -18473,9 +18747,9 @@ def get_resources_payload_content_file( @validate_call - def get_resources_payload_content_file_with_http_info( + def get_resources_other_library_upload_file_result_with_http_info( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18488,13 +18762,13 @@ def get_resources_payload_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_payload_content_file + ) -> ApiResponse[None]: + """get_resources_other_library_upload_file_result - Get the content of a particular payload file. + Get the result of the upload file operation. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18517,8 +18791,8 @@ def get_resources_payload_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_content_file_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18526,8 +18800,9 @@ def get_resources_payload_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -18537,9 +18812,9 @@ def get_resources_payload_content_file_with_http_info( @validate_call - def get_resources_payload_content_file_without_preload_content( + def get_resources_other_library_upload_file_result_without_preload_content( self, - payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18553,12 +18828,12 @@ def get_resources_payload_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payload_content_file + """get_resources_other_library_upload_file_result - Get the content of a particular payload file. + Get the result of the upload file operation. - :param payload_id: The ID of the payload. (required) - :type payload_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18581,8 +18856,8 @@ def get_resources_payload_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payload_content_file_serialize( - payload_id=payload_id, + _param = self._get_resources_other_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18590,8 +18865,9 @@ def get_resources_payload_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -18600,9 +18876,9 @@ def get_resources_payload_content_file_without_preload_content( ) - def _get_resources_payload_content_file_serialize( + def _get_resources_other_library_upload_file_result_serialize( self, - payload_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -18622,8 +18898,8 @@ def _get_resources_payload_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if payload_id is not None: - _path_params['payloadId'] = payload_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -18634,7 +18910,6 @@ def _get_resources_payload_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -18648,7 +18923,7 @@ def _get_resources_payload_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads/{payloadId}/contentFile', + resource_path='/api/v2/resources/other-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18665,10 +18940,9 @@ def _get_resources_payload_content_file_serialize( @validate_call - def get_resources_payloads( + def get_resources_payload_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18681,15 +18955,13 @@ def get_resources_payloads( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_payloads + ) -> GenericFile: + """get_resources_payload_by_id - Get all the available payload files. + Get a particular payload file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18712,9 +18984,8 @@ def get_resources_payloads( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_serialize( - take=take, - skip=skip, + _param = self._get_resources_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18722,8 +18993,9 @@ def get_resources_payloads( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18734,10 +19006,9 @@ def get_resources_payloads( @validate_call - def get_resources_payloads_with_http_info( + def get_resources_payload_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18750,15 +19021,13 @@ def get_resources_payloads_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_payloads + ) -> ApiResponse[GenericFile]: + """get_resources_payload_by_id - Get all the available payload files. + Get a particular payload file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18781,9 +19050,8 @@ def get_resources_payloads_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_serialize( - take=take, - skip=skip, + _param = self._get_resources_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18791,8 +19059,9 @@ def get_resources_payloads_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18803,10 +19072,9 @@ def get_resources_payloads_with_http_info( @validate_call - def get_resources_payloads_without_preload_content( + def get_resources_payload_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18820,14 +19088,12 @@ def get_resources_payloads_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payloads + """get_resources_payload_by_id - Get all the available payload files. + Get a particular payload file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18850,9 +19116,8 @@ def get_resources_payloads_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_serialize( - take=take, - skip=skip, + _param = self._get_resources_payload_by_id_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18860,8 +19125,9 @@ def get_resources_payloads_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -18871,10 +19137,9 @@ def get_resources_payloads_without_preload_content( ) - def _get_resources_payloads_serialize( + def _get_resources_payload_by_id_serialize( self, - take, - skip, + payload_id, _request_auth, _content_type, _headers, @@ -18894,15 +19159,9 @@ def _get_resources_payloads_serialize( _body_params: Optional[bytes] = None # process the path parameters + if payload_id is not None: + _path_params['payloadId'] = payload_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -18925,7 +19184,7 @@ def _get_resources_payloads_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads', + resource_path='/api/v2/resources/payloads/{payloadId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18942,9 +19201,9 @@ def _get_resources_payloads_serialize( @validate_call - def get_resources_payloads_upload_file_result( + def get_resources_payload_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18957,13 +19216,13 @@ def get_resources_payloads_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_payloads_upload_file_result + ) -> bytearray: + """get_resources_payload_content_file - Get the result of the upload file operation. + Get the content of a particular payload file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -18986,8 +19245,8 @@ def get_resources_payloads_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18995,9 +19254,8 @@ def get_resources_payloads_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19007,9 +19265,9 @@ def get_resources_payloads_upload_file_result( @validate_call - def get_resources_payloads_upload_file_result_with_http_info( + def get_resources_payload_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19022,13 +19280,13 @@ def get_resources_payloads_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_payloads_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_payload_content_file - Get the result of the upload file operation. + Get the content of a particular payload file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19051,8 +19309,8 @@ def get_resources_payloads_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19060,9 +19318,8 @@ def get_resources_payloads_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19072,9 +19329,9 @@ def get_resources_payloads_upload_file_result_with_http_info( @validate_call - def get_resources_payloads_upload_file_result_without_preload_content( + def get_resources_payload_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + payload_id: Annotated[StrictStr, Field(description="The ID of the payload.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19088,12 +19345,12 @@ def get_resources_payloads_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_payloads_upload_file_result + """get_resources_payload_content_file - Get the result of the upload file operation. + Get the content of a particular payload file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param payload_id: The ID of the payload. (required) + :type payload_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19116,8 +19373,8 @@ def get_resources_payloads_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_payloads_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_payload_content_file_serialize( + payload_id=payload_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19125,9 +19382,8 @@ def get_resources_payloads_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19136,9 +19392,9 @@ def get_resources_payloads_upload_file_result_without_preload_content( ) - def _get_resources_payloads_upload_file_result_serialize( + def _get_resources_payload_content_file_serialize( self, - upload_file_id, + payload_id, _request_auth, _content_type, _headers, @@ -19158,8 +19414,8 @@ def _get_resources_payloads_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if payload_id is not None: + _path_params['payloadId'] = payload_id # process the query parameters # process the header parameters # process the form parameters @@ -19170,6 +19426,7 @@ def _get_resources_payloads_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -19183,7 +19440,7 @@ def _get_resources_payloads_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/payloads/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/payloads/{payloadId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19200,9 +19457,10 @@ def _get_resources_payloads_upload_file_result_serialize( @validate_call - def get_resources_pcap_by_id( + def get_resources_payloads( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19215,13 +19473,15 @@ def get_resources_pcap_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_pcap_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_payloads - Get a particular pcap file. + Get all the available payload files. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19244,8 +19504,9 @@ def get_resources_pcap_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_by_id_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payloads_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19253,9 +19514,8 @@ def get_resources_pcap_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19266,9 +19526,10 @@ def get_resources_pcap_by_id( @validate_call - def get_resources_pcap_by_id_with_http_info( + def get_resources_payloads_with_http_info( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19281,13 +19542,15 @@ def get_resources_pcap_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_pcap_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_payloads - Get a particular pcap file. + Get all the available payload files. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19310,8 +19573,9 @@ def get_resources_pcap_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_by_id_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payloads_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19319,9 +19583,8 @@ def get_resources_pcap_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19332,9 +19595,10 @@ def get_resources_pcap_by_id_with_http_info( @validate_call - def get_resources_pcap_by_id_without_preload_content( + def get_resources_payloads_without_preload_content( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19348,12 +19612,14 @@ def get_resources_pcap_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcap_by_id + """get_resources_payloads - Get a particular pcap file. + Get all the available payload files. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19376,8 +19642,9 @@ def get_resources_pcap_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_by_id_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payloads_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19385,9 +19652,8 @@ def get_resources_pcap_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19397,9 +19663,10 @@ def get_resources_pcap_by_id_without_preload_content( ) - def _get_resources_pcap_by_id_serialize( + def _get_resources_payloads_serialize( self, - pcap_id, + take, + skip, _request_auth, _content_type, _headers, @@ -19419,9 +19686,15 @@ def _get_resources_pcap_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if pcap_id is not None: - _path_params['pcapId'] = pcap_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -19444,7 +19717,7 @@ def _get_resources_pcap_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps/{pcapId}', + resource_path='/api/v2/resources/payloads', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19461,9 +19734,9 @@ def _get_resources_pcap_by_id_serialize( @validate_call - def get_resources_pcap_content_file( + def get_resources_payloads_upload_file_result( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19476,13 +19749,13 @@ def get_resources_pcap_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_pcap_content_file + ) -> None: + """get_resources_payloads_upload_file_result - Get the content of a particular pcap file. + Get the result of the upload file operation. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19505,8 +19778,8 @@ def get_resources_pcap_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_content_file_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payloads_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19514,8 +19787,9 @@ def get_resources_pcap_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19525,9 +19799,9 @@ def get_resources_pcap_content_file( @validate_call - def get_resources_pcap_content_file_with_http_info( + def get_resources_payloads_upload_file_result_with_http_info( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19540,13 +19814,13 @@ def get_resources_pcap_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_pcap_content_file + ) -> ApiResponse[None]: + """get_resources_payloads_upload_file_result - Get the content of a particular pcap file. + Get the result of the upload file operation. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19569,8 +19843,8 @@ def get_resources_pcap_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_content_file_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payloads_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19578,8 +19852,9 @@ def get_resources_pcap_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19589,9 +19864,9 @@ def get_resources_pcap_content_file_with_http_info( @validate_call - def get_resources_pcap_content_file_without_preload_content( + def get_resources_payloads_upload_file_result_without_preload_content( self, - pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19605,12 +19880,12 @@ def get_resources_pcap_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcap_content_file + """get_resources_payloads_upload_file_result - Get the content of a particular pcap file. + Get the result of the upload file operation. - :param pcap_id: The ID of the pcap. (required) - :type pcap_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19633,8 +19908,8 @@ def get_resources_pcap_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcap_content_file_serialize( - pcap_id=pcap_id, + _param = self._get_resources_payloads_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19642,8 +19917,9 @@ def get_resources_pcap_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -19652,9 +19928,9 @@ def get_resources_pcap_content_file_without_preload_content( ) - def _get_resources_pcap_content_file_serialize( + def _get_resources_payloads_upload_file_result_serialize( self, - pcap_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -19674,8 +19950,8 @@ def _get_resources_pcap_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if pcap_id is not None: - _path_params['pcapId'] = pcap_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -19686,7 +19962,6 @@ def _get_resources_pcap_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -19700,7 +19975,7 @@ def _get_resources_pcap_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps/{pcapId}/contentFile', + resource_path='/api/v2/resources/payloads/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19717,10 +19992,9 @@ def _get_resources_pcap_content_file_serialize( @validate_call - def get_resources_pcaps( + def get_resources_pcap_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19733,15 +20007,13 @@ def get_resources_pcaps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_pcaps + ) -> GenericFile: + """get_resources_pcap_by_id - Get all the available pcap files. + Get a particular pcap file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19764,9 +20036,8 @@ def get_resources_pcaps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19774,8 +20045,9 @@ def get_resources_pcaps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19786,10 +20058,9 @@ def get_resources_pcaps( @validate_call - def get_resources_pcaps_with_http_info( + def get_resources_pcap_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19802,15 +20073,13 @@ def get_resources_pcaps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_pcaps + ) -> ApiResponse[GenericFile]: + """get_resources_pcap_by_id - Get all the available pcap files. + Get a particular pcap file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19833,9 +20102,8 @@ def get_resources_pcaps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19843,8 +20111,9 @@ def get_resources_pcaps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19855,10 +20124,9 @@ def get_resources_pcaps_with_http_info( @validate_call - def get_resources_pcaps_without_preload_content( + def get_resources_pcap_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19872,14 +20140,12 @@ def get_resources_pcaps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcaps + """get_resources_pcap_by_id - Get all the available pcap files. + Get a particular pcap file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -19902,9 +20168,8 @@ def get_resources_pcaps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_serialize( - take=take, - skip=skip, + _param = self._get_resources_pcap_by_id_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19912,8 +20177,9 @@ def get_resources_pcaps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -19923,10 +20189,9 @@ def get_resources_pcaps_without_preload_content( ) - def _get_resources_pcaps_serialize( + def _get_resources_pcap_by_id_serialize( self, - take, - skip, + pcap_id, _request_auth, _content_type, _headers, @@ -19946,15 +20211,9 @@ def _get_resources_pcaps_serialize( _body_params: Optional[bytes] = None # process the path parameters + if pcap_id is not None: + _path_params['pcapId'] = pcap_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -19977,7 +20236,7 @@ def _get_resources_pcaps_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps', + resource_path='/api/v2/resources/pcaps/{pcapId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19994,9 +20253,9 @@ def _get_resources_pcaps_serialize( @validate_call - def get_resources_pcaps_upload_file_result( + def get_resources_pcap_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20009,13 +20268,13 @@ def get_resources_pcaps_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_pcaps_upload_file_result + ) -> bytearray: + """get_resources_pcap_content_file - Get the result of the upload file operation. + Get the content of a particular pcap file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20038,8 +20297,8 @@ def get_resources_pcaps_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20047,9 +20306,8 @@ def get_resources_pcaps_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20059,9 +20317,9 @@ def get_resources_pcaps_upload_file_result( @validate_call - def get_resources_pcaps_upload_file_result_with_http_info( + def get_resources_pcap_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20074,13 +20332,13 @@ def get_resources_pcaps_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_pcaps_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_pcap_content_file - Get the result of the upload file operation. + Get the content of a particular pcap file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20103,8 +20361,8 @@ def get_resources_pcaps_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20112,9 +20370,8 @@ def get_resources_pcaps_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20124,9 +20381,9 @@ def get_resources_pcaps_upload_file_result_with_http_info( @validate_call - def get_resources_pcaps_upload_file_result_without_preload_content( + def get_resources_pcap_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + pcap_id: Annotated[StrictStr, Field(description="The ID of the pcap.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20140,12 +20397,12 @@ def get_resources_pcaps_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_pcaps_upload_file_result + """get_resources_pcap_content_file - Get the result of the upload file operation. + Get the content of a particular pcap file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param pcap_id: The ID of the pcap. (required) + :type pcap_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20168,8 +20425,8 @@ def get_resources_pcaps_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_pcaps_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_pcap_content_file_serialize( + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20177,9 +20434,8 @@ def get_resources_pcaps_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20188,9 +20444,9 @@ def get_resources_pcaps_upload_file_result_without_preload_content( ) - def _get_resources_pcaps_upload_file_result_serialize( + def _get_resources_pcap_content_file_serialize( self, - upload_file_id, + pcap_id, _request_auth, _content_type, _headers, @@ -20210,8 +20466,8 @@ def _get_resources_pcaps_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if pcap_id is not None: + _path_params['pcapId'] = pcap_id # process the query parameters # process the header parameters # process the form parameters @@ -20222,6 +20478,7 @@ def _get_resources_pcaps_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -20235,7 +20492,7 @@ def _get_resources_pcaps_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/pcaps/{pcapId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20252,9 +20509,10 @@ def _get_resources_pcaps_upload_file_result_serialize( @validate_call - def get_resources_playlist_by_id( + def get_resources_pcaps( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20267,13 +20525,15 @@ def get_resources_playlist_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_playlist_by_id + ) -> GetResourcesCertificates200Response: + """get_resources_pcaps - Get a particular playlist file. + Get all the available pcap files. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20296,8 +20556,9 @@ def get_resources_playlist_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20305,9 +20566,8 @@ def get_resources_playlist_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -20318,9 +20578,10 @@ def get_resources_playlist_by_id( @validate_call - def get_resources_playlist_by_id_with_http_info( + def get_resources_pcaps_with_http_info( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20333,13 +20594,15 @@ def get_resources_playlist_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_playlist_by_id + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_pcaps - Get a particular playlist file. + Get all the available pcap files. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20362,8 +20625,9 @@ def get_resources_playlist_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20371,9 +20635,8 @@ def get_resources_playlist_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -20384,9 +20647,10 @@ def get_resources_playlist_by_id_with_http_info( @validate_call - def get_resources_playlist_by_id_without_preload_content( + def get_resources_pcaps_without_preload_content( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20400,12 +20664,14 @@ def get_resources_playlist_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlist_by_id + """get_resources_pcaps - Get a particular playlist file. + Get all the available pcap files. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20428,8 +20694,9 @@ def get_resources_playlist_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_by_id_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcaps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20437,9 +20704,8 @@ def get_resources_playlist_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", + '200': "GetResourcesCertificates200Response", '401': "ErrorResponse", - '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -20449,9 +20715,10 @@ def get_resources_playlist_by_id_without_preload_content( ) - def _get_resources_playlist_by_id_serialize( + def _get_resources_pcaps_serialize( self, - playlist_id, + take, + skip, _request_auth, _content_type, _headers, @@ -20471,9 +20738,15 @@ def _get_resources_playlist_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if playlist_id is not None: - _path_params['playlistId'] = playlist_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -20496,7 +20769,7 @@ def _get_resources_playlist_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/{playlistId}', + resource_path='/api/v2/resources/pcaps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20513,9 +20786,9 @@ def _get_resources_playlist_by_id_serialize( @validate_call - def get_resources_playlist_content_file( + def get_resources_pcaps_upload_file_result( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20528,13 +20801,13 @@ def get_resources_playlist_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_playlist_content_file + ) -> None: + """get_resources_pcaps_upload_file_result - Get the content of a particular playlist file. + Get the result of the upload file operation. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20557,8 +20830,8 @@ def get_resources_playlist_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_content_file_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20566,8 +20839,9 @@ def get_resources_playlist_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20577,9 +20851,9 @@ def get_resources_playlist_content_file( @validate_call - def get_resources_playlist_content_file_with_http_info( + def get_resources_pcaps_upload_file_result_with_http_info( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20592,13 +20866,13 @@ def get_resources_playlist_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_playlist_content_file + ) -> ApiResponse[None]: + """get_resources_pcaps_upload_file_result - Get the content of a particular playlist file. + Get the result of the upload file operation. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20621,8 +20895,8 @@ def get_resources_playlist_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_content_file_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20630,8 +20904,9 @@ def get_resources_playlist_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20641,9 +20916,9 @@ def get_resources_playlist_content_file_with_http_info( @validate_call - def get_resources_playlist_content_file_without_preload_content( + def get_resources_pcaps_upload_file_result_without_preload_content( self, - playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20657,12 +20932,12 @@ def get_resources_playlist_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlist_content_file + """get_resources_pcaps_upload_file_result - Get the content of a particular playlist file. + Get the result of the upload file operation. - :param playlist_id: The ID of the playlist. (required) - :type playlist_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20685,8 +20960,8 @@ def get_resources_playlist_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_content_file_serialize( - playlist_id=playlist_id, + _param = self._get_resources_pcaps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20694,8 +20969,9 @@ def get_resources_playlist_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -20704,9 +20980,9 @@ def get_resources_playlist_content_file_without_preload_content( ) - def _get_resources_playlist_content_file_serialize( + def _get_resources_pcaps_upload_file_result_serialize( self, - playlist_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -20726,8 +21002,8 @@ def _get_resources_playlist_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if playlist_id is not None: - _path_params['playlistId'] = playlist_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -20738,7 +21014,6 @@ def _get_resources_playlist_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -20752,7 +21027,7 @@ def _get_resources_playlist_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/{playlistId}/contentFile', + resource_path='/api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20769,10 +21044,9 @@ def _get_resources_playlist_content_file_serialize( @validate_call - def get_resources_playlist_values( + def get_resources_playlist_by_id( self, playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], - filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20785,15 +21059,13 @@ def get_resources_playlist_values( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_playlist_values + ) -> GenericFile: + """get_resources_playlist_by_id - Get some specific values from a playlist file. + Get a particular playlist file. :param playlist_id: The ID of the playlist. (required) :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20816,9 +21088,8 @@ def get_resources_playlist_values( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_values_serialize( + _param = self._get_resources_playlist_by_id_serialize( playlist_id=playlist_id, - filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20826,7 +21097,8 @@ def get_resources_playlist_values( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -20838,10 +21110,9 @@ def get_resources_playlist_values( @validate_call - def get_resources_playlist_values_with_http_info( + def get_resources_playlist_by_id_with_http_info( self, playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], - filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20854,15 +21125,13 @@ def get_resources_playlist_values_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_playlist_values + ) -> ApiResponse[GenericFile]: + """get_resources_playlist_by_id - Get some specific values from a playlist file. + Get a particular playlist file. :param playlist_id: The ID of the playlist. (required) :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20885,9 +21154,8 @@ def get_resources_playlist_values_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_values_serialize( + _param = self._get_resources_playlist_by_id_serialize( playlist_id=playlist_id, - filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20895,7 +21163,8 @@ def get_resources_playlist_values_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -20907,10 +21176,9 @@ def get_resources_playlist_values_with_http_info( @validate_call - def get_resources_playlist_values_without_preload_content( + def get_resources_playlist_by_id_without_preload_content( self, playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], - filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20924,14 +21192,12 @@ def get_resources_playlist_values_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlist_values + """get_resources_playlist_by_id - Get some specific values from a playlist file. + Get a particular playlist file. :param playlist_id: The ID of the playlist. (required) :type playlist_id: str - :param filter: A comma-separated list of colName:rowIdx pairs - :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20954,9 +21220,8 @@ def get_resources_playlist_values_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlist_values_serialize( + _param = self._get_resources_playlist_by_id_serialize( playlist_id=playlist_id, - filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20964,7 +21229,8 @@ def get_resources_playlist_values_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "GenericFile", + '401': "ErrorResponse", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -20975,10 +21241,9 @@ def get_resources_playlist_values_without_preload_content( ) - def _get_resources_playlist_values_serialize( + def _get_resources_playlist_by_id_serialize( self, playlist_id, - filter, _request_auth, _content_type, _headers, @@ -21001,10 +21266,6 @@ def _get_resources_playlist_values_serialize( if playlist_id is not None: _path_params['playlistId'] = playlist_id # process the query parameters - if filter is not None: - - _query_params.append(('filter', filter)) - # process the header parameters # process the form parameters # process the body parameter @@ -21027,7 +21288,7 @@ def _get_resources_playlist_values_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/{playlistId}/values', + resource_path='/api/v2/resources/playlists/{playlistId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21044,10 +21305,9 @@ def _get_resources_playlist_values_serialize( @validate_call - def get_resources_playlists( + def get_resources_playlist_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21060,15 +21320,13 @@ def get_resources_playlists( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_playlists + ) -> bytearray: + """get_resources_playlist_content_file - Get all the available playlist files. + Get the content of a particular playlist file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21091,9 +21349,8 @@ def get_resources_playlists( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21101,9 +21358,8 @@ def get_resources_playlists( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -21113,10 +21369,9 @@ def get_resources_playlists( @validate_call - def get_resources_playlists_with_http_info( + def get_resources_playlist_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21129,15 +21384,13 @@ def get_resources_playlists_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_playlists + ) -> ApiResponse[bytearray]: + """get_resources_playlist_content_file - Get all the available playlist files. + Get the content of a particular playlist file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21160,9 +21413,8 @@ def get_resources_playlists_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21170,9 +21422,8 @@ def get_resources_playlists_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -21182,10 +21433,9 @@ def get_resources_playlists_with_http_info( @validate_call - def get_resources_playlists_without_preload_content( + def get_resources_playlist_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21199,14 +21449,12 @@ def get_resources_playlists_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlists + """get_resources_playlist_content_file - Get all the available playlist files. + Get the content of a particular playlist file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21229,9 +21477,8 @@ def get_resources_playlists_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_serialize( - take=take, - skip=skip, + _param = self._get_resources_playlist_content_file_serialize( + playlist_id=playlist_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21239,9 +21486,8 @@ def get_resources_playlists_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -21250,10 +21496,9 @@ def get_resources_playlists_without_preload_content( ) - def _get_resources_playlists_serialize( + def _get_resources_playlist_content_file_serialize( self, - take, - skip, + playlist_id, _request_auth, _content_type, _headers, @@ -21273,15 +21518,9 @@ def _get_resources_playlists_serialize( _body_params: Optional[bytes] = None # process the path parameters + if playlist_id is not None: + _path_params['playlistId'] = playlist_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -21291,6 +21530,7 @@ def _get_resources_playlists_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -21304,7 +21544,7 @@ def _get_resources_playlists_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists', + resource_path='/api/v2/resources/playlists/{playlistId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21321,9 +21561,10 @@ def _get_resources_playlists_serialize( @validate_call - def get_resources_playlists_upload_file_result( + def get_resources_playlist_values( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21337,12 +21578,14 @@ def get_resources_playlists_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_playlists_upload_file_result + """get_resources_playlist_values - Get the result of the upload file operation. + Get some specific values from a playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21365,8 +21608,9 @@ def get_resources_playlists_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21375,7 +21619,7 @@ def get_resources_playlists_upload_file_result( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -21386,9 +21630,10 @@ def get_resources_playlists_upload_file_result( @validate_call - def get_resources_playlists_upload_file_result_with_http_info( + def get_resources_playlist_values_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21402,12 +21647,14 @@ def get_resources_playlists_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_playlists_upload_file_result + """get_resources_playlist_values - Get the result of the upload file operation. + Get some specific values from a playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21430,8 +21677,9 @@ def get_resources_playlists_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21440,7 +21688,7 @@ def get_resources_playlists_upload_file_result_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -21451,9 +21699,10 @@ def get_resources_playlists_upload_file_result_with_http_info( @validate_call - def get_resources_playlists_upload_file_result_without_preload_content( + def get_resources_playlist_values_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + playlist_id: Annotated[StrictStr, Field(description="The ID of the playlist.")], + filter: Annotated[Optional[StrictStr], Field(description="A comma-separated list of colName:rowIdx pairs")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21467,12 +21716,14 @@ def get_resources_playlists_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_playlists_upload_file_result + """get_resources_playlist_values - Get the result of the upload file operation. + Get some specific values from a playlist file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param playlist_id: The ID of the playlist. (required) + :type playlist_id: str + :param filter: A comma-separated list of colName:rowIdx pairs + :type filter: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21495,8 +21746,9 @@ def get_resources_playlists_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_playlists_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_playlist_values_serialize( + playlist_id=playlist_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21505,7 +21757,7 @@ def get_resources_playlists_upload_file_result_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '400': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -21515,9 +21767,10 @@ def get_resources_playlists_upload_file_result_without_preload_content( ) - def _get_resources_playlists_upload_file_result_serialize( + def _get_resources_playlist_values_serialize( self, - upload_file_id, + playlist_id, + filter, _request_auth, _content_type, _headers, @@ -21537,9 +21790,13 @@ def _get_resources_playlists_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if playlist_id is not None: + _path_params['playlistId'] = playlist_id # process the query parameters + if filter is not None: + + _query_params.append(('filter', filter)) + # process the header parameters # process the form parameters # process the body parameter @@ -21562,7 +21819,7 @@ def _get_resources_playlists_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/playlists/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/playlists/{playlistId}/values', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21579,7 +21836,7 @@ def _get_resources_playlists_upload_file_result_serialize( @validate_call - def get_resources_sip_library( + def get_resources_playlists( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -21596,9 +21853,9 @@ def get_resources_sip_library( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_sip_library + """get_resources_playlists - Get all the available sip library files. + Get all the available playlist files. :param take: The number of search results to return :type take: int @@ -21626,7 +21883,7 @@ def get_resources_sip_library( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( + _param = self._get_resources_playlists_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -21648,7 +21905,7 @@ def get_resources_sip_library( @validate_call - def get_resources_sip_library_with_http_info( + def get_resources_playlists_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -21665,9 +21922,9 @@ def get_resources_sip_library_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_sip_library + """get_resources_playlists - Get all the available sip library files. + Get all the available playlist files. :param take: The number of search results to return :type take: int @@ -21695,7 +21952,7 @@ def get_resources_sip_library_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( + _param = self._get_resources_playlists_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -21717,7 +21974,7 @@ def get_resources_sip_library_with_http_info( @validate_call - def get_resources_sip_library_without_preload_content( + def get_resources_playlists_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -21734,9 +21991,9 @@ def get_resources_sip_library_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library + """get_resources_playlists - Get all the available sip library files. + Get all the available playlist files. :param take: The number of search results to return :type take: int @@ -21764,7 +22021,7 @@ def get_resources_sip_library_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_serialize( + _param = self._get_resources_playlists_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -21785,7 +22042,7 @@ def get_resources_sip_library_without_preload_content( ) - def _get_resources_sip_library_serialize( + def _get_resources_playlists_serialize( self, take, skip, @@ -21839,7 +22096,7 @@ def _get_resources_sip_library_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library', + resource_path='/api/v2/resources/playlists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21856,9 +22113,9 @@ def _get_resources_sip_library_serialize( @validate_call - def get_resources_sip_library_by_id( + def get_resources_playlists_upload_file_result( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21871,13 +22128,13 @@ def get_resources_sip_library_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_sip_library_by_id + ) -> None: + """get_resources_playlists_upload_file_result - Get a particular sip library file. + Get the result of the upload file operation. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21900,8 +22157,8 @@ def get_resources_sip_library_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21909,9 +22166,8 @@ def get_resources_sip_library_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -21922,9 +22178,9 @@ def get_resources_sip_library_by_id( @validate_call - def get_resources_sip_library_by_id_with_http_info( + def get_resources_playlists_upload_file_result_with_http_info( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21937,13 +22193,13 @@ def get_resources_sip_library_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_sip_library_by_id + ) -> ApiResponse[None]: + """get_resources_playlists_upload_file_result - Get a particular sip library file. + Get the result of the upload file operation. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -21966,8 +22222,8 @@ def get_resources_sip_library_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21975,9 +22231,8 @@ def get_resources_sip_library_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -21988,9 +22243,9 @@ def get_resources_sip_library_by_id_with_http_info( @validate_call - def get_resources_sip_library_by_id_without_preload_content( + def get_resources_playlists_upload_file_result_without_preload_content( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22004,12 +22259,12 @@ def get_resources_sip_library_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library_by_id + """get_resources_playlists_upload_file_result - Get a particular sip library file. + Get the result of the upload file operation. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22032,8 +22287,8 @@ def get_resources_sip_library_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_by_id_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_playlists_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22041,9 +22296,8 @@ def get_resources_sip_library_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22053,9 +22307,9 @@ def get_resources_sip_library_by_id_without_preload_content( ) - def _get_resources_sip_library_by_id_serialize( + def _get_resources_playlists_upload_file_result_serialize( self, - sip_library_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -22075,8 +22329,8 @@ def _get_resources_sip_library_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if sip_library_id is not None: - _path_params['sipLibraryId'] = sip_library_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -22100,7 +22354,7 @@ def _get_resources_sip_library_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library/{sipLibraryId}', + resource_path='/api/v2/resources/playlists/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22117,9 +22371,10 @@ def _get_resources_sip_library_by_id_serialize( @validate_call - def get_resources_sip_library_content_file( + def get_resources_sip_library( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22132,13 +22387,15 @@ def get_resources_sip_library_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_sip_library_content_file + ) -> GetResourcesCertificates200Response: + """get_resources_sip_library - Get the content of a particular sip library file. + Get all the available sip library files. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22161,8 +22418,9 @@ def get_resources_sip_library_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_content_file_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_sip_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22170,8 +22428,9 @@ def get_resources_sip_library_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22181,9 +22440,10 @@ def get_resources_sip_library_content_file( @validate_call - def get_resources_sip_library_content_file_with_http_info( + def get_resources_sip_library_with_http_info( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22196,13 +22456,15 @@ def get_resources_sip_library_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_sip_library_content_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_sip_library - Get the content of a particular sip library file. + Get all the available sip library files. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22225,8 +22487,9 @@ def get_resources_sip_library_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_content_file_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_sip_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22234,8 +22497,9 @@ def get_resources_sip_library_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22245,9 +22509,10 @@ def get_resources_sip_library_content_file_with_http_info( @validate_call - def get_resources_sip_library_content_file_without_preload_content( + def get_resources_sip_library_without_preload_content( self, - sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22261,12 +22526,14 @@ def get_resources_sip_library_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library_content_file + """get_resources_sip_library - Get the content of a particular sip library file. + Get all the available sip library files. - :param sip_library_id: The ID of the sip library. (required) - :type sip_library_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22289,8 +22556,9 @@ def get_resources_sip_library_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_content_file_serialize( - sip_library_id=sip_library_id, + _param = self._get_resources_sip_library_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22298,8 +22566,9 @@ def get_resources_sip_library_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22308,9 +22577,10 @@ def get_resources_sip_library_content_file_without_preload_content( ) - def _get_resources_sip_library_content_file_serialize( + def _get_resources_sip_library_serialize( self, - sip_library_id, + take, + skip, _request_auth, _content_type, _headers, @@ -22330,9 +22600,15 @@ def _get_resources_sip_library_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if sip_library_id is not None: - _path_params['sipLibraryId'] = sip_library_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -22342,7 +22618,6 @@ def _get_resources_sip_library_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -22356,7 +22631,7 @@ def _get_resources_sip_library_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library/{sipLibraryId}/contentFile', + resource_path='/api/v2/resources/sip-library', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22373,9 +22648,9 @@ def _get_resources_sip_library_content_file_serialize( @validate_call - def get_resources_sip_library_upload_file_result( + def get_resources_sip_library_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22388,13 +22663,13 @@ def get_resources_sip_library_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_sip_library_upload_file_result + ) -> GenericFile: + """get_resources_sip_library_by_id - Get the result of the upload file operation. + Get a particular sip library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22417,8 +22692,8 @@ def get_resources_sip_library_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22426,8 +22701,9 @@ def get_resources_sip_library_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22438,9 +22714,9 @@ def get_resources_sip_library_upload_file_result( @validate_call - def get_resources_sip_library_upload_file_result_with_http_info( + def get_resources_sip_library_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22453,13 +22729,13 @@ def get_resources_sip_library_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_sip_library_upload_file_result + ) -> ApiResponse[GenericFile]: + """get_resources_sip_library_by_id - Get the result of the upload file operation. + Get a particular sip library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22482,8 +22758,8 @@ def get_resources_sip_library_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22491,8 +22767,9 @@ def get_resources_sip_library_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22503,9 +22780,9 @@ def get_resources_sip_library_upload_file_result_with_http_info( @validate_call - def get_resources_sip_library_upload_file_result_without_preload_content( + def get_resources_sip_library_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22519,12 +22796,12 @@ def get_resources_sip_library_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_sip_library_upload_file_result + """get_resources_sip_library_by_id - Get the result of the upload file operation. + Get a particular sip library file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22547,8 +22824,8 @@ def get_resources_sip_library_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_sip_library_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_sip_library_by_id_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22556,8 +22833,9 @@ def get_resources_sip_library_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22567,9 +22845,9 @@ def get_resources_sip_library_upload_file_result_without_preload_content( ) - def _get_resources_sip_library_upload_file_result_serialize( + def _get_resources_sip_library_by_id_serialize( self, - upload_file_id, + sip_library_id, _request_auth, _content_type, _headers, @@ -22589,8 +22867,8 @@ def _get_resources_sip_library_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if sip_library_id is not None: + _path_params['sipLibraryId'] = sip_library_id # process the query parameters # process the header parameters # process the form parameters @@ -22614,7 +22892,7 @@ def _get_resources_sip_library_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/sip-library/{sipLibraryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22631,10 +22909,9 @@ def _get_resources_sip_library_upload_file_result_serialize( @validate_call - def get_resources_stats_profile( + def get_resources_sip_library_content_file( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22647,15 +22924,13 @@ def get_resources_stats_profile( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_stats_profile + ) -> bytearray: + """get_resources_sip_library_content_file - Get all the available stats profile files. + Get the content of a particular sip library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22678,9 +22953,8 @@ def get_resources_stats_profile( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_serialize( - take=take, - skip=skip, + _param = self._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22688,9 +22962,8 @@ def get_resources_stats_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22700,10 +22973,9 @@ def get_resources_stats_profile( @validate_call - def get_resources_stats_profile_with_http_info( + def get_resources_sip_library_content_file_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22716,15 +22988,13 @@ def get_resources_stats_profile_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_stats_profile + ) -> ApiResponse[bytearray]: + """get_resources_sip_library_content_file - Get all the available stats profile files. + Get the content of a particular sip library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22747,9 +23017,8 @@ def get_resources_stats_profile_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_serialize( - take=take, - skip=skip, + _param = self._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22757,9 +23026,8 @@ def get_resources_stats_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22769,10 +23037,9 @@ def get_resources_stats_profile_with_http_info( @validate_call - def get_resources_stats_profile_without_preload_content( + def get_resources_sip_library_content_file_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + sip_library_id: Annotated[StrictStr, Field(description="The ID of the sip library.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22786,14 +23053,12 @@ def get_resources_stats_profile_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_stats_profile + """get_resources_sip_library_content_file - Get all the available stats profile files. + Get the content of a particular sip library file. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param sip_library_id: The ID of the sip library. (required) + :type sip_library_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22816,9 +23081,8 @@ def get_resources_stats_profile_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_serialize( - take=take, - skip=skip, + _param = self._get_resources_sip_library_content_file_serialize( + sip_library_id=sip_library_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22826,9 +23090,8 @@ def get_resources_stats_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", - '401': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -22837,10 +23100,9 @@ def get_resources_stats_profile_without_preload_content( ) - def _get_resources_stats_profile_serialize( + def _get_resources_sip_library_content_file_serialize( self, - take, - skip, + sip_library_id, _request_auth, _content_type, _headers, @@ -22860,15 +23122,9 @@ def _get_resources_stats_profile_serialize( _body_params: Optional[bytes] = None # process the path parameters + if sip_library_id is not None: + _path_params['sipLibraryId'] = sip_library_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -22878,6 +23134,7 @@ def _get_resources_stats_profile_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -22891,7 +23148,7 @@ def _get_resources_stats_profile_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile', + resource_path='/api/v2/resources/sip-library/{sipLibraryId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22908,9 +23165,9 @@ def _get_resources_stats_profile_serialize( @validate_call - def get_resources_stats_profile_by_id( + def get_resources_sip_library_upload_file_result( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22923,13 +23180,13 @@ def get_resources_stats_profile_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_stats_profile_by_id + ) -> None: + """get_resources_sip_library_upload_file_result - Get a particular stats profile file. + Get the result of the upload file operation. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22952,8 +23209,8 @@ def get_resources_stats_profile_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_by_id_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_sip_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22961,9 +23218,8 @@ def get_resources_stats_profile_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -22974,9 +23230,9 @@ def get_resources_stats_profile_by_id( @validate_call - def get_resources_stats_profile_by_id_with_http_info( + def get_resources_sip_library_upload_file_result_with_http_info( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22989,13 +23245,13 @@ def get_resources_stats_profile_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_stats_profile_by_id + ) -> ApiResponse[None]: + """get_resources_sip_library_upload_file_result - Get a particular stats profile file. + Get the result of the upload file operation. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23018,8 +23274,8 @@ def get_resources_stats_profile_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_by_id_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_sip_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23027,9 +23283,8 @@ def get_resources_stats_profile_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23040,9 +23295,9 @@ def get_resources_stats_profile_by_id_with_http_info( @validate_call - def get_resources_stats_profile_by_id_without_preload_content( + def get_resources_sip_library_upload_file_result_without_preload_content( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23056,12 +23311,12 @@ def get_resources_stats_profile_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_stats_profile_by_id + """get_resources_sip_library_upload_file_result - Get a particular stats profile file. + Get the result of the upload file operation. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23084,8 +23339,8 @@ def get_resources_stats_profile_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_by_id_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_sip_library_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23093,9 +23348,8 @@ def get_resources_stats_profile_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23105,9 +23359,9 @@ def get_resources_stats_profile_by_id_without_preload_content( ) - def _get_resources_stats_profile_by_id_serialize( + def _get_resources_sip_library_upload_file_result_serialize( self, - stats_profile_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -23127,8 +23381,8 @@ def _get_resources_stats_profile_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if stats_profile_id is not None: - _path_params['statsProfileId'] = stats_profile_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -23152,7 +23406,7 @@ def _get_resources_stats_profile_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile/{statsProfileId}', + resource_path='/api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23169,9 +23423,10 @@ def _get_resources_stats_profile_by_id_serialize( @validate_call - def get_resources_stats_profile_content_file( + def get_resources_stats_profile( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23184,13 +23439,15 @@ def get_resources_stats_profile_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_stats_profile_content_file + ) -> GetResourcesCertificates200Response: + """get_resources_stats_profile - Get the content of a particular stats profile file. + Get all the available stats profile files. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23213,8 +23470,9 @@ def get_resources_stats_profile_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_content_file_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_stats_profile_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23222,8 +23480,9 @@ def get_resources_stats_profile_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23233,9 +23492,10 @@ def get_resources_stats_profile_content_file( @validate_call - def get_resources_stats_profile_content_file_with_http_info( + def get_resources_stats_profile_with_http_info( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23248,13 +23508,15 @@ def get_resources_stats_profile_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_stats_profile_content_file + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_stats_profile - Get the content of a particular stats profile file. + Get all the available stats profile files. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23277,8 +23539,9 @@ def get_resources_stats_profile_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_content_file_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_stats_profile_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23286,8 +23549,9 @@ def get_resources_stats_profile_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23297,9 +23561,10 @@ def get_resources_stats_profile_content_file_with_http_info( @validate_call - def get_resources_stats_profile_content_file_without_preload_content( + def get_resources_stats_profile_without_preload_content( self, - stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23313,12 +23578,14 @@ def get_resources_stats_profile_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_stats_profile_content_file + """get_resources_stats_profile - Get the content of a particular stats profile file. + Get all the available stats profile files. - :param stats_profile_id: The ID of the stats profile. (required) - :type stats_profile_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23341,8 +23608,9 @@ def get_resources_stats_profile_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_content_file_serialize( - stats_profile_id=stats_profile_id, + _param = self._get_resources_stats_profile_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23350,8 +23618,9 @@ def get_resources_stats_profile_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23360,9 +23629,10 @@ def get_resources_stats_profile_content_file_without_preload_content( ) - def _get_resources_stats_profile_content_file_serialize( + def _get_resources_stats_profile_serialize( self, - stats_profile_id, + take, + skip, _request_auth, _content_type, _headers, @@ -23382,9 +23652,15 @@ def _get_resources_stats_profile_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if stats_profile_id is not None: - _path_params['statsProfileId'] = stats_profile_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -23394,7 +23670,6 @@ def _get_resources_stats_profile_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -23408,7 +23683,7 @@ def _get_resources_stats_profile_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile/{statsProfileId}/contentFile', + resource_path='/api/v2/resources/stats-profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23425,9 +23700,9 @@ def _get_resources_stats_profile_content_file_serialize( @validate_call - def get_resources_stats_profile_upload_file_result( + def get_resources_stats_profile_by_id( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23440,13 +23715,13 @@ def get_resources_stats_profile_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_stats_profile_upload_file_result + ) -> GenericFile: + """get_resources_stats_profile_by_id - Get the result of the upload file operation. + Get a particular stats profile file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23469,8 +23744,8 @@ def get_resources_stats_profile_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23478,8 +23753,9 @@ def get_resources_stats_profile_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23490,9 +23766,9 @@ def get_resources_stats_profile_upload_file_result( @validate_call - def get_resources_stats_profile_upload_file_result_with_http_info( + def get_resources_stats_profile_by_id_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23505,13 +23781,13 @@ def get_resources_stats_profile_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_stats_profile_upload_file_result + ) -> ApiResponse[GenericFile]: + """get_resources_stats_profile_by_id - Get the result of the upload file operation. + Get a particular stats profile file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23534,8 +23810,8 @@ def get_resources_stats_profile_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23543,8 +23819,9 @@ def get_resources_stats_profile_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23555,9 +23832,9 @@ def get_resources_stats_profile_upload_file_result_with_http_info( @validate_call - def get_resources_stats_profile_upload_file_result_without_preload_content( + def get_resources_stats_profile_by_id_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23571,12 +23848,12 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_stats_profile_upload_file_result + """get_resources_stats_profile_by_id - Get the result of the upload file operation. + Get a particular stats profile file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23599,8 +23876,8 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_stats_profile_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_stats_profile_by_id_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23608,8 +23885,9 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -23619,9 +23897,9 @@ def get_resources_stats_profile_upload_file_result_without_preload_content( ) - def _get_resources_stats_profile_upload_file_result_serialize( + def _get_resources_stats_profile_by_id_serialize( self, - upload_file_id, + stats_profile_id, _request_auth, _content_type, _headers, @@ -23641,8 +23919,8 @@ def _get_resources_stats_profile_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if stats_profile_id is not None: + _path_params['statsProfileId'] = stats_profile_id # process the query parameters # process the header parameters # process the form parameters @@ -23666,7 +23944,7 @@ def _get_resources_stats_profile_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/stats-profile/{statsProfileId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23683,9 +23961,9 @@ def _get_resources_stats_profile_upload_file_result_serialize( @validate_call - def get_resources_strike_by_id( + def get_resources_stats_profile_content_file( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23698,13 +23976,13 @@ def get_resources_strike_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApplicationType: - """get_resources_strike_by_id + ) -> bytearray: + """get_resources_stats_profile_content_file - Get a particular strike. + Get the content of a particular stats profile file. - :param strike_id: The ID of the strike. (required) - :type strike_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23727,8 +24005,8 @@ def get_resources_strike_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_by_id_serialize( - strike_id=strike_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23736,8 +24014,8 @@ def get_resources_strike_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23747,9 +24025,9 @@ def get_resources_strike_by_id( @validate_call - def get_resources_strike_by_id_with_http_info( + def get_resources_stats_profile_content_file_with_http_info( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23762,13 +24040,13 @@ def get_resources_strike_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ApplicationType]: - """get_resources_strike_by_id + ) -> ApiResponse[bytearray]: + """get_resources_stats_profile_content_file - Get a particular strike. + Get the content of a particular stats profile file. - :param strike_id: The ID of the strike. (required) - :type strike_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23791,8 +24069,8 @@ def get_resources_strike_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_by_id_serialize( - strike_id=strike_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23800,8 +24078,8 @@ def get_resources_strike_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23811,9 +24089,9 @@ def get_resources_strike_by_id_with_http_info( @validate_call - def get_resources_strike_by_id_without_preload_content( + def get_resources_stats_profile_content_file_without_preload_content( self, - strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + stats_profile_id: Annotated[StrictStr, Field(description="The ID of the stats profile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23827,12 +24105,12 @@ def get_resources_strike_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_strike_by_id + """get_resources_stats_profile_content_file - Get a particular strike. + Get the content of a particular stats profile file. - :param strike_id: The ID of the strike. (required) - :type strike_id: str + :param stats_profile_id: The ID of the stats profile. (required) + :type stats_profile_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23855,8 +24133,8 @@ def get_resources_strike_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_by_id_serialize( - strike_id=strike_id, + _param = self._get_resources_stats_profile_content_file_serialize( + stats_profile_id=stats_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23864,8 +24142,8 @@ def get_resources_strike_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ApplicationType", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -23874,9 +24152,9 @@ def get_resources_strike_by_id_without_preload_content( ) - def _get_resources_strike_by_id_serialize( + def _get_resources_stats_profile_content_file_serialize( self, - strike_id, + stats_profile_id, _request_auth, _content_type, _headers, @@ -23896,8 +24174,8 @@ def _get_resources_strike_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if strike_id is not None: - _path_params['strikeId'] = strike_id + if stats_profile_id is not None: + _path_params['statsProfileId'] = stats_profile_id # process the query parameters # process the header parameters # process the form parameters @@ -23908,6 +24186,7 @@ def _get_resources_strike_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -23921,7 +24200,7 @@ def _get_resources_strike_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/strikes/{strikeId}', + resource_path='/api/v2/resources/stats-profile/{statsProfileId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23938,10 +24217,9 @@ def _get_resources_strike_by_id_serialize( @validate_call - def get_resources_strike_categories( + def get_resources_stats_profile_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23954,14 +24232,13 @@ def get_resources_strike_categories( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Category]: - """get_resources_strike_categories + ) -> None: + """get_resources_stats_profile_upload_file_result + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -23984,9 +24261,8 @@ def get_resources_strike_categories( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_stats_profile_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23994,7 +24270,8 @@ def get_resources_strike_categories( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24005,10 +24282,9 @@ def get_resources_strike_categories( @validate_call - def get_resources_strike_categories_with_http_info( + def get_resources_stats_profile_upload_file_result_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24021,14 +24297,13 @@ def get_resources_strike_categories_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Category]]: - """get_resources_strike_categories + ) -> ApiResponse[None]: + """get_resources_stats_profile_upload_file_result + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24051,9 +24326,8 @@ def get_resources_strike_categories_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strike_categories_serialize( - take=take, - skip=skip, + _param = self._get_resources_stats_profile_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24061,7 +24335,8 @@ def get_resources_strike_categories_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': None, + '400': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24072,10 +24347,9 @@ def get_resources_strike_categories_with_http_info( @validate_call - def get_resources_strike_categories_without_preload_content( + def get_resources_stats_profile_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24089,13 +24363,464 @@ def get_resources_strike_categories_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_strike_categories + """get_resources_stats_profile_upload_file_result + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_stats_profile_upload_file_result_serialize( + upload_file_id=upload_file_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_stats_profile_upload_file_result_serialize( + self, + upload_file_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}/result', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_strike_by_id( + self, + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApplicationType: + """get_resources_strike_by_id + + Get a particular strike. + + :param strike_id: The ID of the strike. (required) + :type strike_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_by_id_with_http_info( + self, + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ApplicationType]: + """get_resources_strike_by_id + + Get a particular strike. + + :param strike_id: The ID of the strike. (required) + :type strike_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_by_id_without_preload_content( + self, + strike_id: Annotated[StrictStr, Field(description="The ID of the strike.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_strike_by_id + + Get a particular strike. + + :param strike_id: The ID of the strike. (required) + :type strike_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_by_id_serialize( + strike_id=strike_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ApplicationType", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_strike_by_id_serialize( + self, + strike_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if strike_id is not None: + _path_params['strikeId'] = strike_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/strikes/{strikeId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_strike_categories( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[Category]: + """get_resources_strike_categories + + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_categories_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Category]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_categories_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[Category]]: + """get_resources_strike_categories + + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24128,7 +24853,1247 @@ def get_resources_strike_categories_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Category]", + '200': "List[Category]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strike_categories_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_strike_categories + + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strike_categories_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Category]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_strike_categories_serialize( + self, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/strike-categories', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_strikes( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetResourcesApplicationTypes200Response: + """get_resources_strikes + + Get all the available strikes. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strikes_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetResourcesApplicationTypes200Response]: + """get_resources_strikes + + Get all the available strikes. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_strikes_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, + search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, + filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, + sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, + compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, + categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_strikes + + Get all the available strikes. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param search_col: A list of comma-separated columns used to search for the supplied values + :type search_col: str + :param search_val: The keywords used to filter the items + :type search_val: str + :param filter_mode: The operator applied to the supplied values + :type filter_mode: str + :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc + :type sort: str + :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. + :type compatible_with: str + :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... + :type categories: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_strikes_serialize( + take=take, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort, + compatible_with=compatible_with, + categories=categories, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesApplicationTypes200Response", + '400': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_strikes_serialize( + self, + take, + skip, + search_col, + search_val, + filter_mode, + sort, + compatible_with, + categories, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if search_col is not None: + + _query_params.append(('searchCol', search_col)) + + if search_val is not None: + + _query_params.append(('searchVal', search_val)) + + if filter_mode is not None: + + _query_params.append(('filterMode', filter_mode)) + + if sort is not None: + + _query_params.append(('sort', sort)) + + if compatible_with is not None: + + _query_params.append(('compatibleWith', compatible_with)) + + if categories is not None: + + _query_params.append(('categories', categories)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/strikes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificate_by_id( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GenericFile: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_by_id_with_http_info( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GenericFile]: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_by_id_without_preload_content( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_certificate_by_id + + Get a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_by_id_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GenericFile", + '401': "ErrorResponse", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_tls_certificate_by_id_serialize( + self, + tls_certificate_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tls_certificate_id is not None: + _path_params['tlsCertificateId'] = tls_certificate_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificate_content_file( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> bytearray: + """get_resources_tls_certificate_content_file + + Get the content of a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_content_file_with_http_info( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[bytearray]: + """get_resources_tls_certificate_content_file + + Get the content of a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificate_content_file_without_preload_content( + self, + tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_certificate_content_file + + Get the content of a particular TLS certificate file. + + :param tls_certificate_id: The ID of the tls certificate. (required) + :type tls_certificate_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificate_content_file_serialize( + tls_certificate_id=tls_certificate_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "bytearray", + '404': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_resources_tls_certificate_content_file_serialize( + self, + tls_certificate_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tls_certificate_id is not None: + _path_params['tlsCertificateId'] = tls_certificate_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/octet-stream', + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}/contentFile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_resources_tls_certificates( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetResourcesCertificates200Response: + """get_resources_tls_certificates + + Get all the available TLS certificate files + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificates_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_tls_certificates + + Get all the available TLS certificate files + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_resources_tls_certificates_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_resources_tls_certificates + + Get all the available TLS certificate files + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_resources_tls_certificates_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -24138,7 +26103,7 @@ def get_resources_strike_categories_without_preload_content( ) - def _get_resources_strike_categories_serialize( + def _get_resources_tls_certificates_serialize( self, take, skip, @@ -24192,7 +26157,7 @@ def _get_resources_strike_categories_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/strike-categories', + resource_path='/api/v2/resources/tls-certificates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24209,16 +26174,9 @@ def _get_resources_strike_categories_serialize( @validate_call - def get_resources_strikes( + def get_resources_tls_certificates_upload_file_result( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24231,27 +26189,13 @@ def get_resources_strikes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesApplicationTypes200Response: - """get_resources_strikes + ) -> None: + """get_resources_tls_certificates_upload_file_result - Get all the available strikes. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24274,15 +26218,8 @@ def get_resources_strikes( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24290,7 +26227,7 @@ def get_resources_strikes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': None, '400': "ErrorResponse", '500': "ErrorResponse", } @@ -24302,16 +26239,9 @@ def get_resources_strikes( @validate_call - def get_resources_strikes_with_http_info( + def get_resources_tls_certificates_upload_file_result_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24324,27 +26254,13 @@ def get_resources_strikes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesApplicationTypes200Response]: - """get_resources_strikes + ) -> ApiResponse[None]: + """get_resources_tls_certificates_upload_file_result - Get all the available strikes. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24367,15 +26283,8 @@ def get_resources_strikes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24383,7 +26292,7 @@ def get_resources_strikes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': None, '400': "ErrorResponse", '500': "ErrorResponse", } @@ -24395,16 +26304,9 @@ def get_resources_strikes_with_http_info( @validate_call - def get_resources_strikes_without_preload_content( + def get_resources_tls_certificates_upload_file_result_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - search_col: Annotated[Optional[StrictStr], Field(description="A list of comma-separated columns used to search for the supplied values")] = None, - search_val: Annotated[Optional[StrictStr], Field(description="The keywords used to filter the items")] = None, - filter_mode: Annotated[Optional[StrictStr], Field(description="The operator applied to the supplied values")] = None, - sort: Annotated[Optional[StrictStr], Field(description="A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc")] = None, - compatible_with: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes only to strikes compatible with the application type provided as value.")] = None, - categories: Annotated[Optional[StrictStr], Field(description="A string which filters the list of strikes by categories. The format is categories=category1:value1|...,....")] = None, + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24418,26 +26320,12 @@ def get_resources_strikes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_strikes + """get_resources_tls_certificates_upload_file_result - Get all the available strikes. + Get the result of the upload file operation. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param search_col: A list of comma-separated columns used to search for the supplied values - :type search_col: str - :param search_val: The keywords used to filter the items - :type search_val: str - :param filter_mode: The operator applied to the supplied values - :type filter_mode: str - :param sort: A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc - :type sort: str - :param compatible_with: A string which filters the list of strikes only to strikes compatible with the application type provided as value. - :type compatible_with: str - :param categories: A string which filters the list of strikes by categories. The format is categories=category1:value1|...,.... - :type categories: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24460,15 +26348,8 @@ def get_resources_strikes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_strikes_serialize( - take=take, - skip=skip, - search_col=search_col, - search_val=search_val, - filter_mode=filter_mode, - sort=sort, - compatible_with=compatible_with, - categories=categories, + _param = self._get_resources_tls_certificates_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24476,7 +26357,7 @@ def get_resources_strikes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesApplicationTypes200Response", + '200': None, '400': "ErrorResponse", '500': "ErrorResponse", } @@ -24487,16 +26368,9 @@ def get_resources_strikes_without_preload_content( ) - def _get_resources_strikes_serialize( + def _get_resources_tls_certificates_upload_file_result_serialize( self, - take, - skip, - search_col, - search_val, - filter_mode, - sort, - compatible_with, - categories, + upload_file_id, _request_auth, _content_type, _headers, @@ -24516,39 +26390,9 @@ def _get_resources_strikes_serialize( _body_params: Optional[bytes] = None # process the path parameters + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - if search_col is not None: - - _query_params.append(('searchCol', search_col)) - - if search_val is not None: - - _query_params.append(('searchVal', search_val)) - - if filter_mode is not None: - - _query_params.append(('filterMode', filter_mode)) - - if sort is not None: - - _query_params.append(('sort', sort)) - - if compatible_with is not None: - - _query_params.append(('compatibleWith', compatible_with)) - - if categories is not None: - - _query_params.append(('categories', categories)) - # process the header parameters # process the form parameters # process the body parameter @@ -24571,7 +26415,7 @@ def _get_resources_strikes_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/strikes', + resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24588,9 +26432,9 @@ def _get_resources_strikes_serialize( @validate_call - def get_resources_tls_certificate_by_id( + def get_resources_tls_dh_by_id( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24604,12 +26448,12 @@ def get_resources_tls_certificate_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_tls_certificate_by_id + """get_resources_tls_dh_by_id - Get a particular TLS certificate file. + Get a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24632,8 +26476,8 @@ def get_resources_tls_certificate_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24654,9 +26498,9 @@ def get_resources_tls_certificate_by_id( @validate_call - def get_resources_tls_certificate_by_id_with_http_info( + def get_resources_tls_dh_by_id_with_http_info( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24670,12 +26514,12 @@ def get_resources_tls_certificate_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GenericFile]: - """get_resources_tls_certificate_by_id + """get_resources_tls_dh_by_id - Get a particular TLS certificate file. + Get a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24698,8 +26542,8 @@ def get_resources_tls_certificate_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24720,9 +26564,9 @@ def get_resources_tls_certificate_by_id_with_http_info( @validate_call - def get_resources_tls_certificate_by_id_without_preload_content( + def get_resources_tls_dh_by_id_without_preload_content( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24736,12 +26580,12 @@ def get_resources_tls_certificate_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificate_by_id + """get_resources_tls_dh_by_id - Get a particular TLS certificate file. + Get a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24764,8 +26608,8 @@ def get_resources_tls_certificate_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_by_id_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_by_id_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24785,9 +26629,9 @@ def get_resources_tls_certificate_by_id_without_preload_content( ) - def _get_resources_tls_certificate_by_id_serialize( + def _get_resources_tls_dh_by_id_serialize( self, - tls_certificate_id, + tls_dh_id, _request_auth, _content_type, _headers, @@ -24807,8 +26651,8 @@ def _get_resources_tls_certificate_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_certificate_id is not None: - _path_params['tlsCertificateId'] = tls_certificate_id + if tls_dh_id is not None: + _path_params['tlsDhId'] = tls_dh_id # process the query parameters # process the header parameters # process the form parameters @@ -24832,7 +26676,7 @@ def _get_resources_tls_certificate_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}', + resource_path='/api/v2/resources/tls-dhs/{tlsDhId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24849,9 +26693,9 @@ def _get_resources_tls_certificate_by_id_serialize( @validate_call - def get_resources_tls_certificate_content_file( + def get_resources_tls_dh_content_file( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24865,12 +26709,12 @@ def get_resources_tls_certificate_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_tls_certificate_content_file + """get_resources_tls_dh_content_file - Get the content of a particular TLS certificate file. + Get the content of a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24893,8 +26737,8 @@ def get_resources_tls_certificate_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24913,9 +26757,9 @@ def get_resources_tls_certificate_content_file( @validate_call - def get_resources_tls_certificate_content_file_with_http_info( + def get_resources_tls_dh_content_file_with_http_info( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24929,12 +26773,12 @@ def get_resources_tls_certificate_content_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """get_resources_tls_certificate_content_file + """get_resources_tls_dh_content_file - Get the content of a particular TLS certificate file. + Get the content of a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24957,8 +26801,8 @@ def get_resources_tls_certificate_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24977,9 +26821,9 @@ def get_resources_tls_certificate_content_file_with_http_info( @validate_call - def get_resources_tls_certificate_content_file_without_preload_content( + def get_resources_tls_dh_content_file_without_preload_content( self, - tls_certificate_id: Annotated[StrictStr, Field(description="The ID of the tls certificate.")], + tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24993,12 +26837,12 @@ def get_resources_tls_certificate_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificate_content_file + """get_resources_tls_dh_content_file - Get the content of a particular TLS certificate file. + Get the content of a particular TLS DH file. - :param tls_certificate_id: The ID of the tls certificate. (required) - :type tls_certificate_id: str + :param tls_dh_id: The ID of the tls dh. (required) + :type tls_dh_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25021,8 +26865,8 @@ def get_resources_tls_certificate_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificate_content_file_serialize( - tls_certificate_id=tls_certificate_id, + _param = self._get_resources_tls_dh_content_file_serialize( + tls_dh_id=tls_dh_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25040,9 +26884,9 @@ def get_resources_tls_certificate_content_file_without_preload_content( ) - def _get_resources_tls_certificate_content_file_serialize( + def _get_resources_tls_dh_content_file_serialize( self, - tls_certificate_id, + tls_dh_id, _request_auth, _content_type, _headers, @@ -25062,8 +26906,8 @@ def _get_resources_tls_certificate_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_certificate_id is not None: - _path_params['tlsCertificateId'] = tls_certificate_id + if tls_dh_id is not None: + _path_params['tlsDhId'] = tls_dh_id # process the query parameters # process the header parameters # process the form parameters @@ -25088,7 +26932,7 @@ def _get_resources_tls_certificate_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/{tlsCertificateId}/contentFile', + resource_path='/api/v2/resources/tls-dhs/{tlsDhId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25105,7 +26949,7 @@ def _get_resources_tls_certificate_content_file_serialize( @validate_call - def get_resources_tls_certificates( + def get_resources_tls_dhs( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25122,9 +26966,9 @@ def get_resources_tls_certificates( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_tls_certificates + """get_resources_tls_dhs - Get all the available TLS certificate files + Get all the available TLS DH files. :param take: The number of search results to return :type take: int @@ -25152,7 +26996,7 @@ def get_resources_tls_certificates( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_tls_dhs_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25174,7 +27018,7 @@ def get_resources_tls_certificates( @validate_call - def get_resources_tls_certificates_with_http_info( + def get_resources_tls_dhs_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25191,9 +27035,9 @@ def get_resources_tls_certificates_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_certificates + """get_resources_tls_dhs - Get all the available TLS certificate files + Get all the available TLS DH files. :param take: The number of search results to return :type take: int @@ -25221,7 +27065,7 @@ def get_resources_tls_certificates_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_tls_dhs_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25243,7 +27087,7 @@ def get_resources_tls_certificates_with_http_info( @validate_call - def get_resources_tls_certificates_without_preload_content( + def get_resources_tls_dhs_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -25260,9 +27104,9 @@ def get_resources_tls_certificates_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificates + """get_resources_tls_dhs - Get all the available TLS certificate files + Get all the available TLS DH files. :param take: The number of search results to return :type take: int @@ -25290,7 +27134,7 @@ def get_resources_tls_certificates_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_serialize( + _param = self._get_resources_tls_dhs_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -25311,7 +27155,7 @@ def get_resources_tls_certificates_without_preload_content( ) - def _get_resources_tls_certificates_serialize( + def _get_resources_tls_dhs_serialize( self, take, skip, @@ -25365,7 +27209,7 @@ def _get_resources_tls_certificates_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates', + resource_path='/api/v2/resources/tls-dhs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25382,7 +27226,7 @@ def _get_resources_tls_certificates_serialize( @validate_call - def get_resources_tls_certificates_upload_file_result( + def get_resources_tls_dhs_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25398,7 +27242,7 @@ def get_resources_tls_certificates_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_tls_certificates_upload_file_result + """get_resources_tls_dhs_upload_file_result Get the result of the upload file operation. @@ -25426,7 +27270,7 @@ def get_resources_tls_certificates_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( + _param = self._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25447,7 +27291,7 @@ def get_resources_tls_certificates_upload_file_result( @validate_call - def get_resources_tls_certificates_upload_file_result_with_http_info( + def get_resources_tls_dhs_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25463,7 +27307,7 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_tls_certificates_upload_file_result + """get_resources_tls_dhs_upload_file_result Get the result of the upload file operation. @@ -25491,7 +27335,7 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( + _param = self._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25512,7 +27356,7 @@ def get_resources_tls_certificates_upload_file_result_with_http_info( @validate_call - def get_resources_tls_certificates_upload_file_result_without_preload_content( + def get_resources_tls_dhs_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -25528,7 +27372,7 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_certificates_upload_file_result + """get_resources_tls_dhs_upload_file_result Get the result of the upload file operation. @@ -25556,7 +27400,7 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_certificates_upload_file_result_serialize( + _param = self._get_resources_tls_dhs_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -25576,7 +27420,7 @@ def get_resources_tls_certificates_upload_file_result_without_preload_content( ) - def _get_resources_tls_certificates_upload_file_result_serialize( + def _get_resources_tls_dhs_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -25623,7 +27467,7 @@ def _get_resources_tls_certificates_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25640,9 +27484,9 @@ def _get_resources_tls_certificates_upload_file_result_serialize( @validate_call - def get_resources_tls_dh_by_id( + def get_resources_tls_key_by_id( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25656,12 +27500,12 @@ def get_resources_tls_dh_by_id( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GenericFile: - """get_resources_tls_dh_by_id + """get_resources_tls_key_by_id - Get a particular TLS DH file. + Get a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25684,8 +27528,8 @@ def get_resources_tls_dh_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25706,9 +27550,9 @@ def get_resources_tls_dh_by_id( @validate_call - def get_resources_tls_dh_by_id_with_http_info( + def get_resources_tls_key_by_id_with_http_info( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25722,12 +27566,12 @@ def get_resources_tls_dh_by_id_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GenericFile]: - """get_resources_tls_dh_by_id + """get_resources_tls_key_by_id - Get a particular TLS DH file. + Get a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25750,8 +27594,8 @@ def get_resources_tls_dh_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25772,9 +27616,9 @@ def get_resources_tls_dh_by_id_with_http_info( @validate_call - def get_resources_tls_dh_by_id_without_preload_content( + def get_resources_tls_key_by_id_without_preload_content( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25788,12 +27632,12 @@ def get_resources_tls_dh_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dh_by_id + """get_resources_tls_key_by_id - Get a particular TLS DH file. + Get a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25816,8 +27660,8 @@ def get_resources_tls_dh_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_by_id_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_by_id_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25837,9 +27681,9 @@ def get_resources_tls_dh_by_id_without_preload_content( ) - def _get_resources_tls_dh_by_id_serialize( + def _get_resources_tls_key_by_id_serialize( self, - tls_dh_id, + tls_key_id, _request_auth, _content_type, _headers, @@ -25859,8 +27703,8 @@ def _get_resources_tls_dh_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_dh_id is not None: - _path_params['tlsDhId'] = tls_dh_id + if tls_key_id is not None: + _path_params['tlsKeyId'] = tls_key_id # process the query parameters # process the header parameters # process the form parameters @@ -25884,7 +27728,7 @@ def _get_resources_tls_dh_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/{tlsDhId}', + resource_path='/api/v2/resources/tls-keys/{tlsKeyId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25901,9 +27745,9 @@ def _get_resources_tls_dh_by_id_serialize( @validate_call - def get_resources_tls_dh_content_file( + def get_resources_tls_key_content_file( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25917,12 +27761,12 @@ def get_resources_tls_dh_content_file( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """get_resources_tls_dh_content_file + """get_resources_tls_key_content_file - Get the content of a particular TLS DH file. + Get the content of a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25945,8 +27789,8 @@ def get_resources_tls_dh_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25965,9 +27809,9 @@ def get_resources_tls_dh_content_file( @validate_call - def get_resources_tls_dh_content_file_with_http_info( + def get_resources_tls_key_content_file_with_http_info( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25981,12 +27825,12 @@ def get_resources_tls_dh_content_file_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """get_resources_tls_dh_content_file + """get_resources_tls_key_content_file - Get the content of a particular TLS DH file. + Get the content of a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26009,8 +27853,8 @@ def get_resources_tls_dh_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26029,9 +27873,9 @@ def get_resources_tls_dh_content_file_with_http_info( @validate_call - def get_resources_tls_dh_content_file_without_preload_content( + def get_resources_tls_key_content_file_without_preload_content( self, - tls_dh_id: Annotated[StrictStr, Field(description="The ID of the tls dh.")], + tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26045,12 +27889,12 @@ def get_resources_tls_dh_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dh_content_file + """get_resources_tls_key_content_file - Get the content of a particular TLS DH file. + Get the content of a particular TLS key file. - :param tls_dh_id: The ID of the tls dh. (required) - :type tls_dh_id: str + :param tls_key_id: The ID of the tls key. (required) + :type tls_key_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26073,8 +27917,8 @@ def get_resources_tls_dh_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dh_content_file_serialize( - tls_dh_id=tls_dh_id, + _param = self._get_resources_tls_key_content_file_serialize( + tls_key_id=tls_key_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26092,9 +27936,9 @@ def get_resources_tls_dh_content_file_without_preload_content( ) - def _get_resources_tls_dh_content_file_serialize( + def _get_resources_tls_key_content_file_serialize( self, - tls_dh_id, + tls_key_id, _request_auth, _content_type, _headers, @@ -26114,8 +27958,8 @@ def _get_resources_tls_dh_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_dh_id is not None: - _path_params['tlsDhId'] = tls_dh_id + if tls_key_id is not None: + _path_params['tlsKeyId'] = tls_key_id # process the query parameters # process the header parameters # process the form parameters @@ -26140,7 +27984,7 @@ def _get_resources_tls_dh_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/{tlsDhId}/contentFile', + resource_path='/api/v2/resources/tls-keys/{tlsKeyId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26157,7 +28001,7 @@ def _get_resources_tls_dh_content_file_serialize( @validate_call - def get_resources_tls_dhs( + def get_resources_tls_keys( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -26174,9 +28018,9 @@ def get_resources_tls_dhs( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetResourcesCertificates200Response: - """get_resources_tls_dhs + """get_resources_tls_keys - Get all the available TLS DH files. + Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -26204,7 +28048,7 @@ def get_resources_tls_dhs( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( + _param = self._get_resources_tls_keys_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26226,7 +28070,7 @@ def get_resources_tls_dhs( @validate_call - def get_resources_tls_dhs_with_http_info( + def get_resources_tls_keys_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -26243,9 +28087,9 @@ def get_resources_tls_dhs_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_dhs + """get_resources_tls_keys - Get all the available TLS DH files. + Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -26273,7 +28117,7 @@ def get_resources_tls_dhs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( + _param = self._get_resources_tls_keys_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26295,7 +28139,7 @@ def get_resources_tls_dhs_with_http_info( @validate_call - def get_resources_tls_dhs_without_preload_content( + def get_resources_tls_keys_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -26312,9 +28156,9 @@ def get_resources_tls_dhs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dhs + """get_resources_tls_keys - Get all the available TLS DH files. + Get all the available TLS key files. :param take: The number of search results to return :type take: int @@ -26342,7 +28186,7 @@ def get_resources_tls_dhs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_serialize( + _param = self._get_resources_tls_keys_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -26363,7 +28207,7 @@ def get_resources_tls_dhs_without_preload_content( ) - def _get_resources_tls_dhs_serialize( + def _get_resources_tls_keys_serialize( self, take, skip, @@ -26417,7 +28261,7 @@ def _get_resources_tls_dhs_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs', + resource_path='/api/v2/resources/tls-keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26434,7 +28278,7 @@ def _get_resources_tls_dhs_serialize( @validate_call - def get_resources_tls_dhs_upload_file_result( + def get_resources_tls_keys_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -26450,7 +28294,7 @@ def get_resources_tls_dhs_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_tls_dhs_upload_file_result + """get_resources_tls_keys_upload_file_result Get the result of the upload file operation. @@ -26478,7 +28322,7 @@ def get_resources_tls_dhs_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( + _param = self._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -26499,7 +28343,7 @@ def get_resources_tls_dhs_upload_file_result( @validate_call - def get_resources_tls_dhs_upload_file_result_with_http_info( + def get_resources_tls_keys_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -26515,7 +28359,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_tls_dhs_upload_file_result + """get_resources_tls_keys_upload_file_result Get the result of the upload file operation. @@ -26543,7 +28387,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( + _param = self._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -26564,7 +28408,7 @@ def get_resources_tls_dhs_upload_file_result_with_http_info( @validate_call - def get_resources_tls_dhs_upload_file_result_without_preload_content( + def get_resources_tls_keys_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -26580,7 +28424,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_dhs_upload_file_result + """get_resources_tls_keys_upload_file_result Get the result of the upload file operation. @@ -26608,7 +28452,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_dhs_upload_file_result_serialize( + _param = self._get_resources_tls_keys_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -26628,7 +28472,7 @@ def get_resources_tls_dhs_upload_file_result_without_preload_content( ) - def _get_resources_tls_dhs_upload_file_result_serialize( + def _get_resources_tls_keys_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -26675,7 +28519,7 @@ def _get_resources_tls_dhs_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26692,9 +28536,10 @@ def _get_resources_tls_dhs_upload_file_result_serialize( @validate_call - def get_resources_tls_key_by_id( + def get_resources_user_defined_apps( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26707,13 +28552,14 @@ def get_resources_tls_key_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GenericFile: - """get_resources_tls_key_by_id + ) -> List[AppsecApp]: + """get_resources_user_defined_apps - Get a particular TLS key file. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26736,8 +28582,9 @@ def get_resources_tls_key_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26745,9 +28592,7 @@ def get_resources_tls_key_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -26758,9 +28603,10 @@ def get_resources_tls_key_by_id( @validate_call - def get_resources_tls_key_by_id_with_http_info( + def get_resources_user_defined_apps_with_http_info( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26773,13 +28619,14 @@ def get_resources_tls_key_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GenericFile]: - """get_resources_tls_key_by_id + ) -> ApiResponse[List[AppsecApp]]: + """get_resources_user_defined_apps - Get a particular TLS key file. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26802,8 +28649,9 @@ def get_resources_tls_key_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26811,9 +28659,7 @@ def get_resources_tls_key_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -26824,9 +28670,10 @@ def get_resources_tls_key_by_id_with_http_info( @validate_call - def get_resources_tls_key_by_id_without_preload_content( + def get_resources_user_defined_apps_without_preload_content( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26840,12 +28687,13 @@ def get_resources_tls_key_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_key_by_id + """get_resources_user_defined_apps - Get a particular TLS key file. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26868,8 +28716,9 @@ def get_resources_tls_key_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_by_id_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_serialize( + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26877,9 +28726,7 @@ def get_resources_tls_key_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GenericFile", - '401': "ErrorResponse", - '404': "ErrorResponse", + '200': "List[AppsecApp]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -26889,9 +28736,10 @@ def get_resources_tls_key_by_id_without_preload_content( ) - def _get_resources_tls_key_by_id_serialize( + def _get_resources_user_defined_apps_serialize( self, - tls_key_id, + take, + skip, _request_auth, _content_type, _headers, @@ -26911,9 +28759,15 @@ def _get_resources_tls_key_by_id_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_key_id is not None: - _path_params['tlsKeyId'] = tls_key_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -26936,7 +28790,7 @@ def _get_resources_tls_key_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/{tlsKeyId}', + resource_path='/api/v2/resources/user-defined-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26953,9 +28807,9 @@ def _get_resources_tls_key_by_id_serialize( @validate_call - def get_resources_tls_key_content_file( + def get_resources_user_defined_apps_upload_file_result( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26968,13 +28822,13 @@ def get_resources_tls_key_content_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """get_resources_tls_key_content_file + ) -> None: + """get_resources_user_defined_apps_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26997,8 +28851,8 @@ def get_resources_tls_key_content_file( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27006,8 +28860,9 @@ def get_resources_tls_key_content_file( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27017,9 +28872,9 @@ def get_resources_tls_key_content_file( @validate_call - def get_resources_tls_key_content_file_with_http_info( + def get_resources_user_defined_apps_upload_file_result_with_http_info( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27032,13 +28887,13 @@ def get_resources_tls_key_content_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """get_resources_tls_key_content_file + ) -> ApiResponse[None]: + """get_resources_user_defined_apps_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27061,8 +28916,8 @@ def get_resources_tls_key_content_file_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27070,8 +28925,9 @@ def get_resources_tls_key_content_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27081,9 +28937,9 @@ def get_resources_tls_key_content_file_with_http_info( @validate_call - def get_resources_tls_key_content_file_without_preload_content( + def get_resources_user_defined_apps_upload_file_result_without_preload_content( self, - tls_key_id: Annotated[StrictStr, Field(description="The ID of the tls key.")], + upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27097,12 +28953,12 @@ def get_resources_tls_key_content_file_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_key_content_file + """get_resources_user_defined_apps_upload_file_result - Get the content of a particular TLS key file. + Get the result of the upload file operation. - :param tls_key_id: The ID of the tls key. (required) - :type tls_key_id: str + :param upload_file_id: The ID of the uploadfile. (required) + :type upload_file_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27125,8 +28981,8 @@ def get_resources_tls_key_content_file_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_key_content_file_serialize( - tls_key_id=tls_key_id, + _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27134,8 +28990,9 @@ def get_resources_tls_key_content_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", - '404': "ErrorResponse", + '200': None, + '400': "ErrorResponse", + '500': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27144,9 +29001,9 @@ def get_resources_tls_key_content_file_without_preload_content( ) - def _get_resources_tls_key_content_file_serialize( + def _get_resources_user_defined_apps_upload_file_result_serialize( self, - tls_key_id, + upload_file_id, _request_auth, _content_type, _headers, @@ -27166,8 +29023,8 @@ def _get_resources_tls_key_content_file_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tls_key_id is not None: - _path_params['tlsKeyId'] = tls_key_id + if upload_file_id is not None: + _path_params['uploadFileId'] = upload_file_id # process the query parameters # process the header parameters # process the form parameters @@ -27178,7 +29035,6 @@ def _get_resources_tls_key_content_file_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/octet-stream', 'application/json' ] ) @@ -27192,7 +29048,7 @@ def _get_resources_tls_key_content_file_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/{tlsKeyId}/contentFile', + resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27209,10 +29065,9 @@ def _get_resources_tls_key_content_file_serialize( @validate_call - def get_resources_tls_keys( + def get_resources_voice_custom_flow_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27225,15 +29080,13 @@ def get_resources_tls_keys( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetResourcesCertificates200Response: - """get_resources_tls_keys + ) -> GenericFile: + """get_resources_voice_custom_flow_by_id - Get all the available TLS key files. + Get a particular voice custom flow. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27256,9 +29109,8 @@ def get_resources_tls_keys( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( - take=take, - skip=skip, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27266,8 +29118,9 @@ def get_resources_tls_keys( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27278,10 +29131,9 @@ def get_resources_tls_keys( @validate_call - def get_resources_tls_keys_with_http_info( + def get_resources_voice_custom_flow_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27294,15 +29146,13 @@ def get_resources_tls_keys_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetResourcesCertificates200Response]: - """get_resources_tls_keys + ) -> ApiResponse[GenericFile]: + """get_resources_voice_custom_flow_by_id - Get all the available TLS key files. + Get a particular voice custom flow. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27325,9 +29175,8 @@ def get_resources_tls_keys_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( - take=take, - skip=skip, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27335,8 +29184,9 @@ def get_resources_tls_keys_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27347,10 +29197,9 @@ def get_resources_tls_keys_with_http_info( @validate_call - def get_resources_tls_keys_without_preload_content( + def get_resources_voice_custom_flow_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27364,14 +29213,12 @@ def get_resources_tls_keys_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_keys + """get_resources_voice_custom_flow_by_id - Get all the available TLS key files. + Get a particular voice custom flow. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27394,9 +29241,8 @@ def get_resources_tls_keys_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_serialize( - take=take, - skip=skip, + _param = self._get_resources_voice_custom_flow_by_id_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27404,8 +29250,9 @@ def get_resources_tls_keys_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetResourcesCertificates200Response", + '200': "GenericFile", '401': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27415,10 +29262,9 @@ def get_resources_tls_keys_without_preload_content( ) - def _get_resources_tls_keys_serialize( + def _get_resources_voice_custom_flow_by_id_serialize( self, - take, - skip, + voice_custom_flow_id, _request_auth, _content_type, _headers, @@ -27438,15 +29284,9 @@ def _get_resources_tls_keys_serialize( _body_params: Optional[bytes] = None # process the path parameters + if voice_custom_flow_id is not None: + _path_params['voiceCustomFlowId'] = voice_custom_flow_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -27469,7 +29309,7 @@ def _get_resources_tls_keys_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys', + resource_path='/api/v2/resources/voice-custom-flows/{voiceCustomFlowId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27486,9 +29326,9 @@ def _get_resources_tls_keys_serialize( @validate_call - def get_resources_tls_keys_upload_file_result( + def get_resources_voice_custom_flow_content_file( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27501,13 +29341,13 @@ def get_resources_tls_keys_upload_file_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """get_resources_tls_keys_upload_file_result + ) -> bytearray: + """get_resources_voice_custom_flow_content_file - Get the result of the upload file operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27530,8 +29370,8 @@ def get_resources_tls_keys_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27539,9 +29379,8 @@ def get_resources_tls_keys_upload_file_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27551,9 +29390,9 @@ def get_resources_tls_keys_upload_file_result( @validate_call - def get_resources_tls_keys_upload_file_result_with_http_info( + def get_resources_voice_custom_flow_content_file_with_http_info( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27566,13 +29405,13 @@ def get_resources_tls_keys_upload_file_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """get_resources_tls_keys_upload_file_result + ) -> ApiResponse[bytearray]: + """get_resources_voice_custom_flow_content_file - Get the result of the upload file operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27595,8 +29434,8 @@ def get_resources_tls_keys_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27604,9 +29443,8 @@ def get_resources_tls_keys_upload_file_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27616,9 +29454,9 @@ def get_resources_tls_keys_upload_file_result_with_http_info( @validate_call - def get_resources_tls_keys_upload_file_result_without_preload_content( + def get_resources_voice_custom_flow_content_file_without_preload_content( self, - upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], + voice_custom_flow_id: Annotated[StrictStr, Field(description="The ID of the voice custom flow.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27632,12 +29470,12 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_tls_keys_upload_file_result + """get_resources_voice_custom_flow_content_file - Get the result of the upload file operation. + Get the content of a particular voice custom flow file. - :param upload_file_id: The ID of the uploadfile. (required) - :type upload_file_id: str + :param voice_custom_flow_id: The ID of the voice custom flow. (required) + :type voice_custom_flow_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27660,8 +29498,8 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_tls_keys_upload_file_result_serialize( - upload_file_id=upload_file_id, + _param = self._get_resources_voice_custom_flow_content_file_serialize( + voice_custom_flow_id=voice_custom_flow_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27669,9 +29507,8 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': "ErrorResponse", - '500': "ErrorResponse", + '200': "bytearray", + '404': "ErrorResponse", } return self.api_client.call_api( *_param, @@ -27680,9 +29517,9 @@ def get_resources_tls_keys_upload_file_result_without_preload_content( ) - def _get_resources_tls_keys_upload_file_result_serialize( + def _get_resources_voice_custom_flow_content_file_serialize( self, - upload_file_id, + voice_custom_flow_id, _request_auth, _content_type, _headers, @@ -27702,8 +29539,8 @@ def _get_resources_tls_keys_upload_file_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if upload_file_id is not None: - _path_params['uploadFileId'] = upload_file_id + if voice_custom_flow_id is not None: + _path_params['voiceCustomFlowId'] = voice_custom_flow_id # process the query parameters # process the header parameters # process the form parameters @@ -27714,6 +29551,7 @@ def _get_resources_tls_keys_upload_file_result_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/octet-stream', 'application/json' ] ) @@ -27727,7 +29565,7 @@ def _get_resources_tls_keys_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/voice-custom-flows/{voiceCustomFlowId}/contentFile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27744,7 +29582,7 @@ def _get_resources_tls_keys_upload_file_result_serialize( @validate_call - def get_resources_user_defined_apps( + def get_resources_voice_custom_flows( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -27760,9 +29598,10 @@ def get_resources_user_defined_apps( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[AppsecApp]: - """get_resources_user_defined_apps + ) -> GetResourcesCertificates200Response: + """get_resources_voice_custom_flows + Get all the available voice custom flows. :param take: The number of search results to return :type take: int @@ -27790,7 +29629,7 @@ def get_resources_user_defined_apps( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( + _param = self._get_resources_voice_custom_flows_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -27800,7 +29639,8 @@ def get_resources_user_defined_apps( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27811,7 +29651,7 @@ def get_resources_user_defined_apps( @validate_call - def get_resources_user_defined_apps_with_http_info( + def get_resources_voice_custom_flows_with_http_info( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -27827,9 +29667,10 @@ def get_resources_user_defined_apps_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[AppsecApp]]: - """get_resources_user_defined_apps + ) -> ApiResponse[GetResourcesCertificates200Response]: + """get_resources_voice_custom_flows + Get all the available voice custom flows. :param take: The number of search results to return :type take: int @@ -27857,7 +29698,7 @@ def get_resources_user_defined_apps_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( + _param = self._get_resources_voice_custom_flows_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -27867,7 +29708,8 @@ def get_resources_user_defined_apps_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27878,7 +29720,7 @@ def get_resources_user_defined_apps_with_http_info( @validate_call - def get_resources_user_defined_apps_without_preload_content( + def get_resources_voice_custom_flows_without_preload_content( self, take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, @@ -27895,8 +29737,9 @@ def get_resources_user_defined_apps_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_user_defined_apps + """get_resources_voice_custom_flows + Get all the available voice custom flows. :param take: The number of search results to return :type take: int @@ -27924,7 +29767,7 @@ def get_resources_user_defined_apps_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_serialize( + _param = self._get_resources_voice_custom_flows_serialize( take=take, skip=skip, _request_auth=_request_auth, @@ -27934,7 +29777,8 @@ def get_resources_user_defined_apps_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[AppsecApp]", + '200': "GetResourcesCertificates200Response", + '401': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -27944,7 +29788,7 @@ def get_resources_user_defined_apps_without_preload_content( ) - def _get_resources_user_defined_apps_serialize( + def _get_resources_voice_custom_flows_serialize( self, take, skip, @@ -27998,7 +29842,7 @@ def _get_resources_user_defined_apps_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/user-defined-apps', + resource_path='/api/v2/resources/voice-custom-flows', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28015,7 +29859,7 @@ def _get_resources_user_defined_apps_serialize( @validate_call - def get_resources_user_defined_apps_upload_file_result( + def get_resources_voice_custom_flows_upload_file_result( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -28031,7 +29875,7 @@ def get_resources_user_defined_apps_upload_file_result( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """get_resources_user_defined_apps_upload_file_result + """get_resources_voice_custom_flows_upload_file_result Get the result of the upload file operation. @@ -28059,7 +29903,7 @@ def get_resources_user_defined_apps_upload_file_result( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28080,7 +29924,7 @@ def get_resources_user_defined_apps_upload_file_result( @validate_call - def get_resources_user_defined_apps_upload_file_result_with_http_info( + def get_resources_voice_custom_flows_upload_file_result_with_http_info( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -28096,7 +29940,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """get_resources_user_defined_apps_upload_file_result + """get_resources_voice_custom_flows_upload_file_result Get the result of the upload file operation. @@ -28124,7 +29968,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28145,7 +29989,7 @@ def get_resources_user_defined_apps_upload_file_result_with_http_info( @validate_call - def get_resources_user_defined_apps_upload_file_result_without_preload_content( + def get_resources_voice_custom_flows_upload_file_result_without_preload_content( self, upload_file_id: Annotated[StrictStr, Field(description="The ID of the uploadfile.")], _request_timeout: Union[ @@ -28161,7 +30005,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_resources_user_defined_apps_upload_file_result + """get_resources_voice_custom_flows_upload_file_result Get the result of the upload file operation. @@ -28189,7 +30033,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_resources_user_defined_apps_upload_file_result_serialize( + _param = self._get_resources_voice_custom_flows_upload_file_result_serialize( upload_file_id=upload_file_id, _request_auth=_request_auth, _content_type=_content_type, @@ -28209,7 +30053,7 @@ def get_resources_user_defined_apps_upload_file_result_without_preload_content( ) - def _get_resources_user_defined_apps_upload_file_result_serialize( + def _get_resources_voice_custom_flows_upload_file_result_serialize( self, upload_file_id, _request_auth, @@ -28256,7 +30100,7 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result', + resource_path='/api/v2/resources/voice-custom-flows/operations/uploadFile/{uploadFileId}/result', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28581,6 +30425,16 @@ def _get_resources_user_defined_apps_upload_file_result_serialize( + + + + + + + + + + @@ -37086,3 +38940,271 @@ def _start_resources_user_defined_apps_upload_file_serialize( ) + + + @validate_call + def start_resources_voice_custom_flows_upload_file( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """start_resources_voice_custom_flows_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_voice_custom_flows_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_voice_custom_flows_upload_file_with_http_info( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """start_resources_voice_custom_flows_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_voice_custom_flows_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_resources_voice_custom_flows_upload_file_without_preload_content( + self, + file: Optional[Union[StrictBytes, StrictStr]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_resources_voice_custom_flows_upload_file + + Upload a file. + + :param file: + :type file: bytearray + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_resources_voice_custom_flows_upload_file_serialize( + file=file, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': None, + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_resources_voice_custom_flows_upload_file_serialize( + self, + file, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if file is not None: + _files['file'] = file + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/resources/voice-custom-flows/operations/uploadFile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 7448a6a..62919a4 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -212,6 +212,8 @@ GetResourcesCustomImportOperations200ResponseOneOf = DynamicModel('GetResourcesCustomImportOperations200ResponseOneOf', (), {} ) GetResourcesHttpProfiles200Response = DynamicModel('GetResourcesHttpProfiles200Response', (), {} ) GetResourcesHttpProfiles200ResponseOneOf = DynamicModel('GetResourcesHttpProfiles200ResponseOneOf', (), {} ) +GetResourcesLlmApiProfiles200Response = DynamicModel('GetResourcesLlmApiProfiles200Response', (), {} ) +GetResourcesLlmApiProfiles200ResponseOneOf = DynamicModel('GetResourcesLlmApiProfiles200ResponseOneOf', (), {} ) GetResultFiles200Response = DynamicModel('GetResultFiles200Response', (), {} ) GetResultFiles200ResponseOneOf = DynamicModel('GetResultFiles200ResponseOneOf', (), {} ) GetResultStats200Response = DynamicModel('GetResultStats200Response', (), {} ) @@ -246,10 +248,12 @@ ImportOfflineLicenseResult = DynamicModel('ImportOfflineLicenseResult', (), {} ) IngestOperation = DynamicModel('IngestOperation', (), {} ) InnerIPRange = DynamicModel('InnerIPRange', (), {} ) +InnerIPSecRange = DynamicModel('InnerIPSecRange', (), {} ) Interface = DynamicModel('Interface', (), {} ) IpMask = DynamicModel('IpMask', (), {} ) IpPreference = DynamicModel('IpPreference', (), {} ) IpVer = DynamicModel('IpVer', (), {} ) +LLMAPIProfile = DynamicModel('LLMAPIProfile', (), {} ) License = DynamicModel('License', (), {} ) LicenseReceipt = DynamicModel('LicenseReceipt', (), {} ) LicenseServerMetadata = DynamicModel('LicenseServerMetadata', (), {} ) @@ -347,9 +351,10 @@ SessionReuseMethodTLS12 = DynamicModel('SessionReuseMethodTLS12', (), {} ) SessionReuseMethodTLS13 = DynamicModel('SessionReuseMethodTLS13', (), {} ) SetAggregationModeOperation = DynamicModel('SetAggregationModeOperation', (), {} ) -SetAppOperation = DynamicModel('SetAppOperation', (), {} ) +SetControllerAppOperation = DynamicModel('SetControllerAppOperation', (), {} ) SetDpdkModeOperationInput = DynamicModel('SetDpdkModeOperationInput', (), {} ) SetLinkStateOperation = DynamicModel('SetLinkStateOperation', (), {} ) +SetNodesAppOperation = DynamicModel('SetNodesAppOperation', (), {} ) SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) SimulatedIdP = DynamicModel('SimulatedIdP', (), {} ) Snapshot = DynamicModel('Snapshot', (), {} ) @@ -371,6 +376,7 @@ TcpProfile = DynamicModel('TcpProfile', (), {} ) TestInfo = DynamicModel('TestInfo', (), {} ) TestStateChangedOperation = DynamicModel('TestStateChangedOperation', (), {} ) +TestUsage = DynamicModel('TestUsage', (), {} ) TimeValue = DynamicModel('TimeValue', (), {} ) TimelineSegment = DynamicModel('TimelineSegment', (), {} ) TimelineSegmentBase = DynamicModel('TimelineSegmentBase', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index ad858bd..4688371 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -212,6 +212,8 @@ class LinkNameException(Exception): from cyperf.models.get_resources_custom_import_operations200_response_one_of import GetResourcesCustomImportOperations200ResponseOneOf from cyperf.models.get_resources_http_profiles200_response import GetResourcesHttpProfiles200Response from cyperf.models.get_resources_http_profiles200_response_one_of import GetResourcesHttpProfiles200ResponseOneOf +from cyperf.models.get_resources_llm_api_profiles200_response import GetResourcesLlmApiProfiles200Response +from cyperf.models.get_resources_llm_api_profiles200_response_one_of import GetResourcesLlmApiProfiles200ResponseOneOf from cyperf.models.get_result_files200_response import GetResultFiles200Response from cyperf.models.get_result_files200_response_one_of import GetResultFiles200ResponseOneOf from cyperf.models.get_result_stats200_response import GetResultStats200Response @@ -246,10 +248,12 @@ class LinkNameException(Exception): from cyperf.models.import_offline_license_result import ImportOfflineLicenseResult from cyperf.models.ingest_operation import IngestOperation from cyperf.models.inner_ip_range import InnerIPRange +from cyperf.models.inner_ip_sec_range import InnerIPSecRange from cyperf.models.interface import Interface from cyperf.models.ip_mask import IpMask from cyperf.models.ip_preference import IpPreference from cyperf.models.ip_ver import IpVer +from cyperf.models.llmapi_profile import LLMAPIProfile from cyperf.models.license import License from cyperf.models.license_receipt import LicenseReceipt from cyperf.models.license_server_metadata import LicenseServerMetadata @@ -347,9 +351,10 @@ class LinkNameException(Exception): from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.models.simulated_id_p import SimulatedIdP from cyperf.models.snapshot import Snapshot @@ -371,6 +376,7 @@ class LinkNameException(Exception): from cyperf.models.tcp_profile import TcpProfile from cyperf.models.test_info import TestInfo from cyperf.models.test_state_changed_operation import TestStateChangedOperation +from cyperf.models.test_usage import TestUsage from cyperf.models.time_value import TimeValue from cyperf.models.timeline_segment import TimelineSegment from cyperf.models.timeline_segment_base import TimelineSegmentBase diff --git a/cyperf/models/action.py b/cyperf/models/action.py index 8626b2c..6a16cfc 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -38,6 +38,7 @@ class Action(BaseModel): is_banner: Optional[StrictBool] = Field(default=None, description="Indicates if this is a required action, can only be add once and also must be the first", alias="IsBanner") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") is_hostname: Optional[StrictInt] = Field(default=None, alias="IsHostname") + is_llm_strike: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is an LLM strike.", alias="IsLLMStrike") is_strike: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is a strike.", alias="IsStrike") name: Optional[StrictStr] = Field(default=None, description="The name of the action.", alias="Name") params: Optional[List[Params]] = Field(default=None, alias="Params") @@ -46,7 +47,7 @@ class Action(BaseModel): requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -138,6 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), + "IsLLMStrike": obj.get("IsLLMStrike"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index 4a86892..6b185c7 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -38,6 +38,7 @@ class ActionBase(BaseModel): is_banner: Optional[StrictBool] = Field(default=None, description="Indicates if this is a required action, can only be add once and also must be the first", alias="IsBanner") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") is_hostname: Optional[StrictInt] = Field(default=None, alias="IsHostname") + is_llm_strike: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is an LLM strike.", alias="IsLLMStrike") is_strike: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is a strike.", alias="IsStrike") name: Optional[StrictStr] = Field(default=None, description="The name of the action.", alias="Name") params: Optional[List[Params]] = Field(default=None, alias="Params") @@ -46,7 +47,7 @@ class ActionBase(BaseModel): requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -138,6 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), + "IsLLMStrike": obj.get("IsLLMStrike"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 17b44d4..60d8573 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -36,9 +36,11 @@ class Agent(BaseModel): Agent """ # noqa: E501 agent_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags", alias="AgentTags") + display_name_format: Optional[StrictStr] = Field(default=None, description="display agent name format", alias="DisplayNameFormat") ip: Optional[StrictStr] = Field(default=None, description="The management IP of the agent", alias="IP") interfaces: Optional[List[Interface]] = Field(default=None, description="A list of test interfaces available on the agent", alias="Interfaces") last_update: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the agent was last updated", alias="LastUpdate") + port_id_format: Optional[StrictStr] = Field(default=None, description="port agent id format", alias="PortIDFormat") reservation_id: Optional[StrictStr] = Field(default=None, description="The ID of the reservation", alias="ReservationID") selected_env: Optional[SelectedEnv] = Field(default=None, alias="SelectedEnv") selection_status: Optional[StrictStr] = Field(default=None, description="The current status of the selection operation", alias="SelectionStatus") @@ -60,7 +62,7 @@ class Agent(BaseModel): requires_updating: Optional[StrictBool] = Field(default=None, description="A flag indicating whether the agent is not using the recommended version", alias="requiresUpdating") system_info: Optional[SystemInfo] = Field(default=None, alias="systemInfo") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AgentTags", "IP", "Interfaces", "LastUpdate", "ReservationID", "SelectedEnv", "SelectionStatus", "SessionName", "Status", "configuredProxy", "cpuInfo", "dpdkEnabled", "features", "hostname", "id", "memoryMB", "mgmtInterface", "ntpInfo", "offline", "owner", "ownerId", "packageVersionStatus", "requiresUpdating", "systemInfo", "links"] + __properties: ClassVar[List[str]] = ["AgentTags", "DisplayNameFormat", "IP", "Interfaces", "LastUpdate", "PortIDFormat", "ReservationID", "SelectedEnv", "SelectionStatus", "SessionName", "Status", "configuredProxy", "cpuInfo", "dpdkEnabled", "features", "hostname", "id", "memoryMB", "mgmtInterface", "ntpInfo", "offline", "owner", "ownerId", "packageVersionStatus", "requiresUpdating", "systemInfo", "links"] model_config = ConfigDict( populate_by_name=True, @@ -182,9 +184,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "AgentTags": obj.get("AgentTags") if obj.get("AgentTags") is not None else [], + "DisplayNameFormat": obj.get("DisplayNameFormat"), "IP": obj.get("IP"), "Interfaces": ( [Interface.from_dict(_item) for _item in obj.get("Interfaces", [])] if obj.get("Interfaces") is not None else None), "LastUpdate": obj.get("LastUpdate"), + "PortIDFormat": obj.get("PortIDFormat"), "ReservationID": obj.get("ReservationID"), "SelectedEnv": SelectedEnv.from_dict(obj["SelectedEnv"]) if obj.get("SelectedEnv") is not None else None, "SelectionStatus": obj.get("SelectionStatus"), diff --git a/cyperf/models/attack.py b/cyperf/models/attack.py index faf4758..370b372 100644 --- a/cyperf/models/attack.py +++ b/cyperf/models/attack.py @@ -28,6 +28,7 @@ from cyperf.models.endpoint import Endpoint from cyperf.models.http_profile import HTTPProfile from cyperf.models.ip_preference import IpPreference +from cyperf.models.llmapi_profile import LLMAPIProfile from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params from cyperf.models.quic_profile import QUICProfile @@ -74,7 +75,9 @@ class Attack(BaseModel): id: Optional[StrictStr] = None links: Optional[List[APILink]] = None client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") + inherit_llmapi: Optional[StrictBool] = Field(default=None, alias="InheritLLMAPI") inherit_tls: Optional[StrictBool] = Field(default=None, alias="InheritTLS") + llmapi_profiles: Optional[List[LLMAPIProfile]] = Field(default=None, alias="LLMAPIProfiles") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") supports_tls: Optional[StrictBool] = Field(default=None, alias="SupportsTLS") tracks: Optional[List[AttackTrack]] = Field(default=None, alias="Tracks") @@ -84,7 +87,7 @@ class Attack(BaseModel): _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackNetworkMapping" }) - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritTLS", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "InheritLLMAPI", "InheritTLS", "LLMAPIProfiles", "ServerTLSProfile", "SupportsTLS", "Tracks", "create", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -181,6 +184,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_tls_profile if self.client_tls_profile: _dict['ClientTLSProfile'] = self.client_tls_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in llmapi_profiles (list) + _items = [] + if self.llmapi_profiles: + for _item in self.llmapi_profiles: + if _item: + _items.append(_item.to_dict()) + _dict['LLMAPIProfiles'] = _items # override the default output from pydantic by calling `to_dict()` of server_tls_profile if self.server_tls_profile: _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() @@ -259,7 +269,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, + "InheritLLMAPI": obj.get("InheritLLMAPI"), "InheritTLS": obj.get("InheritTLS"), + "LLMAPIProfiles": ( [LLMAPIProfile.from_dict(_item) for _item in obj.get("LLMAPIProfiles", [])] if obj.get("LLMAPIProfiles") is not None else None), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, "SupportsTLS": obj.get("SupportsTLS"), "Tracks": ( [AttackTrack.from_dict(_item) for _item in obj.get("Tracks", [])] if obj.get("Tracks") is not None else None), diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 589854a..03923e0 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -38,6 +38,7 @@ class AttackAction(BaseModel): is_banner: Optional[StrictBool] = Field(default=None, description="Indicates if this is a required action, can only be add once and also must be the first", alias="IsBanner") is_deprecated: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is deprecated.", alias="IsDeprecated") is_hostname: Optional[StrictInt] = Field(default=None, alias="IsHostname") + is_llm_strike: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is an LLM strike.", alias="IsLLMStrike") is_strike: Optional[StrictBool] = Field(default=None, description="A value that indicates if the action is a strike.", alias="IsStrike") name: Optional[StrictStr] = Field(default=None, description="The name of the action.", alias="Name") params: Optional[List[Params]] = Field(default=None, alias="Params") @@ -46,7 +47,7 @@ class AttackAction(BaseModel): requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -138,6 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IsBanner": obj.get("IsBanner"), "IsDeprecated": obj.get("IsDeprecated"), "IsHostname": obj.get("IsHostname"), + "IsLLMStrike": obj.get("IsLLMStrike"), "IsStrike": obj.get("IsStrike"), "Name": obj.get("Name"), "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index 66a8b3e..f349cdc 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -34,6 +34,7 @@ class CommandMetadata(BaseModel): direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") is_for_app_traffic_only: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that can only be used in application traffic and cannot be mixed with attack traffic", alias="IsForAppTrafficOnly") + is_llm_strike: Optional[StrictBool] = Field(default=None, description="Indicates if the command is an LLM strike", alias="IsLLMStrike") is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") @@ -49,7 +50,7 @@ class CommandMetadata(BaseModel): supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") supported_protocols: Optional[List[StrictStr]] = Field(default=None, description="The list of protocols which support this command", alias="SupportedProtocols") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -124,6 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), "IsForAppTrafficOnly": obj.get("IsForAppTrafficOnly"), + "IsLLMStrike": obj.get("IsLLMStrike"), "IsStreaming": obj.get("IsStreaming"), "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index b9d75e2..f02ea23 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -46,6 +46,8 @@ class DUTNetwork(BaseModel): https_health_check: Optional[HealthCheckConfig] = Field(default=None, description="The HTTPS HealthCheck configuration for DUT", alias="HTTPSHealthCheck") hostname_suffix: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A suffix to be added to the Host header of all Apps/Attacks running through the forward proxy DUT (default: empty string).", alias="HostnameSuffix") http_forward_proxy_mode: Optional[StrictStr] = Field(default=None, description="Deprecated. This is ignored and the proxy mode will be deduced from the connection type.", alias="HttpForwardProxyMode") + llm_model: Optional[StrictStr] = Field(default=None, description="The identifier of the LLM model to use for inference.", alias="LLMModel") + llm_request_url_path: Optional[StrictStr] = Field(default=None, description="The endpoint URL for the LLM chat completions API.", alias="LLMRequestURLPath") non_proxied_hosts: Optional[Params] = Field(default=None, alias="NonProxiedHosts") pep_dut: Optional[PepDUT] = Field(default=None, alias="PepDUT") pep_dut_active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false)", alias="PepDUTActive") @@ -59,7 +61,7 @@ class DUTNetwork(BaseModel): active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false)") host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The hostname where the traffic goes if server DUT is active.") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "LLMModel", "LLMRequestURLPath", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -222,6 +224,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "HTTPSHealthCheck": HealthCheckConfig.from_dict(obj["HTTPSHealthCheck"]) if obj.get("HTTPSHealthCheck") is not None else None, "HostnameSuffix": obj.get("HostnameSuffix"), "HttpForwardProxyMode": obj.get("HttpForwardProxyMode"), + "LLMModel": obj.get("LLMModel"), + "LLMRequestURLPath": obj.get("LLMRequestURLPath"), "NonProxiedHosts": Params.from_dict(obj["NonProxiedHosts"]) if obj.get("NonProxiedHosts") is not None else None, "PepDUT": PepDUT.from_dict(obj["PepDUT"]) if obj.get("PepDUT") is not None else None, "PepDUTActive": obj.get("PepDUTActive"), diff --git a/cyperf/models/get_resources_llm_api_profiles200_response.py b/cyperf/models/get_resources_llm_api_profiles200_response.py new file mode 100644 index 0000000..eb1e813 --- /dev/null +++ b/cyperf/models/get_resources_llm_api_profiles200_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.get_resources_llm_api_profiles200_response_one_of import GetResourcesLlmApiProfiles200ResponseOneOf +from cyperf.models.llmapi_profile import LLMAPIProfile +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETRESOURCESLLMAPIPROFILES200RESPONSE_ONE_OF_SCHEMAS = ["GetResourcesLlmApiProfiles200ResponseOneOf", "List[LLMAPIProfile]"] + +class GetResourcesLlmApiProfiles200Response(BaseModel): + """ + GetResourcesLlmApiProfiles200Response + """ + # data type: List[LLMAPIProfile] + oneof_schema_1_validator: Optional[List[LLMAPIProfile]] = None + # data type: GetResourcesLlmApiProfiles200ResponseOneOf + oneof_schema_2_validator: Optional[GetResourcesLlmApiProfiles200ResponseOneOf] = None + actual_instance: Optional[Union[GetResourcesLlmApiProfiles200ResponseOneOf, List[LLMAPIProfile]]] = None + one_of_schemas: Set[str] = { "GetResourcesLlmApiProfiles200ResponseOneOf", "List[LLMAPIProfile]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetResourcesLlmApiProfiles200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[LLMAPIProfile] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetResourcesLlmApiProfiles200ResponseOneOf + if not isinstance(v, GetResourcesLlmApiProfiles200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetResourcesLlmApiProfiles200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetResourcesLlmApiProfiles200Response with oneOf schemas: GetResourcesLlmApiProfiles200ResponseOneOf, List[LLMAPIProfile]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetResourcesLlmApiProfiles200Response with oneOf schemas: GetResourcesLlmApiProfiles200ResponseOneOf, List[LLMAPIProfile]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[LLMAPIProfile] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetResourcesLlmApiProfiles200ResponseOneOf + + + + try: + instance.actual_instance = GetResourcesLlmApiProfiles200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetResourcesLlmApiProfiles200Response with oneOf schemas: GetResourcesLlmApiProfiles200ResponseOneOf, List[LLMAPIProfile]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetResourcesLlmApiProfiles200Response with oneOf schemas: GetResourcesLlmApiProfiles200ResponseOneOf, List[LLMAPIProfile]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetResourcesLlmApiProfiles200ResponseOneOf, List[LLMAPIProfile]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_resources_llm_api_profiles200_response_one_of.py b/cyperf/models/get_resources_llm_api_profiles200_response_one_of.py new file mode 100644 index 0000000..d295f3a --- /dev/null +++ b/cyperf/models/get_resources_llm_api_profiles200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.llmapi_profile import LLMAPIProfile +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetResourcesLlmApiProfiles200ResponseOneOf(BaseModel): + """ + GetResourcesLlmApiProfiles200ResponseOneOf + """ # noqa: E501 + data: Optional[List[LLMAPIProfile]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetResourcesLlmApiProfiles200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetResourcesLlmApiProfiles200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": ( [LLMAPIProfile.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/inner_ip_sec_range.py b/cyperf/models/inner_ip_sec_range.py new file mode 100644 index 0000000..a5d6a04 --- /dev/null +++ b/cyperf/models/inner_ip_sec_range.py @@ -0,0 +1,186 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.authentication_settings import AuthenticationSettings +from cyperf.models.local_subnet_config import LocalSubnetConfig +from cyperf.models.p1_config import P1Config +from cyperf.models.p2_config import P2Config +from cyperf.models.remote_access import RemoteAccess +from cyperf.models.remote_subnet_config import RemoteSubnetConfig +from cyperf.models.timers import Timers +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class InnerIPSecRange(BaseModel): + """ + InnerIPSecRange + """ # noqa: E501 + var_auth_settings: Optional[AuthenticationSettings] = Field(default=None, alias="AuthSettings") + ike_phase1_config: Optional[P1Config] = Field(default=None, alias="IKEPhase1Config") + ike_phase2_config: Optional[P2Config] = Field(default=None, alias="IKEPhase2Config") + ip_sec_range_name: Annotated[str, Field(strict=True)] = Field(alias="IPSecRangeName") + local_sub_config: Optional[LocalSubnetConfig] = Field(default=None, alias="LocalSubConfig") + multi_p2_over_p1: StrictBool = Field(alias="MultiP2OverP1") + public_peer: Annotated[str, Field(strict=True)] = Field(alias="PublicPeer") + public_peer_increment: Annotated[str, Field(strict=True)] = Field(alias="PublicPeerIncrement") + remote_access: Optional[RemoteAccess] = Field(default=None, alias="RemoteAccess") + remote_sub_config: Optional[RemoteSubnetConfig] = Field(default=None, alias="RemoteSubConfig") + test_scenario: StrictStr = Field(alias="TestScenario") + timers: Optional[Timers] = Field(default=None, alias="Timers") + tunnel_count_per_outer_ip: StrictInt = Field(alias="TunnelCountPerOuterIP") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "LocalSubConfig", "MultiP2OverP1", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] + + @field_validator('ip_sec_range_name') + def ip_sec_range_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + @field_validator('public_peer') + def public_peer_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$)", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$)/") + return value + + @field_validator('public_peer_increment') + def public_peer_increment_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$)", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$)/") + return value + + @field_validator('test_scenario') + def test_scenario_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['REMOTE-ACCESS', 'SITE-TO-SITE']): + raise ValueError("must be one of enum values ('REMOTE-ACCESS', 'SITE-TO-SITE')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InnerIPSecRange from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of var_auth_settings + if self.var_auth_settings: + _dict['AuthSettings'] = self.var_auth_settings.to_dict() + # override the default output from pydantic by calling `to_dict()` of ike_phase1_config + if self.ike_phase1_config: + _dict['IKEPhase1Config'] = self.ike_phase1_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of ike_phase2_config + if self.ike_phase2_config: + _dict['IKEPhase2Config'] = self.ike_phase2_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of local_sub_config + if self.local_sub_config: + _dict['LocalSubConfig'] = self.local_sub_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of remote_access + if self.remote_access: + _dict['RemoteAccess'] = self.remote_access.to_dict() + # override the default output from pydantic by calling `to_dict()` of remote_sub_config + if self.remote_sub_config: + _dict['RemoteSubConfig'] = self.remote_sub_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of timers + if self.timers: + _dict['Timers'] = self.timers.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InnerIPSecRange from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "AuthSettings": AuthenticationSettings.from_dict(obj["AuthSettings"]) if obj.get("AuthSettings") is not None else None, + "IKEPhase1Config": P1Config.from_dict(obj["IKEPhase1Config"]) if obj.get("IKEPhase1Config") is not None else None, + "IKEPhase2Config": P2Config.from_dict(obj["IKEPhase2Config"]) if obj.get("IKEPhase2Config") is not None else None, + "IPSecRangeName": obj.get("IPSecRangeName"), + "LocalSubConfig": LocalSubnetConfig.from_dict(obj["LocalSubConfig"]) if obj.get("LocalSubConfig") is not None else None, + "MultiP2OverP1": obj.get("MultiP2OverP1"), + "PublicPeer": obj.get("PublicPeer"), + "PublicPeerIncrement": obj.get("PublicPeerIncrement"), + "RemoteAccess": RemoteAccess.from_dict(obj["RemoteAccess"]) if obj.get("RemoteAccess") is not None else None, + "RemoteSubConfig": RemoteSubnetConfig.from_dict(obj["RemoteSubConfig"]) if obj.get("RemoteSubConfig") is not None else None, + "TestScenario": obj.get("TestScenario"), + "Timers": Timers.from_dict(obj["Timers"]) if obj.get("Timers") is not None else None, + "TunnelCountPerOuterIP": obj.get("TunnelCountPerOuterIP"), + "id": obj.get("id"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/ip_sec_range.py b/cyperf/models/ip_sec_range.py index 2691442..901105f 100644 --- a/cyperf/models/ip_sec_range.py +++ b/cyperf/models/ip_sec_range.py @@ -23,6 +23,8 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.authentication_settings import AuthenticationSettings +from cyperf.models.inner_ip_sec_range import InnerIPSecRange +from cyperf.models.local_subnet_config import LocalSubnetConfig from cyperf.models.p1_config import P1Config from cyperf.models.p2_config import P2Config from cyperf.models.protected_subnet_config import ProtectedSubnetConfig @@ -41,6 +43,9 @@ class IPSecRange(BaseModel): ike_phase1_config: Optional[P1Config] = Field(default=None, alias="IKEPhase1Config") ike_phase2_config: Optional[P2Config] = Field(default=None, alias="IKEPhase2Config") ip_sec_range_name: Annotated[str, Field(strict=True)] = Field(alias="IPSecRangeName") + inner_ip_sec: Optional[StrictBool] = Field(default=None, alias="InnerIPSec") + inner_ip_sec_range: Optional[InnerIPSecRange] = Field(default=None, alias="InnerIPSecRange") + local_sub_config: Optional[LocalSubnetConfig] = Field(default=None, alias="LocalSubConfig") multi_p2_over_p1: Optional[StrictBool] = Field(default=None, alias="MultiP2OverP1") protected_sub_config: Optional[ProtectedSubnetConfig] = Field(default=None, description="Deeprecated. Use RemoteSubConfig instead.", alias="ProtectedSubConfig") public_peer: Annotated[str, Field(strict=True)] = Field(alias="PublicPeer") @@ -52,7 +57,7 @@ class IPSecRange(BaseModel): tunnel_count_per_outer_ip: StrictInt = Field(alias="TunnelCountPerOuterIP") id: StrictStr links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "MultiP2OverP1", "ProtectedSubConfig", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] + __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "InnerIPSec", "InnerIPSecRange", "LocalSubConfig", "MultiP2OverP1", "ProtectedSubConfig", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] @field_validator('ip_sec_range_name') def ip_sec_range_name_validate_regular_expression(cls, value): @@ -130,6 +135,12 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of ike_phase2_config if self.ike_phase2_config: _dict['IKEPhase2Config'] = self.ike_phase2_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of inner_ip_sec_range + if self.inner_ip_sec_range: + _dict['InnerIPSecRange'] = self.inner_ip_sec_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of local_sub_config + if self.local_sub_config: + _dict['LocalSubConfig'] = self.local_sub_config.to_dict() # override the default output from pydantic by calling `to_dict()` of protected_sub_config if self.protected_sub_config: _dict['ProtectedSubConfig'] = self.protected_sub_config.to_dict() @@ -167,6 +178,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IKEPhase1Config": P1Config.from_dict(obj["IKEPhase1Config"]) if obj.get("IKEPhase1Config") is not None else None, "IKEPhase2Config": P2Config.from_dict(obj["IKEPhase2Config"]) if obj.get("IKEPhase2Config") is not None else None, "IPSecRangeName": obj.get("IPSecRangeName"), + "InnerIPSec": obj.get("InnerIPSec"), + "InnerIPSecRange": InnerIPSecRange.from_dict(obj["InnerIPSecRange"]) if obj.get("InnerIPSecRange") is not None else None, + "LocalSubConfig": LocalSubnetConfig.from_dict(obj["LocalSubConfig"]) if obj.get("LocalSubConfig") is not None else None, "MultiP2OverP1": obj.get("MultiP2OverP1"), "ProtectedSubConfig": ProtectedSubnetConfig.from_dict(obj["ProtectedSubConfig"]) if obj.get("ProtectedSubConfig") is not None else None, "PublicPeer": obj.get("PublicPeer"), diff --git a/cyperf/models/ip_sec_stack.py b/cyperf/models/ip_sec_stack.py index b1529b6..f4e1da1 100644 --- a/cyperf/models/ip_sec_stack.py +++ b/cyperf/models/ip_sec_stack.py @@ -40,7 +40,7 @@ class IPSecStack(BaseModel): enable_rekey: StrictBool = Field(alias="EnableRekey") ip_sec_range: Optional[IPSecRange] = Field(default=None, alias="IPSecRange") ip_sec_stack_name: Annotated[str, Field(strict=True)] = Field(alias="IPSecStackName") - local_sub_config: Optional[LocalSubnetConfig] = Field(default=None, alias="LocalSubConfig") + local_sub_config: Optional[LocalSubnetConfig] = Field(default=None, description="Deeprecated. Use IPSecRange.LocalSubConfig instead.", alias="LocalSubConfig") log_keys: StrictBool = Field(alias="LogKeys") max_initiation_rate: StrictInt = Field(alias="MaxInitiationRate") max_pending: StrictInt = Field(alias="MaxPending") diff --git a/cyperf/models/llmapi_profile.py b/cyperf/models/llmapi_profile.py new file mode 100644 index 0000000..163ce6e --- /dev/null +++ b/cyperf/models/llmapi_profile.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.connection import Connection +from cyperf.models.params import Params +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class LLMAPIProfile(BaseModel): + """ + LLMAPIProfile + """ # noqa: E501 + connections: Optional[List[Connection]] = Field(default=None, alias="Connections") + id: StrictStr + is_enabled: StrictBool = Field(alias="isEnabled") + links: Optional[List[APILink]] = None + model_name: StrictStr = Field(alias="modelName") + params: Optional[List[Params]] = None + __properties: ClassVar[List[str]] = ["Connections", "id", "isEnabled", "links", "modelName", "params"] + + @field_validator('model_name') + def model_name_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['OpenAI', 'Gemini', 'Grok']): + raise ValueError("must be one of enum values ('OpenAI', 'Gemini', 'Grok')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LLMAPIProfile from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in connections (list) + _items = [] + if self.connections: + for _item in self.connections: + if _item: + _items.append(_item.to_dict()) + _dict['Connections'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in params (list) + _items = [] + if self.params: + for _item in self.params: + if _item: + _items.append(_item.to_dict()) + _dict['params'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LLMAPIProfile from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), + "id": obj.get("id"), + "isEnabled": obj.get("isEnabled"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "modelName": obj.get("modelName"), + "params": ( [Params.from_dict(_item) for _item in obj.get("params", [])] if obj.get("params") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 7eb494d..a5f6755 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -33,6 +33,7 @@ class Metadata(BaseModel): """ # noqa: E501 direction: Optional[StrictStr] = Field(default=None, description="The direction of the strike", alias="Direction") is_banner: Optional[StrictBool] = Field(default=None, description="Indicates that this is a command that is required, can only be add once and also must be the first", alias="IsBanner") + is_llm_strike: Optional[StrictBool] = Field(default=None, description="Indicates if the command is an LLM strike", alias="IsLLMStrike") is_streaming: Optional[StrictBool] = Field(default=None, description="Indicates if the application's traffic is a UDP stream", alias="IsStreaming") keywords: Optional[List[AppsecAppMetadataKeywordsInner]] = Field(default=None, description="The keywords of the strike", alias="Keywords") legacy_names: Optional[List[StrictStr]] = Field(default=None, description="The names of the equivalent application/strike", alias="LegacyNames") @@ -47,7 +48,7 @@ class Metadata(BaseModel): static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -121,6 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Direction": obj.get("Direction"), "IsBanner": obj.get("IsBanner"), + "IsLLMStrike": obj.get("IsLLMStrike"), "IsStreaming": obj.get("IsStreaming"), "Keywords": ( [AppsecAppMetadataKeywordsInner.from_dict(_item) for _item in obj.get("Keywords", [])] if obj.get("Keywords") is not None else None), "LegacyNames": obj.get("LegacyNames") if obj.get("LegacyNames") is not None else [], diff --git a/cyperf/models/objective_type.py b/cyperf/models/objective_type.py index 06398b2..8d74656 100644 --- a/cyperf/models/objective_type.py +++ b/cyperf/models/objective_type.py @@ -32,6 +32,7 @@ class ObjectiveType(str, Enum): CONNECTIONS_PER_SECOND = 'Connections per second' FLOW_RATE = 'Flow rate' CONCURRENT_CONNECTIONS = 'Concurrent connections' + PROMPTS_PER_SECOND = 'Prompts per second' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/set_controller_app_operation.py b/cyperf/models/set_controller_app_operation.py new file mode 100644 index 0000000..c98904d --- /dev/null +++ b/cyperf/models/set_controller_app_operation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SetControllerAppOperation(BaseModel): + """ + SetControllerAppOperation + """ # noqa: E501 + app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the controllers.", alias="appId") + controllers: Optional[List[StrictStr]] = Field(default=None, description="The controller ids for which to activate the app.") + force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") + __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetControllerAppOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetControllerAppOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "appId": obj.get("appId"), + "controllers": obj.get("controllers") if obj.get("controllers") is not None else [], + "force": obj.get("force") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/set_nodes_app_operation.py b/cyperf/models/set_nodes_app_operation.py new file mode 100644 index 0000000..7975d63 --- /dev/null +++ b/cyperf/models/set_nodes_app_operation.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.nodes_by_controller import NodesByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SetNodesAppOperation(BaseModel): + """ + SetNodesAppOperation + """ # noqa: E501 + app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the compute nodes.", alias="appId") + controllers: Optional[List[NodesByController]] = Field(default=None, description="The controllers that the compute nodes are part of.") + force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") + __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetNodesAppOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetNodesAppOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "appId": obj.get("appId"), + "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), + "force": obj.get("force") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/system_info.py b/cyperf/models/system_info.py index ef1ac72..fa85792 100644 --- a/cyperf/models/system_info.py +++ b/cyperf/models/system_info.py @@ -30,12 +30,13 @@ class SystemInfo(BaseModel): """ SystemInfo """ # noqa: E501 + arch: Optional[StrictStr] = None chassis_info: Optional[ChassisInfo] = Field(default=None, alias="chassisInfo") kernel_version: Optional[StrictStr] = Field(default=None, alias="kernelVersion") os_name: Optional[StrictStr] = Field(default=None, alias="osName") port_manager_version: Optional[StrictStr] = Field(default=None, alias="portManagerVersion") traffic_agent_info: Optional[List[TrafficAgentInfo]] = Field(default=None, alias="trafficAgentInfo") - __properties: ClassVar[List[str]] = ["chassisInfo", "kernelVersion", "osName", "portManagerVersion", "trafficAgentInfo"] + __properties: ClassVar[List[str]] = ["arch", "chassisInfo", "kernelVersion", "osName", "portManagerVersion", "trafficAgentInfo"] model_config = ConfigDict( populate_by_name=True, @@ -71,8 +72,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "arch", "kernel_version", "os_name", "port_manager_version", @@ -108,7 +111,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "chassisInfo": ChassisInfo.from_dict(obj["chassisInfo"]) if obj.get("chassisInfo") is not None else None, + "arch": obj.get("arch"), + "chassisInfo": ChassisInfo.from_dict(obj["chassisInfo"]) if obj.get("chassisInfo") is not None else None, "kernelVersion": obj.get("kernelVersion"), "osName": obj.get("osName"), "portManagerVersion": obj.get("portManagerVersion"), diff --git a/cyperf/models/test_info.py b/cyperf/models/test_info.py index 9cce7fa..0a05bfd 100644 --- a/cyperf/models/test_info.py +++ b/cyperf/models/test_info.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.dashboard import Dashboard +from cyperf.models.test_usage import TestUsage from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -40,7 +41,8 @@ class TestInfo(BaseModel): test_initialized: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the last test was initialized", alias="testInitialized") test_started: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was started", alias="testStarted") test_stopped: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was stopped. May be null if the test is still running.", alias="testStopped") - __properties: ClassVar[List[str]] = ["dashboards", "defaultDashboardIndex", "defaultPollingInterval", "status", "testDetails", "testDuration", "testElapsed", "testId", "testInitialized", "testStarted", "testStopped"] + test_usage: Optional[TestUsage] = Field(default=None, alias="testUsage") + __properties: ClassVar[List[str]] = ["dashboards", "defaultDashboardIndex", "defaultPollingInterval", "status", "testDetails", "testDuration", "testElapsed", "testId", "testInitialized", "testStarted", "testStopped", "testUsage"] model_config = ConfigDict( populate_by_name=True, @@ -90,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['dashboards'] = _items + # override the default output from pydantic by calling `to_dict()` of test_usage + if self.test_usage: + _dict['testUsage'] = self.test_usage.to_dict() return _dict @classmethod @@ -114,7 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "testId": obj.get("testId"), "testInitialized": obj.get("testInitialized"), "testStarted": obj.get("testStarted"), - "testStopped": obj.get("testStopped") + "testStopped": obj.get("testStopped"), + "testUsage": TestUsage.from_dict(obj["testUsage"]) if obj.get("testUsage") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/test_usage.py b/cyperf/models/test_usage.py new file mode 100644 index 0000000..79a4446 --- /dev/null +++ b/cyperf/models/test_usage.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class TestUsage(BaseModel): + """ + TestUsage + """ # noqa: E501 + used_agents: Optional[List[StrictStr]] = Field(default=None, description="The agents used by the current test", alias="usedAgents") + used_licenses: Optional[Dict[str, StrictInt]] = Field(default=None, description="Feature types used by the current test and their respective counts", alias="usedLicenses") + __properties: ClassVar[List[str]] = ["usedAgents", "usedLicenses"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TestUsage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TestUsage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "usedAgents": obj.get("usedAgents") if obj.get("usedAgents") is not None else [], + "usedLicenses": obj.get("usedLicenses") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/transport_profile.py b/cyperf/models/transport_profile.py index e967b52..dc7a1c6 100644 --- a/cyperf/models/transport_profile.py +++ b/cyperf/models/transport_profile.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.http_profile import HTTPProfile +from cyperf.models.llmapi_profile import LLMAPIProfile from cyperf.models.quic_profile import QUICProfile from cyperf.models.rtp_profile import RTPProfile from cyperf.models.tcp_profile import TcpProfile @@ -40,6 +41,7 @@ class TransportProfile(BaseModel): client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") client_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ClientTcpProfile") ip_tos: Optional[StrictInt] = Field(default=None, alias="IpTos") + llmapi_profiles: Optional[List[LLMAPIProfile]] = Field(default=None, alias="LLMAPIProfiles") rtp_profile: Optional[RTPProfile] = Field(default=None, alias="RTPProfile") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") @@ -49,7 +51,7 @@ class TransportProfile(BaseModel): vlan_prio: Optional[StrictInt] = Field(default=None, alias="VlanPrio") links: Optional[List[APILink]] = None l4_profile_name: StrictStr = Field(alias="L4ProfileName") - __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links", "L4ProfileName"] + __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "LLMAPIProfiles", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links", "L4ProfileName"] model_config = ConfigDict( populate_by_name=True, @@ -102,6 +104,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_tcp_profile if self.client_tcp_profile: _dict['ClientTcpProfile'] = self.client_tcp_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in llmapi_profiles (list) + _items = [] + if self.llmapi_profiles: + for _item in self.llmapi_profiles: + if _item: + _items.append(_item.to_dict()) + _dict['LLMAPIProfiles'] = _items # override the default output from pydantic by calling `to_dict()` of rtp_profile if self.rtp_profile: _dict['RTPProfile'] = self.rtp_profile.to_dict() @@ -146,6 +155,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "ClientTcpProfile": TcpProfile.from_dict(obj["ClientTcpProfile"]) if obj.get("ClientTcpProfile") is not None else None, "IpTos": obj.get("IpTos"), + "LLMAPIProfiles": ( [LLMAPIProfile.from_dict(_item) for _item in obj.get("LLMAPIProfiles", [])] if obj.get("LLMAPIProfiles") is not None else None), "RTPProfile": RTPProfile.from_dict(obj["RTPProfile"]) if obj.get("RTPProfile") is not None else None, "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, diff --git a/cyperf/models/transport_profile_base.py b/cyperf/models/transport_profile_base.py index ab38b44..d060bad 100644 --- a/cyperf/models/transport_profile_base.py +++ b/cyperf/models/transport_profile_base.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.http_profile import HTTPProfile +from cyperf.models.llmapi_profile import LLMAPIProfile from cyperf.models.quic_profile import QUICProfile from cyperf.models.rtp_profile import RTPProfile from cyperf.models.tcp_profile import TcpProfile @@ -40,6 +41,7 @@ class TransportProfileBase(BaseModel): client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") client_tcp_profile: Optional[TcpProfile] = Field(default=None, alias="ClientTcpProfile") ip_tos: Optional[StrictInt] = Field(default=None, alias="IpTos") + llmapi_profiles: Optional[List[LLMAPIProfile]] = Field(default=None, alias="LLMAPIProfiles") rtp_profile: Optional[RTPProfile] = Field(default=None, alias="RTPProfile") server_http_profile: Optional[HTTPProfile] = Field(default=None, description="The server HTTP profile used in the Scenario.", alias="ServerHTTPProfile") server_quic_profile: Optional[QUICProfile] = Field(default=None, alias="ServerQUICProfile") @@ -48,7 +50,7 @@ class TransportProfileBase(BaseModel): udp_profile: Optional[UdpProfile] = Field(default=None, alias="UdpProfile") vlan_prio: Optional[StrictInt] = Field(default=None, alias="VlanPrio") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links"] + __properties: ClassVar[List[str]] = ["ClientHTTPProfile", "ClientQUICProfile", "ClientTLSProfile", "ClientTcpProfile", "IpTos", "LLMAPIProfiles", "RTPProfile", "ServerHTTPProfile", "ServerQUICProfile", "ServerTLSProfile", "ServerTcpProfile", "UdpProfile", "VlanPrio", "links"] model_config = ConfigDict( populate_by_name=True, @@ -101,6 +103,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of client_tcp_profile if self.client_tcp_profile: _dict['ClientTcpProfile'] = self.client_tcp_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in llmapi_profiles (list) + _items = [] + if self.llmapi_profiles: + for _item in self.llmapi_profiles: + if _item: + _items.append(_item.to_dict()) + _dict['LLMAPIProfiles'] = _items # override the default output from pydantic by calling `to_dict()` of rtp_profile if self.rtp_profile: _dict['RTPProfile'] = self.rtp_profile.to_dict() @@ -145,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "ClientTcpProfile": TcpProfile.from_dict(obj["ClientTcpProfile"]) if obj.get("ClientTcpProfile") is not None else None, "IpTos": obj.get("IpTos"), + "LLMAPIProfiles": ( [LLMAPIProfile.from_dict(_item) for _item in obj.get("LLMAPIProfiles", [])] if obj.get("LLMAPIProfiles") is not None else None), "RTPProfile": RTPProfile.from_dict(obj["RTPProfile"]) if obj.get("RTPProfile") is not None else None, "ServerHTTPProfile": HTTPProfile.from_dict(obj["ServerHTTPProfile"]) if obj.get("ServerHTTPProfile") is not None else None, "ServerQUICProfile": QUICProfile.from_dict(obj["ServerQUICProfile"]) if obj.get("ServerQUICProfile") is not None else None, diff --git a/cyperf/models/tunnel_range.py b/cyperf/models/tunnel_range.py index f6374aa..91b6787 100644 --- a/cyperf/models/tunnel_range.py +++ b/cyperf/models/tunnel_range.py @@ -35,17 +35,18 @@ class TunnelRange(BaseModel): The Tunnel Range assigned to the current test configuration """ # noqa: E501 cisco_any_connect_settings: Optional[CiscoAnyConnectSettings] = Field(default=None, alias="CiscoAnyConnectSettings") - dcp_request_timeout: Optional[StrictInt] = Field(default=None, alias="DCPRequestTimeout") + dcp_request_timeout: StrictInt = Field(alias="DCPRequestTimeout") dns_resolver: Optional[DNSResolver] = Field(default=None, alias="DNSResolver") f5_settings: Optional[F5Settings] = Field(default=None, alias="F5Settings") fortinet_settings: Optional[FortinetSettings] = Field(default=None, alias="FortinetSettings") pangp_settings: Optional[PANGPSettings] = Field(default=None, alias="PANGPSettings") tcp_dst_port: StrictInt = Field(alias="TcpDstPort") tunnel_count_per_outer_ip: StrictInt = Field(alias="TunnelCountPerOuterIP") + tunnel_establishment_reattempts: Optional[StrictInt] = Field(default=None, alias="TunnelEstablishmentReattempts") tunnel_establishment_timeout: Optional[StrictInt] = Field(default=None, alias="TunnelEstablishmentTimeout") vendor_type: StrictStr = Field(alias="VendorType") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["CiscoAnyConnectSettings", "DCPRequestTimeout", "DNSResolver", "F5Settings", "FortinetSettings", "PANGPSettings", "TcpDstPort", "TunnelCountPerOuterIP", "TunnelEstablishmentTimeout", "VendorType", "links"] + __properties: ClassVar[List[str]] = ["CiscoAnyConnectSettings", "DCPRequestTimeout", "DNSResolver", "F5Settings", "FortinetSettings", "PANGPSettings", "TcpDstPort", "TunnelCountPerOuterIP", "TunnelEstablishmentReattempts", "TunnelEstablishmentTimeout", "VendorType", "links"] @field_validator('vendor_type') def vendor_type_validate_enum(cls, value): @@ -137,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PANGPSettings": PANGPSettings.from_dict(obj["PANGPSettings"]) if obj.get("PANGPSettings") is not None else None, "TcpDstPort": obj.get("TcpDstPort"), "TunnelCountPerOuterIP": obj.get("TunnelCountPerOuterIP"), + "TunnelEstablishmentReattempts": obj.get("TunnelEstablishmentReattempts"), "TunnelEstablishmentTimeout": obj.get("TunnelEstablishmentTimeout"), "VendorType": obj.get("VendorType"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) diff --git a/docs/Action.md b/docs/Action.md index 029277d..0e584a6 100644 --- a/docs/Action.md +++ b/docs/Action.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **is_banner** | **bool** | Indicates if this is a required action, can only be add once and also must be the first | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **is_hostname** | **int** | | [optional] +**is_llm_strike** | **bool** | A value that indicates if the action is an LLM strike. | [optional] **is_strike** | **bool** | A value that indicates if the action is a strike. | [optional] **name** | **str** | The name of the action. | [optional] **params** | [**List[Params]**](Params.md) | | [optional] diff --git a/docs/ActionBase.md b/docs/ActionBase.md index 75140aa..be8a2e2 100644 --- a/docs/ActionBase.md +++ b/docs/ActionBase.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **is_banner** | **bool** | Indicates if this is a required action, can only be add once and also must be the first | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **is_hostname** | **int** | | [optional] +**is_llm_strike** | **bool** | A value that indicates if the action is an LLM strike. | [optional] **is_strike** | **bool** | A value that indicates if the action is a strike. | [optional] **name** | **str** | The name of the action. | [optional] **params** | [**List[Params]**](Params.md) | | [optional] diff --git a/docs/Agent.md b/docs/Agent.md index 649c8a1..97c003b 100644 --- a/docs/Agent.md +++ b/docs/Agent.md @@ -6,9 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **agent_tags** | **List[str]** | A list of tags | [optional] +**display_name_format** | **str** | display agent name format | [optional] **ip** | **str** | The management IP of the agent | [optional] [readonly] **interfaces** | [**List[Interface]**](Interface.md) | A list of test interfaces available on the agent | [optional] **last_update** | **int** | A Unix timestamp that indicates when the agent was last updated | [optional] [readonly] +**port_id_format** | **str** | port agent id format | [optional] **reservation_id** | **str** | The ID of the reservation | [optional] [readonly] **selected_env** | [**SelectedEnv**](SelectedEnv.md) | | [optional] **selection_status** | **str** | The current status of the selection operation | [optional] diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index 35bdfd2..e0b7374 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -28,6 +28,7 @@ Method | HTTP request | Description [**start_controllers_reboot_port**](AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | [**start_controllers_set_app**](AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | [**start_controllers_set_node_aggregation**](AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | +[**start_controllers_set_node_app**](AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | [**start_controllers_set_port_link_state**](AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | [**start_controllers_update_port_tags**](AgentsApi.md#start_controllers_update_port_tags) | **POST** /api/v2/controllers/operations/update-port-tags | @@ -1772,7 +1773,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start_controllers_set_app** -> AsyncContext start_controllers_set_app(set_app_operation=set_app_operation) +> AsyncContext start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) @@ -1786,7 +1787,7 @@ Set the active app of the controllers. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_app_operation import SetAppOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.rest import ApiException from pprint import pprint @@ -1809,10 +1810,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_app_operation = cyperf.SetAppOperation() # SetAppOperation | (optional) + set_controller_app_operation = cyperf.SetControllerAppOperation() # SetControllerAppOperation | (optional) try: - api_response = api_instance.start_controllers_set_app(set_app_operation=set_app_operation) + api_response = api_instance.start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) print("The response of AgentsApi->start_controllers_set_app:\n") pprint(api_response) except Exception as e: @@ -1826,7 +1827,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_app_operation** | [**SetAppOperation**](SetAppOperation.md)| | [optional] + **set_controller_app_operation** | [**SetControllerAppOperation**](SetControllerAppOperation.md)| | [optional] ### Return type @@ -1927,6 +1928,84 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_controllers_set_node_app** +> AsyncContext start_controllers_set_node_app(set_nodes_app_operation=set_nodes_app_operation) + + + +Set the active app of the compute nodes. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + set_nodes_app_operation = cyperf.SetNodesAppOperation() # SetNodesAppOperation | (optional) + + try: + api_response = api_instance.start_controllers_set_node_app(set_nodes_app_operation=set_nodes_app_operation) + print("The response of AgentsApi->start_controllers_set_node_app:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->start_controllers_set_node_app: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **set_nodes_app_operation** | [**SetNodesAppOperation**](SetNodesAppOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_controllers_set_port_link_state** > AsyncContext start_controllers_set_port_link_state(set_link_state_operation=set_link_state_operation) diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index 080d75e..ba91e49 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -22,6 +22,7 @@ Method | HTTP request | Description [**delete_resources_tls_dh**](ApplicationResourcesApi.md#delete_resources_tls_dh) | **DELETE** /api/v2/resources/tls-dhs/{tlsDhId} | [**delete_resources_tls_key**](ApplicationResourcesApi.md#delete_resources_tls_key) | **DELETE** /api/v2/resources/tls-keys/{tlsKeyId} | [**delete_resources_user_defined_app**](ApplicationResourcesApi.md#delete_resources_user_defined_app) | **DELETE** /api/v2/resources/user-defined-apps/{userDefinedAppId} | +[**delete_resources_voice_custom_flow**](ApplicationResourcesApi.md#delete_resources_voice_custom_flow) | **DELETE** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | [**get_capture_flows**](ApplicationResourcesApi.md#get_capture_flows) | **GET** /api/v2/resources/captures/{captureId}/flows | [**get_flow_exchanges**](ApplicationResourcesApi.md#get_flow_exchanges) | **GET** /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges | [**get_resources_app_by_id**](ApplicationResourcesApi.md#get_resources_app_by_id) | **GET** /api/v2/resources/apps/{appId} | @@ -60,6 +61,8 @@ Method | HTTP request | Description [**get_resources_http_library_upload_file_result**](ApplicationResourcesApi.md#get_resources_http_library_upload_file_result) | **GET** /api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result | [**get_resources_http_profile_by_id**](ApplicationResourcesApi.md#get_resources_http_profile_by_id) | **GET** /api/v2/resources/http-profiles/{httpProfileId} | [**get_resources_http_profiles**](ApplicationResourcesApi.md#get_resources_http_profiles) | **GET** /api/v2/resources/http-profiles | +[**get_resources_llm_api_profile_by_id**](ApplicationResourcesApi.md#get_resources_llm_api_profile_by_id) | **GET** /api/v2/resources/llm-api-profiles/{llmApiProfileId} | +[**get_resources_llm_api_profiles**](ApplicationResourcesApi.md#get_resources_llm_api_profiles) | **GET** /api/v2/resources/llm-api-profiles | [**get_resources_media_file_by_id**](ApplicationResourcesApi.md#get_resources_media_file_by_id) | **GET** /api/v2/resources/media-files/{mediaFileId} | [**get_resources_media_file_content_file**](ApplicationResourcesApi.md#get_resources_media_file_content_file) | **GET** /api/v2/resources/media-files/{mediaFileId}/contentFile | [**get_resources_media_files**](ApplicationResourcesApi.md#get_resources_media_files) | **GET** /api/v2/resources/media-files | @@ -110,6 +113,10 @@ Method | HTTP request | Description [**get_resources_tls_keys_upload_file_result**](ApplicationResourcesApi.md#get_resources_tls_keys_upload_file_result) | **GET** /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result | [**get_resources_user_defined_apps**](ApplicationResourcesApi.md#get_resources_user_defined_apps) | **GET** /api/v2/resources/user-defined-apps | [**get_resources_user_defined_apps_upload_file_result**](ApplicationResourcesApi.md#get_resources_user_defined_apps_upload_file_result) | **GET** /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result | +[**get_resources_voice_custom_flow_by_id**](ApplicationResourcesApi.md#get_resources_voice_custom_flow_by_id) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId} | +[**get_resources_voice_custom_flow_content_file**](ApplicationResourcesApi.md#get_resources_voice_custom_flow_content_file) | **GET** /api/v2/resources/voice-custom-flows/{voiceCustomFlowId}/contentFile | +[**get_resources_voice_custom_flows**](ApplicationResourcesApi.md#get_resources_voice_custom_flows) | **GET** /api/v2/resources/voice-custom-flows | +[**get_resources_voice_custom_flows_upload_file_result**](ApplicationResourcesApi.md#get_resources_voice_custom_flows_upload_file_result) | **GET** /api/v2/resources/voice-custom-flows/operations/uploadFile/{uploadFileId}/result | [**start_resources_apps_export_all**](ApplicationResourcesApi.md#start_resources_apps_export_all) | **POST** /api/v2/resources/apps/operations/export-all | [**start_resources_captures_batch_delete**](ApplicationResourcesApi.md#start_resources_captures_batch_delete) | **POST** /api/v2/resources/captures/operations/batch-delete | [**start_resources_captures_encrypted_upload_file**](ApplicationResourcesApi.md#start_resources_captures_encrypted_upload_file) | **POST** /api/v2/resources/captures/encrypted/operations/uploadFile | @@ -142,6 +149,7 @@ Method | HTTP request | Description [**start_resources_tls_keys_upload_file**](ApplicationResourcesApi.md#start_resources_tls_keys_upload_file) | **POST** /api/v2/resources/tls-keys/operations/uploadFile | [**start_resources_user_defined_apps_export_all**](ApplicationResourcesApi.md#start_resources_user_defined_apps_export_all) | **POST** /api/v2/resources/user-defined-apps/operations/export-all | [**start_resources_user_defined_apps_upload_file**](ApplicationResourcesApi.md#start_resources_user_defined_apps_upload_file) | **POST** /api/v2/resources/user-defined-apps/operations/uploadFile | +[**start_resources_voice_custom_flows_upload_file**](ApplicationResourcesApi.md#start_resources_voice_custom_flows_upload_file) | **POST** /api/v2/resources/voice-custom-flows/operations/uploadFile | # **delete_resources_capture** @@ -1511,6 +1519,82 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_resources_voice_custom_flow** +> delete_resources_voice_custom_flow(voice_custom_flow_id) + + + +Delete a particular voice custom flow. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + voice_custom_flow_id = 'voice_custom_flow_id_example' # str | The ID of the voice custom flow. + + try: + api_instance.delete_resources_voice_custom_flow(voice_custom_flow_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->delete_resources_voice_custom_flow: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voice_custom_flow_id** | **str**| The ID of the voice custom flow. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The voice custom flow was successfully deleted. | - | +**401** | Authorization information is missing or invalid. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_capture_flows** > List[AppFlow] get_capture_flows(capture_id, take=take, skip=skip) @@ -4529,6 +4613,165 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_resources_llm_api_profile_by_id** +> LLMAPIProfile get_resources_llm_api_profile_by_id(llm_api_profile_id) + + + +Get a particular LLM API profile. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.llmapi_profile import LLMAPIProfile +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + llm_api_profile_id = 'llm_api_profile_id_example' # str | The ID of the llm api profile. + + try: + api_response = api_instance.get_resources_llm_api_profile_by_id(llm_api_profile_id) + print("The response of ApplicationResourcesApi->get_resources_llm_api_profile_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_llm_api_profile_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **llm_api_profile_id** | **str**| The ID of the llm api profile. | + +### Return type + +[**LLMAPIProfile**](LLMAPIProfile.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The requested LLM API profile | - | +**404** | An LLM API profile with the specified ID was not found. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resources_llm_api_profiles** +> GetResourcesLlmApiProfiles200Response get_resources_llm_api_profiles(take=take, skip=skip) + + + +Get all the available LLM API profiles. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_resources_llm_api_profiles200_response import GetResourcesLlmApiProfiles200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_resources_llm_api_profiles(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_llm_api_profiles:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_llm_api_profiles: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**GetResourcesLlmApiProfiles200Response**](GetResourcesLlmApiProfiles200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of LLM API profiles | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_resources_media_file_by_id** > GenericFile get_resources_media_file_by_id(media_file_id) @@ -8464,12 +8707,12 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_resources_apps_export_all** -> AsyncContext start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) +# **get_resources_voice_custom_flow_by_id** +> GenericFile get_resources_voice_custom_flow_by_id(voice_custom_flow_id) -Export all apps created by the user. Optionally, provide a list of app IDs to export. +Get a particular voice custom flow. ### Example @@ -8478,8 +8721,7 @@ Export all apps created by the user. Optionally, provide a list of app IDs to ex ```python import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.models.export_apps_operation_input import ExportAppsOperationInput +from cyperf.models.generic_file import GenericFile from cyperf.rest import ApiException from pprint import pprint @@ -8502,14 +8744,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - export_apps_operation_input = cyperf.ExportAppsOperationInput() # ExportAppsOperationInput | (optional) + voice_custom_flow_id = 'voice_custom_flow_id_example' # str | The ID of the voice custom flow. try: - api_response = api_instance.start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) - print("The response of ApplicationResourcesApi->start_resources_apps_export_all:\n") + api_response = api_instance.get_resources_voice_custom_flow_by_id(voice_custom_flow_id) + print("The response of ApplicationResourcesApi->get_resources_voice_custom_flow_by_id:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->start_resources_apps_export_all: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flow_by_id: %s\n" % e) ``` @@ -8519,11 +8761,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **export_apps_operation_input** | [**ExportAppsOperationInput**](ExportAppsOperationInput.md)| | [optional] + **voice_custom_flow_id** | **str**| The ID of the voice custom flow. | ### Return type -[**AsyncContext**](AsyncContext.md) +[**GenericFile**](GenericFile.md) ### Authorization @@ -8531,23 +8773,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Details about the operation that just started | - | +**200** | The requested voice custom flow | - | +**401** | Authorization information is missing or invalid. | - | +**404** | A voice custom flow with the specified ID was not found. | - | +**500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_resources_captures_batch_delete** -> AsyncContext start_resources_captures_batch_delete() +# **get_resources_voice_custom_flow_content_file** +> bytearray get_resources_voice_custom_flow_content_file(voice_custom_flow_id) -Delete one or more captures +Get the content of a particular voice custom flow file. ### Example @@ -8556,7 +8801,6 @@ Delete one or more captures ```python import cyperf -from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -8579,24 +8823,28 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) + voice_custom_flow_id = 'voice_custom_flow_id_example' # str | The ID of the voice custom flow. try: - api_response = api_instance.start_resources_captures_batch_delete() - print("The response of ApplicationResourcesApi->start_resources_captures_batch_delete:\n") + api_response = api_instance.get_resources_voice_custom_flow_content_file(voice_custom_flow_id) + print("The response of ApplicationResourcesApi->get_resources_voice_custom_flow_content_file:\n") pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->start_resources_captures_batch_delete: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flow_content_file: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voice_custom_flow_id** | **str**| The ID of the voice custom flow. | ### Return type -[**AsyncContext**](AsyncContext.md) +**bytearray** ### Authorization @@ -8605,22 +8853,23 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/octet-stream, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**202** | Details about the operation that just started | - | +**200** | The content of the voice custom flow file | - | +**404** | A voice custom flow file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_resources_captures_encrypted_upload_file** -> start_resources_captures_encrypted_upload_file(file=file) +# **get_resources_voice_custom_flows** +> GetResourcesCertificates200Response get_resources_voice_custom_flows(take=take, skip=skip) -Upload a file. +Get all the available voice custom flows. ### Example @@ -8629,6 +8878,7 @@ Upload a file. ```python import cyperf +from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response from cyperf.rest import ApiException from pprint import pprint @@ -8651,12 +8901,15 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - file = None # bytearray | (optional) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) try: - api_instance.start_resources_captures_encrypted_upload_file(file=file) + api_response = api_instance.get_resources_voice_custom_flows(take=take, skip=skip) + print("The response of ApplicationResourcesApi->get_resources_voice_custom_flows:\n") + pprint(api_response) except Exception as e: - print("Exception when calling ApplicationResourcesApi->start_resources_captures_encrypted_upload_file: %s\n" % e) + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flows: %s\n" % e) ``` @@ -8666,11 +8919,12 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **file** | **bytearray**| | [optional] + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] ### Return type -void (empty response body) +[**GetResourcesCertificates200Response**](GetResourcesCertificates200Response.md) ### Authorization @@ -8678,7 +8932,310 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: multipart/form-data + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of voice custom flows | - | +**401** | Authorization information is missing or invalid. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_resources_voice_custom_flows_upload_file_result** +> get_resources_voice_custom_flows_upload_file_result(upload_file_id) + + + +Get the result of the upload file operation. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + upload_file_id = 'upload_file_id_example' # str | The ID of the uploadfile. + + try: + api_instance.get_resources_voice_custom_flows_upload_file_result(upload_file_id) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->get_resources_voice_custom_flows_upload_file_result: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **upload_file_id** | **str**| The ID of the uploadfile. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The payload file that was added | - | +**400** | Bad request | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_resources_apps_export_all** +> AsyncContext start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) + + + +Export all apps created by the user. Optionally, provide a list of app IDs to export. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.export_apps_operation_input import ExportAppsOperationInput +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + export_apps_operation_input = cyperf.ExportAppsOperationInput() # ExportAppsOperationInput | (optional) + + try: + api_response = api_instance.start_resources_apps_export_all(export_apps_operation_input=export_apps_operation_input) + print("The response of ApplicationResourcesApi->start_resources_apps_export_all:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_apps_export_all: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **export_apps_operation_input** | [**ExportAppsOperationInput**](ExportAppsOperationInput.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_resources_captures_batch_delete** +> AsyncContext start_resources_captures_batch_delete() + + + +Delete one or more captures + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + + try: + api_response = api_instance.start_resources_captures_batch_delete() + print("The response of ApplicationResourcesApi->start_resources_captures_batch_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_captures_batch_delete: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_resources_captures_encrypted_upload_file** +> start_resources_captures_encrypted_upload_file(file=file) + + + +Upload a file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + file = None # bytearray | (optional) + + try: + api_instance.start_resources_captures_encrypted_upload_file(file=file) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_captures_encrypted_upload_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data - **Accept**: application/json ### HTTP response details @@ -10871,6 +11428,81 @@ with cyperf.ApiClient(configuration) as api_client: +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_resources_voice_custom_flows_upload_file** +> start_resources_voice_custom_flows_upload_file(file=file) + + + +Upload a file. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.ApplicationResourcesApi(api_client) + file = None # bytearray | (optional) + + try: + api_instance.start_resources_voice_custom_flows_upload_file(file=file) + except Exception as e: + print("Exception when calling ApplicationResourcesApi->start_resources_voice_custom_flows_upload_file: %s\n" % e) +``` + + + ### Parameters diff --git a/docs/Attack.md b/docs/Attack.md index 25e0e0d..5c27d6a 100644 --- a/docs/Attack.md +++ b/docs/Attack.md @@ -38,7 +38,9 @@ Name | Type | Description | Notes **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] +**inherit_llmapi** | **bool** | | [optional] **inherit_tls** | **bool** | | [optional] +**llmapi_profiles** | [**List[LLMAPIProfile]**](LLMAPIProfile.md) | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **supports_tls** | **bool** | | [optional] **tracks** | [**List[AttackTrack]**](AttackTrack.md) | | [optional] diff --git a/docs/AttackAction.md b/docs/AttackAction.md index 488b13b..cf9e1dd 100644 --- a/docs/AttackAction.md +++ b/docs/AttackAction.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **is_banner** | **bool** | Indicates if this is a required action, can only be add once and also must be the first | [optional] **is_deprecated** | **bool** | A value that indicates if the action is deprecated. | [optional] **is_hostname** | **int** | | [optional] +**is_llm_strike** | **bool** | A value that indicates if the action is an LLM strike. | [optional] **is_strike** | **bool** | A value that indicates if the action is a strike. | [optional] **name** | **str** | The name of the action. | [optional] **params** | [**List[Params]**](Params.md) | | [optional] diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md index 742d740..2696729 100644 --- a/docs/CommandMetadata.md +++ b/docs/CommandMetadata.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **direction** | **str** | The direction of the strike | [optional] **is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] **is_for_app_traffic_only** | **bool** | Indicates that this is a command that can only be used in application traffic and cannot be mixed with attack traffic | [optional] +**is_llm_strike** | **bool** | Indicates if the command is an LLM strike | [optional] **is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] **keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The keywords of the strike | [optional] **legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] diff --git a/docs/DUTNetwork.md b/docs/DUTNetwork.md index ff2f764..d44a65c 100644 --- a/docs/DUTNetwork.md +++ b/docs/DUTNetwork.md @@ -18,6 +18,8 @@ Name | Type | Description | Notes **https_health_check** | [**HealthCheckConfig**](HealthCheckConfig.md) | The HTTPS HealthCheck configuration for DUT | [optional] **hostname_suffix** | **str** | A suffix to be added to the Host header of all Apps/Attacks running through the forward proxy DUT (default: empty string). | [optional] **http_forward_proxy_mode** | **str** | Deprecated. This is ignored and the proxy mode will be deduced from the connection type. | [optional] +**llm_model** | **str** | The identifier of the LLM model to use for inference. | [optional] +**llm_request_url_path** | **str** | The endpoint URL for the LLM chat completions API. | [optional] **non_proxied_hosts** | [**Params**](Params.md) | | [optional] **pep_dut** | [**PepDUT**](PepDUT.md) | | [optional] **pep_dut_active** | **bool** | A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false) | [optional] diff --git a/docs/GetResourcesLlmApiProfiles200Response.md b/docs/GetResourcesLlmApiProfiles200Response.md new file mode 100644 index 0000000..cb21e3f --- /dev/null +++ b/docs/GetResourcesLlmApiProfiles200Response.md @@ -0,0 +1,30 @@ +# GetResourcesLlmApiProfiles200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[LLMAPIProfile]**](LLMAPIProfile.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_resources_llm_api_profiles200_response import GetResourcesLlmApiProfiles200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetResourcesLlmApiProfiles200Response from a JSON string +get_resources_llm_api_profiles200_response_instance = GetResourcesLlmApiProfiles200Response.from_json(json) +# print the JSON string representation of the object +print(GetResourcesLlmApiProfiles200Response.to_json()) + +# convert the object into a dict +get_resources_llm_api_profiles200_response_dict = get_resources_llm_api_profiles200_response_instance.to_dict() +# create an instance of GetResourcesLlmApiProfiles200Response from a dict +get_resources_llm_api_profiles200_response_from_dict = GetResourcesLlmApiProfiles200Response.from_dict(get_resources_llm_api_profiles200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetResourcesLlmApiProfiles200ResponseOneOf.md b/docs/GetResourcesLlmApiProfiles200ResponseOneOf.md new file mode 100644 index 0000000..fb2897f --- /dev/null +++ b/docs/GetResourcesLlmApiProfiles200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetResourcesLlmApiProfiles200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[LLMAPIProfile]**](LLMAPIProfile.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_resources_llm_api_profiles200_response_one_of import GetResourcesLlmApiProfiles200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetResourcesLlmApiProfiles200ResponseOneOf from a JSON string +get_resources_llm_api_profiles200_response_one_of_instance = GetResourcesLlmApiProfiles200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetResourcesLlmApiProfiles200ResponseOneOf.to_json()) + +# convert the object into a dict +get_resources_llm_api_profiles200_response_one_of_dict = get_resources_llm_api_profiles200_response_one_of_instance.to_dict() +# create an instance of GetResourcesLlmApiProfiles200ResponseOneOf from a dict +get_resources_llm_api_profiles200_response_one_of_from_dict = GetResourcesLlmApiProfiles200ResponseOneOf.from_dict(get_resources_llm_api_profiles200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPSecRange.md b/docs/IPSecRange.md index 040c969..49ff066 100644 --- a/docs/IPSecRange.md +++ b/docs/IPSecRange.md @@ -9,6 +9,9 @@ Name | Type | Description | Notes **ike_phase1_config** | [**P1Config**](P1Config.md) | | [optional] **ike_phase2_config** | [**P2Config**](P2Config.md) | | [optional] **ip_sec_range_name** | **str** | | +**inner_ip_sec** | **bool** | | [optional] +**inner_ip_sec_range** | [**InnerIPSecRange**](InnerIPSecRange.md) | | [optional] +**local_sub_config** | [**LocalSubnetConfig**](LocalSubnetConfig.md) | | [optional] **multi_p2_over_p1** | **bool** | | [optional] **protected_sub_config** | [**ProtectedSubnetConfig**](ProtectedSubnetConfig.md) | Deeprecated. Use RemoteSubConfig instead. | [optional] **public_peer** | **str** | | diff --git a/docs/IPSecStack.md b/docs/IPSecStack.md index 31afcf2..dbe15d8 100644 --- a/docs/IPSecStack.md +++ b/docs/IPSecStack.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **enable_rekey** | **bool** | | **ip_sec_range** | [**IPSecRange**](IPSecRange.md) | | [optional] **ip_sec_stack_name** | **str** | | -**local_sub_config** | [**LocalSubnetConfig**](LocalSubnetConfig.md) | | [optional] +**local_sub_config** | [**LocalSubnetConfig**](LocalSubnetConfig.md) | Deeprecated. Use IPSecRange.LocalSubConfig instead. | [optional] **log_keys** | **bool** | | **max_initiation_rate** | **int** | | **max_pending** | **int** | | diff --git a/docs/InnerIPSecRange.md b/docs/InnerIPSecRange.md new file mode 100644 index 0000000..5cfc1e9 --- /dev/null +++ b/docs/InnerIPSecRange.md @@ -0,0 +1,43 @@ +# InnerIPSecRange + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_auth_settings** | [**AuthenticationSettings**](AuthenticationSettings.md) | | [optional] +**ike_phase1_config** | [**P1Config**](P1Config.md) | | [optional] +**ike_phase2_config** | [**P2Config**](P2Config.md) | | [optional] +**ip_sec_range_name** | **str** | | +**local_sub_config** | [**LocalSubnetConfig**](LocalSubnetConfig.md) | | [optional] +**multi_p2_over_p1** | **bool** | | +**public_peer** | **str** | | +**public_peer_increment** | **str** | | +**remote_access** | [**RemoteAccess**](RemoteAccess.md) | | [optional] +**remote_sub_config** | [**RemoteSubnetConfig**](RemoteSubnetConfig.md) | | [optional] +**test_scenario** | **str** | | +**timers** | [**Timers**](Timers.md) | | [optional] +**tunnel_count_per_outer_ip** | **int** | | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.inner_ip_sec_range import InnerIPSecRange + +# TODO update the JSON string below +json = "{}" +# create an instance of InnerIPSecRange from a JSON string +inner_ip_sec_range_instance = InnerIPSecRange.from_json(json) +# print the JSON string representation of the object +print(InnerIPSecRange.to_json()) + +# convert the object into a dict +inner_ip_sec_range_dict = inner_ip_sec_range_instance.to_dict() +# create an instance of InnerIPSecRange from a dict +inner_ip_sec_range_from_dict = InnerIPSecRange.from_dict(inner_ip_sec_range_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LLMAPIProfile.md b/docs/LLMAPIProfile.md new file mode 100644 index 0000000..f4072b4 --- /dev/null +++ b/docs/LLMAPIProfile.md @@ -0,0 +1,34 @@ +# LLMAPIProfile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connections** | [**List[Connection]**](Connection.md) | | [optional] +**id** | **str** | | +**is_enabled** | **bool** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] +**model_name** | **str** | | +**params** | [**List[Params]**](Params.md) | | [optional] + +## Example + +```python +from cyperf.models.llmapi_profile import LLMAPIProfile + +# TODO update the JSON string below +json = "{}" +# create an instance of LLMAPIProfile from a JSON string +llmapi_profile_instance = LLMAPIProfile.from_json(json) +# print the JSON string representation of the object +print(LLMAPIProfile.to_json()) + +# convert the object into a dict +llmapi_profile_dict = llmapi_profile_instance.to_dict() +# create an instance of LLMAPIProfile from a dict +llmapi_profile_from_dict = LLMAPIProfile.from_dict(llmapi_profile_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Metadata.md b/docs/Metadata.md index d7fca70..dc1628f 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **direction** | **str** | The direction of the strike | [optional] **is_banner** | **bool** | Indicates that this is a command that is required, can only be add once and also must be the first | [optional] +**is_llm_strike** | **bool** | Indicates if the command is an LLM strike | [optional] **is_streaming** | **bool** | Indicates if the application's traffic is a UDP stream | [optional] **keywords** | [**List[AppsecAppMetadataKeywordsInner]**](AppsecAppMetadataKeywordsInner.md) | The keywords of the strike | [optional] **legacy_names** | **List[str]** | The names of the equivalent application/strike | [optional] diff --git a/docs/ObjectiveType.md b/docs/ObjectiveType.md index 02ba538..6ed880e 100644 --- a/docs/ObjectiveType.md +++ b/docs/ObjectiveType.md @@ -13,6 +13,8 @@ * `CONCURRENT_CONNECTIONS` (value: `'Concurrent connections'`) +* `PROMPTS_PER_SECOND` (value: `'Prompts per second'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SetControllerAppOperation.md b/docs/SetControllerAppOperation.md new file mode 100644 index 0000000..a30cc4e --- /dev/null +++ b/docs/SetControllerAppOperation.md @@ -0,0 +1,31 @@ +# SetControllerAppOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_id** | **str** | The id of the app to activate on the controllers. | [optional] +**controllers** | **List[str]** | The controller ids for which to activate the app. | [optional] +**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] + +## Example + +```python +from cyperf.models.set_controller_app_operation import SetControllerAppOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of SetControllerAppOperation from a JSON string +set_controller_app_operation_instance = SetControllerAppOperation.from_json(json) +# print the JSON string representation of the object +print(SetControllerAppOperation.to_json()) + +# convert the object into a dict +set_controller_app_operation_dict = set_controller_app_operation_instance.to_dict() +# create an instance of SetControllerAppOperation from a dict +set_controller_app_operation_from_dict = SetControllerAppOperation.from_dict(set_controller_app_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetNodesAppOperation.md b/docs/SetNodesAppOperation.md new file mode 100644 index 0000000..21446da --- /dev/null +++ b/docs/SetNodesAppOperation.md @@ -0,0 +1,31 @@ +# SetNodesAppOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_id** | **str** | The id of the app to activate on the compute nodes. | [optional] +**controllers** | [**List[NodesByController]**](NodesByController.md) | The controllers that the compute nodes are part of. | [optional] +**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] + +## Example + +```python +from cyperf.models.set_nodes_app_operation import SetNodesAppOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of SetNodesAppOperation from a JSON string +set_nodes_app_operation_instance = SetNodesAppOperation.from_json(json) +# print the JSON string representation of the object +print(SetNodesAppOperation.to_json()) + +# convert the object into a dict +set_nodes_app_operation_dict = set_nodes_app_operation_instance.to_dict() +# create an instance of SetNodesAppOperation from a dict +set_nodes_app_operation_from_dict = SetNodesAppOperation.from_dict(set_nodes_app_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SystemInfo.md b/docs/SystemInfo.md index 06b74bc..c97c1c5 100644 --- a/docs/SystemInfo.md +++ b/docs/SystemInfo.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**arch** | **str** | | [optional] [readonly] **chassis_info** | [**ChassisInfo**](ChassisInfo.md) | | [optional] **kernel_version** | **str** | | [optional] [readonly] **os_name** | **str** | | [optional] [readonly] diff --git a/docs/TestInfo.md b/docs/TestInfo.md index 2cc3e3a..55b5c0e 100644 --- a/docs/TestInfo.md +++ b/docs/TestInfo.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **test_initialized** | **int** | A Unix timestamp that indicates when the last test was initialized | [optional] **test_started** | **int** | A Unix timestamp that indicates when the test was started | [optional] **test_stopped** | **int** | A Unix timestamp that indicates when the test was stopped. May be null if the test is still running. | [optional] +**test_usage** | [**TestUsage**](TestUsage.md) | | [optional] ## Example diff --git a/docs/TestUsage.md b/docs/TestUsage.md new file mode 100644 index 0000000..332271a --- /dev/null +++ b/docs/TestUsage.md @@ -0,0 +1,30 @@ +# TestUsage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**used_agents** | **List[str]** | The agents used by the current test | [optional] +**used_licenses** | **Dict[str, int]** | Feature types used by the current test and their respective counts | [optional] + +## Example + +```python +from cyperf.models.test_usage import TestUsage + +# TODO update the JSON string below +json = "{}" +# create an instance of TestUsage from a JSON string +test_usage_instance = TestUsage.from_json(json) +# print the JSON string representation of the object +print(TestUsage.to_json()) + +# convert the object into a dict +test_usage_dict = test_usage_instance.to_dict() +# create an instance of TestUsage from a dict +test_usage_from_dict = TestUsage.from_dict(test_usage_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TransportProfile.md b/docs/TransportProfile.md index c774900..7d684cd 100644 --- a/docs/TransportProfile.md +++ b/docs/TransportProfile.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **client_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **ip_tos** | **int** | | [optional] +**llmapi_profiles** | [**List[LLMAPIProfile]**](LLMAPIProfile.md) | | [optional] **rtp_profile** | [**RTPProfile**](RTPProfile.md) | | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] **server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] diff --git a/docs/TransportProfileBase.md b/docs/TransportProfileBase.md index 7f9a509..59791bc 100644 --- a/docs/TransportProfileBase.md +++ b/docs/TransportProfileBase.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **client_tcp_profile** | [**TcpProfile**](TcpProfile.md) | | [optional] **ip_tos** | **int** | | [optional] +**llmapi_profiles** | [**List[LLMAPIProfile]**](LLMAPIProfile.md) | | [optional] **rtp_profile** | [**RTPProfile**](RTPProfile.md) | | [optional] **server_http_profile** | [**HTTPProfile**](HTTPProfile.md) | The server HTTP profile used in the Scenario. | [optional] **server_quic_profile** | [**QUICProfile**](QUICProfile.md) | | [optional] diff --git a/docs/TunnelRange.md b/docs/TunnelRange.md index d1ce0b0..3d63715 100644 --- a/docs/TunnelRange.md +++ b/docs/TunnelRange.md @@ -7,13 +7,14 @@ The Tunnel Range assigned to the current test configuration Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cisco_any_connect_settings** | [**CiscoAnyConnectSettings**](CiscoAnyConnectSettings.md) | | [optional] -**dcp_request_timeout** | **int** | | [optional] +**dcp_request_timeout** | **int** | | **dns_resolver** | [**DNSResolver**](DNSResolver.md) | | [optional] **f5_settings** | [**F5Settings**](F5Settings.md) | | [optional] **fortinet_settings** | [**FortinetSettings**](FortinetSettings.md) | | [optional] **pangp_settings** | [**PANGPSettings**](PANGPSettings.md) | | [optional] **tcp_dst_port** | **int** | | **tunnel_count_per_outer_ip** | **int** | | +**tunnel_establishment_reattempts** | **int** | | [optional] **tunnel_establishment_timeout** | **int** | | [optional] **vendor_type** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] From 75e39c0b5ddc22d1dd9ea222e92752eb2f117930 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Tue, 24 Mar 2026 04:03:54 -0600 Subject: [PATCH 29/53] Pull request #61: merge release branch in main Merge in ISGAPPSEC/cyperf-api-wrapper from release/26.0.0 to main Squashed commit of the following: commit 23f1f0a8f1332f2cb0b133589ec9da9cdda33455 Author: Iustin Mitu Date: Fri Mar 13 07:08:28 2026 -0600 Pull request #59: fix version format Merge in ISGAPPSEC/cyperf-api-wrapper from fix-cyperf-new-version-format to release/26.0.0 Squashed commit of the following: commit d2bdad3c56c4101213e3b6a79be6671384eb8df1 Author: iustmitu Date: Fri Mar 13 14:44:41 2026 +0200 deleted python 3.7 dependencies commit f254f9fa59cfa6b3f9ef167af999575d4ba142ab Author: iustmitu Date: Fri Mar 13 14:29:36 2026 +0200 fix version format --- .github/workflows/python.yml | 2 +- .gitlab-ci.yml | 3 --- jenkins/JenkinsFile | 6 +++--- pyproject.toml | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index c65c358..5c5289c 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57724cd..17c1f15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,9 +14,6 @@ stages: - pip install -r test-requirements.txt - pytest --cov=cyperf -pytest-3.7: - extends: .pytest - image: python:3.7-alpine pytest-3.8: extends: .pytest image: python:3.8-alpine diff --git a/jenkins/JenkinsFile b/jenkins/JenkinsFile index bc0fd6c..3f7e4e3 100644 --- a/jenkins/JenkinsFile +++ b/jenkins/JenkinsFile @@ -38,16 +38,16 @@ def do_publish = params.publish_pypi @NonCPS boolean setDisplayVersion(publish) { branch_sanitized = branch.replaceAll('-', '.').replaceAll('_', '.').replaceAll('%2F', '-') - def matcher = Pattern.compile("^release%2F([0-9]+)\\.([0-9]+)\$").matcher(branch) + def matcher = Pattern.compile("^release%2F([0-9]+)\\.([0-9]+)\\.([0-9]+)\$").matcher(branch) if (matcher.matches()) { build_number = "dev${env.BUILD_NUMBER}+${branch_sanitized}" if (publish) { build_number = "${env.BUILD_NUMBER}" } - env.PIP_VERSION = "${matcher.group(1).toString()}.${matcher.group(2).toString()}.${build_number}" + env.PIP_VERSION = "${matcher.group(1).toString()}.${matcher.group(2).toString()}.${build_number}" env.DOCKER_VERSION = env.PIP_VERSION.replaceAll('\\+', '-') } else if (branch.startsWith("release%2F")) { - throw new Exception("Unexpected release branch format ${branch}, expected 'release%2fNUMBER.NUMBER'") + throw new Exception("Unexpected release branch format ${branch}, expected 'release%2fNUMBER.NUMBER.NUMBER'") } else { env.PIP_VERSION = "0.0.dev${env.BUILD_NUMBER}+${branch_sanitized}" env.DOCKER_VERSION = env.PIP_VERSION.replaceAll('\\+', '-') diff --git a/pyproject.toml b/pyproject.toml index 829fad5..8c74be2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "CyPerf Application API"] include = ["cyperf/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" From 01a22345230b21687fcebcef07deccc33c364952 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Wed, 25 Mar 2026 03:04:07 -0600 Subject: [PATCH 30/53] Pull request #62: ISGAPPSEC2-37143 (CW) can't filter notifications in dismiss notifications operation Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-37143-(CW)-can-t-filter-notifications-in-dismiss-notifications-operation to main Squashed commit of the following: commit f342b66782ff47a8252cfac6a22040b8b2efc242 Author: iustmitu Date: Tue Mar 24 16:21:57 2026 +0200 regenerated wrapper with dismiss operation parameter --- README.md | 4 +- cyperf/__init__.py | 1 + cyperf/api/notifications_api.py | 35 ++++++++++- cyperf/dynamic_models/__init__.py | 1 + cyperf/models/__init__.py | 1 + cyperf/models/dismiss_operation.py | 93 ++++++++++++++++++++++++++++++ docs/DismissOperation.md | 29 ++++++++++ docs/NotificationsApi.md | 15 +++-- 8 files changed, 168 insertions(+), 11 deletions(-) create mode 100644 cyperf/models/dismiss_operation.py create mode 100644 docs/DismissOperation.md diff --git a/README.md b/README.md index 407fbd2..4ecb076 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,6 @@ Then import the package: ```python import cyperf ``` -### Tests - -Execute `pytest` to run the tests. ## Getting Started @@ -499,6 +496,7 @@ Class | Method | HTTP request | Description - [DiagnosticComponentContext](docs/DiagnosticComponentContext.md) - [DiagnosticOptions](docs/DiagnosticOptions.md) - [DiskUsage](docs/DiskUsage.md) + - [DismissOperation](docs/DismissOperation.md) - [ESPOverUDPSettings](docs/ESPOverUDPSettings.md) - [EditActionInput](docs/EditActionInput.md) - [EditAppOperation](docs/EditAppOperation.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 2735277..8548087 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -159,6 +159,7 @@ from cyperf.models.diagnostic_component_context import DiagnosticComponentContext from cyperf.models.diagnostic_options import DiagnosticOptions from cyperf.models.disk_usage import DiskUsage +from cyperf.models.dismiss_operation import DismissOperation from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings from cyperf.models.edit_action_input import EditActionInput from cyperf.models.edit_app_operation import EditAppOperation diff --git a/cyperf/api/notifications_api.py b/cyperf/api/notifications_api.py index aa99ac0..51c4093 100644 --- a/cyperf/api/notifications_api.py +++ b/cyperf/api/notifications_api.py @@ -21,6 +21,7 @@ from typing import Optional from typing_extensions import Annotated from cyperf.models.async_context import AsyncContext +from cyperf.models.dismiss_operation import DismissOperation from cyperf.models.get_notifications200_response import GetNotifications200Response from cyperf.models.notification import Notification from cyperf.models.notification_counts import NotificationCounts @@ -1779,6 +1780,7 @@ def _start_notifications_cleanup_serialize( @validate_call def start_notifications_dismiss( self, + dismiss_operation: Optional[DismissOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1794,8 +1796,10 @@ def start_notifications_dismiss( ) -> AsyncContext: """start_notifications_dismiss - Dismiss all notifications that match the specified filter. + Dismiss notifications. + :param dismiss_operation: + :type dismiss_operation: DismissOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1819,6 +1823,7 @@ def start_notifications_dismiss( """ # noqa: E501 _param = self._start_notifications_dismiss_serialize( + dismiss_operation=dismiss_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1838,6 +1843,7 @@ def start_notifications_dismiss( @validate_call def start_notifications_dismiss_with_http_info( self, + dismiss_operation: Optional[DismissOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1853,8 +1859,10 @@ def start_notifications_dismiss_with_http_info( ) -> ApiResponse[AsyncContext]: """start_notifications_dismiss - Dismiss all notifications that match the specified filter. + Dismiss notifications. + :param dismiss_operation: + :type dismiss_operation: DismissOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1878,6 +1886,7 @@ def start_notifications_dismiss_with_http_info( """ # noqa: E501 _param = self._start_notifications_dismiss_serialize( + dismiss_operation=dismiss_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1897,6 +1906,7 @@ def start_notifications_dismiss_with_http_info( @validate_call def start_notifications_dismiss_without_preload_content( self, + dismiss_operation: Optional[DismissOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1912,8 +1922,10 @@ def start_notifications_dismiss_without_preload_content( ) -> RESTResponseType: """start_notifications_dismiss - Dismiss all notifications that match the specified filter. + Dismiss notifications. + :param dismiss_operation: + :type dismiss_operation: DismissOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1937,6 +1949,7 @@ def start_notifications_dismiss_without_preload_content( """ # noqa: E501 _param = self._start_notifications_dismiss_serialize( + dismiss_operation=dismiss_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1955,6 +1968,7 @@ def start_notifications_dismiss_without_preload_content( def _start_notifications_dismiss_serialize( self, + dismiss_operation, _request_auth, _content_type, _headers, @@ -1978,6 +1992,8 @@ def _start_notifications_dismiss_serialize( # process the header parameters # process the form parameters # process the body parameter + if dismiss_operation is not None: + _body_params = dismiss_operation # set the HTTP header `Accept` @@ -1988,6 +2004,19 @@ def _start_notifications_dismiss_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 62919a4..06570c0 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -125,6 +125,7 @@ DiagnosticComponentContext = DynamicModel('DiagnosticComponentContext', (), {} ) DiagnosticOptions = DynamicModel('DiagnosticOptions', (), {} ) DiskUsage = DynamicModel('DiskUsage', (), {} ) +DismissOperation = DynamicModel('DismissOperation', (), {} ) ESPOverUDPSettings = DynamicModel('ESPOverUDPSettings', (), {} ) EditActionInput = DynamicModel('EditActionInput', (), {} ) EditAppOperation = DynamicModel('EditAppOperation', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 4688371..fc3b890 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -125,6 +125,7 @@ class LinkNameException(Exception): from cyperf.models.diagnostic_component_context import DiagnosticComponentContext from cyperf.models.diagnostic_options import DiagnosticOptions from cyperf.models.disk_usage import DiskUsage +from cyperf.models.dismiss_operation import DismissOperation from cyperf.models.esp_over_udp_settings import ESPOverUDPSettings from cyperf.models.edit_action_input import EditActionInput from cyperf.models.edit_app_operation import EditAppOperation diff --git a/cyperf/models/dismiss_operation.py b/cyperf/models/dismiss_operation.py new file mode 100644 index 0000000..ccfeb99 --- /dev/null +++ b/cyperf/models/dismiss_operation.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class DismissOperation(BaseModel): + """ + DismissOperation + """ # noqa: E501 + filters: Optional[Dict[str, List[StrictStr]]] = None + __properties: ClassVar[List[str]] = ["filters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DismissOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DismissOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "filters": obj.get("filters") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/DismissOperation.md b/docs/DismissOperation.md new file mode 100644 index 0000000..db0085c --- /dev/null +++ b/docs/DismissOperation.md @@ -0,0 +1,29 @@ +# DismissOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filters** | **Dict[str, List[str]]** | | [optional] + +## Example + +```python +from cyperf.models.dismiss_operation import DismissOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of DismissOperation from a JSON string +dismiss_operation_instance = DismissOperation.from_json(json) +# print the JSON string representation of the object +print(DismissOperation.to_json()) + +# convert the object into a dict +dismiss_operation_dict = dismiss_operation_instance.to_dict() +# create an instance of DismissOperation from a dict +dismiss_operation_from_dict = DismissOperation.from_dict(dismiss_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index ef41a55..06e60e6 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -450,11 +450,11 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start_notifications_dismiss** -> AsyncContext start_notifications_dismiss() +> AsyncContext start_notifications_dismiss(dismiss_operation=dismiss_operation) -Dismiss all notifications that match the specified filter. +Dismiss notifications. ### Example @@ -464,6 +464,7 @@ Dismiss all notifications that match the specified filter. ```python import cyperf from cyperf.models.async_context import AsyncContext +from cyperf.models.dismiss_operation import DismissOperation from cyperf.rest import ApiException from pprint import pprint @@ -486,9 +487,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.NotificationsApi(api_client) + dismiss_operation = cyperf.DismissOperation() # DismissOperation | (optional) try: - api_response = api_instance.start_notifications_dismiss() + api_response = api_instance.start_notifications_dismiss(dismiss_operation=dismiss_operation) print("The response of NotificationsApi->start_notifications_dismiss:\n") pprint(api_response) except Exception as e: @@ -499,7 +501,10 @@ with cyperf.ApiClient(configuration) as api_client: ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dismiss_operation** | [**DismissOperation**](DismissOperation.md)| | [optional] ### Return type @@ -511,7 +516,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details From 96fad8f8fee69aa2fe10d2a5d4eb0f7ee477c079 Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Tue, 31 Mar 2026 07:54:29 -0600 Subject: [PATCH 31/53] Pull request #65: ISGAPPSEC2-36322 (CW) github pipeline fix Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/bugfix/ISGAPPSEC2-36322-(CW)-github-pipeline-fails-for-https-github.com-keysight-cyperf-api-w to main Squashed commit of the following: commit 8354ce6c3c1caeaef8dbee3d8e00e1c5c6ea0e0a Author: iustmitu Date: Tue Mar 31 15:40:31 2026 +0300 regenerated wrapper after merging conflicts commit 26b4b3013a22a1110c474457f283df323a292f20 Merge: 71194d3 ad84def Author: iustmitu Date: Tue Mar 31 15:09:11 2026 +0300 Merge branch 'main' of https://github.com/Keysight/cyperf-api-wrapper into bugfix/bugfix/ISGAPPSEC2-36322-(CW)-github-pipeline-fails-for-https-github.com-keysight-cyperf-api-w commit 71194d30b1c18a8fbc0e28683b4c79376ff167dc Author: iustmitu Date: Tue Mar 31 14:14:30 2026 +0300 deleted testing step because we have no more tests in the wrapper commit 9550bd98198554c956fe3264baabb18707e4ce70 Author: iustmitu Date: Tue Mar 31 14:01:31 2026 +0300 deleted wrong versions and pytest dependency commit ad84defce585081a01a85cba4202b3671933ef15 Author: iustmitu Date: Mon Feb 9 12:04:15 2026 +0200 removed 3.7 python version from strategy matrix commit 68d88f5625309b321a406182833c3d5cb0c615f9 Author: Tudor Simionescu Date: Thu Nov 13 08:59:35 2025 -0700 Pull request #47: Pull request #44: Never use an empty alias Merge in ISGAPPSEC/cyperf-api-wrapper from fix-empty-alias-release to release/7.0 * commit '544e0aeeccd50f5ac53ad887742567fb87d70357': Pull request #44: Never use an empty alias commit bcb53cd331cd226eb78c3f4a5921170e08493feb Author: Iustin Mitu Date: Mon Sep 22 04:41:35 2025 -0600 Pull request #39: hotfixes customer support github Merge in ISGAPPSEC/cyperf-api-wrapper from hotfixes-github to release/7.0 Squashed commit of the following: commit d615aa95f6f42e2c12355972c0ec178595f12885 Author: iustmitu Date: Fri Sep 19 11:54:37 2025 +0300 rename enum value commit 5b90d5164f54ec882472e49f8ddd806bb03bfa52 Author: iustmitu Date: Fri Sep 19 11:19:45 2025 +0300 hotfixes commit c8e07832bf2befa4f3c1b179a422c0bfb3f2d69c Author: Iustin Mitu Date: Thu Jul 24 05:16:39 2025 -0600 Pull request #32: fix version naming for branches with slashes release branch Merge in ISGAPPSEC/cyperf-api-wrapper from fix-jenkins-file to release/7.0 Squashed commit of the following: commit b987c8be3e7db838a7f6b8d76b1f15a6e7c9526c Author: iustmitu Date: Thu Jul 24 13:54:40 2025 +0300 using - instead of . for better version name commit 150e953833eee92e97309c47b36a8a0fbbd6025b Author: iustmitu Date: Thu Jul 24 12:51:01 2025 +0300 small fix commit fbea0f0a9460954f703db82179ee7b19e26b9707 Author: iustmitu Date: Thu Jul 24 12:40:03 2025 +0300 fix slash in branch name commit 82ab99cde51f3716b386096e71a050ab8a025dfa Author: Iustin Mitu Date: Wed Jul 9 02:58:35 2025 -0600 Pull request #30: fix remove items from update function Merge in ISGAPPSEC/cyperf-api-wrapper from bug-fix-remove-one-item- to main Squashed commit of the following: commit 5eb3572c95353678a4bcaef6f1d709756b39e6ef Author: iustmitu Date: Tue Jul 8 14:18:32 2025 +0300 fix len commit 6d0e53642df648b180a2d1bf4503906721d8f092 Author: iustmitu Date: Tue Jul 8 12:57:14 2025 +0300 fix remove items from update function commit 6adb76bfb07d91363d163e02c7720140a56fc8fa Author: Iustin Mitu Date: Wed Jul 2 03:30:25 2025 -0600 Pull request #28: attack based sample script Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-34308-create-an-attack-focused-api-wrapper-sample to main Squashed commit of the following: commit ff8f9110ef2b469fb296d2da59b4ac7806cddd13 Author: iustmitu Date: Wed Jul 2 11:05:00 2025 +0300 fixed typo commit aaba2277a2674c924bc045811c9bc2a097dbbbb5 Author: iustmitu Date: Tue Jul 1 15:00:46 2025 +0300 deleted pass commit 7c4d7fccf26b566833a834465835dbf8b8067797 Author: iustmitu Date: Wed May 21 14:25:55 2025 +0300 attack based sample script commit a010ec42ada2e0070049f76d21b8177306beff52 Author: Iustin Mitu Date: Wed Jul 2 02:20:12 2025 -0600 Pull request #29: generate methods for operation nodes Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-34728-add-support-for-operations-on-nodes to main Squashed commit of the following: commit d4308b4029b91f7e4cf49625985a0de107f9fc0e Author: iustmitu Date: Thu Jun 26 11:35:59 2025 +0300 sample test modified removed commit 71f513045d7f38c1b2508c8ea1ebc52644a0c2da Author: iustmitu Date: Wed Jun 25 17:16:09 2025 +0300 rename metadatas and regenerated wrapper commit d9acdfebae9cad90c0ddcce775b75509ae407c16 Author: iustmitu Date: Mon Jun 23 11:09:51 2025 +0300 async context commit 4a96b9c6781d1abab9d9c6f082233f5eee0ff15c Author: iustmitu Date: Fri Jun 20 13:43:25 2025 +0300 async op commit 2893456cc358f4083ae6251b685cbcc989b417a5 Author: iustmitu Date: Thu Jun 19 14:02:11 2025 +0300 regenerated wrapper commit 2301cf18e8f0f0d92b1ba10160a37e0614c5ff98 Author: iustmitu Date: Mon Jun 16 11:45:18 2025 +0300 List[byte] operations fix commit 6232a91457e44029e0598ef899c896a0d9816841 Author: iustmitu Date: Wed Jun 4 12:07:20 2025 +0300 deleted test script commit 89373f03af1ff148ebae5b5f9d0fff47a3ff19fc Author: iustmitu Date: Wed Jun 4 12:04:46 2025 +0300 support for operation nodes commit c05cacf2c4cecab60aedca5d8a9134f14a568709 Author: iustmitu Date: Mon Jun 2 13:11:04 2025 +0300 generate methods for operation nodes commit f4f28bfa1b4e040171563a70622b0280be04fcee Author: Iustin Mitu Date: Mon May 26 02:01:39 2025 -0600 Pull request #27: update function based on id Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34434-fix-update-function to main Squashed commit of the following: commit 9a3ded61b2726e0b255ccc5ee49a3ca85de112fc Author: iustmitu Date: Fri May 23 13:06:25 2025 +0300 commit after regenerate the wrapper commit 91110c1e966908ed71d194cf08f493f557321353 Author: iustmitu Date: Fri May 23 12:55:26 2025 +0300 sample tests fixed and update function commit bb87904e4e29413059dc9d256c28b72755149cee Author: iustmitu Date: Thu May 22 13:12:39 2025 +0300 remove hassatr() commit e838f0ed10fc089649b8c820f640c9b1b706d124 Author: iustmitu Date: Wed May 21 13:58:14 2025 +0300 fixed some issues commit c465e89fc2ab8a157a0fe2a801893542311a17a9 Author: iustmitu Date: Mon May 19 12:21:09 2025 +0300 fix update function commit 588ee3448f08c80d5c807d1457e00a55a758698e Author: iustmitu Date: Fri May 16 10:57:52 2025 +0300 update function based on id commit b58b303d54d188c06ae2c2adc58805287d051d0b Author: Iustin Mitu Date: Fri May 16 01:46:15 2025 -0600 Pull request #25: removed ui specific api calls Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34540-remove-ui-specific-api-calls-from-api-client-library to main Squashed commit of the following: commit 220266f0afcb93e57cf29feeb47f9faf03103f16 Author: iustmitu Date: Thu May 15 11:45:27 2025 +0300 accidentally ommited file from the commit commit ee3871930fb1657b9039701e5b32f835d6141db9 Author: iustmitu Date: Thu May 15 11:34:48 2025 +0300 regenerated werapper commit db7b5050c7f3eb1af39730d64929ad1af0d5590a Author: Tudor Simionescu Date: Wed May 14 06:55:20 2025 -0600 Pull request #26: ISGAPPSEC2-34547: use the proper argument name for create_sessions Merge in ISGAPPSEC/cyperf-api-wrapper from api-wrapper-fixes to main Squashed commit of the following: commit a20fbc276eeb8c1d552a31ac020c22f6b0be296c Author: Tudor Simionescu Date: Wed May 14 13:39:52 2025 +0300 ISGAPPSEC2-34547: use the proper argument name for create_sessions What: - Specify the intended argument names for the body parameters for all POST operations - re-generate api wrapper Why: - Default name is singular, even though these operations take a list of items commit e0af9d8ac1b77a670c597e57e55cff752c583134 Author: Iustin Mitu Date: Tue May 13 06:06:48 2025 -0600 Pull request #24: renaming parameter fix Merge in ISGAPPSEC/cyperf-api-wrapper from bugfix/ISGAPPSEC2-34527-udp-sample-fix to main Squashed commit of the following: commit f7be4250a7c2115f78cf2d158089a858a5676158 Author: iustmitu Date: Tue May 13 14:48:06 2025 +0300 renaming parameter commit 2e0fba60423ba804e14524bacf6d388052b80614 Author: Tudor Simionescu Date: Wed Apr 23 06:24:13 2025 -0600 Pull request #22: Fix auto generated api wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from fix-auto-generated-api-wrapper to main Squashed commit of the following: commit 96c0dd7b3fc43816744e4f238a3fcfbe4a80c5ed Author: Tudor Simionescu Date: Wed Apr 23 15:14:00 2025 +0300 Fix missing rename of get_application_types commit f9241ae2182cc17d10dfbdcabd572b1a859a3a5c Author: Tudor Simionescu Date: Wed Apr 23 15:13:02 2025 +0300 Manually modify Config object to prevent pydantic issue What: - Make the 'validate' field of a Config have a different name in Python Why: - 'validate' is a method in BaseModel and the field name is shadowing it commit 6ba1879db55bbb51d4c5a922550cdf143007ae52 Merge: b39163f e8d7af2 Author: dartodea Date: Thu Apr 10 17:34:53 2025 +0300 6.0 commit b39163f5b8fdacdc0f640a71a251baa08fc09e6d Author: Tudor Simionescu Date: Thu Apr 3 19:20:37 2025 +0300 Initial commit commit 2c243a44cb89d948e10a1d83d309d0acfa436731 Author: tsimionescu <36003377+tsimionescu@users.noreply.github.com> Date: Thu Apr 3 17:50:11 2025 +0300 Initial commit --- .github/workflows/python.yml | 6 +----- LICENSE | 0 README.md | 2 -- pyproject.toml | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) mode change 100755 => 100644 LICENSE diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5c5289c..6497d62 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -24,15 +24,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest + pip install flake8 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.md b/README.md index 4ecb076..6262fb3 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ CyPerf REST API This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.0.0 -- Package version: 1.0.0 - Generator version: 7.7.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/pyproject.toml b/pyproject.toml index 8c74be2..c498ef5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,6 @@ pydantic = ">=2" typing-extensions = ">=4.7.1" [tool.poetry.dev-dependencies] -pytest = ">=7.2.1" tox = ">=3.9.0" flake8 = ">=4.0.0" types-python-dateutil = ">=2.8.19.14" From 3d135912f9cf9a3ebad1d7296775c006b28dee81 Mon Sep 17 00:00:00 2001 From: AndreiCostin Martin Date: Tue, 7 Apr 2026 05:30:38 -0600 Subject: [PATCH 32/53] Pull request #68: Update wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from update/ipsec-o-ipsec to main Squashed commit of the following: commit ef76582be7fb1a2651d992856afefe8ba1edd866 Author: Andrei Martin Date: Tue Apr 7 14:26:12 2026 +0300 Add add-applications operation Signed-off-by: Andrei Martin commit 42811074fa7b1980e1ceec0228b532a988f56c2f Author: Andrei Martin Date: Tue Apr 7 13:56:42 2026 +0300 Update wrapper Signed-off-by: Andrei Martin --- README.md | 2 + cyperf/__init__.py | 2 + cyperf/dynamic_models/__init__.py | 2 + cyperf/models/__init__.py | 2 + cyperf/models/application.py | 18 +++- cyperf/models/command_metadata.py | 4 +- cyperf/models/emulated_router_range.py | 10 ++- cyperf/models/identification_config.py | 115 +++++++++++++++++++++++++ cyperf/models/inner_ip_sec_range.py | 8 +- cyperf/models/ip_range.py | 14 ++- cyperf/models/ip_sec_range.py | 8 +- cyperf/models/mac_dtls_stack.py | 12 ++- cyperf/models/metadata.py | 4 +- cyperf/models/vlan_range.py | 8 +- cyperf/models/vlan_type.py | 39 +++++++++ docs/Application.md | 5 +- docs/CommandMetadata.md | 1 + docs/EmulatedRouterRange.md | 2 + docs/IPRange.md | 6 +- docs/IPSecRange.md | 1 + docs/IdentificationConfig.md | 33 +++++++ docs/InnerIPSecRange.md | 1 + docs/MacDtlsStack.md | 4 +- docs/Metadata.md | 1 + docs/VLANRange.md | 1 + docs/VLANType.md | 14 +++ 26 files changed, 298 insertions(+), 19 deletions(-) create mode 100644 cyperf/models/identification_config.py create mode 100644 cyperf/models/vlan_type.py create mode 100644 docs/IdentificationConfig.md create mode 100644 docs/VLANType.md diff --git a/README.md b/README.md index 6262fb3..d3def1a 100644 --- a/README.md +++ b/README.md @@ -614,6 +614,7 @@ Class | Method | HTTP request | Description - [IPSecRange](docs/IPSecRange.md) - [IPSecStack](docs/IPSecStack.md) - [IdPSignatureAlgo](docs/IdPSignatureAlgo.md) + - [IdentificationConfig](docs/IdentificationConfig.md) - [ImportAllOperation](docs/ImportAllOperation.md) - [ImportOfflineLicenseResult](docs/ImportOfflineLicenseResult.md) - [IngestOperation](docs/IngestOperation.md) @@ -771,6 +772,7 @@ Class | Method | HTTP request | Description - [UpdateNetworkMapping](docs/UpdateNetworkMapping.md) - [UpdatePortTagsOperation](docs/UpdatePortTagsOperation.md) - [VLANRange](docs/VLANRange.md) + - [VLANType](docs/VLANType.md) - [ValidationMessage](docs/ValidationMessage.md) - [Version](docs/Version.md) - [VxLANId](docs/VxLANId.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 8548087..4d24b46 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -279,6 +279,7 @@ from cyperf.models.ip_sec_range import IPSecRange from cyperf.models.ip_sec_stack import IPSecStack from cyperf.models.id_p_signature_algo import IdPSignatureAlgo +from cyperf.models.identification_config import IdentificationConfig from cyperf.models.import_all_operation import ImportAllOperation from cyperf.models.import_offline_license_result import ImportOfflineLicenseResult from cyperf.models.ingest_operation import IngestOperation @@ -436,6 +437,7 @@ from cyperf.models.update_network_mapping import UpdateNetworkMapping from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.models.vlan_range import VLANRange +from cyperf.models.vlan_type import VLANType from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version from cyperf.models.vx_lanid import VxLANId diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 06570c0..52db705 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -245,6 +245,7 @@ IPSecRange = DynamicModel('IPSecRange', (), {} ) IPSecStack = DynamicModel('IPSecStack', (), {} ) IdPSignatureAlgo = DynamicModel('IdPSignatureAlgo', (), {} ) +IdentificationConfig = DynamicModel('IdentificationConfig', (), {} ) ImportAllOperation = DynamicModel('ImportAllOperation', (), {} ) ImportOfflineLicenseResult = DynamicModel('ImportOfflineLicenseResult', (), {} ) IngestOperation = DynamicModel('IngestOperation', (), {} ) @@ -402,6 +403,7 @@ UpdateNetworkMapping = DynamicModel('UpdateNetworkMapping', (), {} ) UpdatePortTagsOperation = DynamicModel('UpdatePortTagsOperation', (), {} ) VLANRange = DynamicModel('VLANRange', (), {} ) +VLANType = DynamicModel('VLANType', (), {} ) ValidationMessage = DynamicModel('ValidationMessage', (), {} ) Version = DynamicModel('Version', (), {} ) VxLANId = DynamicModel('VxLANId', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index fc3b890..209fbab 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -245,6 +245,7 @@ class LinkNameException(Exception): from cyperf.models.ip_sec_range import IPSecRange from cyperf.models.ip_sec_stack import IPSecStack from cyperf.models.id_p_signature_algo import IdPSignatureAlgo +from cyperf.models.identification_config import IdentificationConfig from cyperf.models.import_all_operation import ImportAllOperation from cyperf.models.import_offline_license_result import ImportOfflineLicenseResult from cyperf.models.ingest_operation import IngestOperation @@ -402,6 +403,7 @@ class LinkNameException(Exception): from cyperf.models.update_network_mapping import UpdateNetworkMapping from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation from cyperf.models.vlan_range import VLANRange +from cyperf.models.vlan_type import VLANType from cyperf.models.validation_message import ValidationMessage from cyperf.models.version import Version from cyperf.models.vx_lanid import VxLANId diff --git a/cyperf/models/application.py b/cyperf/models/application.py index e656008..6779287 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -27,6 +27,7 @@ from cyperf.models.endpoint import Endpoint from cyperf.models.http_profile import HTTPProfile from cyperf.models.ip_preference import IpPreference +from cyperf.models.llmapi_profile import LLMAPIProfile from cyperf.models.network_mapping import NetworkMapping from cyperf.models.params import Params from cyperf.models.quic_profile import QUICProfile @@ -76,16 +77,19 @@ class Application(BaseModel): links: Optional[List[APILink]] = None client_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ClientTLSProfile") data_types: Optional[List[DataType]] = Field(default=None, alias="DataTypes") + inherit_llmapi: Optional[StrictBool] = Field(default=None, alias="InheritLLMAPI") inherit_tls: Optional[StrictBool] = Field(default=None, alias="InheritTLS") is_stateless_stream: Optional[StrictBool] = Field(default=None, alias="IsStatelessStream") is_streaming: Optional[StrictBool] = Field(default=None, alias="IsStreaming") - objective_weight: StrictInt = Field(description="The objective weight of the application.", alias="ObjectiveWeight") + llmapi_profiles: Optional[List[LLMAPIProfile]] = Field(default=None, alias="LLMAPIProfiles") + objective_weight: Optional[StrictInt] = Field(default=None, description="The objective weight of the application.", alias="ObjectiveWeight") protocol_found: Optional[StrictBool] = Field(default=None, alias="ProtocolFound") server_tls_profile: Optional[TLSProfile] = Field(default=None, alias="ServerTLSProfile") stateless_stream: Optional[StatelessStream] = Field(default=None, alias="StatelessStream") static: Optional[StrictBool] = Field(default=None, alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, alias="SupportedApps") supports_calibration: Optional[StrictBool] = Field(default=None, alias="SupportsCalibration") + supports_http2: Optional[StrictBool] = Field(default=None, alias="SupportsHTTP2") supports_multi_flow: Optional[StrictBool] = Field(default=None, alias="SupportsMultiFlow") supports_strikes: Optional[StrictBool] = Field(default=None, alias="SupportsStrikes") supports_tls: Optional[StrictBool] = Field(default=None, alias="SupportsTLS") @@ -94,7 +98,7 @@ class Application(BaseModel): _modify_excluded_dut_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) modify_tags_recursively: Optional[List[UpdateNetworkMapping]] = Field(default=None, alias="modify-tags-recursively") _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateApplicationNetworkMapping" }) - __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritTLS", "IsStatelessStream", "IsStreaming", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsMultiFlow", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] + __properties: ClassVar[List[str]] = ["ActionTimeout", "Active", "ClientHTTPProfile", "ClientQUICProfile", "Connections", "ConnectionsMaxTransactions", "Description", "DestinationHostname", "DnnId", "EndPointID", "Endpoints", "ExternalResourceURL", "Index", "InheritHTTPProfile", "InheritQUICProfile", "IpPreference", "IsDeprecated", "IterationCount", "MaxActiveLimit", "Name", "NetworkMapping", "Params", "ProtocolID", "QosFlowId", "ReadonlyMaxTrans", "ServerHTTPProfile", "ServerQUICProfile", "SupportsClientHTTPProfile", "SupportsHTTPProfiles", "SupportsServerHTTPProfile", "id", "links", "ClientTLSProfile", "DataTypes", "InheritLLMAPI", "InheritTLS", "IsStatelessStream", "IsStreaming", "LLMAPIProfiles", "ObjectiveWeight", "ProtocolFound", "ServerTLSProfile", "StatelessStream", "Static", "SupportedApps", "SupportsCalibration", "SupportsHTTP2", "SupportsMultiFlow", "SupportsStrikes", "SupportsTLS", "Tracks", "modify-excluded-dut-recursively", "modify-tags-recursively"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -198,6 +202,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['DataTypes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in llmapi_profiles (list) + _items = [] + if self.llmapi_profiles: + for _item in self.llmapi_profiles: + if _item: + _items.append(_item.to_dict()) + _dict['LLMAPIProfiles'] = _items # override the default output from pydantic by calling `to_dict()` of server_tls_profile if self.server_tls_profile: _dict['ServerTLSProfile'] = self.server_tls_profile.to_dict() @@ -273,9 +284,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "ClientTLSProfile": TLSProfile.from_dict(obj["ClientTLSProfile"]) if obj.get("ClientTLSProfile") is not None else None, "DataTypes": ( [DataType.from_dict(_item) for _item in obj.get("DataTypes", [])] if obj.get("DataTypes") is not None else None), + "InheritLLMAPI": obj.get("InheritLLMAPI"), "InheritTLS": obj.get("InheritTLS"), "IsStatelessStream": obj.get("IsStatelessStream"), "IsStreaming": obj.get("IsStreaming"), + "LLMAPIProfiles": ( [LLMAPIProfile.from_dict(_item) for _item in obj.get("LLMAPIProfiles", [])] if obj.get("LLMAPIProfiles") is not None else None), "ObjectiveWeight": obj.get("ObjectiveWeight"), "ProtocolFound": obj.get("ProtocolFound"), "ServerTLSProfile": TLSProfile.from_dict(obj["ServerTLSProfile"]) if obj.get("ServerTLSProfile") is not None else None, @@ -283,6 +296,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "SupportsCalibration": obj.get("SupportsCalibration"), + "SupportsHTTP2": obj.get("SupportsHTTP2"), "SupportsMultiFlow": obj.get("SupportsMultiFlow"), "SupportsStrikes": obj.get("SupportsStrikes"), "SupportsTLS": obj.get("SupportsTLS"), diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index f349cdc..d0c1c0b 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -49,8 +49,9 @@ class CommandMetadata(BaseModel): static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") supported_protocols: Optional[List[StrictStr]] = Field(default=None, description="The list of protocols which support this command", alias="SupportedProtocols") + supports_http2: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports HTTP2 multi-stream", alias="SupportsHTTP2") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "SupportsHTTP2", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -140,6 +141,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], "SupportedProtocols": obj.get("SupportedProtocols") if obj.get("SupportedProtocols") is not None else [], + "SupportsHTTP2": obj.get("SupportsHTTP2"), "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 5784f38..2b88b82 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -25,6 +25,7 @@ from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer from cyperf.models.vlan_range import VLANRange +from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -49,11 +50,13 @@ class EmulatedRouterRange(BaseModel): mss_auto: StrictBool = Field(description="A flag indicating if Mss settings for the IPRange should be determined automatically (default: false).", alias="MssAuto") net_mask: Optional[StrictInt] = Field(default=None, description="The network mask of the IP Range (default: 16).", alias="NetMask") net_mask_auto: StrictBool = Field(description="A flag indicating if the network mask of the IPRange should be determined automatically (default: true).", alias="NetMaskAuto") + outer_vlan_range: Optional[VLANRange] = Field(default=None, description="The outer VLAN range assigned to the current IP range configuration", alias="OuterVlanRange") + vlan_type: Optional[VLANType] = Field(default=None, description="The type of VLAN used", alias="VLANType") id: StrictStr links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1).", alias="maxCountPerAgent") network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "id", "links", "maxCountPerAgent", "networkTags"] + __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] @field_validator('gw_start') def gw_start_validate_regular_expression(cls, value): @@ -134,6 +137,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of inner_vlan_range if self.inner_vlan_range: _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of outer_vlan_range + if self.outer_vlan_range: + _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -171,6 +177,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MssAuto": obj.get("MssAuto"), "NetMask": obj.get("NetMask"), "NetMaskAuto": obj.get("NetMaskAuto"), + "OuterVlanRange": VLANRange.from_dict(obj["OuterVlanRange"]) if obj.get("OuterVlanRange") is not None else None, + "VLANType": obj.get("VLANType"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent"), diff --git a/cyperf/models/identification_config.py b/cyperf/models/identification_config.py new file mode 100644 index 0000000..4269215 --- /dev/null +++ b/cyperf/models/identification_config.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class IdentificationConfig(BaseModel): + """ + IdentificationConfig + """ # noqa: E501 + enable_initiator_idr: StrictBool = Field(alias="EnableInitiatorIdr") + initiator_id: StrictStr = Field(alias="InitiatorId") + initiator_id_type: StrictStr = Field(alias="InitiatorIdType") + responder_id: StrictStr = Field(alias="ResponderId") + responder_id_type: StrictStr = Field(alias="ResponderIdType") + __properties: ClassVar[List[str]] = ["EnableInitiatorIdr", "InitiatorId", "InitiatorIdType", "ResponderId", "ResponderIdType"] + + @field_validator('initiator_id_type') + def initiator_id_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ID_IP_ADDR', 'ID_FQDN']): + raise ValueError("must be one of enum values ('ID_IP_ADDR', 'ID_FQDN')") + return value + + @field_validator('responder_id_type') + def responder_id_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ID_IP_ADDR', 'ID_FQDN']): + raise ValueError("must be one of enum values ('ID_IP_ADDR', 'ID_FQDN')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IdentificationConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IdentificationConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "EnableInitiatorIdr": obj.get("EnableInitiatorIdr"), + "InitiatorId": obj.get("InitiatorId"), + "InitiatorIdType": obj.get("InitiatorIdType"), + "ResponderId": obj.get("ResponderId"), + "ResponderIdType": obj.get("ResponderIdType") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/inner_ip_sec_range.py b/cyperf/models/inner_ip_sec_range.py index a5d6a04..c072c58 100644 --- a/cyperf/models/inner_ip_sec_range.py +++ b/cyperf/models/inner_ip_sec_range.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.authentication_settings import AuthenticationSettings +from cyperf.models.identification_config import IdentificationConfig from cyperf.models.local_subnet_config import LocalSubnetConfig from cyperf.models.p1_config import P1Config from cyperf.models.p2_config import P2Config @@ -41,6 +42,7 @@ class InnerIPSecRange(BaseModel): ike_phase1_config: Optional[P1Config] = Field(default=None, alias="IKEPhase1Config") ike_phase2_config: Optional[P2Config] = Field(default=None, alias="IKEPhase2Config") ip_sec_range_name: Annotated[str, Field(strict=True)] = Field(alias="IPSecRangeName") + identification_config: Optional[IdentificationConfig] = Field(default=None, alias="IdentificationConfig") local_sub_config: Optional[LocalSubnetConfig] = Field(default=None, alias="LocalSubConfig") multi_p2_over_p1: StrictBool = Field(alias="MultiP2OverP1") public_peer: Annotated[str, Field(strict=True)] = Field(alias="PublicPeer") @@ -52,7 +54,7 @@ class InnerIPSecRange(BaseModel): tunnel_count_per_outer_ip: StrictInt = Field(alias="TunnelCountPerOuterIP") id: StrictStr links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "LocalSubConfig", "MultiP2OverP1", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] + __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "IdentificationConfig", "LocalSubConfig", "MultiP2OverP1", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] @field_validator('ip_sec_range_name') def ip_sec_range_name_validate_regular_expression(cls, value): @@ -130,6 +132,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of ike_phase2_config if self.ike_phase2_config: _dict['IKEPhase2Config'] = self.ike_phase2_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of identification_config + if self.identification_config: + _dict['IdentificationConfig'] = self.identification_config.to_dict() # override the default output from pydantic by calling `to_dict()` of local_sub_config if self.local_sub_config: _dict['LocalSubConfig'] = self.local_sub_config.to_dict() @@ -167,6 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IKEPhase1Config": P1Config.from_dict(obj["IKEPhase1Config"]) if obj.get("IKEPhase1Config") is not None else None, "IKEPhase2Config": P2Config.from_dict(obj["IKEPhase2Config"]) if obj.get("IKEPhase2Config") is not None else None, "IPSecRangeName": obj.get("IPSecRangeName"), + "IdentificationConfig": IdentificationConfig.from_dict(obj["IdentificationConfig"]) if obj.get("IdentificationConfig") is not None else None, "LocalSubConfig": LocalSubnetConfig.from_dict(obj["LocalSubConfig"]) if obj.get("LocalSubConfig") is not None else None, "MultiP2OverP1": obj.get("MultiP2OverP1"), "PublicPeer": obj.get("PublicPeer"), diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index f8288af..9c83b38 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -25,6 +25,7 @@ from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer from cyperf.models.vlan_range import VLANRange +from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -43,17 +44,19 @@ class IPRange(BaseModel): ip_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The IP incrementation rule (default: 0.0.0.1).", alias="IpIncr") ip_range_name: Annotated[str, Field(strict=True)] = Field(alias="IpRangeName") ip_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The start IP for the IPRange (default: 10.0.0.10).", alias="IpStart") - ip_ver: IpVer = Field(description="The type of the IP. 'IPV4' and 'IPV6' are both supported currently.", alias="IpVer") + ip_ver: Optional[IpVer] = Field(default=None, description="The type of the IP. 'IPV4' and 'IPV6' are both supported currently.", alias="IpVer") is_emulated_router: Optional[StrictBool] = Field(default=None, alias="IsEmulatedRouter") mss: Optional[StrictInt] = Field(default=None, description="The maximum segment size of the TCP header.", alias="Mss") - mss_auto: StrictBool = Field(description="A flag indicating if Mss settings for the IPRange should be determined automatically (default: false).", alias="MssAuto") + mss_auto: Optional[StrictBool] = Field(default=None, description="A flag indicating if Mss settings for the IPRange should be determined automatically (default: false).", alias="MssAuto") net_mask: Optional[StrictInt] = Field(default=None, description="The network mask of the IP Range (default: 16).", alias="NetMask") net_mask_auto: StrictBool = Field(description="A flag indicating if the network mask of the IPRange should be determined automatically (default: true).", alias="NetMaskAuto") + outer_vlan_range: Optional[VLANRange] = Field(default=None, description="The outer VLAN range assigned to the current IP range configuration", alias="OuterVlanRange") + vlan_type: Optional[VLANType] = Field(default=None, description="The type of VLAN used", alias="VLANType") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1).", alias="maxCountPerAgent") network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "id", "links", "maxCountPerAgent", "networkTags"] + __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] @field_validator('gw_start') def gw_start_validate_regular_expression(cls, value): @@ -134,6 +137,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of inner_vlan_range if self.inner_vlan_range: _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of outer_vlan_range + if self.outer_vlan_range: + _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -171,6 +177,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MssAuto": obj.get("MssAuto"), "NetMask": obj.get("NetMask"), "NetMaskAuto": obj.get("NetMaskAuto"), + "OuterVlanRange": VLANRange.from_dict(obj["OuterVlanRange"]) if obj.get("OuterVlanRange") is not None else None, + "VLANType": obj.get("VLANType"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "maxCountPerAgent": obj.get("maxCountPerAgent"), diff --git a/cyperf/models/ip_sec_range.py b/cyperf/models/ip_sec_range.py index 901105f..77fd056 100644 --- a/cyperf/models/ip_sec_range.py +++ b/cyperf/models/ip_sec_range.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.authentication_settings import AuthenticationSettings +from cyperf.models.identification_config import IdentificationConfig from cyperf.models.inner_ip_sec_range import InnerIPSecRange from cyperf.models.local_subnet_config import LocalSubnetConfig from cyperf.models.p1_config import P1Config @@ -43,6 +44,7 @@ class IPSecRange(BaseModel): ike_phase1_config: Optional[P1Config] = Field(default=None, alias="IKEPhase1Config") ike_phase2_config: Optional[P2Config] = Field(default=None, alias="IKEPhase2Config") ip_sec_range_name: Annotated[str, Field(strict=True)] = Field(alias="IPSecRangeName") + identification_config: Optional[IdentificationConfig] = Field(default=None, alias="IdentificationConfig") inner_ip_sec: Optional[StrictBool] = Field(default=None, alias="InnerIPSec") inner_ip_sec_range: Optional[InnerIPSecRange] = Field(default=None, alias="InnerIPSecRange") local_sub_config: Optional[LocalSubnetConfig] = Field(default=None, alias="LocalSubConfig") @@ -57,7 +59,7 @@ class IPSecRange(BaseModel): tunnel_count_per_outer_ip: StrictInt = Field(alias="TunnelCountPerOuterIP") id: StrictStr links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "InnerIPSec", "InnerIPSecRange", "LocalSubConfig", "MultiP2OverP1", "ProtectedSubConfig", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] + __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "IdentificationConfig", "InnerIPSec", "InnerIPSecRange", "LocalSubConfig", "MultiP2OverP1", "ProtectedSubConfig", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] @field_validator('ip_sec_range_name') def ip_sec_range_name_validate_regular_expression(cls, value): @@ -135,6 +137,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of ike_phase2_config if self.ike_phase2_config: _dict['IKEPhase2Config'] = self.ike_phase2_config.to_dict() + # override the default output from pydantic by calling `to_dict()` of identification_config + if self.identification_config: + _dict['IdentificationConfig'] = self.identification_config.to_dict() # override the default output from pydantic by calling `to_dict()` of inner_ip_sec_range if self.inner_ip_sec_range: _dict['InnerIPSecRange'] = self.inner_ip_sec_range.to_dict() @@ -178,6 +183,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IKEPhase1Config": P1Config.from_dict(obj["IKEPhase1Config"]) if obj.get("IKEPhase1Config") is not None else None, "IKEPhase2Config": P2Config.from_dict(obj["IKEPhase2Config"]) if obj.get("IKEPhase2Config") is not None else None, "IPSecRangeName": obj.get("IPSecRangeName"), + "IdentificationConfig": IdentificationConfig.from_dict(obj["IdentificationConfig"]) if obj.get("IdentificationConfig") is not None else None, "InnerIPSec": obj.get("InnerIPSec"), "InnerIPSecRange": InnerIPSecRange.from_dict(obj["InnerIPSecRange"]) if obj.get("InnerIPSecRange") is not None else None, "LocalSubConfig": LocalSubnetConfig.from_dict(obj["LocalSubConfig"]) if obj.get("LocalSubConfig") is not None else None, diff --git a/cyperf/models/mac_dtls_stack.py b/cyperf/models/mac_dtls_stack.py index 00b5cdf..df6a7fa 100644 --- a/cyperf/models/mac_dtls_stack.py +++ b/cyperf/models/mac_dtls_stack.py @@ -25,6 +25,7 @@ from cyperf.models.ip_range import IPRange from cyperf.models.network_meshing import NetworkMeshing from cyperf.models.vlan_range import VLANRange +from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -35,7 +36,7 @@ class MacDtlsStack(BaseModel): """ # noqa: E501 dtls_enabled: Optional[StrictBool] = Field(default=None, alias="DTLSEnabled") dtls_range_name: Annotated[str, Field(strict=True)] = Field(alias="DTLSRangeName") - epoch: StrictInt = Field(alias="Epoch") + epoch: Optional[StrictInt] = Field(default=None, alias="Epoch") epoch_incr: Optional[StrictInt] = Field(default=None, alias="EpochIncr") ip_range: Optional[IPRange] = Field(default=None, alias="IPRange") in_iv: Annotated[str, Field(strict=True)] = Field(description="The in IV start for the DTLSRange (default: 0x22222222).", alias="InIV") @@ -47,13 +48,15 @@ class MacDtlsStack(BaseModel): out_iv_incr: Annotated[str, Field(strict=True)] = Field(description="The out IV increment for the DTLSRange (default: 0x00000001).", alias="OutIVIncr") out_key: Annotated[str, Field(strict=True)] = Field(description="The out key start for the DTLSRange (default: 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA).", alias="OutKey") out_key_incr: Annotated[str, Field(strict=True)] = Field(description="The out key start for the DTLSRange (default: 0x0000000000000000000000000000000000000000000000000000000000000001).", alias="OutKeyIncr") + outer_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current DTLS Range configuration", alias="OuterVlanRange") tunnel_count: StrictInt = Field(alias="TunnelCount") tunnel_destination_mac_incr: Annotated[str, Field(strict=True)] = Field(description="The MAC address increment rule for the DTLSRange (default: 00:00:00:00:00:01).", alias="TunnelDestinationMacIncr") tunnel_destination_mac_start: Annotated[str, Field(strict=True)] = Field(description="The MAC start address for the DTLSRange (default: AA:BB:CC:DD:EE:FF).", alias="TunnelDestinationMacStart") + vlan_type: Optional[VLANType] = Field(default=None, description="The type of VLAN used", alias="VLANType") vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current DTLS Range configuration", alias="VlanRange") id: StrictStr links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DTLSEnabled", "DTLSRangeName", "Epoch", "EpochIncr", "IPRange", "InIV", "InIVIncr", "InKey", "InKeyIncr", "NetworkMeshing", "OutIV", "OutIVIncr", "OutKey", "OutKeyIncr", "TunnelCount", "TunnelDestinationMacIncr", "TunnelDestinationMacStart", "VlanRange", "id", "links"] + __properties: ClassVar[List[str]] = ["DTLSEnabled", "DTLSRangeName", "Epoch", "EpochIncr", "IPRange", "InIV", "InIVIncr", "InKey", "InKeyIncr", "NetworkMeshing", "OutIV", "OutIVIncr", "OutKey", "OutKeyIncr", "OuterVlanRange", "TunnelCount", "TunnelDestinationMacIncr", "TunnelDestinationMacStart", "VLANType", "VlanRange", "id", "links"] @field_validator('dtls_range_name') def dtls_range_name_validate_regular_expression(cls, value): @@ -177,6 +180,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of network_meshing if self.network_meshing: _dict['NetworkMeshing'] = self.network_meshing.to_dict() + # override the default output from pydantic by calling `to_dict()` of outer_vlan_range + if self.outer_vlan_range: + _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() # override the default output from pydantic by calling `to_dict()` of vlan_range if self.vlan_range: _dict['VlanRange'] = self.vlan_range.to_dict() @@ -215,9 +221,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "OutIVIncr": obj.get("OutIVIncr"), "OutKey": obj.get("OutKey"), "OutKeyIncr": obj.get("OutKeyIncr"), + "OuterVlanRange": VLANRange.from_dict(obj["OuterVlanRange"]) if obj.get("OuterVlanRange") is not None else None, "TunnelCount": obj.get("TunnelCount"), "TunnelDestinationMacIncr": obj.get("TunnelDestinationMacIncr"), "TunnelDestinationMacStart": obj.get("TunnelDestinationMacStart"), + "VLANType": obj.get("VLANType"), "VlanRange": VLANRange.from_dict(obj["VlanRange"]) if obj.get("VlanRange") is not None else None, "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index a5f6755..6e07d2b 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -47,8 +47,9 @@ class Metadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + supports_http2: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports HTTP2 multi-stream", alias="SupportsHTTP2") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportsHTTP2", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -136,6 +137,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], + "SupportsHTTP2": obj.get("SupportsHTTP2"), "Year": obj.get("Year") , "links": obj.get("links") diff --git a/cyperf/models/vlan_range.py b/cyperf/models/vlan_range.py index 75897f6..aa98489 100644 --- a/cyperf/models/vlan_range.py +++ b/cyperf/models/vlan_range.py @@ -32,6 +32,7 @@ class VLANRange(BaseModel): """ # noqa: E501 count: Optional[StrictInt] = Field(default=None, description="The number of VLANs generated (default: 1).", alias="Count") count_per_agent: Optional[StrictInt] = Field(default=None, description="The number of VLANs that should be assigned to each traffic agent for this VLAN range segment in a valid test (default: 1).", alias="CountPerAgent") + increment_every_no_of_ips: Optional[StrictInt] = Field(default=None, description="Sets that number of IPs from the IP Range after which the VLAN is incremented.", alias="IncrementEveryNoOfIPs") max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of VLANs that should be assigned to each traffic agent for this VLAN range segment in a valid test (default: 1).", alias="MaxCountPerAgent") priority: Optional[StrictInt] = Field(default=None, description="The priority code point value (default: 0).", alias="Priority") static_arp_table: Optional[List[StaticARPEntry]] = Field(default=None, alias="StaticARPTable") @@ -41,7 +42,7 @@ class VLANRange(BaseModel): vlan_id: Optional[StrictInt] = Field(default=None, description="The VLAN identifier (default: 1).", alias="VlanId") vlan_incr: Optional[StrictInt] = Field(default=None, description="The VLAN incrementation rule (default: 1).", alias="VlanIncr") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Count", "CountPerAgent", "MaxCountPerAgent", "Priority", "StaticARPTable", "TagProtocolId", "VlanAuto", "VlanEnabled", "VlanId", "VlanIncr", "links"] + __properties: ClassVar[List[str]] = ["Count", "CountPerAgent", "IncrementEveryNoOfIPs", "MaxCountPerAgent", "Priority", "StaticARPTable", "TagProtocolId", "VlanAuto", "VlanEnabled", "VlanId", "VlanIncr", "links"] @field_validator('tag_protocol_id') def tag_protocol_id_validate_enum(cls, value): @@ -49,8 +50,8 @@ def tag_protocol_id_validate_enum(cls, value): if value is None: return value - if value not in set([33024]): - raise ValueError("must be one of enum values (33024)") + if value not in set([33024, 34984]): + raise ValueError("must be one of enum values (33024, 34984)") return value model_config = ConfigDict( @@ -122,6 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Count": obj.get("Count"), "CountPerAgent": obj.get("CountPerAgent"), + "IncrementEveryNoOfIPs": obj.get("IncrementEveryNoOfIPs"), "MaxCountPerAgent": obj.get("MaxCountPerAgent"), "Priority": obj.get("Priority"), "StaticARPTable": ( [StaticARPEntry.from_dict(_item) for _item in obj.get("StaticARPTable", [])] if obj.get("StaticARPTable") is not None else None), diff --git a/cyperf/models/vlan_type.py b/cyperf/models/vlan_type.py new file mode 100644 index 0000000..77cd7e5 --- /dev/null +++ b/cyperf/models/vlan_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class VLANType(str, Enum): + """ + VLANType + """ + + """ + allowed enum values + """ + VLAN_NONE = 'VLAN_NONE' + VLAN = 'VLAN' + VLAN_IN_VLAN = 'VLAN_IN_VLAN' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of VLANType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/docs/Application.md b/docs/Application.md index 64b0257..809ca5e 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -39,16 +39,19 @@ Name | Type | Description | Notes **links** | [**List[APILink]**](APILink.md) | | [optional] **client_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **data_types** | [**List[DataType]**](DataType.md) | | [optional] +**inherit_llmapi** | **bool** | | [optional] **inherit_tls** | **bool** | | [optional] **is_stateless_stream** | **bool** | | [optional] **is_streaming** | **bool** | | [optional] -**objective_weight** | **int** | The objective weight of the application. | +**llmapi_profiles** | [**List[LLMAPIProfile]**](LLMAPIProfile.md) | | [optional] +**objective_weight** | **int** | The objective weight of the application. | [optional] **protocol_found** | **bool** | | [optional] **server_tls_profile** | [**TLSProfile**](TLSProfile.md) | | [optional] **stateless_stream** | [**StatelessStream**](StatelessStream.md) | | [optional] **static** | **bool** | | [optional] **supported_apps** | **List[str]** | | [optional] **supports_calibration** | **bool** | | [optional] +**supports_http2** | **bool** | | [optional] **supports_multi_flow** | **bool** | | [optional] **supports_strikes** | **bool** | | [optional] **supports_tls** | **bool** | | [optional] diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md index 2696729..849dde1 100644 --- a/docs/CommandMetadata.md +++ b/docs/CommandMetadata.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] **supported_protocols** | **List[str]** | The list of protocols which support this command | [optional] +**supports_http2** | **bool** | Indicates if the application supports HTTP2 multi-stream | [optional] **year** | **str** | The year of the strike | [optional] ## Example diff --git a/docs/EmulatedRouterRange.md b/docs/EmulatedRouterRange.md index efcbd7c..98757c0 100644 --- a/docs/EmulatedRouterRange.md +++ b/docs/EmulatedRouterRange.md @@ -21,6 +21,8 @@ Name | Type | Description | Notes **mss_auto** | **bool** | A flag indicating if Mss settings for the IPRange should be determined automatically (default: false). | **net_mask** | **int** | The network mask of the IP Range (default: 16). | [optional] **net_mask_auto** | **bool** | A flag indicating if the network mask of the IPRange should be determined automatically (default: true). | +**outer_vlan_range** | [**VLANRange**](VLANRange.md) | The outer VLAN range assigned to the current IP range configuration | [optional] +**vlan_type** | [**VLANType**](VLANType.md) | The type of VLAN used | [optional] **id** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] **max_count_per_agent** | **int** | The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1). | [optional] diff --git a/docs/IPRange.md b/docs/IPRange.md index f6fbf6b..22b27ee 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -16,12 +16,14 @@ Name | Type | Description | Notes **ip_incr** | **str** | The IP incrementation rule (default: 0.0.0.1). | [optional] **ip_range_name** | **str** | | **ip_start** | **str** | The start IP for the IPRange (default: 10.0.0.10). | [optional] -**ip_ver** | [**IpVer**](IpVer.md) | The type of the IP. 'IPV4' and 'IPV6' are both supported currently. | +**ip_ver** | [**IpVer**](IpVer.md) | The type of the IP. 'IPV4' and 'IPV6' are both supported currently. | [optional] **is_emulated_router** | **bool** | | [optional] **mss** | **int** | The maximum segment size of the TCP header. | [optional] -**mss_auto** | **bool** | A flag indicating if Mss settings for the IPRange should be determined automatically (default: false). | +**mss_auto** | **bool** | A flag indicating if Mss settings for the IPRange should be determined automatically (default: false). | [optional] **net_mask** | **int** | The network mask of the IP Range (default: 16). | [optional] **net_mask_auto** | **bool** | A flag indicating if the network mask of the IPRange should be determined automatically (default: true). | +**outer_vlan_range** | [**VLANRange**](VLANRange.md) | The outer VLAN range assigned to the current IP range configuration | [optional] +**vlan_type** | [**VLANType**](VLANType.md) | The type of VLAN used | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **max_count_per_agent** | **int** | The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1). | [optional] diff --git a/docs/IPSecRange.md b/docs/IPSecRange.md index 49ff066..54bcd91 100644 --- a/docs/IPSecRange.md +++ b/docs/IPSecRange.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **ike_phase1_config** | [**P1Config**](P1Config.md) | | [optional] **ike_phase2_config** | [**P2Config**](P2Config.md) | | [optional] **ip_sec_range_name** | **str** | | +**identification_config** | [**IdentificationConfig**](IdentificationConfig.md) | | [optional] **inner_ip_sec** | **bool** | | [optional] **inner_ip_sec_range** | [**InnerIPSecRange**](InnerIPSecRange.md) | | [optional] **local_sub_config** | [**LocalSubnetConfig**](LocalSubnetConfig.md) | | [optional] diff --git a/docs/IdentificationConfig.md b/docs/IdentificationConfig.md new file mode 100644 index 0000000..398887d --- /dev/null +++ b/docs/IdentificationConfig.md @@ -0,0 +1,33 @@ +# IdentificationConfig + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enable_initiator_idr** | **bool** | | +**initiator_id** | **str** | | +**initiator_id_type** | **str** | | +**responder_id** | **str** | | +**responder_id_type** | **str** | | + +## Example + +```python +from cyperf.models.identification_config import IdentificationConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of IdentificationConfig from a JSON string +identification_config_instance = IdentificationConfig.from_json(json) +# print the JSON string representation of the object +print(IdentificationConfig.to_json()) + +# convert the object into a dict +identification_config_dict = identification_config_instance.to_dict() +# create an instance of IdentificationConfig from a dict +identification_config_from_dict = IdentificationConfig.from_dict(identification_config_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InnerIPSecRange.md b/docs/InnerIPSecRange.md index 5cfc1e9..f53c101 100644 --- a/docs/InnerIPSecRange.md +++ b/docs/InnerIPSecRange.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **ike_phase1_config** | [**P1Config**](P1Config.md) | | [optional] **ike_phase2_config** | [**P2Config**](P2Config.md) | | [optional] **ip_sec_range_name** | **str** | | +**identification_config** | [**IdentificationConfig**](IdentificationConfig.md) | | [optional] **local_sub_config** | [**LocalSubnetConfig**](LocalSubnetConfig.md) | | [optional] **multi_p2_over_p1** | **bool** | | **public_peer** | **str** | | diff --git a/docs/MacDtlsStack.md b/docs/MacDtlsStack.md index 99ca325..da3d753 100644 --- a/docs/MacDtlsStack.md +++ b/docs/MacDtlsStack.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dtls_enabled** | **bool** | | [optional] **dtls_range_name** | **str** | | -**epoch** | **int** | | +**epoch** | **int** | | [optional] **epoch_incr** | **int** | | [optional] **ip_range** | [**IPRange**](IPRange.md) | | [optional] **in_iv** | **str** | The in IV start for the DTLSRange (default: 0x22222222). | @@ -19,9 +19,11 @@ Name | Type | Description | Notes **out_iv_incr** | **str** | The out IV increment for the DTLSRange (default: 0x00000001). | **out_key** | **str** | The out key start for the DTLSRange (default: 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA). | **out_key_incr** | **str** | The out key start for the DTLSRange (default: 0x0000000000000000000000000000000000000000000000000000000000000001). | +**outer_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current DTLS Range configuration | [optional] **tunnel_count** | **int** | | **tunnel_destination_mac_incr** | **str** | The MAC address increment rule for the DTLSRange (default: 00:00:00:00:00:01). | **tunnel_destination_mac_start** | **str** | The MAC start address for the DTLSRange (default: AA:BB:CC:DD:EE:FF). | +**vlan_type** | [**VLANType**](VLANType.md) | The type of VLAN used | [optional] **vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current DTLS Range configuration | [optional] **id** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/Metadata.md b/docs/Metadata.md index dc1628f..fbe520a 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**supports_http2** | **bool** | Indicates if the application supports HTTP2 multi-stream | [optional] **year** | **str** | The year of the strike | [optional] ## Example diff --git a/docs/VLANRange.md b/docs/VLANRange.md index 9895f33..66871bc 100644 --- a/docs/VLANRange.md +++ b/docs/VLANRange.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | The number of VLANs generated (default: 1). | [optional] **count_per_agent** | **int** | The number of VLANs that should be assigned to each traffic agent for this VLAN range segment in a valid test (default: 1). | [optional] +**increment_every_no_of_ips** | **int** | Sets that number of IPs from the IP Range after which the VLAN is incremented. | [optional] **max_count_per_agent** | **int** | The maximum number of VLANs that should be assigned to each traffic agent for this VLAN range segment in a valid test (default: 1). | [optional] **priority** | **int** | The priority code point value (default: 0). | [optional] **static_arp_table** | [**List[StaticARPEntry]**](StaticARPEntry.md) | | [optional] diff --git a/docs/VLANType.md b/docs/VLANType.md new file mode 100644 index 0000000..bb74898 --- /dev/null +++ b/docs/VLANType.md @@ -0,0 +1,14 @@ +# VLANType + + +## Enum + +* `VLAN_NONE` (value: `'VLAN_NONE'`) + +* `VLAN` (value: `'VLAN'`) + +* `VLAN_IN_VLAN` (value: `'VLAN_IN_VLAN'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + From f6bcdf9faba24b8177811b742c88a0edf78a2d0c Mon Sep 17 00:00:00 2001 From: AndreiCostin Martin Date: Mon, 27 Apr 2026 01:57:41 -0600 Subject: [PATCH 33/53] Pull request #71: Update wrapper with IPSec PQC structs Merge in ISGAPPSEC/cyperf-api-wrapper from update/add-ipsec-pqc to main Squashed commit of the following: commit cec8171ec25b9d4aef24b44c95d9b01046163599 Author: Andrei Martin Date: Fri Apr 24 17:15:55 2026 +0300 Update wrapper with IPSec PQC structs Signed-off-by: Andrei Martin --- README.md | 1 + cyperf/__init__.py | 1 + cyperf/dynamic_models/__init__.py | 1 + cyperf/models/__init__.py | 1 + cyperf/models/ip_sec_stack.py | 12 +++- cyperf/models/p1_config.py | 17 +++++- cyperf/models/ppk_pair.py | 95 +++++++++++++++++++++++++++++++ docs/IPSecStack.md | 1 + docs/P1Config.md | 3 + docs/PPKPair.md | 30 ++++++++++ 10 files changed, 159 insertions(+), 3 deletions(-) create mode 100644 cyperf/models/ppk_pair.py create mode 100644 docs/PPKPair.md diff --git a/README.md b/README.md index d3def1a..befb404 100644 --- a/README.md +++ b/README.md @@ -661,6 +661,7 @@ Class | Method | HTTP request | Description - [P2Config](docs/P2Config.md) - [PANGPEncapsulation](docs/PANGPEncapsulation.md) - [PANGPSettings](docs/PANGPSettings.md) + - [PPKPair](docs/PPKPair.md) - [Pair](docs/Pair.md) - [ParamMetadata](docs/ParamMetadata.md) - [ParamMetadataTypeInfo](docs/ParamMetadataTypeInfo.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 4d24b46..3fa3df6 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -326,6 +326,7 @@ from cyperf.models.p2_config import P2Config from cyperf.models.pangp_encapsulation import PANGPEncapsulation from cyperf.models.pangp_settings import PANGPSettings +from cyperf.models.ppk_pair import PPKPair from cyperf.models.pair import Pair from cyperf.models.param_metadata import ParamMetadata from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 52db705..88dea8a 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -292,6 +292,7 @@ P2Config = DynamicModel('P2Config', (), {} ) PANGPEncapsulation = DynamicModel('PANGPEncapsulation', (), {} ) PANGPSettings = DynamicModel('PANGPSettings', (), {} ) +PPKPair = DynamicModel('PPKPair', (), {} ) Pair = DynamicModel('Pair', (), {} ) ParamMetadata = DynamicModel('ParamMetadata', (), {} ) ParamMetadataTypeInfo = DynamicModel('ParamMetadataTypeInfo', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 209fbab..4c04338 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -292,6 +292,7 @@ class LinkNameException(Exception): from cyperf.models.p2_config import P2Config from cyperf.models.pangp_encapsulation import PANGPEncapsulation from cyperf.models.pangp_settings import PANGPSettings +from cyperf.models.ppk_pair import PPKPair from cyperf.models.pair import Pair from cyperf.models.param_metadata import ParamMetadata from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo diff --git a/cyperf/models/ip_sec_stack.py b/cyperf/models/ip_sec_stack.py index f4e1da1..f9a7014 100644 --- a/cyperf/models/ip_sec_stack.py +++ b/cyperf/models/ip_sec_stack.py @@ -27,6 +27,7 @@ from cyperf.models.ip_sec_range import IPSecRange from cyperf.models.local_subnet_config import LocalSubnetConfig from cyperf.models.params import Params +from cyperf.models.ppk_pair import PPKPair from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -45,6 +46,7 @@ class IPSecStack(BaseModel): max_initiation_rate: StrictInt = Field(alias="MaxInitiationRate") max_pending: StrictInt = Field(alias="MaxPending") outer_ip_range: Optional[IPRange] = Field(default=None, alias="OuterIPRange") + ppk_list: Optional[List[PPKPair]] = Field(default=None, alias="PPKList") rekey_margin: StrictInt = Field(alias="RekeyMargin") rekey_retry_count: StrictInt = Field(alias="RekeyRetryCount") retransmission_timeout: StrictInt = Field(alias="RetransmissionTimeout") @@ -55,7 +57,7 @@ class IPSecStack(BaseModel): stack_role: StrictStr = Field(alias="StackRole") id: StrictStr links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["CACertificateFile", "EmulatedSubConfig", "EnableRekey", "IPSecRange", "IPSecStackName", "LocalSubConfig", "LogKeys", "MaxInitiationRate", "MaxPending", "OuterIPRange", "RekeyMargin", "RekeyRetryCount", "RetransmissionTimeout", "RetryCount", "RetryInterval", "RetryIntervalIncrement", "SetupTimeout", "StackRole", "id", "links"] + __properties: ClassVar[List[str]] = ["CACertificateFile", "EmulatedSubConfig", "EnableRekey", "IPSecRange", "IPSecStackName", "LocalSubConfig", "LogKeys", "MaxInitiationRate", "MaxPending", "OuterIPRange", "PPKList", "RekeyMargin", "RekeyRetryCount", "RetransmissionTimeout", "RetryCount", "RetryInterval", "RetryIntervalIncrement", "SetupTimeout", "StackRole", "id", "links"] @field_validator('ip_sec_stack_name') def ip_sec_stack_name_validate_regular_expression(cls, value): @@ -125,6 +127,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of outer_ip_range if self.outer_ip_range: _dict['OuterIPRange'] = self.outer_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in ppk_list (list) + _items = [] + if self.ppk_list: + for _item in self.ppk_list: + if _item: + _items.append(_item.to_dict()) + _dict['PPKList'] = _items # override the default output from pydantic by calling `to_dict()` of each item in links (list) _items = [] if self.links: @@ -156,6 +165,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "MaxInitiationRate": obj.get("MaxInitiationRate"), "MaxPending": obj.get("MaxPending"), "OuterIPRange": IPRange.from_dict(obj["OuterIPRange"]) if obj.get("OuterIPRange") is not None else None, + "PPKList": ( [PPKPair.from_dict(_item) for _item in obj.get("PPKList", [])] if obj.get("PPKList") is not None else None), "RekeyMargin": obj.get("RekeyMargin"), "RekeyRetryCount": obj.get("RekeyRetryCount"), "RetransmissionTimeout": obj.get("RetransmissionTimeout"), diff --git a/cyperf/models/p1_config.py b/cyperf/models/p1_config.py index 40f905d..4c88af0 100644 --- a/cyperf/models/p1_config.py +++ b/cyperf/models/p1_config.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from cyperf.models.dh_p1_group import DhP1Group from cyperf.models.enc_p1_algorithm import EncP1Algorithm @@ -37,8 +37,18 @@ class P1Config(BaseModel): hash_algorithm: HashP1Algorithm = Field(alias="HashAlgorithm") initial_contact: StrictBool = Field(alias="InitialContact") lifetime: StrictInt = Field(alias="Lifetime") + ppk_enabled: StrictBool = Field(alias="PPKEnabled") + ppkid: StrictStr = Field(alias="PPKId") + ppk_mandatory: StrictStr = Field(alias="PPKMandatory") prf_algorithm: PrfP1Algorithm = Field(alias="PrfAlgorithm") - __properties: ClassVar[List[str]] = ["DHGroup", "EncAlgorithm", "HashAlgorithm", "InitialContact", "Lifetime", "PrfAlgorithm"] + __properties: ClassVar[List[str]] = ["DHGroup", "EncAlgorithm", "HashAlgorithm", "InitialContact", "Lifetime", "PPKEnabled", "PPKId", "PPKMandatory", "PrfAlgorithm"] + + @field_validator('ppk_mandatory') + def ppk_mandatory_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['PREFERRED', 'MANDATORY']): + raise ValueError("must be one of enum values ('PREFERRED', 'MANDATORY')") + return value model_config = ConfigDict( populate_by_name=True, @@ -98,6 +108,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "HashAlgorithm": obj.get("HashAlgorithm"), "InitialContact": obj.get("InitialContact"), "Lifetime": obj.get("Lifetime"), + "PPKEnabled": obj.get("PPKEnabled"), + "PPKId": obj.get("PPKId"), + "PPKMandatory": obj.get("PPKMandatory"), "PrfAlgorithm": obj.get("PrfAlgorithm") , "links": obj.get("links") diff --git a/cyperf/models/ppk_pair.py b/cyperf/models/ppk_pair.py new file mode 100644 index 0000000..06205df --- /dev/null +++ b/cyperf/models/ppk_pair.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class PPKPair(BaseModel): + """ + PPKPair + """ # noqa: E501 + ppkid: StrictStr = Field(alias="PPKId") + ppk_key: StrictStr = Field(alias="PPKKey") + __properties: ClassVar[List[str]] = ["PPKId", "PPKKey"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PPKPair from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PPKPair from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "PPKId": obj.get("PPKId"), + "PPKKey": obj.get("PPKKey") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/IPSecStack.md b/docs/IPSecStack.md index dbe15d8..283e0fa 100644 --- a/docs/IPSecStack.md +++ b/docs/IPSecStack.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **max_initiation_rate** | **int** | | **max_pending** | **int** | | **outer_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**ppk_list** | [**List[PPKPair]**](PPKPair.md) | | [optional] **rekey_margin** | **int** | | **rekey_retry_count** | **int** | | **retransmission_timeout** | **int** | | diff --git a/docs/P1Config.md b/docs/P1Config.md index 4a5daa7..8a55a7d 100644 --- a/docs/P1Config.md +++ b/docs/P1Config.md @@ -10,6 +10,9 @@ Name | Type | Description | Notes **hash_algorithm** | [**HashP1Algorithm**](HashP1Algorithm.md) | | **initial_contact** | **bool** | | **lifetime** | **int** | | +**ppk_enabled** | **bool** | | +**ppkid** | **str** | | +**ppk_mandatory** | **str** | | **prf_algorithm** | [**PrfP1Algorithm**](PrfP1Algorithm.md) | | ## Example diff --git a/docs/PPKPair.md b/docs/PPKPair.md new file mode 100644 index 0000000..5dbb565 --- /dev/null +++ b/docs/PPKPair.md @@ -0,0 +1,30 @@ +# PPKPair + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ppkid** | **str** | | +**ppk_key** | **str** | | + +## Example + +```python +from cyperf.models.ppk_pair import PPKPair + +# TODO update the JSON string below +json = "{}" +# create an instance of PPKPair from a JSON string +ppk_pair_instance = PPKPair.from_json(json) +# print the JSON string representation of the object +print(PPKPair.to_json()) + +# convert the object into a dict +ppk_pair_dict = ppk_pair_instance.to_dict() +# create an instance of PPKPair from a dict +ppk_pair_from_dict = PPKPair.from_dict(ppk_pair_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + From aa8e71c28b73840bdc830e01d1ea74392c1533f1 Mon Sep 17 00:00:00 2001 From: Indradeep Moitra Date: Tue, 19 May 2026 09:24:49 -0600 Subject: [PATCH 34/53] Pull request #73: Added python api wrapper for newly added PSP Stack in Cyperf Merge in ISGAPPSEC/cyperf-api-wrapper from feature/pspStack to main Squashed commit of the following: commit 269aac7e37547a37354cb33780c7eee6dda51c0d Author: inmoitra Date: Mon May 18 13:46:59 2026 +0000 Python api wrapper for newly added PSP Stack in Cyperf --- README.md | 2 + cyperf/__init__.py | 2 + cyperf/api/notifications_api.py | 6 +- cyperf/dynamic_models/__init__.py | 2 + cyperf/models/__init__.py | 2 + cyperf/models/ip_network.py | 12 ++- cyperf/models/psp_range.py | 143 ++++++++++++++++++++++++++++++ cyperf/models/psp_stack.py | 130 +++++++++++++++++++++++++++ docs/IPNetwork.md | 1 + docs/NotificationsApi.md | 2 +- docs/PSPRange.md | 44 +++++++++ docs/PSPStack.md | 35 ++++++++ 12 files changed, 376 insertions(+), 5 deletions(-) create mode 100644 cyperf/models/psp_range.py create mode 100644 cyperf/models/psp_stack.py create mode 100644 docs/PSPRange.md create mode 100644 docs/PSPStack.md diff --git a/README.md b/README.md index befb404..5d530c3 100644 --- a/README.md +++ b/README.md @@ -662,6 +662,8 @@ Class | Method | HTTP request | Description - [PANGPEncapsulation](docs/PANGPEncapsulation.md) - [PANGPSettings](docs/PANGPSettings.md) - [PPKPair](docs/PPKPair.md) + - [PSPRange](docs/PSPRange.md) + - [PSPStack](docs/PSPStack.md) - [Pair](docs/Pair.md) - [ParamMetadata](docs/ParamMetadata.md) - [ParamMetadataTypeInfo](docs/ParamMetadataTypeInfo.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 3fa3df6..6a7fee7 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -327,6 +327,8 @@ from cyperf.models.pangp_encapsulation import PANGPEncapsulation from cyperf.models.pangp_settings import PANGPSettings from cyperf.models.ppk_pair import PPKPair +from cyperf.models.psp_range import PSPRange +from cyperf.models.psp_stack import PSPStack from cyperf.models.pair import Pair from cyperf.models.param_metadata import ParamMetadata from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo diff --git a/cyperf/api/notifications_api.py b/cyperf/api/notifications_api.py index 51c4093..8331050 100644 --- a/cyperf/api/notifications_api.py +++ b/cyperf/api/notifications_api.py @@ -1796,7 +1796,7 @@ def start_notifications_dismiss( ) -> AsyncContext: """start_notifications_dismiss - Dismiss notifications. + Dismiss all notifications that match the specified filter. :param dismiss_operation: :type dismiss_operation: DismissOperation @@ -1859,7 +1859,7 @@ def start_notifications_dismiss_with_http_info( ) -> ApiResponse[AsyncContext]: """start_notifications_dismiss - Dismiss notifications. + Dismiss all notifications that match the specified filter. :param dismiss_operation: :type dismiss_operation: DismissOperation @@ -1922,7 +1922,7 @@ def start_notifications_dismiss_without_preload_content( ) -> RESTResponseType: """start_notifications_dismiss - Dismiss notifications. + Dismiss all notifications that match the specified filter. :param dismiss_operation: :type dismiss_operation: DismissOperation diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 88dea8a..d29722e 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -293,6 +293,8 @@ PANGPEncapsulation = DynamicModel('PANGPEncapsulation', (), {} ) PANGPSettings = DynamicModel('PANGPSettings', (), {} ) PPKPair = DynamicModel('PPKPair', (), {} ) +PSPRange = DynamicModel('PSPRange', (), {} ) +PSPStack = DynamicModel('PSPStack', (), {} ) Pair = DynamicModel('Pair', (), {} ) ParamMetadata = DynamicModel('ParamMetadata', (), {} ) ParamMetadataTypeInfo = DynamicModel('ParamMetadataTypeInfo', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 4c04338..a7516f4 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -293,6 +293,8 @@ class LinkNameException(Exception): from cyperf.models.pangp_encapsulation import PANGPEncapsulation from cyperf.models.pangp_settings import PANGPSettings from cyperf.models.ppk_pair import PPKPair +from cyperf.models.psp_range import PSPRange +from cyperf.models.psp_stack import PSPStack from cyperf.models.pair import Pair from cyperf.models.param_metadata import ParamMetadata from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 221bdf1..60dd149 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -30,6 +30,7 @@ from cyperf.models.ip_range import IPRange from cyperf.models.ip_sec_stack import IPSecStack from cyperf.models.mac_dtls_stack import MacDtlsStack +from cyperf.models.psp_stack import PSPStack from cyperf.models.tunnel_stack import TunnelStack from cyperf.models.vx_lan_stack import VxLANStack from typing import Optional, Set, Union @@ -51,6 +52,7 @@ class IPNetwork(BaseModel): ip_ranges: Optional[List[IPRange]] = Field(default=None, alias="IPRanges") ip_sec_stacks: Optional[List[IPSecStack]] = Field(default=None, alias="IPSecStacks") mac_dtls_stacks: Optional[List[MacDtlsStack]] = Field(default=None, alias="MacDtlsStacks") + psp_stacks: Optional[List[PSPStack]] = Field(default=None, alias="PSPStacks") tunnel_stacks: Optional[List[TunnelStack]] = Field(default=None, alias="TunnelStacks") vx_lan_stacks: Optional[List[VxLANStack]] = Field(default=None, alias="VxLANStacks") active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the network segment is active.(default: true)") @@ -59,7 +61,7 @@ class IPNetwork(BaseModel): links: Optional[List[APILink]] = None min_agents: Optional[StrictInt] = Field(default=None, description="The minimum number of agents that should be assigned to this network segment in a valid test (default: 1).", alias="minAgents") streaming_cpu_allocation: Optional[StrictInt] = Field(default=None, description="The CPU percentage used by agents assigned to this network segment for streaming purposes (default: 25).", alias="streamingCPUAllocation") - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "DNSResolver", "DNSServer", "DUTConnections", "EmulatedRouter", "EthRange", "IPRanges", "IPSecStacks", "MacDtlsStacks", "TunnelStacks", "VxLANStacks", "active", "agentAssignments", "inheritStreamingCPUAllocation", "links", "minAgents", "streamingCPUAllocation"] + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "DNSResolver", "DNSServer", "DUTConnections", "EmulatedRouter", "EthRange", "IPRanges", "IPSecStacks", "MacDtlsStacks", "PSPStacks", "TunnelStacks", "VxLANStacks", "active", "agentAssignments", "inheritStreamingCPUAllocation", "links", "minAgents", "streamingCPUAllocation"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -140,6 +142,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['MacDtlsStacks'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in psp_stacks (list) + _items = [] + if self.psp_stacks: + for _item in self.psp_stacks: + if _item: + _items.append(_item.to_dict()) + _dict['PSPStacks'] = _items # override the default output from pydantic by calling `to_dict()` of each item in tunnel_stacks (list) _items = [] if self.tunnel_stacks: @@ -189,6 +198,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IPRanges": ( [IPRange.from_dict(_item) for _item in obj.get("IPRanges", [])] if obj.get("IPRanges") is not None else None), "IPSecStacks": ( [IPSecStack.from_dict(_item) for _item in obj.get("IPSecStacks", [])] if obj.get("IPSecStacks") is not None else None), "MacDtlsStacks": ( [MacDtlsStack.from_dict(_item) for _item in obj.get("MacDtlsStacks", [])] if obj.get("MacDtlsStacks") is not None else None), + "PSPStacks": ( [PSPStack.from_dict(_item) for _item in obj.get("PSPStacks", [])] if obj.get("PSPStacks") is not None else None), "TunnelStacks": ( [TunnelStack.from_dict(_item) for _item in obj.get("TunnelStacks", [])] if obj.get("TunnelStacks") is not None else None), "VxLANStacks": ( [VxLANStack.from_dict(_item) for _item in obj.get("VxLANStacks", [])] if obj.get("VxLANStacks") is not None else None), "active": obj.get("active"), diff --git a/cyperf/models/psp_range.py b/cyperf/models/psp_range.py new file mode 100644 index 0000000..a9a94f5 --- /dev/null +++ b/cyperf/models/psp_range.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class PSPRange(BaseModel): + """ + The PSP tunnel range configuration for M×N tunnel mapping + """ # noqa: E501 + master_key0: StrictStr = Field(description="Master key for phase 0 (256-bit hex string).", alias="MasterKey0") + master_key1: StrictStr = Field(description="Master key for phase 1 (256-bit hex string).", alias="MasterKey1") + psp_range_name: Annotated[str, Field(strict=True)] = Field(alias="PSPRangeName") + psp_version: StrictStr = Field(description="PSP version: AES-GCM-128, AES-GMAC-128 (default: AES-GCM-128).", alias="PspVersion") + remote_inner_ip_count: StrictInt = Field(description="Total Remote Inner IP Count: RemoteTunnelIpCount * RemoteTunnelToInnerIpCountRatio", alias="RemoteInnerIpCount") + remote_inner_ip_incr: StrictStr = Field(description="The remote inner IP increment (default: 0.0.0.1).", alias="RemoteInnerIpIncr") + remote_inner_ip_start: Annotated[str, Field(strict=True)] = Field(description="The start IP for remote inner IPs.", alias="RemoteInnerIpStart") + remote_tunnel_ip_count: StrictInt = Field(description="The number of remote tunnel IPs (default: 1).", alias="RemoteTunnelIpCount") + remote_tunnel_ip_incr: StrictStr = Field(description="The remote tunnel IP increment (default: 0.0.0.1).", alias="RemoteTunnelIpIncr") + remote_tunnel_ip_start: Annotated[str, Field(strict=True)] = Field(description="The start IP for the remote tunnel endpoint.", alias="RemoteTunnelIpStart") + remote_tunnel_to_inner_ip_count_ratio: StrictInt = Field(description="The ratio between the number of remote Tunnel IPs and Remote Inner IPs - (default: 1).", alias="RemoteTunnelToInnerIpCountRatio") + spi_base: StrictInt = Field(description="Security Parameter Index base value (default: 256).", alias="SpiBase") + spi_incr: StrictInt = Field(description="SPI increment per tunnel (default: 1).", alias="SpiIncr") + total_tunnel_count: StrictInt = Field(description="Total tunnel count: OuterIP.Count × RemoteTunnelIpCount (M×N).", alias="TotalTunnelCount") + id: StrictStr + __properties: ClassVar[List[str]] = ["MasterKey0", "MasterKey1", "PSPRangeName", "PspVersion", "RemoteInnerIpCount", "RemoteInnerIpIncr", "RemoteInnerIpStart", "RemoteTunnelIpCount", "RemoteTunnelIpIncr", "RemoteTunnelIpStart", "RemoteTunnelToInnerIpCountRatio", "SpiBase", "SpiIncr", "TotalTunnelCount", "id"] + + @field_validator('psp_range_name') + def psp_range_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + @field_validator('remote_inner_ip_start') + def remote_inner_ip_start_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$)", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$)/") + return value + + @field_validator('remote_tunnel_ip_start') + def remote_tunnel_ip_start_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$)", value): + 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]))|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))$)/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PSPRange from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PSPRange from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "MasterKey0": obj.get("MasterKey0"), + "MasterKey1": obj.get("MasterKey1"), + "PSPRangeName": obj.get("PSPRangeName"), + "PspVersion": obj.get("PspVersion"), + "RemoteInnerIpCount": obj.get("RemoteInnerIpCount"), + "RemoteInnerIpIncr": obj.get("RemoteInnerIpIncr"), + "RemoteInnerIpStart": obj.get("RemoteInnerIpStart"), + "RemoteTunnelIpCount": obj.get("RemoteTunnelIpCount"), + "RemoteTunnelIpIncr": obj.get("RemoteTunnelIpIncr"), + "RemoteTunnelIpStart": obj.get("RemoteTunnelIpStart"), + "RemoteTunnelToInnerIpCountRatio": obj.get("RemoteTunnelToInnerIpCountRatio"), + "SpiBase": obj.get("SpiBase"), + "SpiIncr": obj.get("SpiIncr"), + "TotalTunnelCount": obj.get("TotalTunnelCount"), + "id": obj.get("id") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/psp_stack.py b/cyperf/models/psp_stack.py new file mode 100644 index 0000000..0f80787 --- /dev/null +++ b/cyperf/models/psp_stack.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.ip_range import IPRange +from cyperf.models.psp_range import PSPRange +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class PSPStack(BaseModel): + """ + The PSP (PSP Security Protocol) stack for M×N tunnel mapping + """ # noqa: E501 + inner_ip_range: Optional[IPRange] = Field(default=None, alias="InnerIPRange") + outer_ip_range: Optional[IPRange] = Field(default=None, alias="OuterIPRange") + psp_range: Optional[PSPRange] = Field(default=None, alias="PSPRange") + psp_stack_name: Annotated[str, Field(strict=True)] = Field(alias="PSPStackName") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["InnerIPRange", "OuterIPRange", "PSPRange", "PSPStackName", "id", "links"] + + @field_validator('psp_stack_name') + def psp_stack_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^$|^[^\"\\]+$", value): + raise ValueError(r"must validate the regular expression /^$|^[^\"\\]+$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PSPStack from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of inner_ip_range + if self.inner_ip_range: + _dict['InnerIPRange'] = self.inner_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of outer_ip_range + if self.outer_ip_range: + _dict['OuterIPRange'] = self.outer_ip_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of psp_range + if self.psp_range: + _dict['PSPRange'] = self.psp_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PSPStack from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "InnerIPRange": IPRange.from_dict(obj["InnerIPRange"]) if obj.get("InnerIPRange") is not None else None, + "OuterIPRange": IPRange.from_dict(obj["OuterIPRange"]) if obj.get("OuterIPRange") is not None else None, + "PSPRange": PSPRange.from_dict(obj["PSPRange"]) if obj.get("PSPRange") is not None else None, + "PSPStackName": obj.get("PSPStackName"), + "id": obj.get("id"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/IPNetwork.md b/docs/IPNetwork.md index dc15acf..6e00149 100644 --- a/docs/IPNetwork.md +++ b/docs/IPNetwork.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **ip_ranges** | [**List[IPRange]**](IPRange.md) | | [optional] **ip_sec_stacks** | [**List[IPSecStack]**](IPSecStack.md) | | [optional] **mac_dtls_stacks** | [**List[MacDtlsStack]**](MacDtlsStack.md) | | [optional] +**psp_stacks** | [**List[PSPStack]**](PSPStack.md) | | [optional] **tunnel_stacks** | [**List[TunnelStack]**](TunnelStack.md) | | [optional] **vx_lan_stacks** | [**List[VxLANStack]**](VxLANStack.md) | | [optional] **active** | **bool** | A flag indicating if the network segment is active.(default: true) | [optional] diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index 06e60e6..49435bc 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -454,7 +454,7 @@ This endpoint does not need any parameter. -Dismiss notifications. +Dismiss all notifications that match the specified filter. ### Example diff --git a/docs/PSPRange.md b/docs/PSPRange.md new file mode 100644 index 0000000..cb5a4eb --- /dev/null +++ b/docs/PSPRange.md @@ -0,0 +1,44 @@ +# PSPRange + +The PSP tunnel range configuration for M×N tunnel mapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**master_key0** | **str** | Master key for phase 0 (256-bit hex string). | +**master_key1** | **str** | Master key for phase 1 (256-bit hex string). | +**psp_range_name** | **str** | | +**psp_version** | **str** | PSP version: AES-GCM-128, AES-GMAC-128 (default: AES-GCM-128). | +**remote_inner_ip_count** | **int** | Total Remote Inner IP Count: RemoteTunnelIpCount * RemoteTunnelToInnerIpCountRatio | +**remote_inner_ip_incr** | **str** | The remote inner IP increment (default: 0.0.0.1). | +**remote_inner_ip_start** | **str** | The start IP for remote inner IPs. | +**remote_tunnel_ip_count** | **int** | The number of remote tunnel IPs (default: 1). | +**remote_tunnel_ip_incr** | **str** | The remote tunnel IP increment (default: 0.0.0.1). | +**remote_tunnel_ip_start** | **str** | The start IP for the remote tunnel endpoint. | +**remote_tunnel_to_inner_ip_count_ratio** | **int** | The ratio between the number of remote Tunnel IPs and Remote Inner IPs - (default: 1). | +**spi_base** | **int** | Security Parameter Index base value (default: 256). | +**spi_incr** | **int** | SPI increment per tunnel (default: 1). | +**total_tunnel_count** | **int** | Total tunnel count: OuterIP.Count × RemoteTunnelIpCount (M×N). | +**id** | **str** | | + +## Example + +```python +from cyperf.models.psp_range import PSPRange + +# TODO update the JSON string below +json = "{}" +# create an instance of PSPRange from a JSON string +psp_range_instance = PSPRange.from_json(json) +# print the JSON string representation of the object +print(PSPRange.to_json()) + +# convert the object into a dict +psp_range_dict = psp_range_instance.to_dict() +# create an instance of PSPRange from a dict +psp_range_from_dict = PSPRange.from_dict(psp_range_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PSPStack.md b/docs/PSPStack.md new file mode 100644 index 0000000..06dea01 --- /dev/null +++ b/docs/PSPStack.md @@ -0,0 +1,35 @@ +# PSPStack + +The PSP (PSP Security Protocol) stack for M×N tunnel mapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inner_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**outer_ip_range** | [**IPRange**](IPRange.md) | | [optional] +**psp_range** | [**PSPRange**](PSPRange.md) | | [optional] +**psp_stack_name** | **str** | | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.psp_stack import PSPStack + +# TODO update the JSON string below +json = "{}" +# create an instance of PSPStack from a JSON string +psp_stack_instance = PSPStack.from_json(json) +# print the JSON string representation of the object +print(PSPStack.to_json()) + +# convert the object into a dict +psp_stack_dict = psp_stack_instance.to_dict() +# create an instance of PSPStack from a dict +psp_stack_from_dict = PSPStack.from_dict(psp_stack_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + From ce85bc3d3ee156cfdd9c6d01d8830b7460d901ab Mon Sep 17 00:00:00 2001 From: Daniel Muntean Date: Wed, 20 May 2026 02:09:05 -0600 Subject: [PATCH 35/53] Pull request #69: Added support to integrate appsec-automation regression repo with cyperf-api-wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from Support-to-integrate-with-appsec-automation to main Squashed commit of the following: commit 672b8005da53d9d5c74f35c6ddb9abf70e770d59 Author: dmuntean Date: Tue May 19 15:47:50 2026 +0300 Moved 2 regression specific functions into appsec-automation repository commit 15eeea09c9a8c7b7a9686f7e5c598c78f914758e Author: dmuntean Date: Mon May 18 15:18:46 2026 +0300 Small fixes to include latest code review. commit 385da09f6b6b826dbd98eb5ba7b9430143741d99 Author: dmuntean Date: Wed Apr 22 11:30:17 2026 +0300 Small fix for get_notifications() commit 9fdb3d7dd4ca92980533568eec2c3418385f0c31 Author: dmuntean Date: Mon Apr 20 11:31:12 2026 +0300 Removed hasattr logic commit 771b883f142bf9310fd11b41386df9bcb70765d7 Author: dmuntean Date: Mon Apr 20 11:13:19 2026 +0300 Removed functions using requests. Other small fixes. commit 8293355cdee6405551bb5f81835bcd7efffdd5eb Author: dmuntean Date: Thu Apr 9 13:51:55 2026 +0300 Added support to integrate appsec-automation regression repo --- cyperf/utils.py | 119 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 113 insertions(+), 6 deletions(-) diff --git a/cyperf/utils.py b/cyperf/utils.py index 07e342e..9b00ec9 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -6,7 +6,7 @@ from pprint import pprint import sys import cyperf - +from zipfile import ZipFile def format_warning_cli_issues(message, category, filename, lineno=None, line=None): return f"{category.__name__}: {message}\n" @@ -14,22 +14,25 @@ def format_warning_cli_issues(message, category, filename, lineno=None, line=Non warnings.formatwarning = format_warning_cli_issues - class TestRunner: """Convenience class for common test run operations""" - def __init__(self, controller, username="", password="", refresh_token="", license_server=None, license_user="", license_password=""): + def __init__(self, controller, username="", password="", refresh_token="", license_server=None, license_user="", license_password="", verify_ssl=True): self.controller = controller self.host = f'https://{controller}' + self.verify_ssl = verify_ssl self.license_server = license_server self.license_user = license_user self.license_password = license_password - + if username and password: + refresh_token = None + else: + refresh_token = refresh_token or os.environ.get("CYPERF_OFFLINE_TOKEN") self.configuration = cyperf.Configuration(host=self.host, refresh_token=refresh_token, username=username, password=password) - self.configuration.verify_ssl = False + self.configuration.verify_ssl = verify_ssl self.api_client = cyperf.ApiClient(self.configuration) self.added_license_servers = [] @@ -277,7 +280,7 @@ def start_test(self, session): except cyperf.ApiException as e: raise (e) - def wait_for_test_stop(self, session, test_monitor=None): + def wait_for_test_end(self, session=None, test_monitor=None): session_api = cyperf.SessionsApi(self.api_client) monitored_at = None wait_interval = 0.5 @@ -480,6 +483,108 @@ def set_model_armor_params(self, session, template_id, location, project_id, acc if not model_armor_applications_found: print("No Model Armor Applications found in the provided session.") + def get_agent_ips(self): + """Return the management IPs of all available agents.""" + agents = list(self.agents.values()) + return [agent.ip for agent in agents if agent.ip] + + def get_agent_ids_by_ips(self, agent_ips=None): + agents = list(self.agents.values()) + + if agent_ips is None: + agent_ips = [agent.ip for agent in agents if agent.ip] + + if isinstance(agent_ips, str): + agent_ips = [agent_ips] + + agent_ids = [] + + for agent_ip in agent_ips: + match = next((a for a in agents if a.ip == agent_ip), None) + + if match: + print(f'agent_ip: {agent_ip}, agent_id: {match.id}') + agent_ids.append(match.id) + + return agent_ids + + def set_test_duration(self, session, duration_seconds): + value = int(float(duration_seconds)) if isinstance(duration_seconds, str) else int(duration_seconds) + + if len(session.config.config.traffic_profiles) > 0 and session.config.config.traffic_profiles[0].active: + tp = session.config.config.traffic_profiles[0] + tp.objectives_and_timeline.primary_objective.timeline[1].duration = value + tp.objectives_and_timeline.update() + + if len(session.config.config.attack_profiles) > 0 and session.config.config.attack_profiles[0].active: + ap = session.config.config.attack_profiles[0] + ap.objectives_and_timeline.timeline_segments[0].duration = value + ap.objectives_and_timeline.update() + + self.testDuration = value + return value + + def get_test_duration(self, session): + traffic_duration = 0 + attack_duration = 0 + + if len(session.config.config.traffic_profiles) == 0 and len(session.config.config.attack_profiles) == 0: + return 0 + + if len(session.config.config.traffic_profiles) != 0 and session.config.config.traffic_profiles[0].active: + traffic_duration = \ + session.config.config.traffic_profiles[0].objectives_and_timeline.primary_objective.timeline[1].duration + + if len(session.config.config.attack_profiles) != 0 and session.config.config.attack_profiles[0].active: + attack_duration = session.config.config.attack_profiles[0].objectives_and_timeline.timeline_segments[ + 0].duration + + test_duration = max(traffic_duration, attack_duration) + self.testDuration = test_duration + return test_duration + + def get_csvs_for_result(self, result_id, download_path): + print("Get CSV statistics...") + os.makedirs(download_path, exist_ok=True) + + reports_api = cyperf.ReportsApi(self.api_client) + op = reports_api.start_result_generate_csv(result_id) + + try: + result = op.await_completion() + except cyperf.ApiException as e: + raise e + + zip_path = None + if isinstance(result, dict): + zip_path = result.get("filePath") or result.get("path") + elif isinstance(result, str): + zip_path = result + + if not zip_path: + raise RuntimeError(f"Could not determine CSV zip path from result: {result}") + + with ZipFile(zip_path, "r") as zf: + zf.extractall(download_path) + + print(f"CSV files extracted to: {download_path}") + return download_path + + def set_tcp_sack(self, session, enabled=True): + value = str(enabled).lower() == 'true' if isinstance(enabled, str) else bool(enabled) + updated = False + + for traffic_profile in session.config.config.traffic_profiles: + for application in traffic_profile.applications: + for connection in application.connections: + tcp = getattr(connection, 'tcp_characteristics', None) + if tcp: + tcp.use_sack_when_permitted = value + tcp.update() + updated = True + + return updated + def parse_cli_options(extra_options=[]): """Can be used to get parameters from the CLI or env vars that are broadly useful for CLI tests""" import argparse @@ -528,3 +633,5 @@ def create_api_client_cli(verify_ssl=True): password=cli_args.password) configuration.verify_ssl = verify_ssl return cyperf.ApiClient(configuration) + +utils = TestRunner \ No newline at end of file From d498290da504934ed61232a11715418cb4f7d861 Mon Sep 17 00:00:00 2001 From: Marian-Madalin Stanciu Date: Wed, 27 May 2026 06:35:57 -0600 Subject: [PATCH 36/53] Pull request #74: support for Sequences Merge in ISGAPPSEC/cyperf-api-wrapper from multivalue-dev to main Squashed commit of the following: commit 843e10c082e5e55eb451827f4d2670ccefb67638 Author: Marian-Madalin Stanciu Date: Wed May 27 13:07:47 2026 +0300 sample script for sequence/dut ranges commit 025e057b35c34df1c8afee5441f66005f700ac81 Author: Marian-Madalin Stanciu Date: Tue May 26 13:20:44 2026 +0300 multivalue support --- .openapi-generator/FILES | 285 ++++++++++--- README.md | 10 + cyperf/__init__.py | 10 + cyperf/dynamic_models/__init__.py | 10 + cyperf/models/__init__.py | 10 + cyperf/models/action.py | 5 +- cyperf/models/action_base.py | 5 +- cyperf/models/address.py | 122 ++++++ cyperf/models/application_profile.py | 5 +- cyperf/models/attack_action.py | 5 +- cyperf/models/attack_profile.py | 5 +- cyperf/models/command_metadata.py | 4 +- cyperf/models/custom_sequence.py | 122 ++++++ cyperf/models/dut_network.py | 8 +- cyperf/models/dut_range.py | 123 ++++++ cyperf/models/emulated_router_range.py | 8 +- cyperf/models/eth_range.py | 8 +- cyperf/models/ip_range.py | 8 +- cyperf/models/local_subnet_config.py | 6 +- cyperf/models/metadata.py | 4 +- cyperf/models/pangp_encapsulation.py | 4 +- cyperf/models/playlist_sequencing_method.py | 40 ++ cyperf/models/remote_subnet_config.py | 6 +- cyperf/models/sequence_data_types.py | 39 ++ cyperf/models/sequence_value.py | 123 ++++++ cyperf/models/sequence_value_types.py | 38 ++ cyperf/models/simple_sequence_value.py | 112 +++++ cyperf/models/single_value.py | 99 +++++ cyperf/models/stream_profile.py | 8 +- cyperf/models/sub_step.py | 120 ++++++ cyperf/models/traffic_profile_base.py | 5 +- docs/Action.md | 1 + docs/ActionBase.md | 1 + docs/Address.md | 32 ++ docs/ApplicationProfile.md | 1 + docs/AttackAction.md | 1 + docs/AttackProfile.md | 1 + docs/CommandMetadata.md | 1 + docs/CustomSequence.md | 32 ++ docs/DUTNetwork.md | 1 + docs/DUTRange.md | 34 ++ docs/EmulatedRouterRange.md | 1 + docs/EthRange.md | 1 + docs/IPRange.md | 1 + docs/LocalSubnetConfig.md | 1 + docs/Metadata.md | 1 + docs/PANGPEncapsulation.md | 1 + docs/PlaylistSequencingMethod.md | 17 + docs/RemoteSubnetConfig.md | 1 + docs/SequenceDataTypes.md | 14 + docs/SequenceValue.md | 35 ++ docs/SequenceValueTypes.md | 12 + docs/SimpleSequenceValue.md | 31 ++ docs/SingleValue.md | 32 ++ docs/StreamProfile.md | 1 + docs/SubStep.md | 32 ++ docs/TrafficProfileBase.md | 1 + samples/sample_sequences_examples.py | 445 ++++++++++++++++++++ 58 files changed, 1999 insertions(+), 90 deletions(-) create mode 100644 cyperf/models/address.py create mode 100644 cyperf/models/custom_sequence.py create mode 100644 cyperf/models/dut_range.py create mode 100644 cyperf/models/playlist_sequencing_method.py create mode 100644 cyperf/models/sequence_data_types.py create mode 100644 cyperf/models/sequence_value.py create mode 100644 cyperf/models/sequence_value_types.py create mode 100644 cyperf/models/simple_sequence_value.py create mode 100644 cyperf/models/single_value.py create mode 100644 cyperf/models/sub_step.py create mode 100644 docs/Address.md create mode 100644 docs/CustomSequence.md create mode 100644 docs/DUTRange.md create mode 100644 docs/PlaylistSequencingMethod.md create mode 100644 docs/SequenceDataTypes.md create mode 100644 docs/SequenceValue.md create mode 100644 docs/SequenceValueTypes.md create mode 100644 docs/SimpleSequenceValue.md create mode 100644 docs/SingleValue.md create mode 100644 docs/SubStep.md create mode 100644 samples/sample_sequences_examples.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fce2375..2a446cc 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,8 +1,10 @@ .github/workflows/python.yml .gitignore .gitlab-ci.yml +.openapi-generator-ignore .travis.yml README.md +cyperf/LICENSE cyperf/__init__.py cyperf/api/__init__.py cyperf/api/agents_api.py @@ -30,9 +32,15 @@ cyperf/exceptions.py cyperf/models/__init__.py cyperf/models/action.py cyperf/models/action_base.py +cyperf/models/action_input.py +cyperf/models/action_input_find_param.py +cyperf/models/action_metadata.py cyperf/models/activation_code_info.py cyperf/models/activation_code_list_request.py cyperf/models/activation_code_request.py +cyperf/models/add_action_info.py +cyperf/models/add_input.py +cyperf/models/address.py cyperf/models/advanced_settings.py cyperf/models/agent.py cyperf/models/agent_assignment_by_port.py @@ -49,39 +57,45 @@ cyperf/models/api_link.py cyperf/models/api_relationship.py cyperf/models/app_exchange.py cyperf/models/app_flow.py +cyperf/models/app_flow_desc.py +cyperf/models/app_flow_input.py +cyperf/models/app_flow_input_find_param.py cyperf/models/app_id.py cyperf/models/app_mode.py cyperf/models/application.py cyperf/models/application_profile.py cyperf/models/application_type.py cyperf/models/appsec_app.py +cyperf/models/appsec_app_metadata.py +cyperf/models/appsec_app_metadata_keywords_inner.py cyperf/models/appsec_attack.py cyperf/models/appsec_config.py cyperf/models/archive_info.py cyperf/models/array_v2_element_metadata.py cyperf/models/async_context.py -cyperf/models/async_operation_response.py cyperf/models/attack.py cyperf/models/attack_action.py +cyperf/models/attack_metadata.py cyperf/models/attack_objectives_and_timeline.py cyperf/models/attack_profile.py cyperf/models/attack_timeline_segment.py cyperf/models/attack_track.py cyperf/models/auth_method_type.py cyperf/models/auth_profile.py -cyperf/models/auth_realms_keysight_protocol_openid_connect_token_post200_response.py +cyperf/models/auth_profile_metadata.py cyperf/models/auth_settings.py +cyperf/models/authenticate200_response.py cyperf/models/authentication_settings.py cyperf/models/automatic_ip_type.py cyperf/models/broker.py +cyperf/models/capture_input.py +cyperf/models/capture_input_find_param.py cyperf/models/capture_settings.py cyperf/models/category.py cyperf/models/category_filter.py cyperf/models/category_value.py cyperf/models/cert_config.py cyperf/models/certificate.py -cyperf/models/change_aggregation_mode_operation.py -cyperf/models/change_link_state_operation.py cyperf/models/chassis_info.py cyperf/models/choice.py cyperf/models/cipher_tls12.py @@ -90,12 +104,13 @@ cyperf/models/cisco_any_connect_settings.py cyperf/models/cisco_encapsulation.py cyperf/models/clear_ports_ownership_operation.py cyperf/models/command.py +cyperf/models/command_metadata.py cyperf/models/compute_node.py cyperf/models/config.py cyperf/models/config_category.py cyperf/models/config_id.py cyperf/models/config_metadata.py -cyperf/models/config_metadata_config_data_value.py +cyperf/models/config_sub_category.py cyperf/models/config_validation.py cyperf/models/conflict.py cyperf/models/connection.py @@ -105,22 +120,29 @@ cyperf/models/controller.py cyperf/models/counted_feature_consumer.py cyperf/models/counted_feature_stats.py cyperf/models/create_app_operation.py +cyperf/models/create_app_or_attack_operation_input.py cyperf/models/custom_dashboards.py cyperf/models/custom_import_handler.py +cyperf/models/custom_sequence.py cyperf/models/custom_stat.py cyperf/models/dashboard.py cyperf/models/data_type.py cyperf/models/data_type_values_inner.py cyperf/models/definition.py +cyperf/models/delete_input.py cyperf/models/dh_p1_group.py cyperf/models/diagnostic_component.py cyperf/models/diagnostic_component_context.py cyperf/models/diagnostic_options.py cyperf/models/disk_usage.py +cyperf/models/dismiss_operation.py cyperf/models/dns_resolver.py cyperf/models/dns_server.py cyperf/models/dtls_settings.py cyperf/models/dut_network.py +cyperf/models/dut_range.py +cyperf/models/edit_action_input.py +cyperf/models/edit_app_operation.py cyperf/models/effective_ports.py cyperf/models/emulated_router.py cyperf/models/emulated_router_range.py @@ -135,7 +157,10 @@ cyperf/models/error_description.py cyperf/models/error_response.py cyperf/models/esp_over_udp_settings.py cyperf/models/eth_range.py +cyperf/models/eula_details.py +cyperf/models/eula_summary.py cyperf/models/exchange.py +cyperf/models/exchange_order.py cyperf/models/exchange_payload.py cyperf/models/expected_disk_space.py cyperf/models/expected_disk_space_message.py @@ -156,6 +181,7 @@ cyperf/models/file_metadata.py cyperf/models/file_value.py cyperf/models/filter.py cyperf/models/filtered_stat.py +cyperf/models/find_param_matches_operation.py cyperf/models/fortinet_encapsulation.py cyperf/models/fortinet_settings.py cyperf/models/fulfillment_request.py @@ -163,69 +189,79 @@ cyperf/models/generate_all_operation.py cyperf/models/generate_csv_reports_operation.py cyperf/models/generate_pdf_report_operation.py cyperf/models/generic_file.py -cyperf/models/get_agent_tags200_response.py -cyperf/models/get_agent_tags200_response_one_of.py cyperf/models/get_agents200_response.py cyperf/models/get_agents200_response_one_of.py -cyperf/models/get_application_types200_response.py -cyperf/models/get_application_types200_response_one_of.py -cyperf/models/get_apps200_response.py -cyperf/models/get_apps200_response_one_of.py +cyperf/models/get_agents_tags200_response.py +cyperf/models/get_agents_tags200_response_one_of.py +cyperf/models/get_apps_operation.py cyperf/models/get_async_operation_result200_response.py -cyperf/models/get_attacks200_response.py -cyperf/models/get_attacks200_response_one_of.py cyperf/models/get_attacks_operation.py -cyperf/models/get_auth_profiles200_response.py -cyperf/models/get_auth_profiles200_response_one_of.py cyperf/models/get_brokers200_response.py cyperf/models/get_brokers200_response_one_of.py cyperf/models/get_categories_operation.py -cyperf/models/get_certificates200_response.py -cyperf/models/get_certificates200_response_one_of.py +cyperf/models/get_config_categorie_subcategories200_response.py +cyperf/models/get_config_categorie_subcategories200_response_one_of.py cyperf/models/get_config_categories200_response.py cyperf/models/get_config_categories200_response_one_of.py cyperf/models/get_configs200_response.py cyperf/models/get_configs200_response_one_of.py -cyperf/models/get_consumers200_response.py -cyperf/models/get_consumers200_response_one_of.py cyperf/models/get_controllers200_response.py cyperf/models/get_controllers200_response_one_of.py -cyperf/models/get_custom_import_operations200_response.py -cyperf/models/get_custom_import_operations200_response_one_of.py -cyperf/models/get_files200_response.py -cyperf/models/get_files200_response_one_of.py -cyperf/models/get_http_profiles200_response.py -cyperf/models/get_http_profiles200_response_one_of.py +cyperf/models/get_disk_usage_consumers200_response.py +cyperf/models/get_disk_usage_consumers200_response_one_of.py cyperf/models/get_license_async_operation_result200_response.py cyperf/models/get_license_servers200_response.py cyperf/models/get_license_servers200_response_one_of.py -cyperf/models/get_meta200_response.py -cyperf/models/get_meta200_response_one_of.py cyperf/models/get_notifications200_response.py cyperf/models/get_notifications200_response_one_of.py -cyperf/models/get_plugins200_response.py -cyperf/models/get_plugins200_response_one_of.py -cyperf/models/get_result_tags200_response.py -cyperf/models/get_result_tags200_response_one_of.py +cyperf/models/get_resources_application_types200_response.py +cyperf/models/get_resources_application_types200_response_one_of.py +cyperf/models/get_resources_apps200_response.py +cyperf/models/get_resources_apps200_response_one_of.py +cyperf/models/get_resources_attacks200_response.py +cyperf/models/get_resources_attacks200_response_one_of.py +cyperf/models/get_resources_auth_profiles200_response.py +cyperf/models/get_resources_auth_profiles200_response_one_of.py +cyperf/models/get_resources_certificates200_response.py +cyperf/models/get_resources_certificates200_response_one_of.py +cyperf/models/get_resources_custom_import_operations200_response.py +cyperf/models/get_resources_custom_import_operations200_response_one_of.py +cyperf/models/get_resources_http_profiles200_response.py +cyperf/models/get_resources_http_profiles200_response_one_of.py +cyperf/models/get_resources_llm_api_profiles200_response.py +cyperf/models/get_resources_llm_api_profiles200_response_one_of.py +cyperf/models/get_result_files200_response.py +cyperf/models/get_result_files200_response_one_of.py +cyperf/models/get_result_stats200_response.py +cyperf/models/get_result_stats200_response_one_of.py cyperf/models/get_results200_response.py cyperf/models/get_results200_response_one_of.py +cyperf/models/get_results_tags200_response.py +cyperf/models/get_results_tags200_response_one_of.py +cyperf/models/get_session_meta200_response.py +cyperf/models/get_session_meta200_response_one_of.py cyperf/models/get_sessions200_response.py cyperf/models/get_sessions200_response_one_of.py -cyperf/models/get_stats200_response.py -cyperf/models/get_stats200_response_one_of.py +cyperf/models/get_stats_plugins200_response.py +cyperf/models/get_stats_plugins200_response_one_of.py cyperf/models/get_strikes_operation.py +cyperf/models/group_tls13.py cyperf/models/hash_p1_algorithm.py cyperf/models/hash_p2_algorithm.py cyperf/models/health_check_config.py cyperf/models/health_issue.py cyperf/models/host_id.py cyperf/models/http_profile.py +cyperf/models/http_req_meta.py +cyperf/models/http_res_meta.py cyperf/models/http_version.py cyperf/models/id_p_signature_algo.py +cyperf/models/identification_config.py cyperf/models/import_all_operation.py cyperf/models/import_offline_license_result.py cyperf/models/ingest_operation.py cyperf/models/inner_ip_range.py +cyperf/models/inner_ip_sec_range.py cyperf/models/interface.py cyperf/models/ip_mask.py cyperf/models/ip_network.py @@ -238,12 +274,15 @@ cyperf/models/license.py cyperf/models/license_receipt.py cyperf/models/license_server_metadata.py cyperf/models/link.py +cyperf/models/llmapi_profile.py cyperf/models/load_config_operation.py cyperf/models/local_subnet_config.py cyperf/models/log_config.py cyperf/models/log_level.py cyperf/models/mac_dtls_stack.py +cyperf/models/mapping_type.py cyperf/models/marked_as_deleted.py +cyperf/models/md2_tlv.py cyperf/models/media_file.py cyperf/models/media_track.py cyperf/models/metadata.py @@ -251,8 +290,11 @@ cyperf/models/mos_mode.py cyperf/models/name_id_format.py cyperf/models/name_server.py cyperf/models/network_mapping.py +cyperf/models/network_meshing.py cyperf/models/network_profile.py cyperf/models/network_segment_base.py +cyperf/models/nodes_by_controller.py +cyperf/models/nodes_power_cycle_operation.py cyperf/models/notification.py cyperf/models/notification_counts.py cyperf/models/ntp_info.py @@ -276,6 +318,8 @@ cyperf/models/param_metadata_type_info_string.py cyperf/models/param_source_type.py cyperf/models/param_type.py cyperf/models/parameter.py +cyperf/models/parameter_match.py +cyperf/models/parameter_meta.py cyperf/models/parameter_metadata.py cyperf/models/params.py cyperf/models/params_enum.py @@ -283,20 +327,33 @@ cyperf/models/payload_meta.py cyperf/models/payload_metadata.py cyperf/models/pep_dut.py cyperf/models/pfs_p2_group.py +cyperf/models/playlist_metadata.py +cyperf/models/playlist_sequencing_method.py cyperf/models/plugin.py cyperf/models/plugin_stats.py cyperf/models/port.py cyperf/models/port_settings.py +cyperf/models/ports_by_controller.py +cyperf/models/ports_by_node.py +cyperf/models/ppk_pair.py cyperf/models/prepare_test_operation.py cyperf/models/prepared_test_options.py cyperf/models/prf_p1_algorithm.py cyperf/models/protected_subnet_config.py +cyperf/models/psp_range.py +cyperf/models/psp_stack.py +cyperf/models/quic_profile.py +cyperf/models/quic_version.py cyperf/models/reboot_operation_input.py cyperf/models/reboot_ports_operation.py cyperf/models/reference.py +cyperf/models/regex_match.py cyperf/models/release_operation_input.py cyperf/models/remote_access.py cyperf/models/remote_subnet_config.py +cyperf/models/rename_input.py +cyperf/models/reorder_action_input.py +cyperf/models/reorder_exchanges_input.py cyperf/models/replay_capture.py cyperf/models/required_file_types.py cyperf/models/reserve_operation_input.py @@ -311,16 +368,26 @@ cyperf/models/scenario.py cyperf/models/secondary_objective.py cyperf/models/segment_type.py cyperf/models/selected_env.py +cyperf/models/sequence_data_types.py +cyperf/models/sequence_value.py +cyperf/models/sequence_value_types.py cyperf/models/session.py cyperf/models/session_reuse_method_tls12.py cyperf/models/session_reuse_method_tls13.py +cyperf/models/set_aggregation_mode_operation.py +cyperf/models/set_controller_app_operation.py cyperf/models/set_dpdk_mode_operation_input.py +cyperf/models/set_link_state_operation.py +cyperf/models/set_nodes_app_operation.py cyperf/models/set_ntp_operation_input.py +cyperf/models/simple_sequence_value.py cyperf/models/simulated_id_p.py +cyperf/models/single_value.py cyperf/models/snapshot.py +cyperf/models/snowflake_exporter.py cyperf/models/sort_body_field.py cyperf/models/specific_objective.py -cyperf/models/start_root_batch_delete_request_inner.py +cyperf/models/start_agents_batch_delete_request_inner.py cyperf/models/stateless_stream.py cyperf/models/static_arp_entry.py cyperf/models/stats_result.py @@ -329,12 +396,13 @@ cyperf/models/step_segment.py cyperf/models/stream_direction.py cyperf/models/stream_payload_type.py cyperf/models/stream_profile.py +cyperf/models/sub_step.py cyperf/models/supported_group_tls13.py -cyperf/models/switch_app_operation.py cyperf/models/system_info.py cyperf/models/tcp_profile.py cyperf/models/test_info.py cyperf/models/test_state_changed_operation.py +cyperf/models/test_usage.py cyperf/models/time_value.py cyperf/models/timeline_segment.py cyperf/models/timeline_segment_base.py @@ -358,18 +426,30 @@ cyperf/models/type_media_metadata.py cyperf/models/type_string_metadata.py cyperf/models/udp_profile.py cyperf/models/update_network_mapping.py +cyperf/models/update_port_tags_operation.py cyperf/models/validation_message.py cyperf/models/version.py cyperf/models/vlan_range.py +cyperf/models/vlan_type.py +cyperf/models/vx_lan_range.py +cyperf/models/vx_lan_stack.py +cyperf/models/vx_lanid.py cyperf/py.typed cyperf/rest.py +cyperf/utils.py docs/APILink.md docs/APIRelationship.md docs/Action.md docs/ActionBase.md +docs/ActionInput.md +docs/ActionInputFindParam.md +docs/ActionMetadata.md docs/ActivationCodeInfo.md docs/ActivationCodeListRequest.md docs/ActivationCodeRequest.md +docs/AddActionInfo.md +docs/AddInput.md +docs/Address.md docs/AdvancedSettings.md docs/Agent.md docs/AgentAssignmentByPort.md @@ -385,6 +465,9 @@ docs/AgentsApi.md docs/AgentsGroup.md docs/AppExchange.md docs/AppFlow.md +docs/AppFlowDesc.md +docs/AppFlowInput.md +docs/AppFlowInputFindParam.md docs/AppId.md docs/AppMode.md docs/Application.md @@ -392,6 +475,8 @@ docs/ApplicationProfile.md docs/ApplicationResourcesApi.md docs/ApplicationType.md docs/AppsecApp.md +docs/AppsecAppMetadata.md +docs/AppsecAppMetadataKeywordsInner.md docs/AppsecAttack.md docs/AppsecConfig.md docs/ArchiveInfo.md @@ -399,27 +484,29 @@ docs/ArrayV2ElementMetadata.md docs/AsyncContext.md docs/Attack.md docs/AttackAction.md +docs/AttackMetadata.md docs/AttackObjectivesAndTimeline.md docs/AttackProfile.md docs/AttackTimelineSegment.md docs/AttackTrack.md docs/AuthMethodType.md docs/AuthProfile.md -docs/AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response.md +docs/AuthProfileMetadata.md docs/AuthSettings.md +docs/Authenticate200Response.md docs/AuthenticationSettings.md docs/AuthorizationApi.md docs/AutomaticIpType.md docs/Broker.md docs/BrokersApi.md +docs/CaptureInput.md +docs/CaptureInputFindParam.md docs/CaptureSettings.md docs/Category.md docs/CategoryFilter.md docs/CategoryValue.md docs/CertConfig.md docs/Certificate.md -docs/ChangeAggregationModeOperation.md -docs/ChangeLinkStateOperation.md docs/ChassisInfo.md docs/Choice.md docs/CipherTLS12.md @@ -428,12 +515,13 @@ docs/CiscoAnyConnectSettings.md docs/CiscoEncapsulation.md docs/ClearPortsOwnershipOperation.md docs/Command.md +docs/CommandMetadata.md docs/ComputeNode.md docs/Config.md docs/ConfigCategory.md docs/ConfigId.md docs/ConfigMetadata.md -docs/ConfigMetadataConfigDataValue.md +docs/ConfigSubCategory.md docs/ConfigValidation.md docs/ConfigurationsApi.md docs/Conflict.md @@ -444,25 +532,32 @@ docs/Controller.md docs/CountedFeatureConsumer.md docs/CountedFeatureStats.md docs/CreateAppOperation.md +docs/CreateAppOrAttackOperationInput.md docs/CustomDashboards.md docs/CustomImportHandler.md +docs/CustomSequence.md docs/CustomStat.md docs/DNSResolver.md docs/DNSServer.md docs/DTLSSettings.md docs/DUTNetwork.md +docs/DUTRange.md docs/Dashboard.md docs/DataMigrationApi.md docs/DataType.md docs/DataTypeValuesInner.md docs/Definition.md +docs/DeleteInput.md docs/DhP1Group.md docs/DiagnosticComponent.md docs/DiagnosticComponentContext.md docs/DiagnosticOptions.md docs/DiagnosticsApi.md docs/DiskUsage.md +docs/DismissOperation.md docs/ESPOverUDPSettings.md +docs/EditActionInput.md +docs/EditAppOperation.md docs/EffectivePorts.md docs/EmulatedRouter.md docs/EmulatedRouterRange.md @@ -476,7 +571,10 @@ docs/Enum.md docs/ErrorDescription.md docs/ErrorResponse.md docs/EthRange.md +docs/EulaDetails.md +docs/EulaSummary.md docs/Exchange.md +docs/ExchangeOrder.md docs/ExchangePayload.md docs/ExpectedDiskSpace.md docs/ExpectedDiskSpaceMessage.md @@ -497,6 +595,7 @@ docs/FileMetadata.md docs/FileValue.md docs/Filter.md docs/FilteredStat.md +docs/FindParamMatchesOperation.md docs/FortinetEncapsulation.md docs/FortinetSettings.md docs/FulfillmentRequest.md @@ -504,58 +603,66 @@ docs/GenerateAllOperation.md docs/GenerateCSVReportsOperation.md docs/GeneratePDFReportOperation.md docs/GenericFile.md -docs/GetAgentTags200Response.md -docs/GetAgentTags200ResponseOneOf.md docs/GetAgents200Response.md docs/GetAgents200ResponseOneOf.md -docs/GetApplicationTypes200Response.md -docs/GetApplicationTypes200ResponseOneOf.md -docs/GetApps200Response.md -docs/GetApps200ResponseOneOf.md +docs/GetAgentsTags200Response.md +docs/GetAgentsTags200ResponseOneOf.md +docs/GetAppsOperation.md docs/GetAsyncOperationResult200Response.md -docs/GetAttacks200Response.md -docs/GetAttacks200ResponseOneOf.md docs/GetAttacksOperation.md -docs/GetAuthProfiles200Response.md -docs/GetAuthProfiles200ResponseOneOf.md docs/GetBrokers200Response.md docs/GetBrokers200ResponseOneOf.md docs/GetCategoriesOperation.md -docs/GetCertificates200Response.md -docs/GetCertificates200ResponseOneOf.md +docs/GetConfigCategorieSubcategories200Response.md +docs/GetConfigCategorieSubcategories200ResponseOneOf.md docs/GetConfigCategories200Response.md docs/GetConfigCategories200ResponseOneOf.md docs/GetConfigs200Response.md docs/GetConfigs200ResponseOneOf.md -docs/GetConsumers200Response.md -docs/GetConsumers200ResponseOneOf.md docs/GetControllers200Response.md docs/GetControllers200ResponseOneOf.md -docs/GetCustomImportOperations200Response.md -docs/GetCustomImportOperations200ResponseOneOf.md -docs/GetFiles200Response.md -docs/GetFiles200ResponseOneOf.md -docs/GetHttpProfiles200Response.md -docs/GetHttpProfiles200ResponseOneOf.md +docs/GetDiskUsageConsumers200Response.md +docs/GetDiskUsageConsumers200ResponseOneOf.md docs/GetLicenseAsyncOperationResult200Response.md docs/GetLicenseServers200Response.md docs/GetLicenseServers200ResponseOneOf.md -docs/GetMeta200Response.md -docs/GetMeta200ResponseOneOf.md docs/GetNotifications200Response.md docs/GetNotifications200ResponseOneOf.md -docs/GetPlugins200Response.md -docs/GetPlugins200ResponseOneOf.md -docs/GetResultTags200Response.md -docs/GetResultTags200ResponseOneOf.md +docs/GetResourcesApplicationTypes200Response.md +docs/GetResourcesApplicationTypes200ResponseOneOf.md +docs/GetResourcesApps200Response.md +docs/GetResourcesApps200ResponseOneOf.md +docs/GetResourcesAttacks200Response.md +docs/GetResourcesAttacks200ResponseOneOf.md +docs/GetResourcesAuthProfiles200Response.md +docs/GetResourcesAuthProfiles200ResponseOneOf.md +docs/GetResourcesCertificates200Response.md +docs/GetResourcesCertificates200ResponseOneOf.md +docs/GetResourcesCustomImportOperations200Response.md +docs/GetResourcesCustomImportOperations200ResponseOneOf.md +docs/GetResourcesHttpProfiles200Response.md +docs/GetResourcesHttpProfiles200ResponseOneOf.md +docs/GetResourcesLlmApiProfiles200Response.md +docs/GetResourcesLlmApiProfiles200ResponseOneOf.md +docs/GetResultFiles200Response.md +docs/GetResultFiles200ResponseOneOf.md +docs/GetResultStats200Response.md +docs/GetResultStats200ResponseOneOf.md docs/GetResults200Response.md docs/GetResults200ResponseOneOf.md +docs/GetResultsTags200Response.md +docs/GetResultsTags200ResponseOneOf.md +docs/GetSessionMeta200Response.md +docs/GetSessionMeta200ResponseOneOf.md docs/GetSessions200Response.md docs/GetSessions200ResponseOneOf.md -docs/GetStats200Response.md -docs/GetStats200ResponseOneOf.md +docs/GetStatsPlugins200Response.md +docs/GetStatsPlugins200ResponseOneOf.md docs/GetStrikesOperation.md +docs/GroupTLS13.md docs/HTTPProfile.md +docs/HTTPReqMeta.md +docs/HTTPResMeta.md docs/HTTPVersion.md docs/HashP1Algorithm.md docs/HashP2Algorithm.md @@ -567,14 +674,17 @@ docs/IPRange.md docs/IPSecRange.md docs/IPSecStack.md docs/IdPSignatureAlgo.md +docs/IdentificationConfig.md docs/ImportAllOperation.md docs/ImportOfflineLicenseResult.md docs/IngestOperation.md docs/InnerIPRange.md +docs/InnerIPSecRange.md docs/Interface.md docs/IpMask.md docs/IpPreference.md docs/IpVer.md +docs/LLMAPIProfile.md docs/License.md docs/LicenseReceipt.md docs/LicenseServerMetadata.md @@ -586,7 +696,9 @@ docs/LocalSubnetConfig.md docs/LogConfig.md docs/LogLevel.md docs/MacDtlsStack.md +docs/MappingType.md docs/MarkedAsDeleted.md +docs/Md2Tlv.md docs/MediaFile.md docs/MediaTrack.md docs/Metadata.md @@ -594,8 +706,11 @@ docs/MosMode.md docs/NameIdFormat.md docs/NameServer.md docs/NetworkMapping.md +docs/NetworkMeshing.md docs/NetworkProfile.md docs/NetworkSegmentBase.md +docs/NodesByController.md +docs/NodesPowerCycleOperation.md docs/Notification.md docs/NotificationCounts.md docs/NotificationsApi.md @@ -609,6 +724,9 @@ docs/P1Config.md docs/P2Config.md docs/PANGPEncapsulation.md docs/PANGPSettings.md +docs/PPKPair.md +docs/PSPRange.md +docs/PSPStack.md docs/Pair.md docs/ParamMetadata.md docs/ParamMetadataTypeInfo.md @@ -620,6 +738,8 @@ docs/ParamMetadataTypeInfoString.md docs/ParamSourceType.md docs/ParamType.md docs/Parameter.md +docs/ParameterMatch.md +docs/ParameterMeta.md docs/ParameterMetadata.md docs/Params.md docs/ParamsEnum.md @@ -627,23 +747,33 @@ docs/PayloadMeta.md docs/PayloadMetadata.md docs/PepDUT.md docs/PfsP2Group.md +docs/PlaylistMetadata.md +docs/PlaylistSequencingMethod.md docs/Plugin.md docs/PluginStats.md docs/Port.md docs/PortSettings.md +docs/PortsByController.md +docs/PortsByNode.md docs/PrepareTestOperation.md docs/PreparedTestOptions.md docs/PrfP1Algorithm.md docs/ProtectedSubnetConfig.md +docs/QUICProfile.md +docs/QUICVersion.md docs/RTPEncryptionMode.md docs/RTPProfile.md docs/RTPProfileMeta.md docs/RebootOperationInput.md docs/RebootPortsOperation.md docs/Reference.md +docs/RegexMatch.md docs/ReleaseOperationInput.md docs/RemoteAccess.md docs/RemoteSubnetConfig.md +docs/RenameInput.md +docs/ReorderActionInput.md +docs/ReorderExchangesInput.md docs/ReplayCapture.md docs/ReportsApi.md docs/RequiredFileTypes.md @@ -656,17 +786,27 @@ docs/Scenario.md docs/SecondaryObjective.md docs/SegmentType.md docs/SelectedEnv.md +docs/SequenceDataTypes.md +docs/SequenceValue.md +docs/SequenceValueTypes.md docs/Session.md docs/SessionReuseMethodTLS12.md docs/SessionReuseMethodTLS13.md docs/SessionsApi.md +docs/SetAggregationModeOperation.md +docs/SetControllerAppOperation.md docs/SetDpdkModeOperationInput.md +docs/SetLinkStateOperation.md +docs/SetNodesAppOperation.md docs/SetNtpOperationInput.md +docs/SimpleSequenceValue.md docs/SimulatedIdP.md +docs/SingleValue.md docs/Snapshot.md +docs/SnowflakeExporter.md docs/SortBodyField.md docs/SpecificObjective.md -docs/StartRootBatchDeleteRequestInner.md +docs/StartAgentsBatchDeleteRequestInner.md docs/StatelessStream.md docs/StaticARPEntry.md docs/StatisticsApi.md @@ -676,8 +816,8 @@ docs/StepSegment.md docs/StreamDirection.md docs/StreamPayloadType.md docs/StreamProfile.md +docs/SubStep.md docs/SupportedGroupTLS13.md -docs/SwitchAppOperation.md docs/SystemInfo.md docs/TLSProfile.md docs/TcpProfile.md @@ -685,6 +825,7 @@ docs/TestInfo.md docs/TestOperationsApi.md docs/TestResultsApi.md docs/TestStateChangedOperation.md +docs/TestUsage.md docs/TimeValue.md docs/TimelineSegment.md docs/TimelineSegmentBase.md @@ -707,15 +848,19 @@ docs/TypeMediaMetadata.md docs/TypeStringMetadata.md docs/UdpProfile.md docs/UpdateNetworkMapping.md +docs/UpdatePortTagsOperation.md docs/UtilsApi.md docs/VLANRange.md +docs/VLANType.md docs/ValidationMessage.md docs/Version.md +docs/VxLANId.md +docs/VxLANRange.md +docs/VxLANStack.md git_push.sh pyproject.toml requirements.txt setup.cfg setup.py test-requirements.txt -test/__init__.py tox.ini diff --git a/README.md b/README.md index 5d530c3..c7fdfe6 100644 --- a/README.md +++ b/README.md @@ -399,6 +399,7 @@ Class | Method | HTTP request | Description - [ActivationCodeRequest](docs/ActivationCodeRequest.md) - [AddActionInfo](docs/AddActionInfo.md) - [AddInput](docs/AddInput.md) + - [Address](docs/Address.md) - [AdvancedSettings](docs/AdvancedSettings.md) - [Agent](docs/Agent.md) - [AgentAssignmentByPort](docs/AgentAssignmentByPort.md) @@ -479,11 +480,13 @@ Class | Method | HTTP request | Description - [CreateAppOrAttackOperationInput](docs/CreateAppOrAttackOperationInput.md) - [CustomDashboards](docs/CustomDashboards.md) - [CustomImportHandler](docs/CustomImportHandler.md) + - [CustomSequence](docs/CustomSequence.md) - [CustomStat](docs/CustomStat.md) - [DNSResolver](docs/DNSResolver.md) - [DNSServer](docs/DNSServer.md) - [DTLSSettings](docs/DTLSSettings.md) - [DUTNetwork](docs/DUTNetwork.md) + - [DUTRange](docs/DUTRange.md) - [Dashboard](docs/Dashboard.md) - [DataType](docs/DataType.md) - [DataTypeValuesInner](docs/DataTypeValuesInner.md) @@ -685,6 +688,7 @@ Class | Method | HTTP request | Description - [PepDUT](docs/PepDUT.md) - [PfsP2Group](docs/PfsP2Group.md) - [PlaylistMetadata](docs/PlaylistMetadata.md) + - [PlaylistSequencingMethod](docs/PlaylistSequencingMethod.md) - [Plugin](docs/Plugin.md) - [PluginStats](docs/PluginStats.md) - [Port](docs/Port.md) @@ -721,6 +725,9 @@ Class | Method | HTTP request | Description - [SecondaryObjective](docs/SecondaryObjective.md) - [SegmentType](docs/SegmentType.md) - [SelectedEnv](docs/SelectedEnv.md) + - [SequenceDataTypes](docs/SequenceDataTypes.md) + - [SequenceValue](docs/SequenceValue.md) + - [SequenceValueTypes](docs/SequenceValueTypes.md) - [Session](docs/Session.md) - [SessionReuseMethodTLS12](docs/SessionReuseMethodTLS12.md) - [SessionReuseMethodTLS13](docs/SessionReuseMethodTLS13.md) @@ -730,7 +737,9 @@ Class | Method | HTTP request | Description - [SetLinkStateOperation](docs/SetLinkStateOperation.md) - [SetNodesAppOperation](docs/SetNodesAppOperation.md) - [SetNtpOperationInput](docs/SetNtpOperationInput.md) + - [SimpleSequenceValue](docs/SimpleSequenceValue.md) - [SimulatedIdP](docs/SimulatedIdP.md) + - [SingleValue](docs/SingleValue.md) - [Snapshot](docs/Snapshot.md) - [SnowflakeExporter](docs/SnowflakeExporter.md) - [SortBodyField](docs/SortBodyField.md) @@ -744,6 +753,7 @@ Class | Method | HTTP request | Description - [StreamDirection](docs/StreamDirection.md) - [StreamPayloadType](docs/StreamPayloadType.md) - [StreamProfile](docs/StreamProfile.md) + - [SubStep](docs/SubStep.md) - [SupportedGroupTLS13](docs/SupportedGroupTLS13.md) - [SystemInfo](docs/SystemInfo.md) - [TLSProfile](docs/TLSProfile.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 6a7fee7..eb29d89 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -64,6 +64,7 @@ from cyperf.models.activation_code_request import ActivationCodeRequest from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput +from cyperf.models.address import Address from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort @@ -144,11 +145,13 @@ from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.custom_import_handler import CustomImportHandler +from cyperf.models.custom_sequence import CustomSequence from cyperf.models.custom_stat import CustomStat from cyperf.models.dns_resolver import DNSResolver from cyperf.models.dns_server import DNSServer from cyperf.models.dtls_settings import DTLSSettings from cyperf.models.dut_network import DUTNetwork +from cyperf.models.dut_range import DUTRange from cyperf.models.dashboard import Dashboard from cyperf.models.data_type import DataType from cyperf.models.data_type_values_inner import DataTypeValuesInner @@ -350,6 +353,7 @@ from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group from cyperf.models.playlist_metadata import PlaylistMetadata +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port @@ -386,6 +390,9 @@ from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.segment_type import SegmentType from cyperf.models.selected_env import SelectedEnv +from cyperf.models.sequence_data_types import SequenceDataTypes +from cyperf.models.sequence_value import SequenceValue +from cyperf.models.sequence_value_types import SequenceValueTypes from cyperf.models.session import Session from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 @@ -395,7 +402,9 @@ from cyperf.models.set_link_state_operation import SetLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput +from cyperf.models.simple_sequence_value import SimpleSequenceValue from cyperf.models.simulated_id_p import SimulatedIdP +from cyperf.models.single_value import SingleValue from cyperf.models.snapshot import Snapshot from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField @@ -409,6 +418,7 @@ from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_payload_type import StreamPayloadType from cyperf.models.stream_profile import StreamProfile +from cyperf.models.sub_step import SubStep from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 from cyperf.models.system_info import SystemInfo from cyperf.models.tls_profile import TLSProfile diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index d29722e..2021a3c 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -30,6 +30,7 @@ ActivationCodeRequest = DynamicModel('ActivationCodeRequest', (), {} ) AddActionInfo = DynamicModel('AddActionInfo', (), {} ) AddInput = DynamicModel('AddInput', (), {} ) +Address = DynamicModel('Address', (), {} ) AdvancedSettings = DynamicModel('AdvancedSettings', (), {} ) Agent = DynamicModel('Agent', (), {} ) AgentAssignmentByPort = DynamicModel('AgentAssignmentByPort', (), {} ) @@ -110,11 +111,13 @@ CreateAppOrAttackOperationInput = DynamicModel('CreateAppOrAttackOperationInput', (), {} ) CustomDashboards = DynamicModel('CustomDashboards', (), {} ) CustomImportHandler = DynamicModel('CustomImportHandler', (), {} ) +CustomSequence = DynamicModel('CustomSequence', (), {} ) CustomStat = DynamicModel('CustomStat', (), {} ) DNSResolver = DynamicModel('DNSResolver', (), {} ) DNSServer = DynamicModel('DNSServer', (), {} ) DTLSSettings = DynamicModel('DTLSSettings', (), {} ) DUTNetwork = DynamicModel('DUTNetwork', (), {} ) +DUTRange = DynamicModel('DUTRange', (), {} ) Dashboard = DynamicModel('Dashboard', (), {} ) DataType = DynamicModel('DataType', (), {} ) DataTypeValuesInner = DynamicModel('DataTypeValuesInner', (), {} ) @@ -316,6 +319,7 @@ PepDUT = DynamicModel('PepDUT', (), {} ) PfsP2Group = DynamicModel('PfsP2Group', (), {} ) PlaylistMetadata = DynamicModel('PlaylistMetadata', (), {} ) +PlaylistSequencingMethod = DynamicModel('PlaylistSequencingMethod', (), {} ) Plugin = DynamicModel('Plugin', (), {} ) PluginStats = DynamicModel('PluginStats', (), {} ) Port = DynamicModel('Port', (), {} ) @@ -352,6 +356,9 @@ SecondaryObjective = DynamicModel('SecondaryObjective', (), {} ) SegmentType = DynamicModel('SegmentType', (), {} ) SelectedEnv = DynamicModel('SelectedEnv', (), {} ) +SequenceDataTypes = DynamicModel('SequenceDataTypes', (), {} ) +SequenceValue = DynamicModel('SequenceValue', (), {} ) +SequenceValueTypes = DynamicModel('SequenceValueTypes', (), {} ) Session = DynamicModel('Session', (), {} ) SessionReuseMethodTLS12 = DynamicModel('SessionReuseMethodTLS12', (), {} ) SessionReuseMethodTLS13 = DynamicModel('SessionReuseMethodTLS13', (), {} ) @@ -361,7 +368,9 @@ SetLinkStateOperation = DynamicModel('SetLinkStateOperation', (), {} ) SetNodesAppOperation = DynamicModel('SetNodesAppOperation', (), {} ) SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) +SimpleSequenceValue = DynamicModel('SimpleSequenceValue', (), {} ) SimulatedIdP = DynamicModel('SimulatedIdP', (), {} ) +SingleValue = DynamicModel('SingleValue', (), {} ) Snapshot = DynamicModel('Snapshot', (), {} ) SnowflakeExporter = DynamicModel('SnowflakeExporter', (), {} ) SortBodyField = DynamicModel('SortBodyField', (), {} ) @@ -375,6 +384,7 @@ StreamDirection = DynamicModel('StreamDirection', (), {} ) StreamPayloadType = DynamicModel('StreamPayloadType', (), {} ) StreamProfile = DynamicModel('StreamProfile', (), {} ) +SubStep = DynamicModel('SubStep', (), {} ) SupportedGroupTLS13 = DynamicModel('SupportedGroupTLS13', (), {} ) SystemInfo = DynamicModel('SystemInfo', (), {} ) TLSProfile = DynamicModel('TLSProfile', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index a7516f4..3b056c3 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -30,6 +30,7 @@ class LinkNameException(Exception): from cyperf.models.activation_code_request import ActivationCodeRequest from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput +from cyperf.models.address import Address from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort @@ -110,11 +111,13 @@ class LinkNameException(Exception): from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.custom_import_handler import CustomImportHandler +from cyperf.models.custom_sequence import CustomSequence from cyperf.models.custom_stat import CustomStat from cyperf.models.dns_resolver import DNSResolver from cyperf.models.dns_server import DNSServer from cyperf.models.dtls_settings import DTLSSettings from cyperf.models.dut_network import DUTNetwork +from cyperf.models.dut_range import DUTRange from cyperf.models.dashboard import Dashboard from cyperf.models.data_type import DataType from cyperf.models.data_type_values_inner import DataTypeValuesInner @@ -316,6 +319,7 @@ class LinkNameException(Exception): from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group from cyperf.models.playlist_metadata import PlaylistMetadata +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port @@ -352,6 +356,9 @@ class LinkNameException(Exception): from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.segment_type import SegmentType from cyperf.models.selected_env import SelectedEnv +from cyperf.models.sequence_data_types import SequenceDataTypes +from cyperf.models.sequence_value import SequenceValue +from cyperf.models.sequence_value_types import SequenceValueTypes from cyperf.models.session import Session from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 @@ -361,7 +368,9 @@ class LinkNameException(Exception): from cyperf.models.set_link_state_operation import SetLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput +from cyperf.models.simple_sequence_value import SimpleSequenceValue from cyperf.models.simulated_id_p import SimulatedIdP +from cyperf.models.single_value import SingleValue from cyperf.models.snapshot import Snapshot from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField @@ -375,6 +384,7 @@ class LinkNameException(Exception): from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_payload_type import StreamPayloadType from cyperf.models.stream_profile import StreamProfile +from cyperf.models.sub_step import SubStep from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 from cyperf.models.system_info import SystemInfo from cyperf.models.tls_profile import TLSProfile diff --git a/cyperf/models/action.py b/cyperf/models/action.py index 6a16cfc..6e029e0 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange +from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -45,9 +46,10 @@ class Action(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") + supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -146,6 +148,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index 6b185c7..2465540 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange +from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -45,9 +46,10 @@ class ActionBase(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") + supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -146,6 +148,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/address.py b/cyperf/models/address.py new file mode 100644 index 0000000..d6d4ee6 --- /dev/null +++ b/cyperf/models/address.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.api_link import APILink +from cyperf.models.dut_range import DUTRange +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class Address(BaseModel): + """ + Address + """ # noqa: E501 + host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="Host") + range: Optional[DUTRange] = Field(default=None, alias="Range") + use_range: Optional[StrictBool] = Field(default=None, alias="UseRange") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Host", "Range", "UseRange", "links"] + + @field_validator('host') + def host_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$", value): + raise ValueError(r"must validate the regular expression /^$|^(([a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|(^(([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]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|(([0-9a-fA-F]{1,4}:){5,5}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}|([0-9a-fA-F]{1,4}:){1,4}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){2,2}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){3,3}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){4,4})|:(:[0-9a-fA-F]{1,4}){1,5}):((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Address from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of range + if self.range: + _dict['Range'] = self.range.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Address from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Host": obj.get("Host"), + "Range": DUTRange.from_dict(obj["Range"]) if obj.get("Range") is not None else None, + "UseRange": obj.get("UseRange"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index 8559031..2b90483 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -25,6 +25,7 @@ from cyperf.models.external_resource_info import ExternalResourceInfo from cyperf.models.network_mapping import NetworkMapping from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union @@ -36,6 +37,7 @@ class ApplicationProfile(BaseModel): ApplicationProfile """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") + playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None @@ -52,7 +54,7 @@ class ApplicationProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateTrafficProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetTrafficProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), + "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 03923e0..f261776 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange +from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -45,9 +46,10 @@ class AttackAction(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") + supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -146,6 +148,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index 643e4f6..7ac4116 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -25,6 +25,7 @@ from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.external_resource_info import ExternalResourceInfo from cyperf.models.network_mapping import NetworkMapping +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union @@ -36,6 +37,7 @@ class AttackProfile(BaseModel): AttackProfile """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") + playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None @@ -52,7 +54,7 @@ class AttackProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetAttackProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), + "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index d0c1c0b..d8158ee 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -48,10 +48,11 @@ class CommandMetadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + supported_http_versions: Optional[List[StrictStr]] = Field(default=None, description="The HTTP versions supported by the application", alias="SupportedHTTPVersions") supported_protocols: Optional[List[StrictStr]] = Field(default=None, description="The list of protocols which support this command", alias="SupportedProtocols") supports_http2: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports HTTP2 multi-stream", alias="SupportsHTTP2") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "SupportsHTTP2", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedHTTPVersions", "SupportedProtocols", "SupportsHTTP2", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -140,6 +141,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions") if obj.get("SupportedHTTPVersions") is not None else [], "SupportedProtocols": obj.get("SupportedProtocols") if obj.get("SupportedProtocols") is not None else [], "SupportsHTTP2": obj.get("SupportsHTTP2"), "Year": obj.get("Year") diff --git a/cyperf/models/custom_sequence.py b/cyperf/models/custom_sequence.py new file mode 100644 index 0000000..ccbf7ed --- /dev/null +++ b/cyperf/models/custom_sequence.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.single_value import SingleValue +from cyperf.models.sub_step import SubStep +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class CustomSequence(BaseModel): + """ + CustomSequence + """ # noqa: E501 + start: Optional[SingleValue] = Field(default=None, alias="Start") + step: Optional[SingleValue] = Field(default=None, alias="Step") + links: Optional[List[APILink]] = None + sub_steps: Optional[List[SubStep]] = Field(default=None, alias="SubSteps") + __properties: ClassVar[List[str]] = ["Start", "Step", "links", "SubSteps"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CustomSequence from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of start + if self.start: + _dict['Start'] = self.start.to_dict() + # override the default output from pydantic by calling `to_dict()` of step + if self.step: + _dict['Step'] = self.step.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in sub_steps (list) + _items = [] + if self.sub_steps: + for _item in self.sub_steps: + if _item: + _items.append(_item.to_dict()) + _dict['SubSteps'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CustomSequence from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Start": SingleValue.from_dict(obj["Start"]) if obj.get("Start") is not None else None, + "Step": SingleValue.from_dict(obj["Step"]) if obj.get("Step") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "SubSteps": ( [SubStep.from_dict(_item) for _item in obj.get("SubSteps", [])] if obj.get("SubSteps") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index f02ea23..8d74b23 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from cyperf.models.address import Address from cyperf.models.api_link import APILink from cyperf.models.health_check_config import HealthCheckConfig from cyperf.models.params import Params @@ -54,6 +55,7 @@ class DUTNetwork(BaseModel): reverse_proxy_pep_dut: Optional[PepDUT] = Field(default=None, alias="ReverseProxyPepDUT") reverse_proxy_pep_dut_active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false)", alias="ReverseProxyPepDUTActive") server_dut_active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the server DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false)", alias="ServerDUTActive") + server_dut_address: Optional[Address] = Field(default=None, alias="ServerDUTAddress") server_dut_host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The hostname where the traffic goes if server DUT is active.", alias="ServerDUTHost") server_dut_port: Optional[StrictInt] = Field(default=None, description="The listen port for server-side DUT", alias="ServerDUTPort") tcp_health_check: Optional[HealthCheckConfig] = Field(default=None, description="The TCP HealthCheck configuration for DUT", alias="TCPHealthCheck") @@ -61,7 +63,7 @@ class DUTNetwork(BaseModel): active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false)") host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The hostname where the traffic goes if server DUT is active.") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "LLMModel", "LLMRequestURLPath", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "LLMModel", "LLMRequestURLPath", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTAddress", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -187,6 +189,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of reverse_proxy_pep_dut if self.reverse_proxy_pep_dut: _dict['ReverseProxyPepDUT'] = self.reverse_proxy_pep_dut.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_dut_address + if self.server_dut_address: + _dict['ServerDUTAddress'] = self.server_dut_address.to_dict() # override the default output from pydantic by calling `to_dict()` of tcp_health_check if self.tcp_health_check: _dict['TCPHealthCheck'] = self.tcp_health_check.to_dict() @@ -232,6 +237,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ReverseProxyPepDUT": PepDUT.from_dict(obj["ReverseProxyPepDUT"]) if obj.get("ReverseProxyPepDUT") is not None else None, "ReverseProxyPepDUTActive": obj.get("ReverseProxyPepDUTActive"), "ServerDUTActive": obj.get("ServerDUTActive"), + "ServerDUTAddress": Address.from_dict(obj["ServerDUTAddress"]) if obj.get("ServerDUTAddress") is not None else None, "ServerDUTHost": obj.get("ServerDUTHost"), "ServerDUTPort": obj.get("ServerDUTPort"), "TCPHealthCheck": HealthCheckConfig.from_dict(obj["TCPHealthCheck"]) if obj.get("TCPHealthCheck") is not None else None, diff --git a/cyperf/models/dut_range.py b/cyperf/models/dut_range.py new file mode 100644 index 0000000..fa81786 --- /dev/null +++ b/cyperf/models/dut_range.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.sequence_value import SequenceValue +from cyperf.models.vlan_range import VLANRange +from cyperf.models.vlan_type import VLANType +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class DUTRange(BaseModel): + """ + DUTRange + """ # noqa: E501 + count: Optional[StrictInt] = Field(default=None, alias="Count") + inner_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current DTLS Range configuration", alias="InnerVlanRange") + ip: Optional[SequenceValue] = Field(default=None, alias="Ip") + outer_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current DTLS Range configuration", alias="OuterVlanRange") + vlan_type: Optional[VLANType] = Field(default=None, description="The type of VLAN used", alias="VLANType") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Count", "InnerVlanRange", "Ip", "OuterVlanRange", "VLANType", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DUTRange from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of inner_vlan_range + if self.inner_vlan_range: + _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of ip + if self.ip: + _dict['Ip'] = self.ip.to_dict() + # override the default output from pydantic by calling `to_dict()` of outer_vlan_range + if self.outer_vlan_range: + _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DUTRange from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Count": obj.get("Count"), + "InnerVlanRange": VLANRange.from_dict(obj["InnerVlanRange"]) if obj.get("InnerVlanRange") is not None else None, + "Ip": SequenceValue.from_dict(obj["Ip"]) if obj.get("Ip") is not None else None, + "OuterVlanRange": VLANRange.from_dict(obj["OuterVlanRange"]) if obj.get("OuterVlanRange") is not None else None, + "VLANType": obj.get("VLANType"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 2b88b82..1fe348d 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -24,6 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer +from cyperf.models.sequence_value import SequenceValue from cyperf.models.vlan_range import VLANRange from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union @@ -40,6 +41,7 @@ class EmulatedRouterRange(BaseModel): gw_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The gateway start IP for the IPRange (default: 10.0.0.1).", alias="GwStart") host_count: Optional[StrictInt] = Field(default=None, description="The number of Host IPs generated (default: 1).", alias="HostCount") inner_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current IP range configuration", alias="InnerVlanRange") + ip_address: Optional[SequenceValue] = Field(default=None, alias="IpAddress") ip_auto: StrictBool = Field(description="A flag indicating if IP settings for the IPRange should be determined automatically (default: true).", alias="IpAuto") ip_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The IP incrementation rule (default: 0.0.0.1).", alias="IpIncr") ip_range_name: Annotated[str, Field(strict=True)] = Field(alias="IpRangeName") @@ -56,7 +58,7 @@ class EmulatedRouterRange(BaseModel): links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1).", alias="maxCountPerAgent") network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] + __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAddress", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] @field_validator('gw_start') def gw_start_validate_regular_expression(cls, value): @@ -137,6 +139,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of inner_vlan_range if self.inner_vlan_range: _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of ip_address + if self.ip_address: + _dict['IpAddress'] = self.ip_address.to_dict() # override the default output from pydantic by calling `to_dict()` of outer_vlan_range if self.outer_vlan_range: _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() @@ -167,6 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "GwStart": obj.get("GwStart"), "HostCount": obj.get("HostCount"), "InnerVlanRange": VLANRange.from_dict(obj["InnerVlanRange"]) if obj.get("InnerVlanRange") is not None else None, + "IpAddress": SequenceValue.from_dict(obj["IpAddress"]) if obj.get("IpAddress") is not None else None, "IpAuto": obj.get("IpAuto"), "IpIncr": obj.get("IpIncr"), "IpRangeName": obj.get("IpRangeName"), diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index 964ed14..0bf2674 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from cyperf.models.api_link import APILink +from cyperf.models.sequence_value import SequenceValue from cyperf.models.static_arp_entry import StaticARPEntry from typing import Optional, Set, Union from typing_extensions import Self @@ -32,6 +33,7 @@ class EthRange(BaseModel): The Ethernet Ranges assigned to the current test configuration """ # noqa: E501 count: Optional[StrictInt] = Field(default=None, alias="Count") + mac_address: Optional[SequenceValue] = Field(default=None, alias="MacAddress") mac_auto: StrictBool = Field(description="A flag indicating if the MAC address for the EthRange should be determined automatically (default: true).", alias="MacAuto") mac_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The MAC address increment rule for the EthRange (default: 00:00:00:00:00:01).", alias="MacIncr") mac_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The MAC start address for the EthRange (default: 00:11:01:00:00:01).", alias="MacStart") @@ -39,7 +41,7 @@ class EthRange(BaseModel): static_arp_table: Optional[List[StaticARPEntry]] = Field(default=None, alias="StaticARPTable") links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of MACs that should be assigned to each traffic agent for this Ethernet range segment in a valid test (default: 0, split equally between agents).", alias="maxCountPerAgent") - __properties: ClassVar[List[str]] = ["Count", "MacAuto", "MacIncr", "MacStart", "OneMacPerIP", "StaticARPTable", "links", "maxCountPerAgent"] + __properties: ClassVar[List[str]] = ["Count", "MacAddress", "MacAuto", "MacIncr", "MacStart", "OneMacPerIP", "StaticARPTable", "links", "maxCountPerAgent"] @field_validator('mac_incr') def mac_incr_validate_regular_expression(cls, value): @@ -100,6 +102,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of mac_address + if self.mac_address: + _dict['MacAddress'] = self.mac_address.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in static_arp_table (list) _items = [] if self.static_arp_table: @@ -129,6 +134,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Count": obj.get("Count"), + "MacAddress": SequenceValue.from_dict(obj["MacAddress"]) if obj.get("MacAddress") is not None else None, "MacAuto": obj.get("MacAuto"), "MacIncr": obj.get("MacIncr"), "MacStart": obj.get("MacStart"), diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index 9c83b38..58897c8 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -24,6 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer +from cyperf.models.sequence_value import SequenceValue from cyperf.models.vlan_range import VLANRange from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union @@ -40,6 +41,7 @@ class IPRange(BaseModel): gw_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The gateway start IP for the IPRange (default: 10.0.0.1).", alias="GwStart") host_count: Optional[StrictInt] = Field(default=None, description="The number of Host IPs generated (default: 1).", alias="HostCount") inner_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current IP range configuration", alias="InnerVlanRange") + ip_address: Optional[SequenceValue] = Field(default=None, alias="IpAddress") ip_auto: StrictBool = Field(description="A flag indicating if IP settings for the IPRange should be determined automatically (default: true).", alias="IpAuto") ip_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The IP incrementation rule (default: 0.0.0.1).", alias="IpIncr") ip_range_name: Annotated[str, Field(strict=True)] = Field(alias="IpRangeName") @@ -56,7 +58,7 @@ class IPRange(BaseModel): links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1).", alias="maxCountPerAgent") network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] + __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAddress", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] @field_validator('gw_start') def gw_start_validate_regular_expression(cls, value): @@ -137,6 +139,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of inner_vlan_range if self.inner_vlan_range: _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of ip_address + if self.ip_address: + _dict['IpAddress'] = self.ip_address.to_dict() # override the default output from pydantic by calling `to_dict()` of outer_vlan_range if self.outer_vlan_range: _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() @@ -167,6 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "GwStart": obj.get("GwStart"), "HostCount": obj.get("HostCount"), "InnerVlanRange": VLANRange.from_dict(obj["InnerVlanRange"]) if obj.get("InnerVlanRange") is not None else None, + "IpAddress": SequenceValue.from_dict(obj["IpAddress"]) if obj.get("IpAddress") is not None else None, "IpAuto": obj.get("IpAuto"), "IpIncr": obj.get("IpIncr"), "IpRangeName": obj.get("IpRangeName"), diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index 2753476..303751c 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set, Union @@ -36,8 +36,9 @@ class LocalSubnetConfig(BaseModel): prefix: StrictInt = Field(description="The network mask of the IP Range (default: 16).", alias="Prefix") start: Annotated[str, Field(strict=True)] = Field(description="The start IP for the IPRange (default: 10.0.0.10).", alias="Start") total_host_count: StrictStr = Field(alias="TotalHostCount") + wildcard_initiator_traffic: StrictBool = Field(alias="WildcardInitiatorTraffic") network_tags: List[StrictStr] = Field(description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["HostCountPerTunnel", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "Start", "TotalHostCount", "networkTags"] + __properties: ClassVar[List[str]] = ["HostCountPerTunnel", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "Start", "TotalHostCount", "WildcardInitiatorTraffic", "networkTags"] @field_validator('hosts_increment') def hosts_increment_validate_regular_expression(cls, value): @@ -120,6 +121,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), + "WildcardInitiatorTraffic": obj.get("WildcardInitiatorTraffic"), "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 6e07d2b..137c4e2 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -47,9 +47,10 @@ class Metadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + supported_http_versions: Optional[List[StrictStr]] = Field(default=None, description="The HTTP versions supported by the application", alias="SupportedHTTPVersions") supports_http2: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports HTTP2 multi-stream", alias="SupportsHTTP2") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportsHTTP2", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedHTTPVersions", "SupportsHTTP2", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -137,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions") if obj.get("SupportedHTTPVersions") is not None else [], "SupportsHTTP2": obj.get("SupportsHTTP2"), "Year": obj.get("Year") , diff --git a/cyperf/models/pangp_encapsulation.py b/cyperf/models/pangp_encapsulation.py index 5b09a5a..88a533c 100644 --- a/cyperf/models/pangp_encapsulation.py +++ b/cyperf/models/pangp_encapsulation.py @@ -32,10 +32,11 @@ class PANGPEncapsulation(BaseModel): """ # noqa: E501 esp_over_udp_enabled: StrictBool = Field(alias="ESPOverUDPEnabled") esp_over_udp_settings: Optional[ESPOverUDPSettings] = Field(default=None, alias="ESPOverUDPSettings") + enable_ikev2: StrictBool = Field(alias="EnableIKEv2") encapsulation_mode: StrictStr = Field(description="The encapsulation mode for inner traffic.", alias="EncapsulationMode") udp_port: StrictInt = Field(alias="UdpPort") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ESPOverUDPEnabled", "ESPOverUDPSettings", "EncapsulationMode", "UdpPort", "links"] + __properties: ClassVar[List[str]] = ["ESPOverUDPEnabled", "ESPOverUDPSettings", "EnableIKEv2", "EncapsulationMode", "UdpPort", "links"] @field_validator('encapsulation_mode') def encapsulation_mode_validate_enum(cls, value): @@ -109,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ESPOverUDPEnabled": obj.get("ESPOverUDPEnabled"), "ESPOverUDPSettings": ESPOverUDPSettings.from_dict(obj["ESPOverUDPSettings"]) if obj.get("ESPOverUDPSettings") is not None else None, + "EnableIKEv2": obj.get("EnableIKEv2"), "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) diff --git a/cyperf/models/playlist_sequencing_method.py b/cyperf/models/playlist_sequencing_method.py new file mode 100644 index 0000000..f19e02b --- /dev/null +++ b/cyperf/models/playlist_sequencing_method.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PlaylistSequencingMethod(str, Enum): + """ + Use this property to switch between different playlist sequencing strategies + """ + + """ + allowed enum values + """ + SEQUENTIAL_PER_USER_PER_FLOW = 'SEQUENTIAL_PER_USER_PER_FLOW' + UNIQUE_OFFSET_SEQUENTIAL_PER_USER_PER_FLOW = 'UNIQUE_OFFSET_SEQUENTIAL_PER_USER_PER_FLOW' + SEQUENTIAL_GLOBAL_PER_FLOW = 'SEQUENTIAL_GLOBAL_PER_FLOW' + RANDOM_PER_USER_PER_FLOW = 'RANDOM_PER_USER_PER_FLOW' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PlaylistSequencingMethod from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/remote_subnet_config.py b/cyperf/models/remote_subnet_config.py index b9e55d1..a4b6e66 100644 --- a/cyperf/models/remote_subnet_config.py +++ b/cyperf/models/remote_subnet_config.py @@ -36,7 +36,8 @@ class RemoteSubnetConfig(BaseModel): prefix: StrictInt = Field(description="The length (in bits) of the subnet mask to be applied to all the addresses created in the range.", alias="Prefix") single_remote_subnet: StrictBool = Field(alias="SingleRemoteSubnet") start: Annotated[str, Field(strict=True)] = Field(description="The base address for enumerating all the local subnets in the range", alias="Start") - __properties: ClassVar[List[str]] = ["Automatic", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "SingleRemoteSubnet", "Start"] + wildcard_responder_traffic: StrictBool = Field(alias="WildcardResponderTraffic") + __properties: ClassVar[List[str]] = ["Automatic", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "SingleRemoteSubnet", "Start", "WildcardResponderTraffic"] @field_validator('hosts_increment') def hosts_increment_validate_regular_expression(cls, value): @@ -118,7 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Increment": obj.get("Increment"), "Prefix": obj.get("Prefix"), "SingleRemoteSubnet": obj.get("SingleRemoteSubnet"), - "Start": obj.get("Start") + "Start": obj.get("Start"), + "WildcardResponderTraffic": obj.get("WildcardResponderTraffic") , "links": obj.get("links") }) diff --git a/cyperf/models/sequence_data_types.py b/cyperf/models/sequence_data_types.py new file mode 100644 index 0000000..899a421 --- /dev/null +++ b/cyperf/models/sequence_data_types.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class SequenceDataTypes(str, Enum): + """ + SequenceDataTypes + """ + + """ + allowed enum values + """ + IP_SEQ = 'IP_SEQ' + MAC_SEQ = 'MAC_SEQ' + INT32_SEQ = 'INT32_SEQ' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of SequenceDataTypes from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/sequence_value.py b/cyperf/models/sequence_value.py new file mode 100644 index 0000000..b65f5ee --- /dev/null +++ b/cyperf/models/sequence_value.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.custom_sequence import CustomSequence +from cyperf.models.sequence_data_types import SequenceDataTypes +from cyperf.models.sequence_value_types import SequenceValueTypes +from cyperf.models.simple_sequence_value import SimpleSequenceValue +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SequenceValue(BaseModel): + """ + SequenceValue + """ # noqa: E501 + custom: Optional[CustomSequence] = Field(default=None, alias="Custom") + data_type: Optional[SequenceDataTypes] = Field(default=None, alias="DataType") + increment: Optional[SimpleSequenceValue] = Field(default=None, alias="Increment") + preview: Optional[List[StrictStr]] = Field(default=None, alias="Preview") + sequence_type: Optional[SequenceValueTypes] = Field(default=None, alias="SequenceType") + id: Optional[StrictStr] = None + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Custom", "DataType", "Increment", "Preview", "SequenceType", "id", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SequenceValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of custom + if self.custom: + _dict['Custom'] = self.custom.to_dict() + # override the default output from pydantic by calling `to_dict()` of increment + if self.increment: + _dict['Increment'] = self.increment.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SequenceValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Custom": CustomSequence.from_dict(obj["Custom"]) if obj.get("Custom") is not None else None, + "DataType": obj.get("DataType"), + "Increment": SimpleSequenceValue.from_dict(obj["Increment"]) if obj.get("Increment") is not None else None, + "Preview": obj.get("Preview") if obj.get("Preview") is not None else [], + "SequenceType": obj.get("SequenceType"), + "id": obj.get("id"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/sequence_value_types.py b/cyperf/models/sequence_value_types.py new file mode 100644 index 0000000..9e32def --- /dev/null +++ b/cyperf/models/sequence_value_types.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class SequenceValueTypes(str, Enum): + """ + SequenceValueTypes + """ + + """ + allowed enum values + """ + INCREMENT = 'INCREMENT' + CUSTOM = 'CUSTOM' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of SequenceValueTypes from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/simple_sequence_value.py b/cyperf/models/simple_sequence_value.py new file mode 100644 index 0000000..5ca3ae0 --- /dev/null +++ b/cyperf/models/simple_sequence_value.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.single_value import SingleValue +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SimpleSequenceValue(BaseModel): + """ + SimpleSequenceValue + """ # noqa: E501 + start: Optional[SingleValue] = Field(default=None, alias="Start") + step: Optional[SingleValue] = Field(default=None, alias="Step") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Start", "Step", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SimpleSequenceValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of start + if self.start: + _dict['Start'] = self.start.to_dict() + # override the default output from pydantic by calling `to_dict()` of step + if self.step: + _dict['Step'] = self.step.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SimpleSequenceValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Start": SingleValue.from_dict(obj["Start"]) if obj.get("Start") is not None else None, + "Step": SingleValue.from_dict(obj["Step"]) if obj.get("Step") is not None else None, + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/single_value.py b/cyperf/models/single_value.py new file mode 100644 index 0000000..c8e7345 --- /dev/null +++ b/cyperf/models/single_value.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SingleValue(BaseModel): + """ + SingleValue + """ # noqa: E501 + bool_value: Optional[StrictBool] = Field(default=None, alias="BoolValue") + float_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="FloatValue") + integer_value: Optional[StrictInt] = Field(default=None, alias="IntegerValue") + string_value: Optional[StrictStr] = Field(default=None, alias="StringValue") + __properties: ClassVar[List[str]] = ["BoolValue", "FloatValue", "IntegerValue", "StringValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SingleValue from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SingleValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "BoolValue": obj.get("BoolValue"), + "FloatValue": obj.get("FloatValue"), + "IntegerValue": obj.get("IntegerValue"), + "StringValue": obj.get("StringValue") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/stream_profile.py b/cyperf/models/stream_profile.py index 5c13d58..a7d3737 100644 --- a/cyperf/models/stream_profile.py +++ b/cyperf/models/stream_profile.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stream_payload_type import StreamPayloadType from typing import Optional, Set, Union @@ -35,7 +35,8 @@ class StreamProfile(BaseModel): total_estimated_throughput: Optional[StrictStr] = Field(default=None, alias="totalEstimatedThroughput") total_estimated_throughput_per_simulated_user: Optional[StrictStr] = Field(default=None, alias="totalEstimatedThroughputPerSimulatedUser") unique_pool_size: Optional[StrictInt] = Field(default=None, alias="uniquePoolSize") - __properties: ClassVar[List[str]] = ["packetRate", "payloadSize", "payloadType", "totalEstimatedThroughput", "totalEstimatedThroughputPerSimulatedUser", "uniquePoolSize"] + unrestricted_packet_rate: Optional[StrictBool] = Field(default=None, alias="unrestrictedPacketRate") + __properties: ClassVar[List[str]] = ["packetRate", "payloadSize", "payloadType", "totalEstimatedThroughput", "totalEstimatedThroughputPerSimulatedUser", "uniquePoolSize", "unrestrictedPacketRate"] model_config = ConfigDict( populate_by_name=True, @@ -95,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "payloadType": obj.get("payloadType"), "totalEstimatedThroughput": obj.get("totalEstimatedThroughput"), "totalEstimatedThroughputPerSimulatedUser": obj.get("totalEstimatedThroughputPerSimulatedUser"), - "uniquePoolSize": obj.get("uniquePoolSize") + "uniquePoolSize": obj.get("uniquePoolSize"), + "unrestrictedPacketRate": obj.get("unrestrictedPacketRate") , "links": obj.get("links") }) diff --git a/cyperf/models/sub_step.py b/cyperf/models/sub_step.py new file mode 100644 index 0000000..efb6d78 --- /dev/null +++ b/cyperf/models/sub_step.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.single_value import SingleValue +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SubStep(BaseModel): + """ + SubStep + """ # noqa: E501 + count: StrictInt = Field(alias="Count") + step: Optional[SingleValue] = Field(default=None, alias="Step") + sub_steps: List[SubStep] = Field(alias="SubSteps") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Count", "Step", "SubSteps", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SubStep from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of step + if self.step: + _dict['Step'] = self.step.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in sub_steps (list) + _items = [] + if self.sub_steps: + for _item in self.sub_steps: + if _item: + _items.append(_item.to_dict()) + _dict['SubSteps'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SubStep from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "Count": obj.get("Count"), + "Step": SingleValue.from_dict(obj["Step"]) if obj.get("Step") is not None else None, + "SubSteps": ( [SubStep.from_dict(_item) for _item in obj.get("SubSteps", [])] if obj.get("SubSteps") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + +# TODO: Rewrite to not use raise_errors +SubStep.model_rebuild(raise_errors=False) + diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index e480756..6e10b0d 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from typing import Optional, Set, Union from typing_extensions import Self @@ -31,11 +32,12 @@ class TrafficProfileBase(BaseModel): TrafficProfileBase """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") + playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] + __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] model_config = ConfigDict( populate_by_name=True, @@ -101,6 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), + "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/docs/Action.md b/docs/Action.md index 0e584a6..c832d9d 100644 --- a/docs/Action.md +++ b/docs/Action.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] +**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/ActionBase.md b/docs/ActionBase.md index be8a2e2..f419c41 100644 --- a/docs/ActionBase.md +++ b/docs/ActionBase.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] +**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/Address.md b/docs/Address.md new file mode 100644 index 0000000..99986d4 --- /dev/null +++ b/docs/Address.md @@ -0,0 +1,32 @@ +# Address + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | **str** | | [optional] +**range** | [**DUTRange**](DUTRange.md) | | [optional] +**use_range** | **bool** | | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.address import Address + +# TODO update the JSON string below +json = "{}" +# create an instance of Address from a JSON string +address_instance = Address.from_json(json) +# print the JSON string representation of the object +print(Address.to_json()) + +# convert the object into a dict +address_dict = address_instance.to_dict() +# create an instance of Address from a dict +address_from_dict = Address.from_dict(address_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplicationProfile.md b/docs/ApplicationProfile.md index 6cde695..c2fac4f 100644 --- a/docs/ApplicationProfile.md +++ b/docs/ApplicationProfile.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] +**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] diff --git a/docs/AttackAction.md b/docs/AttackAction.md index cf9e1dd..75b7c94 100644 --- a/docs/AttackAction.md +++ b/docs/AttackAction.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] +**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/AttackProfile.md b/docs/AttackProfile.md index 4d64831..0c42c28 100644 --- a/docs/AttackProfile.md +++ b/docs/AttackProfile.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] +**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md index 849dde1..469a6cc 100644 --- a/docs/CommandMetadata.md +++ b/docs/CommandMetadata.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**supported_http_versions** | **List[str]** | The HTTP versions supported by the application | [optional] **supported_protocols** | **List[str]** | The list of protocols which support this command | [optional] **supports_http2** | **bool** | Indicates if the application supports HTTP2 multi-stream | [optional] **year** | **str** | The year of the strike | [optional] diff --git a/docs/CustomSequence.md b/docs/CustomSequence.md new file mode 100644 index 0000000..e96c6fe --- /dev/null +++ b/docs/CustomSequence.md @@ -0,0 +1,32 @@ +# CustomSequence + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start** | [**SingleValue**](SingleValue.md) | | [optional] +**step** | [**SingleValue**](SingleValue.md) | | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] +**sub_steps** | [**List[SubStep]**](SubStep.md) | | [optional] + +## Example + +```python +from cyperf.models.custom_sequence import CustomSequence + +# TODO update the JSON string below +json = "{}" +# create an instance of CustomSequence from a JSON string +custom_sequence_instance = CustomSequence.from_json(json) +# print the JSON string representation of the object +print(CustomSequence.to_json()) + +# convert the object into a dict +custom_sequence_dict = custom_sequence_instance.to_dict() +# create an instance of CustomSequence from a dict +custom_sequence_from_dict = CustomSequence.from_dict(custom_sequence_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DUTNetwork.md b/docs/DUTNetwork.md index d44a65c..94b8c76 100644 --- a/docs/DUTNetwork.md +++ b/docs/DUTNetwork.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **reverse_proxy_pep_dut** | [**PepDUT**](PepDUT.md) | | [optional] **reverse_proxy_pep_dut_active** | **bool** | A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false) | [optional] **server_dut_active** | **bool** | A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the server DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false) | [optional] +**server_dut_address** | [**Address**](Address.md) | | [optional] **server_dut_host** | **str** | The hostname where the traffic goes if server DUT is active. | [optional] **server_dut_port** | **int** | The listen port for server-side DUT | [optional] **tcp_health_check** | [**HealthCheckConfig**](HealthCheckConfig.md) | The TCP HealthCheck configuration for DUT | [optional] diff --git a/docs/DUTRange.md b/docs/DUTRange.md new file mode 100644 index 0000000..070885d --- /dev/null +++ b/docs/DUTRange.md @@ -0,0 +1,34 @@ +# DUTRange + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**inner_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current DTLS Range configuration | [optional] +**ip** | [**SequenceValue**](SequenceValue.md) | | [optional] +**outer_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current DTLS Range configuration | [optional] +**vlan_type** | [**VLANType**](VLANType.md) | The type of VLAN used | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.dut_range import DUTRange + +# TODO update the JSON string below +json = "{}" +# create an instance of DUTRange from a JSON string +dut_range_instance = DUTRange.from_json(json) +# print the JSON string representation of the object +print(DUTRange.to_json()) + +# convert the object into a dict +dut_range_dict = dut_range_instance.to_dict() +# create an instance of DUTRange from a dict +dut_range_from_dict = DUTRange.from_dict(dut_range_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EmulatedRouterRange.md b/docs/EmulatedRouterRange.md index 98757c0..35e5fba 100644 --- a/docs/EmulatedRouterRange.md +++ b/docs/EmulatedRouterRange.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **gw_start** | **str** | The gateway start IP for the IPRange (default: 10.0.0.1). | [optional] **host_count** | **int** | The number of Host IPs generated (default: 1). | [optional] **inner_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current IP range configuration | [optional] +**ip_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **ip_auto** | **bool** | A flag indicating if IP settings for the IPRange should be determined automatically (default: true). | **ip_incr** | **str** | The IP incrementation rule (default: 0.0.0.1). | [optional] **ip_range_name** | **str** | | diff --git a/docs/EthRange.md b/docs/EthRange.md index 58f4130..c4a2467 100644 --- a/docs/EthRange.md +++ b/docs/EthRange.md @@ -7,6 +7,7 @@ The Ethernet Ranges assigned to the current test configuration Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | | [optional] +**mac_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **mac_auto** | **bool** | A flag indicating if the MAC address for the EthRange should be determined automatically (default: true). | **mac_incr** | **str** | The MAC address increment rule for the EthRange (default: 00:00:00:00:00:01). | [optional] **mac_start** | **str** | The MAC start address for the EthRange (default: 00:11:01:00:00:01). | [optional] diff --git a/docs/IPRange.md b/docs/IPRange.md index 22b27ee..1ef5e34 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **gw_start** | **str** | The gateway start IP for the IPRange (default: 10.0.0.1). | [optional] **host_count** | **int** | The number of Host IPs generated (default: 1). | [optional] **inner_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current IP range configuration | [optional] +**ip_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **ip_auto** | **bool** | A flag indicating if IP settings for the IPRange should be determined automatically (default: true). | **ip_incr** | **str** | The IP incrementation rule (default: 0.0.0.1). | [optional] **ip_range_name** | **str** | | diff --git a/docs/LocalSubnetConfig.md b/docs/LocalSubnetConfig.md index 52dc57e..2132b36 100644 --- a/docs/LocalSubnetConfig.md +++ b/docs/LocalSubnetConfig.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **prefix** | **int** | The network mask of the IP Range (default: 16). | **start** | **str** | The start IP for the IPRange (default: 10.0.0.10). | **total_host_count** | **str** | | +**wildcard_initiator_traffic** | **bool** | | **network_tags** | **List[str]** | A list of tags. | ## Example diff --git a/docs/Metadata.md b/docs/Metadata.md index fbe520a..eb74216 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**supported_http_versions** | **List[str]** | The HTTP versions supported by the application | [optional] **supports_http2** | **bool** | Indicates if the application supports HTTP2 multi-stream | [optional] **year** | **str** | The year of the strike | [optional] diff --git a/docs/PANGPEncapsulation.md b/docs/PANGPEncapsulation.md index 5c6a530..54e807c 100644 --- a/docs/PANGPEncapsulation.md +++ b/docs/PANGPEncapsulation.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **esp_over_udp_enabled** | **bool** | | **esp_over_udp_settings** | [**ESPOverUDPSettings**](ESPOverUDPSettings.md) | | [optional] +**enable_ikev2** | **bool** | | **encapsulation_mode** | **str** | The encapsulation mode for inner traffic. | **udp_port** | **int** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/PlaylistSequencingMethod.md b/docs/PlaylistSequencingMethod.md new file mode 100644 index 0000000..d093436 --- /dev/null +++ b/docs/PlaylistSequencingMethod.md @@ -0,0 +1,17 @@ +# PlaylistSequencingMethod + +Use this property to switch between different playlist sequencing strategies + +## Enum + +* `SEQUENTIAL_PER_USER_PER_FLOW` (value: `'SEQUENTIAL_PER_USER_PER_FLOW'`) + +* `UNIQUE_OFFSET_SEQUENTIAL_PER_USER_PER_FLOW` (value: `'UNIQUE_OFFSET_SEQUENTIAL_PER_USER_PER_FLOW'`) + +* `SEQUENTIAL_GLOBAL_PER_FLOW` (value: `'SEQUENTIAL_GLOBAL_PER_FLOW'`) + +* `RANDOM_PER_USER_PER_FLOW` (value: `'RANDOM_PER_USER_PER_FLOW'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RemoteSubnetConfig.md b/docs/RemoteSubnetConfig.md index d21f07b..85b1aaa 100644 --- a/docs/RemoteSubnetConfig.md +++ b/docs/RemoteSubnetConfig.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **prefix** | **int** | The length (in bits) of the subnet mask to be applied to all the addresses created in the range. | **single_remote_subnet** | **bool** | | **start** | **str** | The base address for enumerating all the local subnets in the range | +**wildcard_responder_traffic** | **bool** | | ## Example diff --git a/docs/SequenceDataTypes.md b/docs/SequenceDataTypes.md new file mode 100644 index 0000000..d35b74f --- /dev/null +++ b/docs/SequenceDataTypes.md @@ -0,0 +1,14 @@ +# SequenceDataTypes + + +## Enum + +* `IP_SEQ` (value: `'IP_SEQ'`) + +* `MAC_SEQ` (value: `'MAC_SEQ'`) + +* `INT32_SEQ` (value: `'INT32_SEQ'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SequenceValue.md b/docs/SequenceValue.md new file mode 100644 index 0000000..91c3562 --- /dev/null +++ b/docs/SequenceValue.md @@ -0,0 +1,35 @@ +# SequenceValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**custom** | [**CustomSequence**](CustomSequence.md) | | [optional] +**data_type** | [**SequenceDataTypes**](SequenceDataTypes.md) | | [optional] +**increment** | [**SimpleSequenceValue**](SimpleSequenceValue.md) | | [optional] +**preview** | **List[str]** | | [optional] +**sequence_type** | [**SequenceValueTypes**](SequenceValueTypes.md) | | [optional] +**id** | **str** | | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.sequence_value import SequenceValue + +# TODO update the JSON string below +json = "{}" +# create an instance of SequenceValue from a JSON string +sequence_value_instance = SequenceValue.from_json(json) +# print the JSON string representation of the object +print(SequenceValue.to_json()) + +# convert the object into a dict +sequence_value_dict = sequence_value_instance.to_dict() +# create an instance of SequenceValue from a dict +sequence_value_from_dict = SequenceValue.from_dict(sequence_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SequenceValueTypes.md b/docs/SequenceValueTypes.md new file mode 100644 index 0000000..9a0cb4c --- /dev/null +++ b/docs/SequenceValueTypes.md @@ -0,0 +1,12 @@ +# SequenceValueTypes + + +## Enum + +* `INCREMENT` (value: `'INCREMENT'`) + +* `CUSTOM` (value: `'CUSTOM'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SimpleSequenceValue.md b/docs/SimpleSequenceValue.md new file mode 100644 index 0000000..9839406 --- /dev/null +++ b/docs/SimpleSequenceValue.md @@ -0,0 +1,31 @@ +# SimpleSequenceValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start** | [**SingleValue**](SingleValue.md) | | [optional] +**step** | [**SingleValue**](SingleValue.md) | | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.simple_sequence_value import SimpleSequenceValue + +# TODO update the JSON string below +json = "{}" +# create an instance of SimpleSequenceValue from a JSON string +simple_sequence_value_instance = SimpleSequenceValue.from_json(json) +# print the JSON string representation of the object +print(SimpleSequenceValue.to_json()) + +# convert the object into a dict +simple_sequence_value_dict = simple_sequence_value_instance.to_dict() +# create an instance of SimpleSequenceValue from a dict +simple_sequence_value_from_dict = SimpleSequenceValue.from_dict(simple_sequence_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SingleValue.md b/docs/SingleValue.md new file mode 100644 index 0000000..365313f --- /dev/null +++ b/docs/SingleValue.md @@ -0,0 +1,32 @@ +# SingleValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bool_value** | **bool** | | [optional] +**float_value** | **float** | | [optional] +**integer_value** | **int** | | [optional] +**string_value** | **str** | | [optional] + +## Example + +```python +from cyperf.models.single_value import SingleValue + +# TODO update the JSON string below +json = "{}" +# create an instance of SingleValue from a JSON string +single_value_instance = SingleValue.from_json(json) +# print the JSON string representation of the object +print(SingleValue.to_json()) + +# convert the object into a dict +single_value_dict = single_value_instance.to_dict() +# create an instance of SingleValue from a dict +single_value_from_dict = SingleValue.from_dict(single_value_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StreamProfile.md b/docs/StreamProfile.md index 189344f..0281ab9 100644 --- a/docs/StreamProfile.md +++ b/docs/StreamProfile.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **total_estimated_throughput** | **str** | | [optional] **total_estimated_throughput_per_simulated_user** | **str** | | [optional] **unique_pool_size** | **int** | | [optional] +**unrestricted_packet_rate** | **bool** | | [optional] ## Example diff --git a/docs/SubStep.md b/docs/SubStep.md new file mode 100644 index 0000000..2796d06 --- /dev/null +++ b/docs/SubStep.md @@ -0,0 +1,32 @@ +# SubStep + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | +**step** | [**SingleValue**](SingleValue.md) | | [optional] +**sub_steps** | [**List[SubStep]**](SubStep.md) | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.sub_step import SubStep + +# TODO update the JSON string below +json = "{}" +# create an instance of SubStep from a JSON string +sub_step_instance = SubStep.from_json(json) +# print the JSON string representation of the object +print(SubStep.to_json()) + +# convert the object into a dict +sub_step_dict = sub_step_instance.to_dict() +# create an instance of SubStep from a dict +sub_step_from_dict = SubStep.from_dict(sub_step_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TrafficProfileBase.md b/docs/TrafficProfileBase.md index 31f48b9..a8e538a 100644 --- a/docs/TrafficProfileBase.md +++ b/docs/TrafficProfileBase.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] +**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] diff --git a/samples/sample_sequences_examples.py b/samples/sample_sequences_examples.py new file mode 100644 index 0000000..0db2fee --- /dev/null +++ b/samples/sample_sequences_examples.py @@ -0,0 +1,445 @@ +from dataclasses import dataclass, field + +import cyperf +from cyperf import AgentAssignments, IPNetwork, DUTNetwork, Address, DUTRange +from cyperf.utils import parse_cli_options + +BASE_CONFIG_NAME = "Cyperf Empty Config" + +OUTER_VLAN_ID = 200 +OUTER_VLAN_INCR = 1 +OUTER_VLAN_COUNT = 1 +OUTER_TPID = 0x88A8 +OUTER_INCREMENT_EVERY_NO_OF_IPS = 1 +OUTER_PRIORITY = 0 + +INNER_VLAN_ID = 100 +INNER_VLAN_INCR = 1 +INNER_VLAN_COUNT = 1 +INNER_TPID = 0x8100 +INNER_INCREMENT_EVERY_NO_OF_IPS = 1 +INNER_PRIORITY = 0 +HTTP_APP_SEARCH = "HTTP App" +DEFAULT_MSS = 1460 + +DEFAULT_COUNT = 18 +DEFAULT_SUB_STEP_COUNT = 3 +DEFAULT_CLIENT_START_IP="10.0.0.10" +DEFAULT_SERVER_START_IP="10.0.0.40" +DEFAULT_IP_INCREMENT="0.1.0.0" + +DEFAULT_CLIENT_START_MAC="10:00:00:00:00:10" +DEFAULT_SERVER_START_MAC="20:00:00:00:00:00" +DEFAULT_MAC_INCREMENT="00:00:00:01:00:00" + +@dataclass +class StepNode: + step: str + count: int = field(default=DEFAULT_SUB_STEP_COUNT) + sub_steps: list["StepNode"] = field(default_factory=list) + + def to_substep(self): + return _step_s( + step=self.step, + count=self.count, + sub_steps=[c.to_substep() for c in self.sub_steps], + ) + +IP_SUBSTEPS=[ + StepNode(step="0.0.1.0", sub_steps=[StepNode("0.0.0.1")]), + StepNode(step="0.0.2.0", sub_steps=[StepNode("0.0.0.2")]), +] + +MAC_SUBSTEPS=[ + StepNode(step="00:00:00:00:01:00", sub_steps=[StepNode("00:00:00:00:00:01")]), + StepNode(step="00:00:00:00:02:00", sub_steps=[StepNode("00:00:00:00:00:02")]), +] + +def _create_api_client_from_cli(): + args, offline_token = parse_cli_options( + extra_options=[ + ("--client-agent-ip", "Agent IP to assign to IP Network 1", True), + ("--server-agent-ip", "Agent IP to assign to IP Network 2", True), + ] + ) + + configuration = cyperf.Configuration( + host=f"https://{args.controller}", + refresh_token=offline_token, + username=args.user, + password=args.password, + ) + configuration.verify_ssl = False + api_client = cyperf.ApiClient(configuration) + + return api_client, args.client_agent_ip, args.server_agent_ip + +def _find_config_url(api_client, config_name: str) -> str: + configs_api = cyperf.ConfigurationsApi(api_client) + configs = configs_api.get_configs( + take=1, + search_col="displayName", + search_val=config_name, + ) + + if not configs.data: + raise ValueError(f"Configuration '{config_name}' was not found.") + + return configs.data[0].config_url + +def _create_session(api_client, config_url: str): + sessions_api = cyperf.SessionsApi(api_client) + sessions = sessions_api.create_sessions([cyperf.Session(config_url=config_url)]) + if not sessions: + raise RuntimeError("Failed to create session.") + return sessions[0] + +def _add_application_profile_with_http_app(api_client, session): + sessions_api = cyperf.SessionsApi(api_client) + app_resources_api = cyperf.ApplicationResourcesApi(api_client) + + traffic_profiles = session.config.config.traffic_profiles + existing_profiles = len(traffic_profiles) if traffic_profiles else 0 + traffic_profiles.append(cyperf.ApplicationProfile(Name="Application Profile")) + traffic_profiles.update() + + apps = app_resources_api.get_resources_apps( + take=1, + skip=0, + search_col="Name", + search_val=HTTP_APP_SEARCH, + sort="Name:asc", + ) + if not apps.data: + raise ValueError(f"No application found for search value '{HTTP_APP_SEARCH}'.") + + app = apps.data[0] + traffic_profile_id = str(existing_profiles + 1) + operation = sessions_api.start_config_add_applications( + session.id, + traffic_profile_id, + external_resource_info=[ + cyperf.ExternalResourceInfo(externalResourceURL=str(app.id)) + ], + ) + operation.await_completion() + +def _ip_range(name: str, count: int): + return cyperf.IPRange( + GwAuto=False, + IpAuto=False, + IpRangeName=name, + MssAuto=True, + Mss=DEFAULT_MSS, + NetMaskAuto=False, + NetMask=16, + VLANType=cyperf.VLANType.VLAN_NONE, + HostCount=1, + IpVer=cyperf.IpVer.IPV4, + Count=count, + GwStart="10.0.0.1", + ) + +def _create_ip_range(ip_net, count, ip_address_seq: cyperf.SequenceValue, inner_vlan: cyperf.VLANRange | None = None, outer_vlan: cyperf.VLANRange | None = None): + default_ip_range = _ip_range(f"{ip_net.name} Range 1", count) + ip_net.ip_ranges = [default_ip_range] + ip_net.ip_ranges.update() + ip_range = ip_net.ip_ranges[0] + ip_range.ip_auto = False + ip_range.gw_auto = False + ip_range.count = count + ip_range.max_count_per_agent = count + ip_range.gw_start = "10.0.0.0" + ip_range.mss = DEFAULT_MSS + ip_range.ip_address = ip_address_seq + if inner_vlan is not None: + ip_range.vlan_type = cyperf.VLANType.VLAN + ip_range.inner_vlan_range = inner_vlan + if outer_vlan is not None: + ip_range.vlan_type = cyperf.VLANType.VLAN_IN_VLAN + ip_range.outer_vlan_range = outer_vlan + + ip_range.update() + +def _ip_seq(seq_type: cyperf.SequenceValueTypes, ip_start: str, increment: str, sub_steps: list[cyperf.SubStep] | None = None): + return _sequence(seq_type, ip_start, increment, cyperf.SequenceDataTypes.IP_SEQ, *(sub_steps or [])) + +def _mac_seq(seq_type: cyperf.SequenceValueTypes, ip_start: str, increment: str, sub_steps: list[cyperf.SubStep] | None = None): + return _sequence(seq_type, ip_start, increment, cyperf.SequenceDataTypes.MAC_SEQ, *(sub_steps or [])) + +def _step_s(step: str, count: int, sub_steps: list[cyperf.SubStep] | None = None): + return cyperf.SubStep( + Step=cyperf.SingleValue( + StringValue=step, + ), + Count=count, + SubSteps=sub_steps or [] + ) + +def _dut_address(count: int, ip_seq: cyperf.SequenceValue, inner_vlan: cyperf.VLANRange | None = None, outer_vlan: cyperf.VLANRange | None = None): + address = Address( + UseRange=True, + Range=DUTRange( + Count=count, + Ip=ip_seq, + VLANType=cyperf.VLANType.VLAN_NONE + ) + ) + if inner_vlan is not None: + address.range.vlan_type = cyperf.VLANType.VLAN + address.range.inner_vlan_range = inner_vlan + if outer_vlan is not None: + address.range.vlan_type = cyperf.VLANType.VLAN_IN_VLAN + address.range.outer_vlan_range = outer_vlan + return address + +def _dut(inner_vlan: cyperf.VLANRange | None = None, outer_vlan: cyperf.VLANRange | None = None): + dut_seq = _ip_seq( + seq_type=cyperf.SequenceValueTypes.CUSTOM, + ip_start=DEFAULT_SERVER_START_IP, + increment=DEFAULT_IP_INCREMENT, + sub_steps=[n.to_substep() for n in IP_SUBSTEPS] + ) + return DUTNetwork( + id="1", + Name="DUT Network 1", + ConfigSettings="ADVANCED_MODE", + ServerDUTAddress=_dut_address( + count=DEFAULT_COUNT, + ip_seq=dut_seq, + inner_vlan=inner_vlan, + outer_vlan=outer_vlan), + active=True, + ServerDUTActive=True, + ) + +def _sequence(seq_type: cyperf.SequenceValueTypes, ip_start: str, increment: str, seq_data_type: cyperf.SequenceDataTypes, *sub_steps: cyperf.SubStep): + return cyperf.SequenceValue( + SequenceType=seq_type, + Custom=cyperf.CustomSequence( + Start=cyperf.SingleValue( + StringValue=ip_start + ), + Step=cyperf.SingleValue( + StringValue=increment + ), + SubSteps=list(sub_steps), + ), + Increment=cyperf.SimpleSequenceValue( + Start=cyperf.SingleValue( + StringValue=ip_start + ), + Step=cyperf.SingleValue( + StringValue=increment + ), + ), + DataType=seq_data_type, + ) + +def _vlan_range(vlan_range_name: str, vlan_id: int, vlan_incr: int, vlan_count: int, tpid: int, increment_every_no_of_ips: int = 1, priority: int = 0, +): + vlan_range = cyperf.VLANRange(VlanAuto=False, VlanRangeName=vlan_range_name, VlanId=vlan_id) + vlan_range.vlan_auto = False + vlan_range.vlan_id = vlan_id + vlan_range.vlan_incr = vlan_incr + vlan_range.count = vlan_count + vlan_range.priority = priority + vlan_range.tag_protocol_id = tpid + vlan_range.count_per_agent = 1 + vlan_range.increment_every_no_of_ips = increment_every_no_of_ips + return vlan_range + +def configure_networks(session, dut_id: str | None = None): + if not session.config.config.network_profiles: + raise ValueError("Session configuration has no network profiles.") + + dut_connections: list[str] = ["1"] + if dut_id is not None: + dut_connections = [dut_id] + client_net = IPNetwork(Name="IP Network 1", id="1", agentAssignments=AgentAssignments(ByID=[], ByTag=[]), minAgents=1, IPRanges=[], DUTConnections=dut_connections) + server_net = IPNetwork(Name="IP Network 2", id="2", agentAssignments=AgentAssignments(ByID=[], ByTag=[]), minAgents=1, IPRanges=[], DUTConnections=dut_connections) + session.config.config.network_profiles[0].ip_network_segment = [client_net, server_net] + session.config.config.network_profiles[0].ip_network_segment.update() + +def configure_dut(session, inner_vlan: cyperf.VLANRange | None = None, outer_vlan: cyperf.VLANRange | None = None): + if not session.config.config.network_profiles: + raise ValueError("Session configuration has no network profiles.") + + session.config.config.network_profiles[0].dut_network_segment = [_dut(inner_vlan, outer_vlan)] + session.config.config.network_profiles[0].dut_network_segment.update() + + return session.config.config.network_profiles[0].dut_network_segment[0].id + +def configure_ip_ranges(session, inner_vlan: cyperf.VLANRange | None = None, outer_vlan: cyperf.VLANRange | None = None): + client_net = session.config.config.network_profiles[0].ip_network_segment[0] + server_net = session.config.config.network_profiles[0].ip_network_segment[1] + _create_ip_range(client_net, DEFAULT_COUNT, _ip_seq( + seq_type=cyperf.SequenceValueTypes.INCREMENT, + ip_start=DEFAULT_CLIENT_START_IP, + increment=DEFAULT_IP_INCREMENT + ), inner_vlan, outer_vlan) + _create_ip_range(server_net, DEFAULT_COUNT, _ip_seq( + seq_type=cyperf.SequenceValueTypes.CUSTOM, + ip_start=DEFAULT_SERVER_START_IP, + increment=DEFAULT_IP_INCREMENT, + sub_steps=[n.to_substep() for n in IP_SUBSTEPS] + ), inner_vlan, outer_vlan) + +def _mac_dtls(name: str, inner_vlan: cyperf.VLANRange | None = None, outer_vlan: cyperf.VLANRange | None = None): + mac_dtls_stack = cyperf.MacDtlsStack( + id="1", + DTLSRangeName=name, + TunnelDestinationMacStart="AA:BB:CC:DD:EE:FF", + TunnelDestinationMacIncr="00:00:00:00:00:01", + InIV="0x22222222", + InIVIncr="0x00000001", + InKey="0xBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB", + InKeyIncr="0x0000000000000000000000000000000000000000000000000000000000000001", + OutIV="0x11111111", + OutIVIncr="0x00000001", + OutKey="0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + OutKeyIncr="0x0000000000000000000000000000000000000000000000000000000000000001", + TunnelCount=1 + ) + mac_dtls_stack.ip_range = _ip_range(f"{name} IP Range 1", DEFAULT_COUNT) + if inner_vlan is not None: + mac_dtls_stack.vlan_type = cyperf.VLANType.VLAN + mac_dtls_stack.vlan_range = inner_vlan + if outer_vlan is not None: + mac_dtls_stack.vlan_type = cyperf.VLANType.VLAN_IN_VLAN + mac_dtls_stack.outer_vlan_range = outer_vlan + return mac_dtls_stack + +def configure_mac_dtls(session, inner_vlan: cyperf.VLANRange | None = None, outer_vlan: cyperf.VLANRange | None = None): + client_net = session.config.config.network_profiles[0].ip_network_segment[0] + server_net = session.config.config.network_profiles[0].ip_network_segment[1] + client_net.mac_dtls_stacks = [_mac_dtls("Client MAC-DTLS 1", inner_vlan, outer_vlan)] + server_net.mac_dtls_stacks = [_mac_dtls("Server MAC-DTLS 1", inner_vlan, outer_vlan)] + client_net.mac_dtls_stacks.update() + server_net.mac_dtls_stacks.update() + + client_mac_dtls = client_net.mac_dtls_stacks[0] + client_mac_dtls.dtls_enabled = False + client_mac_dtls.update() + + client_ip_range = client_mac_dtls.ip_range + client_ip_range.ip_address = _ip_seq( + seq_type=cyperf.SequenceValueTypes.INCREMENT, + ip_start=DEFAULT_CLIENT_START_IP, + increment=DEFAULT_IP_INCREMENT + ) + client_ip_range.update() + + server_mac_dtls = server_net.mac_dtls_stacks[0] + server_mac_dtls.dtls_enabled = False + server_mac_dtls.update() + + server_ip_range = server_mac_dtls.ip_range + server_ip_range.ip_address = _ip_seq( + seq_type=cyperf.SequenceValueTypes.CUSTOM, + ip_start=DEFAULT_SERVER_START_IP, + increment=DEFAULT_IP_INCREMENT, + sub_steps=[n.to_substep() for n in IP_SUBSTEPS] + ) + server_ip_range.update() + + +def configure_ethernet(session): + client_net = session.config.config.network_profiles[0].ip_network_segment[0] + server_net = session.config.config.network_profiles[0].ip_network_segment[1] + + client_net.eth_range.mac_auto = False + client_net.eth_range.one_mac_per_ip = False + client_net.eth_range.mac_address = _mac_seq( + seq_type=cyperf.SequenceValueTypes.INCREMENT, + ip_start=DEFAULT_CLIENT_START_MAC, + increment=DEFAULT_MAC_INCREMENT, + ) + client_net.eth_range.update() + server_net.eth_range.mac_auto = False + server_net.eth_range.one_mac_per_ip = False + server_net.eth_range.mac_address = _mac_seq( + seq_type=cyperf.SequenceValueTypes.CUSTOM, + ip_start=DEFAULT_SERVER_START_MAC, + increment=DEFAULT_MAC_INCREMENT, + sub_steps=[n.to_substep() for n in MAC_SUBSTEPS] + ) + server_net.eth_range.update() + +def assign_agents_by_ip(api_client, session, network_to_agent_ip): + agents_api = cyperf.AgentsApi(api_client) + available_agents = agents_api.get_agents(exclude_offline="true") + available_by_ip = {agent.ip: agent for agent in available_agents} + + net_profile = session.config.config.network_profiles[0] + + for idx, ip_net in enumerate(net_profile.ip_network_segment): + if ip_net.name not in network_to_agent_ip: + continue + + agent_ip = network_to_agent_ip[ip_net.name] + if agent_ip not in available_by_ip: + raise ValueError( + f"Agent IP '{agent_ip}' is not connected or is offline." + ) + + agent = available_by_ip[agent_ip] + agent_details = [cyperf.AgentAssignmentDetails(agentId=agent.id, id = str(idx))] + ip_net.agent_assignments.by_id = agent_details + ip_net.agent_assignments.update() + +if __name__ == "__main__": + import urllib3 + + urllib3.disable_warnings() + + api_client, client_agent_ip, server_agent_ip = _create_api_client_from_cli() + + with api_client: + config_url = _find_config_url(api_client, BASE_CONFIG_NAME) + session = _create_session(api_client, config_url) + + print(f"Session created: {session.id}") + print("Creating application profile with HTTP app...") + _add_application_profile_with_http_app(api_client, session) + + + print("Applying Network settings...") + + #without VLAN + inner_vlan = None + outer_vlan = None + + #with VLAN + inner_vlan = _vlan_range('inner_vlan', INNER_VLAN_ID, INNER_VLAN_INCR, INNER_VLAN_COUNT, INNER_TPID, 1, INNER_PRIORITY) + outer_vlan = _vlan_range('outer_vlan', OUTER_VLAN_ID, OUTER_VLAN_INCR, OUTER_VLAN_COUNT, OUTER_TPID, 1, OUTER_PRIORITY) + + print("Configuring DUT") + dut_id = None + + #uncomment this line for plain IP, comment it for MAC DTLS + dut_id = configure_dut(session, inner_vlan, outer_vlan) + print("Configuring Networks") + configure_networks(session, dut_id) + print("Configuring ethernet for networks") + configure_ethernet(session) + print("Configuring IP ranges for networks") + + #uncomment this line for plain IP, comment it for MAC DTLS + configure_ip_ranges(session, inner_vlan, outer_vlan) + + #uncomment this line for MAC DTLS, comment it for plain IP + # configure_mac_dtls(session, inner_vlan, outer_vlan) + print("Network configured successfully.") + + print("Assigning agents by IP...") + assign_agents_by_ip( + api_client, + session, + { + "IP Network 1": client_agent_ip, + "IP Network 2": server_agent_ip, + }, + ) + + print("Test is now configured!") From ebac7bab4cd114c40873f1d51f57409c9d0d635d Mon Sep 17 00:00:00 2001 From: AndreiCostin Martin Date: Thu, 4 Jun 2026 02:29:06 -0600 Subject: [PATCH 37/53] Pull request #75: Fix/ISGAPPSEC2 38042/encrypted payloads Merge in ISGAPPSEC/cyperf-api-wrapper from fix/ISGAPPSEC2-38042/encrypted_payloads to main Squashed commit of the following: commit 9c23dc992185a0ca88b3d43461d02f4738c34334 Author: Andrei Martin Date: Wed Jun 3 18:10:29 2026 +0300 Add async context to encrypted captures uploadfile Signed-off-by: Andrei Martin commit 2533f57786a51e07429e901f2377a975dd13fb7e Author: Andrei Martin Date: Wed Jun 3 17:23:58 2026 +0300 Actualy ssl key file required for encrypted endpoint Signed-off-by: Andrei Martin commit 135ed98a0408f4a13bc251646039d3e0b324a0fd Author: Andrei Martin Date: Wed Jun 3 17:19:07 2026 +0300 The ssl key file is optional Signed-off-by: Andrei Martin commit 179f7d3483f33eb67d5a4b2e0b648843fd301ea1 Author: Andrei Martin Date: Wed Jun 3 16:42:51 2026 +0300 Update wrapper Signed-off-by: Andrei Martin --- README.md | 10 ------- cyperf/__init__.py | 10 ------- cyperf/api/application_resources_api.py | 37 +++++++++++++++++-------- cyperf/dynamic_models/__init__.py | 10 ------- cyperf/models/__init__.py | 10 ------- cyperf/models/action.py | 5 +--- cyperf/models/action_base.py | 5 +--- cyperf/models/application_profile.py | 5 +--- cyperf/models/attack_action.py | 5 +--- cyperf/models/attack_profile.py | 5 +--- cyperf/models/command_metadata.py | 4 +-- cyperf/models/dut_network.py | 8 +----- cyperf/models/emulated_router_range.py | 8 +----- cyperf/models/eth_range.py | 8 +----- cyperf/models/ip_range.py | 8 +----- cyperf/models/local_subnet_config.py | 6 ++-- cyperf/models/metadata.py | 4 +-- cyperf/models/pangp_encapsulation.py | 4 +-- cyperf/models/remote_subnet_config.py | 6 ++-- cyperf/models/stream_profile.py | 8 ++---- cyperf/models/traffic_profile_base.py | 5 +--- docs/Action.md | 1 - docs/ActionBase.md | 1 - docs/ApplicationProfile.md | 1 - docs/ApplicationResourcesApi.md | 15 ++++++---- docs/AttackAction.md | 1 - docs/AttackProfile.md | 1 - docs/CommandMetadata.md | 1 - docs/DUTNetwork.md | 1 - docs/EmulatedRouterRange.md | 1 - docs/EthRange.md | 1 - docs/IPRange.md | 1 - docs/LocalSubnetConfig.md | 1 - docs/Metadata.md | 1 - docs/PANGPEncapsulation.md | 1 - docs/RemoteSubnetConfig.md | 1 - docs/StreamProfile.md | 1 - docs/TrafficProfileBase.md | 1 - 38 files changed, 56 insertions(+), 146 deletions(-) diff --git a/README.md b/README.md index c7fdfe6..5d530c3 100644 --- a/README.md +++ b/README.md @@ -399,7 +399,6 @@ Class | Method | HTTP request | Description - [ActivationCodeRequest](docs/ActivationCodeRequest.md) - [AddActionInfo](docs/AddActionInfo.md) - [AddInput](docs/AddInput.md) - - [Address](docs/Address.md) - [AdvancedSettings](docs/AdvancedSettings.md) - [Agent](docs/Agent.md) - [AgentAssignmentByPort](docs/AgentAssignmentByPort.md) @@ -480,13 +479,11 @@ Class | Method | HTTP request | Description - [CreateAppOrAttackOperationInput](docs/CreateAppOrAttackOperationInput.md) - [CustomDashboards](docs/CustomDashboards.md) - [CustomImportHandler](docs/CustomImportHandler.md) - - [CustomSequence](docs/CustomSequence.md) - [CustomStat](docs/CustomStat.md) - [DNSResolver](docs/DNSResolver.md) - [DNSServer](docs/DNSServer.md) - [DTLSSettings](docs/DTLSSettings.md) - [DUTNetwork](docs/DUTNetwork.md) - - [DUTRange](docs/DUTRange.md) - [Dashboard](docs/Dashboard.md) - [DataType](docs/DataType.md) - [DataTypeValuesInner](docs/DataTypeValuesInner.md) @@ -688,7 +685,6 @@ Class | Method | HTTP request | Description - [PepDUT](docs/PepDUT.md) - [PfsP2Group](docs/PfsP2Group.md) - [PlaylistMetadata](docs/PlaylistMetadata.md) - - [PlaylistSequencingMethod](docs/PlaylistSequencingMethod.md) - [Plugin](docs/Plugin.md) - [PluginStats](docs/PluginStats.md) - [Port](docs/Port.md) @@ -725,9 +721,6 @@ Class | Method | HTTP request | Description - [SecondaryObjective](docs/SecondaryObjective.md) - [SegmentType](docs/SegmentType.md) - [SelectedEnv](docs/SelectedEnv.md) - - [SequenceDataTypes](docs/SequenceDataTypes.md) - - [SequenceValue](docs/SequenceValue.md) - - [SequenceValueTypes](docs/SequenceValueTypes.md) - [Session](docs/Session.md) - [SessionReuseMethodTLS12](docs/SessionReuseMethodTLS12.md) - [SessionReuseMethodTLS13](docs/SessionReuseMethodTLS13.md) @@ -737,9 +730,7 @@ Class | Method | HTTP request | Description - [SetLinkStateOperation](docs/SetLinkStateOperation.md) - [SetNodesAppOperation](docs/SetNodesAppOperation.md) - [SetNtpOperationInput](docs/SetNtpOperationInput.md) - - [SimpleSequenceValue](docs/SimpleSequenceValue.md) - [SimulatedIdP](docs/SimulatedIdP.md) - - [SingleValue](docs/SingleValue.md) - [Snapshot](docs/Snapshot.md) - [SnowflakeExporter](docs/SnowflakeExporter.md) - [SortBodyField](docs/SortBodyField.md) @@ -753,7 +744,6 @@ Class | Method | HTTP request | Description - [StreamDirection](docs/StreamDirection.md) - [StreamPayloadType](docs/StreamPayloadType.md) - [StreamProfile](docs/StreamProfile.md) - - [SubStep](docs/SubStep.md) - [SupportedGroupTLS13](docs/SupportedGroupTLS13.md) - [SystemInfo](docs/SystemInfo.md) - [TLSProfile](docs/TLSProfile.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index eb29d89..6a7fee7 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -64,7 +64,6 @@ from cyperf.models.activation_code_request import ActivationCodeRequest from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput -from cyperf.models.address import Address from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort @@ -145,13 +144,11 @@ from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.custom_import_handler import CustomImportHandler -from cyperf.models.custom_sequence import CustomSequence from cyperf.models.custom_stat import CustomStat from cyperf.models.dns_resolver import DNSResolver from cyperf.models.dns_server import DNSServer from cyperf.models.dtls_settings import DTLSSettings from cyperf.models.dut_network import DUTNetwork -from cyperf.models.dut_range import DUTRange from cyperf.models.dashboard import Dashboard from cyperf.models.data_type import DataType from cyperf.models.data_type_values_inner import DataTypeValuesInner @@ -353,7 +350,6 @@ from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group from cyperf.models.playlist_metadata import PlaylistMetadata -from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port @@ -390,9 +386,6 @@ from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.segment_type import SegmentType from cyperf.models.selected_env import SelectedEnv -from cyperf.models.sequence_data_types import SequenceDataTypes -from cyperf.models.sequence_value import SequenceValue -from cyperf.models.sequence_value_types import SequenceValueTypes from cyperf.models.session import Session from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 @@ -402,9 +395,7 @@ from cyperf.models.set_link_state_operation import SetLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput -from cyperf.models.simple_sequence_value import SimpleSequenceValue from cyperf.models.simulated_id_p import SimulatedIdP -from cyperf.models.single_value import SingleValue from cyperf.models.snapshot import Snapshot from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField @@ -418,7 +409,6 @@ from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_payload_type import StreamPayloadType from cyperf.models.stream_profile import StreamProfile -from cyperf.models.sub_step import SubStep from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 from cyperf.models.system_info import SystemInfo from cyperf.models.tls_profile import TLSProfile diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index 3bf9bca..aa42349 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -30951,7 +30951,8 @@ def _start_resources_captures_batch_delete_serialize( @validate_call def start_resources_captures_encrypted_upload_file( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + file: Union[StrictBytes, StrictStr], + ssl_key_log_file: Union[StrictBytes, StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30964,13 +30965,15 @@ def start_resources_captures_encrypted_upload_file( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: + ) -> AsyncContext: """start_resources_captures_encrypted_upload_file Upload a file. - :param file: + :param file: (required) :type file: bytearray + :param ssl_key_log_file: (required) + :type ssl_key_log_file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30995,6 +30998,7 @@ def start_resources_captures_encrypted_upload_file( _param = self._start_resources_captures_encrypted_upload_file_serialize( file=file, + ssl_key_log_file=ssl_key_log_file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31002,7 +31006,7 @@ def start_resources_captures_encrypted_upload_file( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -31015,7 +31019,8 @@ def start_resources_captures_encrypted_upload_file( @validate_call def start_resources_captures_encrypted_upload_file_with_http_info( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + file: Union[StrictBytes, StrictStr], + ssl_key_log_file: Union[StrictBytes, StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31028,13 +31033,15 @@ def start_resources_captures_encrypted_upload_file_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: + ) -> ApiResponse[AsyncContext]: """start_resources_captures_encrypted_upload_file Upload a file. - :param file: + :param file: (required) :type file: bytearray + :param ssl_key_log_file: (required) + :type ssl_key_log_file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31059,6 +31066,7 @@ def start_resources_captures_encrypted_upload_file_with_http_info( _param = self._start_resources_captures_encrypted_upload_file_serialize( file=file, + ssl_key_log_file=ssl_key_log_file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31066,7 +31074,7 @@ def start_resources_captures_encrypted_upload_file_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -31079,7 +31087,8 @@ def start_resources_captures_encrypted_upload_file_with_http_info( @validate_call def start_resources_captures_encrypted_upload_file_without_preload_content( self, - file: Optional[Union[StrictBytes, StrictStr]] = None, + file: Union[StrictBytes, StrictStr], + ssl_key_log_file: Union[StrictBytes, StrictStr], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31097,8 +31106,10 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( Upload a file. - :param file: + :param file: (required) :type file: bytearray + :param ssl_key_log_file: (required) + :type ssl_key_log_file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31123,6 +31134,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( _param = self._start_resources_captures_encrypted_upload_file_serialize( file=file, + ssl_key_log_file=ssl_key_log_file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31130,7 +31142,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "AsyncContext", '500': "ErrorResponse", } return self.api_client.call_api( @@ -31143,6 +31155,7 @@ def start_resources_captures_encrypted_upload_file_without_preload_content( def _start_resources_captures_encrypted_upload_file_serialize( self, file, + ssl_key_log_file, _request_auth, _content_type, _headers, @@ -31167,6 +31180,8 @@ def _start_resources_captures_encrypted_upload_file_serialize( # process the form parameters if file is not None: _files['file'] = file + if ssl_key_log_file is not None: + _files['sslKeyLogFile'] = ssl_key_log_file # process the body parameter diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 2021a3c..d29722e 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -30,7 +30,6 @@ ActivationCodeRequest = DynamicModel('ActivationCodeRequest', (), {} ) AddActionInfo = DynamicModel('AddActionInfo', (), {} ) AddInput = DynamicModel('AddInput', (), {} ) -Address = DynamicModel('Address', (), {} ) AdvancedSettings = DynamicModel('AdvancedSettings', (), {} ) Agent = DynamicModel('Agent', (), {} ) AgentAssignmentByPort = DynamicModel('AgentAssignmentByPort', (), {} ) @@ -111,13 +110,11 @@ CreateAppOrAttackOperationInput = DynamicModel('CreateAppOrAttackOperationInput', (), {} ) CustomDashboards = DynamicModel('CustomDashboards', (), {} ) CustomImportHandler = DynamicModel('CustomImportHandler', (), {} ) -CustomSequence = DynamicModel('CustomSequence', (), {} ) CustomStat = DynamicModel('CustomStat', (), {} ) DNSResolver = DynamicModel('DNSResolver', (), {} ) DNSServer = DynamicModel('DNSServer', (), {} ) DTLSSettings = DynamicModel('DTLSSettings', (), {} ) DUTNetwork = DynamicModel('DUTNetwork', (), {} ) -DUTRange = DynamicModel('DUTRange', (), {} ) Dashboard = DynamicModel('Dashboard', (), {} ) DataType = DynamicModel('DataType', (), {} ) DataTypeValuesInner = DynamicModel('DataTypeValuesInner', (), {} ) @@ -319,7 +316,6 @@ PepDUT = DynamicModel('PepDUT', (), {} ) PfsP2Group = DynamicModel('PfsP2Group', (), {} ) PlaylistMetadata = DynamicModel('PlaylistMetadata', (), {} ) -PlaylistSequencingMethod = DynamicModel('PlaylistSequencingMethod', (), {} ) Plugin = DynamicModel('Plugin', (), {} ) PluginStats = DynamicModel('PluginStats', (), {} ) Port = DynamicModel('Port', (), {} ) @@ -356,9 +352,6 @@ SecondaryObjective = DynamicModel('SecondaryObjective', (), {} ) SegmentType = DynamicModel('SegmentType', (), {} ) SelectedEnv = DynamicModel('SelectedEnv', (), {} ) -SequenceDataTypes = DynamicModel('SequenceDataTypes', (), {} ) -SequenceValue = DynamicModel('SequenceValue', (), {} ) -SequenceValueTypes = DynamicModel('SequenceValueTypes', (), {} ) Session = DynamicModel('Session', (), {} ) SessionReuseMethodTLS12 = DynamicModel('SessionReuseMethodTLS12', (), {} ) SessionReuseMethodTLS13 = DynamicModel('SessionReuseMethodTLS13', (), {} ) @@ -368,9 +361,7 @@ SetLinkStateOperation = DynamicModel('SetLinkStateOperation', (), {} ) SetNodesAppOperation = DynamicModel('SetNodesAppOperation', (), {} ) SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) -SimpleSequenceValue = DynamicModel('SimpleSequenceValue', (), {} ) SimulatedIdP = DynamicModel('SimulatedIdP', (), {} ) -SingleValue = DynamicModel('SingleValue', (), {} ) Snapshot = DynamicModel('Snapshot', (), {} ) SnowflakeExporter = DynamicModel('SnowflakeExporter', (), {} ) SortBodyField = DynamicModel('SortBodyField', (), {} ) @@ -384,7 +375,6 @@ StreamDirection = DynamicModel('StreamDirection', (), {} ) StreamPayloadType = DynamicModel('StreamPayloadType', (), {} ) StreamProfile = DynamicModel('StreamProfile', (), {} ) -SubStep = DynamicModel('SubStep', (), {} ) SupportedGroupTLS13 = DynamicModel('SupportedGroupTLS13', (), {} ) SystemInfo = DynamicModel('SystemInfo', (), {} ) TLSProfile = DynamicModel('TLSProfile', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 3b056c3..a7516f4 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -30,7 +30,6 @@ class LinkNameException(Exception): from cyperf.models.activation_code_request import ActivationCodeRequest from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput -from cyperf.models.address import Address from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort @@ -111,13 +110,11 @@ class LinkNameException(Exception): from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.custom_import_handler import CustomImportHandler -from cyperf.models.custom_sequence import CustomSequence from cyperf.models.custom_stat import CustomStat from cyperf.models.dns_resolver import DNSResolver from cyperf.models.dns_server import DNSServer from cyperf.models.dtls_settings import DTLSSettings from cyperf.models.dut_network import DUTNetwork -from cyperf.models.dut_range import DUTRange from cyperf.models.dashboard import Dashboard from cyperf.models.data_type import DataType from cyperf.models.data_type_values_inner import DataTypeValuesInner @@ -319,7 +316,6 @@ class LinkNameException(Exception): from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group from cyperf.models.playlist_metadata import PlaylistMetadata -from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port @@ -356,9 +352,6 @@ class LinkNameException(Exception): from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.segment_type import SegmentType from cyperf.models.selected_env import SelectedEnv -from cyperf.models.sequence_data_types import SequenceDataTypes -from cyperf.models.sequence_value import SequenceValue -from cyperf.models.sequence_value_types import SequenceValueTypes from cyperf.models.session import Session from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 @@ -368,9 +361,7 @@ class LinkNameException(Exception): from cyperf.models.set_link_state_operation import SetLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput -from cyperf.models.simple_sequence_value import SimpleSequenceValue from cyperf.models.simulated_id_p import SimulatedIdP -from cyperf.models.single_value import SingleValue from cyperf.models.snapshot import Snapshot from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField @@ -384,7 +375,6 @@ class LinkNameException(Exception): from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_payload_type import StreamPayloadType from cyperf.models.stream_profile import StreamProfile -from cyperf.models.sub_step import SubStep from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 from cyperf.models.system_info import SystemInfo from cyperf.models.tls_profile import TLSProfile diff --git a/cyperf/models/action.py b/cyperf/models/action.py index 6e029e0..6a16cfc 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -23,7 +23,6 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange -from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -46,10 +45,9 @@ class Action(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") - supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -148,7 +146,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), - "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index 2465540..6b185c7 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -23,7 +23,6 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange -from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -46,10 +45,9 @@ class ActionBase(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") - supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -148,7 +146,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), - "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index 2b90483..8559031 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -25,7 +25,6 @@ from cyperf.models.external_resource_info import ExternalResourceInfo from cyperf.models.network_mapping import NetworkMapping from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline -from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union @@ -37,7 +36,6 @@ class ApplicationProfile(BaseModel): ApplicationProfile """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") - playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None @@ -54,7 +52,7 @@ class ApplicationProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateTrafficProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetTrafficProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -154,7 +152,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), - "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index f261776..03923e0 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -23,7 +23,6 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange -from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -46,10 +45,9 @@ class AttackAction(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") - supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -148,7 +146,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), - "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index 7ac4116..643e4f6 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -25,7 +25,6 @@ from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.external_resource_info import ExternalResourceInfo from cyperf.models.network_mapping import NetworkMapping -from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union @@ -37,7 +36,6 @@ class AttackProfile(BaseModel): AttackProfile """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") - playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None @@ -54,7 +52,7 @@ class AttackProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetAttackProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -154,7 +152,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), - "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index d8158ee..d0c1c0b 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -48,11 +48,10 @@ class CommandMetadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") - supported_http_versions: Optional[List[StrictStr]] = Field(default=None, description="The HTTP versions supported by the application", alias="SupportedHTTPVersions") supported_protocols: Optional[List[StrictStr]] = Field(default=None, description="The list of protocols which support this command", alias="SupportedProtocols") supports_http2: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports HTTP2 multi-stream", alias="SupportsHTTP2") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedHTTPVersions", "SupportedProtocols", "SupportsHTTP2", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "SupportsHTTP2", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -141,7 +140,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], - "SupportedHTTPVersions": obj.get("SupportedHTTPVersions") if obj.get("SupportedHTTPVersions") is not None else [], "SupportedProtocols": obj.get("SupportedProtocols") if obj.get("SupportedProtocols") is not None else [], "SupportsHTTP2": obj.get("SupportsHTTP2"), "Year": obj.get("Year") diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index 8d74b23..f02ea23 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from cyperf.models.address import Address from cyperf.models.api_link import APILink from cyperf.models.health_check_config import HealthCheckConfig from cyperf.models.params import Params @@ -55,7 +54,6 @@ class DUTNetwork(BaseModel): reverse_proxy_pep_dut: Optional[PepDUT] = Field(default=None, alias="ReverseProxyPepDUT") reverse_proxy_pep_dut_active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false)", alias="ReverseProxyPepDUTActive") server_dut_active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the server DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false)", alias="ServerDUTActive") - server_dut_address: Optional[Address] = Field(default=None, alias="ServerDUTAddress") server_dut_host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The hostname where the traffic goes if server DUT is active.", alias="ServerDUTHost") server_dut_port: Optional[StrictInt] = Field(default=None, description="The listen port for server-side DUT", alias="ServerDUTPort") tcp_health_check: Optional[HealthCheckConfig] = Field(default=None, description="The TCP HealthCheck configuration for DUT", alias="TCPHealthCheck") @@ -63,7 +61,7 @@ class DUTNetwork(BaseModel): active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false)") host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The hostname where the traffic goes if server DUT is active.") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "LLMModel", "LLMRequestURLPath", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTAddress", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "LLMModel", "LLMRequestURLPath", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -189,9 +187,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of reverse_proxy_pep_dut if self.reverse_proxy_pep_dut: _dict['ReverseProxyPepDUT'] = self.reverse_proxy_pep_dut.to_dict() - # override the default output from pydantic by calling `to_dict()` of server_dut_address - if self.server_dut_address: - _dict['ServerDUTAddress'] = self.server_dut_address.to_dict() # override the default output from pydantic by calling `to_dict()` of tcp_health_check if self.tcp_health_check: _dict['TCPHealthCheck'] = self.tcp_health_check.to_dict() @@ -237,7 +232,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ReverseProxyPepDUT": PepDUT.from_dict(obj["ReverseProxyPepDUT"]) if obj.get("ReverseProxyPepDUT") is not None else None, "ReverseProxyPepDUTActive": obj.get("ReverseProxyPepDUTActive"), "ServerDUTActive": obj.get("ServerDUTActive"), - "ServerDUTAddress": Address.from_dict(obj["ServerDUTAddress"]) if obj.get("ServerDUTAddress") is not None else None, "ServerDUTHost": obj.get("ServerDUTHost"), "ServerDUTPort": obj.get("ServerDUTPort"), "TCPHealthCheck": HealthCheckConfig.from_dict(obj["TCPHealthCheck"]) if obj.get("TCPHealthCheck") is not None else None, diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 1fe348d..2b88b82 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -24,7 +24,6 @@ from cyperf.models.api_link import APILink from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer -from cyperf.models.sequence_value import SequenceValue from cyperf.models.vlan_range import VLANRange from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union @@ -41,7 +40,6 @@ class EmulatedRouterRange(BaseModel): gw_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The gateway start IP for the IPRange (default: 10.0.0.1).", alias="GwStart") host_count: Optional[StrictInt] = Field(default=None, description="The number of Host IPs generated (default: 1).", alias="HostCount") inner_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current IP range configuration", alias="InnerVlanRange") - ip_address: Optional[SequenceValue] = Field(default=None, alias="IpAddress") ip_auto: StrictBool = Field(description="A flag indicating if IP settings for the IPRange should be determined automatically (default: true).", alias="IpAuto") ip_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The IP incrementation rule (default: 0.0.0.1).", alias="IpIncr") ip_range_name: Annotated[str, Field(strict=True)] = Field(alias="IpRangeName") @@ -58,7 +56,7 @@ class EmulatedRouterRange(BaseModel): links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1).", alias="maxCountPerAgent") network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAddress", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] + __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] @field_validator('gw_start') def gw_start_validate_regular_expression(cls, value): @@ -139,9 +137,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of inner_vlan_range if self.inner_vlan_range: _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() - # override the default output from pydantic by calling `to_dict()` of ip_address - if self.ip_address: - _dict['IpAddress'] = self.ip_address.to_dict() # override the default output from pydantic by calling `to_dict()` of outer_vlan_range if self.outer_vlan_range: _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() @@ -172,7 +167,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "GwStart": obj.get("GwStart"), "HostCount": obj.get("HostCount"), "InnerVlanRange": VLANRange.from_dict(obj["InnerVlanRange"]) if obj.get("InnerVlanRange") is not None else None, - "IpAddress": SequenceValue.from_dict(obj["IpAddress"]) if obj.get("IpAddress") is not None else None, "IpAuto": obj.get("IpAuto"), "IpIncr": obj.get("IpIncr"), "IpRangeName": obj.get("IpRangeName"), diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index 0bf2674..964ed14 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from cyperf.models.api_link import APILink -from cyperf.models.sequence_value import SequenceValue from cyperf.models.static_arp_entry import StaticARPEntry from typing import Optional, Set, Union from typing_extensions import Self @@ -33,7 +32,6 @@ class EthRange(BaseModel): The Ethernet Ranges assigned to the current test configuration """ # noqa: E501 count: Optional[StrictInt] = Field(default=None, alias="Count") - mac_address: Optional[SequenceValue] = Field(default=None, alias="MacAddress") mac_auto: StrictBool = Field(description="A flag indicating if the MAC address for the EthRange should be determined automatically (default: true).", alias="MacAuto") mac_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The MAC address increment rule for the EthRange (default: 00:00:00:00:00:01).", alias="MacIncr") mac_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The MAC start address for the EthRange (default: 00:11:01:00:00:01).", alias="MacStart") @@ -41,7 +39,7 @@ class EthRange(BaseModel): static_arp_table: Optional[List[StaticARPEntry]] = Field(default=None, alias="StaticARPTable") links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of MACs that should be assigned to each traffic agent for this Ethernet range segment in a valid test (default: 0, split equally between agents).", alias="maxCountPerAgent") - __properties: ClassVar[List[str]] = ["Count", "MacAddress", "MacAuto", "MacIncr", "MacStart", "OneMacPerIP", "StaticARPTable", "links", "maxCountPerAgent"] + __properties: ClassVar[List[str]] = ["Count", "MacAuto", "MacIncr", "MacStart", "OneMacPerIP", "StaticARPTable", "links", "maxCountPerAgent"] @field_validator('mac_incr') def mac_incr_validate_regular_expression(cls, value): @@ -102,9 +100,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of mac_address - if self.mac_address: - _dict['MacAddress'] = self.mac_address.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in static_arp_table (list) _items = [] if self.static_arp_table: @@ -134,7 +129,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Count": obj.get("Count"), - "MacAddress": SequenceValue.from_dict(obj["MacAddress"]) if obj.get("MacAddress") is not None else None, "MacAuto": obj.get("MacAuto"), "MacIncr": obj.get("MacIncr"), "MacStart": obj.get("MacStart"), diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index 58897c8..9c83b38 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -24,7 +24,6 @@ from cyperf.models.api_link import APILink from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer -from cyperf.models.sequence_value import SequenceValue from cyperf.models.vlan_range import VLANRange from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union @@ -41,7 +40,6 @@ class IPRange(BaseModel): gw_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The gateway start IP for the IPRange (default: 10.0.0.1).", alias="GwStart") host_count: Optional[StrictInt] = Field(default=None, description="The number of Host IPs generated (default: 1).", alias="HostCount") inner_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current IP range configuration", alias="InnerVlanRange") - ip_address: Optional[SequenceValue] = Field(default=None, alias="IpAddress") ip_auto: StrictBool = Field(description="A flag indicating if IP settings for the IPRange should be determined automatically (default: true).", alias="IpAuto") ip_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The IP incrementation rule (default: 0.0.0.1).", alias="IpIncr") ip_range_name: Annotated[str, Field(strict=True)] = Field(alias="IpRangeName") @@ -58,7 +56,7 @@ class IPRange(BaseModel): links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1).", alias="maxCountPerAgent") network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAddress", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] + __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] @field_validator('gw_start') def gw_start_validate_regular_expression(cls, value): @@ -139,9 +137,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of inner_vlan_range if self.inner_vlan_range: _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() - # override the default output from pydantic by calling `to_dict()` of ip_address - if self.ip_address: - _dict['IpAddress'] = self.ip_address.to_dict() # override the default output from pydantic by calling `to_dict()` of outer_vlan_range if self.outer_vlan_range: _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() @@ -172,7 +167,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "GwStart": obj.get("GwStart"), "HostCount": obj.get("HostCount"), "InnerVlanRange": VLANRange.from_dict(obj["InnerVlanRange"]) if obj.get("InnerVlanRange") is not None else None, - "IpAddress": SequenceValue.from_dict(obj["IpAddress"]) if obj.get("IpAddress") is not None else None, "IpAuto": obj.get("IpAuto"), "IpIncr": obj.get("IpIncr"), "IpRangeName": obj.get("IpRangeName"), diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index 303751c..2753476 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set, Union @@ -36,9 +36,8 @@ class LocalSubnetConfig(BaseModel): prefix: StrictInt = Field(description="The network mask of the IP Range (default: 16).", alias="Prefix") start: Annotated[str, Field(strict=True)] = Field(description="The start IP for the IPRange (default: 10.0.0.10).", alias="Start") total_host_count: StrictStr = Field(alias="TotalHostCount") - wildcard_initiator_traffic: StrictBool = Field(alias="WildcardInitiatorTraffic") network_tags: List[StrictStr] = Field(description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["HostCountPerTunnel", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "Start", "TotalHostCount", "WildcardInitiatorTraffic", "networkTags"] + __properties: ClassVar[List[str]] = ["HostCountPerTunnel", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "Start", "TotalHostCount", "networkTags"] @field_validator('hosts_increment') def hosts_increment_validate_regular_expression(cls, value): @@ -121,7 +120,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), - "WildcardInitiatorTraffic": obj.get("WildcardInitiatorTraffic"), "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 137c4e2..6e07d2b 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -47,10 +47,9 @@ class Metadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") - supported_http_versions: Optional[List[StrictStr]] = Field(default=None, description="The HTTP versions supported by the application", alias="SupportedHTTPVersions") supports_http2: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports HTTP2 multi-stream", alias="SupportsHTTP2") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedHTTPVersions", "SupportsHTTP2", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportsHTTP2", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -138,7 +137,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], - "SupportedHTTPVersions": obj.get("SupportedHTTPVersions") if obj.get("SupportedHTTPVersions") is not None else [], "SupportsHTTP2": obj.get("SupportsHTTP2"), "Year": obj.get("Year") , diff --git a/cyperf/models/pangp_encapsulation.py b/cyperf/models/pangp_encapsulation.py index 88a533c..5b09a5a 100644 --- a/cyperf/models/pangp_encapsulation.py +++ b/cyperf/models/pangp_encapsulation.py @@ -32,11 +32,10 @@ class PANGPEncapsulation(BaseModel): """ # noqa: E501 esp_over_udp_enabled: StrictBool = Field(alias="ESPOverUDPEnabled") esp_over_udp_settings: Optional[ESPOverUDPSettings] = Field(default=None, alias="ESPOverUDPSettings") - enable_ikev2: StrictBool = Field(alias="EnableIKEv2") encapsulation_mode: StrictStr = Field(description="The encapsulation mode for inner traffic.", alias="EncapsulationMode") udp_port: StrictInt = Field(alias="UdpPort") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ESPOverUDPEnabled", "ESPOverUDPSettings", "EnableIKEv2", "EncapsulationMode", "UdpPort", "links"] + __properties: ClassVar[List[str]] = ["ESPOverUDPEnabled", "ESPOverUDPSettings", "EncapsulationMode", "UdpPort", "links"] @field_validator('encapsulation_mode') def encapsulation_mode_validate_enum(cls, value): @@ -110,7 +109,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ESPOverUDPEnabled": obj.get("ESPOverUDPEnabled"), "ESPOverUDPSettings": ESPOverUDPSettings.from_dict(obj["ESPOverUDPSettings"]) if obj.get("ESPOverUDPSettings") is not None else None, - "EnableIKEv2": obj.get("EnableIKEv2"), "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) diff --git a/cyperf/models/remote_subnet_config.py b/cyperf/models/remote_subnet_config.py index a4b6e66..b9e55d1 100644 --- a/cyperf/models/remote_subnet_config.py +++ b/cyperf/models/remote_subnet_config.py @@ -36,8 +36,7 @@ class RemoteSubnetConfig(BaseModel): prefix: StrictInt = Field(description="The length (in bits) of the subnet mask to be applied to all the addresses created in the range.", alias="Prefix") single_remote_subnet: StrictBool = Field(alias="SingleRemoteSubnet") start: Annotated[str, Field(strict=True)] = Field(description="The base address for enumerating all the local subnets in the range", alias="Start") - wildcard_responder_traffic: StrictBool = Field(alias="WildcardResponderTraffic") - __properties: ClassVar[List[str]] = ["Automatic", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "SingleRemoteSubnet", "Start", "WildcardResponderTraffic"] + __properties: ClassVar[List[str]] = ["Automatic", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "SingleRemoteSubnet", "Start"] @field_validator('hosts_increment') def hosts_increment_validate_regular_expression(cls, value): @@ -119,8 +118,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Increment": obj.get("Increment"), "Prefix": obj.get("Prefix"), "SingleRemoteSubnet": obj.get("SingleRemoteSubnet"), - "Start": obj.get("Start"), - "WildcardResponderTraffic": obj.get("WildcardResponderTraffic") + "Start": obj.get("Start") , "links": obj.get("links") }) diff --git a/cyperf/models/stream_profile.py b/cyperf/models/stream_profile.py index a7d3737..5c13d58 100644 --- a/cyperf/models/stream_profile.py +++ b/cyperf/models/stream_profile.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stream_payload_type import StreamPayloadType from typing import Optional, Set, Union @@ -35,8 +35,7 @@ class StreamProfile(BaseModel): total_estimated_throughput: Optional[StrictStr] = Field(default=None, alias="totalEstimatedThroughput") total_estimated_throughput_per_simulated_user: Optional[StrictStr] = Field(default=None, alias="totalEstimatedThroughputPerSimulatedUser") unique_pool_size: Optional[StrictInt] = Field(default=None, alias="uniquePoolSize") - unrestricted_packet_rate: Optional[StrictBool] = Field(default=None, alias="unrestrictedPacketRate") - __properties: ClassVar[List[str]] = ["packetRate", "payloadSize", "payloadType", "totalEstimatedThroughput", "totalEstimatedThroughputPerSimulatedUser", "uniquePoolSize", "unrestrictedPacketRate"] + __properties: ClassVar[List[str]] = ["packetRate", "payloadSize", "payloadType", "totalEstimatedThroughput", "totalEstimatedThroughputPerSimulatedUser", "uniquePoolSize"] model_config = ConfigDict( populate_by_name=True, @@ -96,8 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "payloadType": obj.get("payloadType"), "totalEstimatedThroughput": obj.get("totalEstimatedThroughput"), "totalEstimatedThroughputPerSimulatedUser": obj.get("totalEstimatedThroughputPerSimulatedUser"), - "uniquePoolSize": obj.get("uniquePoolSize"), - "unrestrictedPacketRate": obj.get("unrestrictedPacketRate") + "uniquePoolSize": obj.get("uniquePoolSize") , "links": obj.get("links") }) diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index 6e10b0d..e480756 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink -from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from typing import Optional, Set, Union from typing_extensions import Self @@ -32,12 +31,11 @@ class TrafficProfileBase(BaseModel): TrafficProfileBase """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") - playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] + __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] model_config = ConfigDict( populate_by_name=True, @@ -103,7 +101,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), - "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/docs/Action.md b/docs/Action.md index c832d9d..0e584a6 100644 --- a/docs/Action.md +++ b/docs/Action.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] -**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/ActionBase.md b/docs/ActionBase.md index f419c41..be8a2e2 100644 --- a/docs/ActionBase.md +++ b/docs/ActionBase.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] -**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/ApplicationProfile.md b/docs/ApplicationProfile.md index c2fac4f..6cde695 100644 --- a/docs/ApplicationProfile.md +++ b/docs/ApplicationProfile.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] -**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index ba91e49..e5c2971 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -9173,7 +9173,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start_resources_captures_encrypted_upload_file** -> start_resources_captures_encrypted_upload_file(file=file) +> AsyncContext start_resources_captures_encrypted_upload_file(file, ssl_key_log_file) @@ -9186,6 +9186,7 @@ Upload a file. ```python import cyperf +from cyperf.models.async_context import AsyncContext from cyperf.rest import ApiException from pprint import pprint @@ -9208,10 +9209,13 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - file = None # bytearray | (optional) + file = None # bytearray | + ssl_key_log_file = None # bytearray | try: - api_instance.start_resources_captures_encrypted_upload_file(file=file) + api_response = api_instance.start_resources_captures_encrypted_upload_file(file, ssl_key_log_file) + print("The response of ApplicationResourcesApi->start_resources_captures_encrypted_upload_file:\n") + pprint(api_response) except Exception as e: print("Exception when calling ApplicationResourcesApi->start_resources_captures_encrypted_upload_file: %s\n" % e) ``` @@ -9223,11 +9227,12 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **file** | **bytearray**| | [optional] + **file** | **bytearray**| | + **ssl_key_log_file** | **bytearray**| | ### Return type -void (empty response body) +[**AsyncContext**](AsyncContext.md) ### Authorization diff --git a/docs/AttackAction.md b/docs/AttackAction.md index 75b7c94..cf9e1dd 100644 --- a/docs/AttackAction.md +++ b/docs/AttackAction.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] -**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/AttackProfile.md b/docs/AttackProfile.md index 0c42c28..4d64831 100644 --- a/docs/AttackProfile.md +++ b/docs/AttackProfile.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] -**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md index 469a6cc..849dde1 100644 --- a/docs/CommandMetadata.md +++ b/docs/CommandMetadata.md @@ -22,7 +22,6 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] -**supported_http_versions** | **List[str]** | The HTTP versions supported by the application | [optional] **supported_protocols** | **List[str]** | The list of protocols which support this command | [optional] **supports_http2** | **bool** | Indicates if the application supports HTTP2 multi-stream | [optional] **year** | **str** | The year of the strike | [optional] diff --git a/docs/DUTNetwork.md b/docs/DUTNetwork.md index 94b8c76..d44a65c 100644 --- a/docs/DUTNetwork.md +++ b/docs/DUTNetwork.md @@ -26,7 +26,6 @@ Name | Type | Description | Notes **reverse_proxy_pep_dut** | [**PepDUT**](PepDUT.md) | | [optional] **reverse_proxy_pep_dut_active** | **bool** | A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false) | [optional] **server_dut_active** | **bool** | A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the server DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false) | [optional] -**server_dut_address** | [**Address**](Address.md) | | [optional] **server_dut_host** | **str** | The hostname where the traffic goes if server DUT is active. | [optional] **server_dut_port** | **int** | The listen port for server-side DUT | [optional] **tcp_health_check** | [**HealthCheckConfig**](HealthCheckConfig.md) | The TCP HealthCheck configuration for DUT | [optional] diff --git a/docs/EmulatedRouterRange.md b/docs/EmulatedRouterRange.md index 35e5fba..98757c0 100644 --- a/docs/EmulatedRouterRange.md +++ b/docs/EmulatedRouterRange.md @@ -11,7 +11,6 @@ Name | Type | Description | Notes **gw_start** | **str** | The gateway start IP for the IPRange (default: 10.0.0.1). | [optional] **host_count** | **int** | The number of Host IPs generated (default: 1). | [optional] **inner_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current IP range configuration | [optional] -**ip_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **ip_auto** | **bool** | A flag indicating if IP settings for the IPRange should be determined automatically (default: true). | **ip_incr** | **str** | The IP incrementation rule (default: 0.0.0.1). | [optional] **ip_range_name** | **str** | | diff --git a/docs/EthRange.md b/docs/EthRange.md index c4a2467..58f4130 100644 --- a/docs/EthRange.md +++ b/docs/EthRange.md @@ -7,7 +7,6 @@ The Ethernet Ranges assigned to the current test configuration Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | | [optional] -**mac_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **mac_auto** | **bool** | A flag indicating if the MAC address for the EthRange should be determined automatically (default: true). | **mac_incr** | **str** | The MAC address increment rule for the EthRange (default: 00:00:00:00:00:01). | [optional] **mac_start** | **str** | The MAC start address for the EthRange (default: 00:11:01:00:00:01). | [optional] diff --git a/docs/IPRange.md b/docs/IPRange.md index 1ef5e34..22b27ee 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **gw_start** | **str** | The gateway start IP for the IPRange (default: 10.0.0.1). | [optional] **host_count** | **int** | The number of Host IPs generated (default: 1). | [optional] **inner_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current IP range configuration | [optional] -**ip_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **ip_auto** | **bool** | A flag indicating if IP settings for the IPRange should be determined automatically (default: true). | **ip_incr** | **str** | The IP incrementation rule (default: 0.0.0.1). | [optional] **ip_range_name** | **str** | | diff --git a/docs/LocalSubnetConfig.md b/docs/LocalSubnetConfig.md index 2132b36..52dc57e 100644 --- a/docs/LocalSubnetConfig.md +++ b/docs/LocalSubnetConfig.md @@ -13,7 +13,6 @@ Name | Type | Description | Notes **prefix** | **int** | The network mask of the IP Range (default: 16). | **start** | **str** | The start IP for the IPRange (default: 10.0.0.10). | **total_host_count** | **str** | | -**wildcard_initiator_traffic** | **bool** | | **network_tags** | **List[str]** | A list of tags. | ## Example diff --git a/docs/Metadata.md b/docs/Metadata.md index eb74216..fbe520a 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -21,7 +21,6 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] -**supported_http_versions** | **List[str]** | The HTTP versions supported by the application | [optional] **supports_http2** | **bool** | Indicates if the application supports HTTP2 multi-stream | [optional] **year** | **str** | The year of the strike | [optional] diff --git a/docs/PANGPEncapsulation.md b/docs/PANGPEncapsulation.md index 54e807c..5c6a530 100644 --- a/docs/PANGPEncapsulation.md +++ b/docs/PANGPEncapsulation.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **esp_over_udp_enabled** | **bool** | | **esp_over_udp_settings** | [**ESPOverUDPSettings**](ESPOverUDPSettings.md) | | [optional] -**enable_ikev2** | **bool** | | **encapsulation_mode** | **str** | The encapsulation mode for inner traffic. | **udp_port** | **int** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/RemoteSubnetConfig.md b/docs/RemoteSubnetConfig.md index 85b1aaa..d21f07b 100644 --- a/docs/RemoteSubnetConfig.md +++ b/docs/RemoteSubnetConfig.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **prefix** | **int** | The length (in bits) of the subnet mask to be applied to all the addresses created in the range. | **single_remote_subnet** | **bool** | | **start** | **str** | The base address for enumerating all the local subnets in the range | -**wildcard_responder_traffic** | **bool** | | ## Example diff --git a/docs/StreamProfile.md b/docs/StreamProfile.md index 0281ab9..189344f 100644 --- a/docs/StreamProfile.md +++ b/docs/StreamProfile.md @@ -11,7 +11,6 @@ Name | Type | Description | Notes **total_estimated_throughput** | **str** | | [optional] **total_estimated_throughput_per_simulated_user** | **str** | | [optional] **unique_pool_size** | **int** | | [optional] -**unrestricted_packet_rate** | **bool** | | [optional] ## Example diff --git a/docs/TrafficProfileBase.md b/docs/TrafficProfileBase.md index a8e538a..31f48b9 100644 --- a/docs/TrafficProfileBase.md +++ b/docs/TrafficProfileBase.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] -**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] From 0affc870a8d2837a0ace74fa9557f366d1ba1fdb Mon Sep 17 00:00:00 2001 From: Luca Muntean Date: Fri, 12 Jun 2026 03:40:44 -0600 Subject: [PATCH 38/53] Pull request #76: Updated sample scripts to use the new wait_for_test_end function name Merge in ISGAPPSEC/cyperf-api-wrapper from update-function-calls to main Squashed commit of the following: commit 28b0190076def0f8b9cb0b00e4e272200b7fdc5c Author: lucamunt Date: Fri Jun 12 10:18:35 2026 +0300 updated sample scripts to use the new wait_for_test_end function name --- samples/sample_attacks_load_and_run.py | 2 +- samples/sample_udp_streaming_run.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/sample_attacks_load_and_run.py b/samples/sample_attacks_load_and_run.py index 2172de4..f4cf1df 100644 --- a/samples/sample_attacks_load_and_run.py +++ b/samples/sample_attacks_load_and_run.py @@ -101,7 +101,7 @@ def _print_attack_stats(self, test, time_from, time_to): def _wait_until_stopped(self): self.last_recorded_time_stamp = 0 - self.utils.wait_for_test_stop(self.session, self._print_attack_stats) + self.utils.wait_for_test_end(self.session, self._print_attack_stats) print('Stopped test ...') def run(self): diff --git a/samples/sample_udp_streaming_run.py b/samples/sample_udp_streaming_run.py index a36caff..f58efc3 100644 --- a/samples/sample_udp_streaming_run.py +++ b/samples/sample_udp_streaming_run.py @@ -122,7 +122,7 @@ def print_run_time_stats(self, test, time_from, time_to, stat_names): def _wait_until_stopped(self): self.last_recorded_time_stamps = {} - self.utils.wait_for_test_stop(self.session, self._print_run_time_stats) + self.utils.wait_for_test_end(self.session, self._print_run_time_stats) print('Stopped test ...') def run(self): From d8f08be3a45d7f2a2e54f3a333577b704635a698 Mon Sep 17 00:00:00 2001 From: Stingescu Andrei Petrut Date: Fri, 10 Jul 2026 07:24:34 -0600 Subject: [PATCH 39/53] Pull request #78: Regenerate Python API Wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from feature/ISGAPPSEC2-37153-exposeeagle-heavy-apis-in-the-cyperf-python-wrapper to main Squashed commit of the following: commit 634034a8f9c152295f67e31de249bc1edabed9af Author: stinandr Date: Fri Jul 10 13:34:17 2026 +0300 Remove the folder .openapi-generator & git should ignore it commit 1617263af5bf582b44a9522f5f85b5f8a91870d8 Author: stinandr Date: Fri Jul 10 13:15:16 2026 +0300 Update FILES commit 859605d674e6044a4a40d03ccab9584d7f21021a Author: stinandr Date: Fri Jul 10 11:29:31 2026 +0300 Remove the deprecated hw operation files commit 4c9c9dbc47121d1578fa396cf338dc4a173ff214 Author: stinandr Date: Thu Jul 9 12:41:56 2026 +0300 Regenerate Python API Wrapper --- .gitignore | 3 + .openapi-generator/FILES | 866 ---- .openapi-generator/VERSION | 1 - README.md | 33 +- cyperf/__init__.py | 23 +- cyperf/api/agents_api.py | 4220 ++++++++++++++--- cyperf/dynamic_models/__init__.py | 23 +- cyperf/models/__init__.py | 23 +- cyperf/models/action.py | 5 +- cyperf/models/action_base.py | 5 +- .../agent_assignment_by_front_panel_port.py | 113 + cyperf/models/agent_assignments.py | 14 +- cyperf/models/agent_reservation.py | 4 +- cyperf/models/application_profile.py | 5 +- cyperf/models/attack_action.py | 5 +- cyperf/models/attack_profile.py | 5 +- cyperf/models/chassis_info.py | 22 +- ...r_compute_resources_ownership_operation.py | 101 + ...r_front_panel_ports_ownership_operation.py | 101 + cyperf/models/command_metadata.py | 4 +- cyperf/models/compute_node.py | 16 +- cyperf/models/compute_resource.py | 107 + .../models/compute_resources_by_controller.py | 103 + cyperf/models/compute_resources_by_node.py | 95 + cyperf/models/controller.py | 16 +- cyperf/models/dut_network.py | 8 +- cyperf/models/emulated_router_range.py | 8 +- cyperf/models/eth_range.py | 8 +- cyperf/models/front_panel.py | 131 + .../models/front_panel_ports_by_controller.py | 103 + cyperf/models/ip_range.py | 8 +- cyperf/models/local_subnet_config.py | 6 +- cyperf/models/metadata.py | 4 +- cyperf/models/pangp_encapsulation.py | 4 +- cyperf/models/ports_by_panel.py | 95 + .../reboot_compute_resources_operation.py | 101 + cyperf/models/remote_subnet_config.py | 6 +- ..._front_panel_ports_link_state_operation.py | 114 + ...n.py => set_ports_link_state_operation.py} | 8 +- cyperf/models/stream_profile.py | 8 +- cyperf/models/traffic_profile_base.py | 5 +- docs/Action.md | 1 + docs/ActionBase.md | 1 + docs/AgentAssignmentByFrontPanelPort.md | 34 + docs/AgentAssignments.md | 1 + docs/AgentReservation.md | 1 + docs/AgentsApi.md | 1117 ++++- docs/ApplicationProfile.md | 1 + docs/AttackAction.md | 1 + docs/AttackProfile.md | 1 + docs/ChassisInfo.md | 6 +- ...ClearComputeResourcesOwnershipOperation.md | 29 + .../ClearFrontPanelPortsOwnershipOperation.md | 29 + docs/CommandMetadata.md | 1 + docs/ComputeNode.md | 2 + docs/ComputeResource.md | 36 + docs/ComputeResourcesByController.md | 30 + docs/ComputeResourcesByNode.md | 30 + docs/Controller.md | 2 + docs/DUTNetwork.md | 1 + docs/EmulatedRouterRange.md | 1 + docs/EthRange.md | 1 + docs/FrontPanel.md | 36 + docs/FrontPanelPortsByController.md | 30 + docs/IPRange.md | 1 + docs/LocalSubnetConfig.md | 1 + docs/Metadata.md | 1 + docs/PANGPEncapsulation.md | 1 + docs/PortsByPanel.md | 30 + docs/RebootComputeResourcesOperation.md | 29 + docs/RemoteSubnetConfig.md | 1 + docs/SetFrontPanelPortsLinkStateOperation.md | 30 + ...ation.md => SetPortsLinkStateOperation.md} | 16 +- docs/StreamProfile.md | 1 + docs/TrafficProfileBase.md | 1 + 75 files changed, 6269 insertions(+), 1765 deletions(-) delete mode 100644 .openapi-generator/FILES delete mode 100644 .openapi-generator/VERSION create mode 100644 cyperf/models/agent_assignment_by_front_panel_port.py create mode 100644 cyperf/models/clear_compute_resources_ownership_operation.py create mode 100644 cyperf/models/clear_front_panel_ports_ownership_operation.py create mode 100644 cyperf/models/compute_resource.py create mode 100644 cyperf/models/compute_resources_by_controller.py create mode 100644 cyperf/models/compute_resources_by_node.py create mode 100644 cyperf/models/front_panel.py create mode 100644 cyperf/models/front_panel_ports_by_controller.py create mode 100644 cyperf/models/ports_by_panel.py create mode 100644 cyperf/models/reboot_compute_resources_operation.py create mode 100644 cyperf/models/set_front_panel_ports_link_state_operation.py rename cyperf/models/{set_link_state_operation.py => set_ports_link_state_operation.py} (93%) create mode 100644 docs/AgentAssignmentByFrontPanelPort.md create mode 100644 docs/ClearComputeResourcesOwnershipOperation.md create mode 100644 docs/ClearFrontPanelPortsOwnershipOperation.md create mode 100644 docs/ComputeResource.md create mode 100644 docs/ComputeResourcesByController.md create mode 100644 docs/ComputeResourcesByNode.md create mode 100644 docs/FrontPanel.md create mode 100644 docs/FrontPanelPortsByController.md create mode 100644 docs/PortsByPanel.md create mode 100644 docs/RebootComputeResourcesOperation.md create mode 100644 docs/SetFrontPanelPortsLinkStateOperation.md rename docs/{SetLinkStateOperation.md => SetPortsLinkStateOperation.md} (51%) diff --git a/.gitignore b/.gitignore index 43995bd..3edc819 100644 --- a/.gitignore +++ b/.gitignore @@ -64,3 +64,6 @@ target/ #Ipython Notebook .ipynb_checkpoints + +# OpenAPI Generator metadata +.openapi-generator/ diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES deleted file mode 100644 index 2a446cc..0000000 --- a/.openapi-generator/FILES +++ /dev/null @@ -1,866 +0,0 @@ -.github/workflows/python.yml -.gitignore -.gitlab-ci.yml -.openapi-generator-ignore -.travis.yml -README.md -cyperf/LICENSE -cyperf/__init__.py -cyperf/api/__init__.py -cyperf/api/agents_api.py -cyperf/api/application_resources_api.py -cyperf/api/authorization_api.py -cyperf/api/brokers_api.py -cyperf/api/configurations_api.py -cyperf/api/data_migration_api.py -cyperf/api/diagnostics_api.py -cyperf/api/license_servers_api.py -cyperf/api/licensing_api.py -cyperf/api/notifications_api.py -cyperf/api/reports_api.py -cyperf/api/sessions_api.py -cyperf/api/statistics_api.py -cyperf/api/test_operations_api.py -cyperf/api/test_results_api.py -cyperf/api/utils_api.py -cyperf/api_client.py -cyperf/api_response.py -cyperf/configuration.py -cyperf/dynamic_model_meta.py -cyperf/dynamic_models/__init__.py -cyperf/exceptions.py -cyperf/models/__init__.py -cyperf/models/action.py -cyperf/models/action_base.py -cyperf/models/action_input.py -cyperf/models/action_input_find_param.py -cyperf/models/action_metadata.py -cyperf/models/activation_code_info.py -cyperf/models/activation_code_list_request.py -cyperf/models/activation_code_request.py -cyperf/models/add_action_info.py -cyperf/models/add_input.py -cyperf/models/address.py -cyperf/models/advanced_settings.py -cyperf/models/agent.py -cyperf/models/agent_assignment_by_port.py -cyperf/models/agent_assignment_details.py -cyperf/models/agent_assignments.py -cyperf/models/agent_cpu_info.py -cyperf/models/agent_features.py -cyperf/models/agent_optimization_mode.py -cyperf/models/agent_release.py -cyperf/models/agent_reservation.py -cyperf/models/agent_to_be_rebooted.py -cyperf/models/agents_group.py -cyperf/models/api_link.py -cyperf/models/api_relationship.py -cyperf/models/app_exchange.py -cyperf/models/app_flow.py -cyperf/models/app_flow_desc.py -cyperf/models/app_flow_input.py -cyperf/models/app_flow_input_find_param.py -cyperf/models/app_id.py -cyperf/models/app_mode.py -cyperf/models/application.py -cyperf/models/application_profile.py -cyperf/models/application_type.py -cyperf/models/appsec_app.py -cyperf/models/appsec_app_metadata.py -cyperf/models/appsec_app_metadata_keywords_inner.py -cyperf/models/appsec_attack.py -cyperf/models/appsec_config.py -cyperf/models/archive_info.py -cyperf/models/array_v2_element_metadata.py -cyperf/models/async_context.py -cyperf/models/attack.py -cyperf/models/attack_action.py -cyperf/models/attack_metadata.py -cyperf/models/attack_objectives_and_timeline.py -cyperf/models/attack_profile.py -cyperf/models/attack_timeline_segment.py -cyperf/models/attack_track.py -cyperf/models/auth_method_type.py -cyperf/models/auth_profile.py -cyperf/models/auth_profile_metadata.py -cyperf/models/auth_settings.py -cyperf/models/authenticate200_response.py -cyperf/models/authentication_settings.py -cyperf/models/automatic_ip_type.py -cyperf/models/broker.py -cyperf/models/capture_input.py -cyperf/models/capture_input_find_param.py -cyperf/models/capture_settings.py -cyperf/models/category.py -cyperf/models/category_filter.py -cyperf/models/category_value.py -cyperf/models/cert_config.py -cyperf/models/certificate.py -cyperf/models/chassis_info.py -cyperf/models/choice.py -cyperf/models/cipher_tls12.py -cyperf/models/cipher_tls13.py -cyperf/models/cisco_any_connect_settings.py -cyperf/models/cisco_encapsulation.py -cyperf/models/clear_ports_ownership_operation.py -cyperf/models/command.py -cyperf/models/command_metadata.py -cyperf/models/compute_node.py -cyperf/models/config.py -cyperf/models/config_category.py -cyperf/models/config_id.py -cyperf/models/config_metadata.py -cyperf/models/config_sub_category.py -cyperf/models/config_validation.py -cyperf/models/conflict.py -cyperf/models/connection.py -cyperf/models/connection_persistence.py -cyperf/models/consumer.py -cyperf/models/controller.py -cyperf/models/counted_feature_consumer.py -cyperf/models/counted_feature_stats.py -cyperf/models/create_app_operation.py -cyperf/models/create_app_or_attack_operation_input.py -cyperf/models/custom_dashboards.py -cyperf/models/custom_import_handler.py -cyperf/models/custom_sequence.py -cyperf/models/custom_stat.py -cyperf/models/dashboard.py -cyperf/models/data_type.py -cyperf/models/data_type_values_inner.py -cyperf/models/definition.py -cyperf/models/delete_input.py -cyperf/models/dh_p1_group.py -cyperf/models/diagnostic_component.py -cyperf/models/diagnostic_component_context.py -cyperf/models/diagnostic_options.py -cyperf/models/disk_usage.py -cyperf/models/dismiss_operation.py -cyperf/models/dns_resolver.py -cyperf/models/dns_server.py -cyperf/models/dtls_settings.py -cyperf/models/dut_network.py -cyperf/models/dut_range.py -cyperf/models/edit_action_input.py -cyperf/models/edit_app_operation.py -cyperf/models/effective_ports.py -cyperf/models/emulated_router.py -cyperf/models/emulated_router_range.py -cyperf/models/emulated_subnet_config.py -cyperf/models/enc_p1_algorithm.py -cyperf/models/enc_p2_algorithm.py -cyperf/models/endpoint.py -cyperf/models/entitlement_code_info.py -cyperf/models/entitlement_code_request.py -cyperf/models/enum.py -cyperf/models/error_description.py -cyperf/models/error_response.py -cyperf/models/esp_over_udp_settings.py -cyperf/models/eth_range.py -cyperf/models/eula_details.py -cyperf/models/eula_summary.py -cyperf/models/exchange.py -cyperf/models/exchange_order.py -cyperf/models/exchange_payload.py -cyperf/models/expected_disk_space.py -cyperf/models/expected_disk_space_message.py -cyperf/models/expected_disk_space_pretty_size.py -cyperf/models/expected_disk_space_size.py -cyperf/models/export_all_operation.py -cyperf/models/export_apps_operation_input.py -cyperf/models/export_files_operation_input.py -cyperf/models/export_files_request.py -cyperf/models/export_package_operation.py -cyperf/models/external_resource_info.py -cyperf/models/f5_encapsulation.py -cyperf/models/f5_settings.py -cyperf/models/feature.py -cyperf/models/feature_reservation.py -cyperf/models/feature_reservation_reserve.py -cyperf/models/file_metadata.py -cyperf/models/file_value.py -cyperf/models/filter.py -cyperf/models/filtered_stat.py -cyperf/models/find_param_matches_operation.py -cyperf/models/fortinet_encapsulation.py -cyperf/models/fortinet_settings.py -cyperf/models/fulfillment_request.py -cyperf/models/generate_all_operation.py -cyperf/models/generate_csv_reports_operation.py -cyperf/models/generate_pdf_report_operation.py -cyperf/models/generic_file.py -cyperf/models/get_agents200_response.py -cyperf/models/get_agents200_response_one_of.py -cyperf/models/get_agents_tags200_response.py -cyperf/models/get_agents_tags200_response_one_of.py -cyperf/models/get_apps_operation.py -cyperf/models/get_async_operation_result200_response.py -cyperf/models/get_attacks_operation.py -cyperf/models/get_brokers200_response.py -cyperf/models/get_brokers200_response_one_of.py -cyperf/models/get_categories_operation.py -cyperf/models/get_config_categorie_subcategories200_response.py -cyperf/models/get_config_categorie_subcategories200_response_one_of.py -cyperf/models/get_config_categories200_response.py -cyperf/models/get_config_categories200_response_one_of.py -cyperf/models/get_configs200_response.py -cyperf/models/get_configs200_response_one_of.py -cyperf/models/get_controllers200_response.py -cyperf/models/get_controllers200_response_one_of.py -cyperf/models/get_disk_usage_consumers200_response.py -cyperf/models/get_disk_usage_consumers200_response_one_of.py -cyperf/models/get_license_async_operation_result200_response.py -cyperf/models/get_license_servers200_response.py -cyperf/models/get_license_servers200_response_one_of.py -cyperf/models/get_notifications200_response.py -cyperf/models/get_notifications200_response_one_of.py -cyperf/models/get_resources_application_types200_response.py -cyperf/models/get_resources_application_types200_response_one_of.py -cyperf/models/get_resources_apps200_response.py -cyperf/models/get_resources_apps200_response_one_of.py -cyperf/models/get_resources_attacks200_response.py -cyperf/models/get_resources_attacks200_response_one_of.py -cyperf/models/get_resources_auth_profiles200_response.py -cyperf/models/get_resources_auth_profiles200_response_one_of.py -cyperf/models/get_resources_certificates200_response.py -cyperf/models/get_resources_certificates200_response_one_of.py -cyperf/models/get_resources_custom_import_operations200_response.py -cyperf/models/get_resources_custom_import_operations200_response_one_of.py -cyperf/models/get_resources_http_profiles200_response.py -cyperf/models/get_resources_http_profiles200_response_one_of.py -cyperf/models/get_resources_llm_api_profiles200_response.py -cyperf/models/get_resources_llm_api_profiles200_response_one_of.py -cyperf/models/get_result_files200_response.py -cyperf/models/get_result_files200_response_one_of.py -cyperf/models/get_result_stats200_response.py -cyperf/models/get_result_stats200_response_one_of.py -cyperf/models/get_results200_response.py -cyperf/models/get_results200_response_one_of.py -cyperf/models/get_results_tags200_response.py -cyperf/models/get_results_tags200_response_one_of.py -cyperf/models/get_session_meta200_response.py -cyperf/models/get_session_meta200_response_one_of.py -cyperf/models/get_sessions200_response.py -cyperf/models/get_sessions200_response_one_of.py -cyperf/models/get_stats_plugins200_response.py -cyperf/models/get_stats_plugins200_response_one_of.py -cyperf/models/get_strikes_operation.py -cyperf/models/group_tls13.py -cyperf/models/hash_p1_algorithm.py -cyperf/models/hash_p2_algorithm.py -cyperf/models/health_check_config.py -cyperf/models/health_issue.py -cyperf/models/host_id.py -cyperf/models/http_profile.py -cyperf/models/http_req_meta.py -cyperf/models/http_res_meta.py -cyperf/models/http_version.py -cyperf/models/id_p_signature_algo.py -cyperf/models/identification_config.py -cyperf/models/import_all_operation.py -cyperf/models/import_offline_license_result.py -cyperf/models/ingest_operation.py -cyperf/models/inner_ip_range.py -cyperf/models/inner_ip_sec_range.py -cyperf/models/interface.py -cyperf/models/ip_mask.py -cyperf/models/ip_network.py -cyperf/models/ip_preference.py -cyperf/models/ip_range.py -cyperf/models/ip_sec_range.py -cyperf/models/ip_sec_stack.py -cyperf/models/ip_ver.py -cyperf/models/license.py -cyperf/models/license_receipt.py -cyperf/models/license_server_metadata.py -cyperf/models/link.py -cyperf/models/llmapi_profile.py -cyperf/models/load_config_operation.py -cyperf/models/local_subnet_config.py -cyperf/models/log_config.py -cyperf/models/log_level.py -cyperf/models/mac_dtls_stack.py -cyperf/models/mapping_type.py -cyperf/models/marked_as_deleted.py -cyperf/models/md2_tlv.py -cyperf/models/media_file.py -cyperf/models/media_track.py -cyperf/models/metadata.py -cyperf/models/mos_mode.py -cyperf/models/name_id_format.py -cyperf/models/name_server.py -cyperf/models/network_mapping.py -cyperf/models/network_meshing.py -cyperf/models/network_profile.py -cyperf/models/network_segment_base.py -cyperf/models/nodes_by_controller.py -cyperf/models/nodes_power_cycle_operation.py -cyperf/models/notification.py -cyperf/models/notification_counts.py -cyperf/models/ntp_info.py -cyperf/models/objective_type.py -cyperf/models/objective_unit.py -cyperf/models/objective_value_entry.py -cyperf/models/objectives_and_timeline.py -cyperf/models/open_api_definitions.py -cyperf/models/p1_config.py -cyperf/models/p2_config.py -cyperf/models/pair.py -cyperf/models/pangp_encapsulation.py -cyperf/models/pangp_settings.py -cyperf/models/param_metadata.py -cyperf/models/param_metadata_type_info.py -cyperf/models/param_metadata_type_info_array_v2.py -cyperf/models/param_metadata_type_info_array_v2_elements_inner.py -cyperf/models/param_metadata_type_info_int.py -cyperf/models/param_metadata_type_info_media.py -cyperf/models/param_metadata_type_info_string.py -cyperf/models/param_source_type.py -cyperf/models/param_type.py -cyperf/models/parameter.py -cyperf/models/parameter_match.py -cyperf/models/parameter_meta.py -cyperf/models/parameter_metadata.py -cyperf/models/params.py -cyperf/models/params_enum.py -cyperf/models/payload_meta.py -cyperf/models/payload_metadata.py -cyperf/models/pep_dut.py -cyperf/models/pfs_p2_group.py -cyperf/models/playlist_metadata.py -cyperf/models/playlist_sequencing_method.py -cyperf/models/plugin.py -cyperf/models/plugin_stats.py -cyperf/models/port.py -cyperf/models/port_settings.py -cyperf/models/ports_by_controller.py -cyperf/models/ports_by_node.py -cyperf/models/ppk_pair.py -cyperf/models/prepare_test_operation.py -cyperf/models/prepared_test_options.py -cyperf/models/prf_p1_algorithm.py -cyperf/models/protected_subnet_config.py -cyperf/models/psp_range.py -cyperf/models/psp_stack.py -cyperf/models/quic_profile.py -cyperf/models/quic_version.py -cyperf/models/reboot_operation_input.py -cyperf/models/reboot_ports_operation.py -cyperf/models/reference.py -cyperf/models/regex_match.py -cyperf/models/release_operation_input.py -cyperf/models/remote_access.py -cyperf/models/remote_subnet_config.py -cyperf/models/rename_input.py -cyperf/models/reorder_action_input.py -cyperf/models/reorder_exchanges_input.py -cyperf/models/replay_capture.py -cyperf/models/required_file_types.py -cyperf/models/reserve_operation_input.py -cyperf/models/result_file_metadata.py -cyperf/models/result_metadata.py -cyperf/models/results_group.py -cyperf/models/rtp_encryption_mode.py -cyperf/models/rtp_profile.py -cyperf/models/rtp_profile_meta.py -cyperf/models/save_config_operation.py -cyperf/models/scenario.py -cyperf/models/secondary_objective.py -cyperf/models/segment_type.py -cyperf/models/selected_env.py -cyperf/models/sequence_data_types.py -cyperf/models/sequence_value.py -cyperf/models/sequence_value_types.py -cyperf/models/session.py -cyperf/models/session_reuse_method_tls12.py -cyperf/models/session_reuse_method_tls13.py -cyperf/models/set_aggregation_mode_operation.py -cyperf/models/set_controller_app_operation.py -cyperf/models/set_dpdk_mode_operation_input.py -cyperf/models/set_link_state_operation.py -cyperf/models/set_nodes_app_operation.py -cyperf/models/set_ntp_operation_input.py -cyperf/models/simple_sequence_value.py -cyperf/models/simulated_id_p.py -cyperf/models/single_value.py -cyperf/models/snapshot.py -cyperf/models/snowflake_exporter.py -cyperf/models/sort_body_field.py -cyperf/models/specific_objective.py -cyperf/models/start_agents_batch_delete_request_inner.py -cyperf/models/stateless_stream.py -cyperf/models/static_arp_entry.py -cyperf/models/stats_result.py -cyperf/models/steady_segment.py -cyperf/models/step_segment.py -cyperf/models/stream_direction.py -cyperf/models/stream_payload_type.py -cyperf/models/stream_profile.py -cyperf/models/sub_step.py -cyperf/models/supported_group_tls13.py -cyperf/models/system_info.py -cyperf/models/tcp_profile.py -cyperf/models/test_info.py -cyperf/models/test_state_changed_operation.py -cyperf/models/test_usage.py -cyperf/models/time_value.py -cyperf/models/timeline_segment.py -cyperf/models/timeline_segment_base.py -cyperf/models/timeline_segment_union.py -cyperf/models/timers.py -cyperf/models/tls_profile.py -cyperf/models/track.py -cyperf/models/track_type.py -cyperf/models/traffic_agent_info.py -cyperf/models/traffic_profile_base.py -cyperf/models/traffic_settings.py -cyperf/models/transport_profile.py -cyperf/models/transport_profile_base.py -cyperf/models/tunnel_range.py -cyperf/models/tunnel_settings.py -cyperf/models/tunnel_stack.py -cyperf/models/type_array_v2_metadata.py -cyperf/models/type_info_metadata.py -cyperf/models/type_int_metadata.py -cyperf/models/type_media_metadata.py -cyperf/models/type_string_metadata.py -cyperf/models/udp_profile.py -cyperf/models/update_network_mapping.py -cyperf/models/update_port_tags_operation.py -cyperf/models/validation_message.py -cyperf/models/version.py -cyperf/models/vlan_range.py -cyperf/models/vlan_type.py -cyperf/models/vx_lan_range.py -cyperf/models/vx_lan_stack.py -cyperf/models/vx_lanid.py -cyperf/py.typed -cyperf/rest.py -cyperf/utils.py -docs/APILink.md -docs/APIRelationship.md -docs/Action.md -docs/ActionBase.md -docs/ActionInput.md -docs/ActionInputFindParam.md -docs/ActionMetadata.md -docs/ActivationCodeInfo.md -docs/ActivationCodeListRequest.md -docs/ActivationCodeRequest.md -docs/AddActionInfo.md -docs/AddInput.md -docs/Address.md -docs/AdvancedSettings.md -docs/Agent.md -docs/AgentAssignmentByPort.md -docs/AgentAssignmentDetails.md -docs/AgentAssignments.md -docs/AgentCPUInfo.md -docs/AgentFeatures.md -docs/AgentOptimizationMode.md -docs/AgentRelease.md -docs/AgentReservation.md -docs/AgentToBeRebooted.md -docs/AgentsApi.md -docs/AgentsGroup.md -docs/AppExchange.md -docs/AppFlow.md -docs/AppFlowDesc.md -docs/AppFlowInput.md -docs/AppFlowInputFindParam.md -docs/AppId.md -docs/AppMode.md -docs/Application.md -docs/ApplicationProfile.md -docs/ApplicationResourcesApi.md -docs/ApplicationType.md -docs/AppsecApp.md -docs/AppsecAppMetadata.md -docs/AppsecAppMetadataKeywordsInner.md -docs/AppsecAttack.md -docs/AppsecConfig.md -docs/ArchiveInfo.md -docs/ArrayV2ElementMetadata.md -docs/AsyncContext.md -docs/Attack.md -docs/AttackAction.md -docs/AttackMetadata.md -docs/AttackObjectivesAndTimeline.md -docs/AttackProfile.md -docs/AttackTimelineSegment.md -docs/AttackTrack.md -docs/AuthMethodType.md -docs/AuthProfile.md -docs/AuthProfileMetadata.md -docs/AuthSettings.md -docs/Authenticate200Response.md -docs/AuthenticationSettings.md -docs/AuthorizationApi.md -docs/AutomaticIpType.md -docs/Broker.md -docs/BrokersApi.md -docs/CaptureInput.md -docs/CaptureInputFindParam.md -docs/CaptureSettings.md -docs/Category.md -docs/CategoryFilter.md -docs/CategoryValue.md -docs/CertConfig.md -docs/Certificate.md -docs/ChassisInfo.md -docs/Choice.md -docs/CipherTLS12.md -docs/CipherTLS13.md -docs/CiscoAnyConnectSettings.md -docs/CiscoEncapsulation.md -docs/ClearPortsOwnershipOperation.md -docs/Command.md -docs/CommandMetadata.md -docs/ComputeNode.md -docs/Config.md -docs/ConfigCategory.md -docs/ConfigId.md -docs/ConfigMetadata.md -docs/ConfigSubCategory.md -docs/ConfigValidation.md -docs/ConfigurationsApi.md -docs/Conflict.md -docs/Connection.md -docs/ConnectionPersistence.md -docs/Consumer.md -docs/Controller.md -docs/CountedFeatureConsumer.md -docs/CountedFeatureStats.md -docs/CreateAppOperation.md -docs/CreateAppOrAttackOperationInput.md -docs/CustomDashboards.md -docs/CustomImportHandler.md -docs/CustomSequence.md -docs/CustomStat.md -docs/DNSResolver.md -docs/DNSServer.md -docs/DTLSSettings.md -docs/DUTNetwork.md -docs/DUTRange.md -docs/Dashboard.md -docs/DataMigrationApi.md -docs/DataType.md -docs/DataTypeValuesInner.md -docs/Definition.md -docs/DeleteInput.md -docs/DhP1Group.md -docs/DiagnosticComponent.md -docs/DiagnosticComponentContext.md -docs/DiagnosticOptions.md -docs/DiagnosticsApi.md -docs/DiskUsage.md -docs/DismissOperation.md -docs/ESPOverUDPSettings.md -docs/EditActionInput.md -docs/EditAppOperation.md -docs/EffectivePorts.md -docs/EmulatedRouter.md -docs/EmulatedRouterRange.md -docs/EmulatedSubnetConfig.md -docs/EncP1Algorithm.md -docs/EncP2Algorithm.md -docs/Endpoint.md -docs/EntitlementCodeInfo.md -docs/EntitlementCodeRequest.md -docs/Enum.md -docs/ErrorDescription.md -docs/ErrorResponse.md -docs/EthRange.md -docs/EulaDetails.md -docs/EulaSummary.md -docs/Exchange.md -docs/ExchangeOrder.md -docs/ExchangePayload.md -docs/ExpectedDiskSpace.md -docs/ExpectedDiskSpaceMessage.md -docs/ExpectedDiskSpacePrettySize.md -docs/ExpectedDiskSpaceSize.md -docs/ExportAllOperation.md -docs/ExportAppsOperationInput.md -docs/ExportFilesOperationInput.md -docs/ExportFilesRequest.md -docs/ExportPackageOperation.md -docs/ExternalResourceInfo.md -docs/F5Encapsulation.md -docs/F5Settings.md -docs/Feature.md -docs/FeatureReservation.md -docs/FeatureReservationReserve.md -docs/FileMetadata.md -docs/FileValue.md -docs/Filter.md -docs/FilteredStat.md -docs/FindParamMatchesOperation.md -docs/FortinetEncapsulation.md -docs/FortinetSettings.md -docs/FulfillmentRequest.md -docs/GenerateAllOperation.md -docs/GenerateCSVReportsOperation.md -docs/GeneratePDFReportOperation.md -docs/GenericFile.md -docs/GetAgents200Response.md -docs/GetAgents200ResponseOneOf.md -docs/GetAgentsTags200Response.md -docs/GetAgentsTags200ResponseOneOf.md -docs/GetAppsOperation.md -docs/GetAsyncOperationResult200Response.md -docs/GetAttacksOperation.md -docs/GetBrokers200Response.md -docs/GetBrokers200ResponseOneOf.md -docs/GetCategoriesOperation.md -docs/GetConfigCategorieSubcategories200Response.md -docs/GetConfigCategorieSubcategories200ResponseOneOf.md -docs/GetConfigCategories200Response.md -docs/GetConfigCategories200ResponseOneOf.md -docs/GetConfigs200Response.md -docs/GetConfigs200ResponseOneOf.md -docs/GetControllers200Response.md -docs/GetControllers200ResponseOneOf.md -docs/GetDiskUsageConsumers200Response.md -docs/GetDiskUsageConsumers200ResponseOneOf.md -docs/GetLicenseAsyncOperationResult200Response.md -docs/GetLicenseServers200Response.md -docs/GetLicenseServers200ResponseOneOf.md -docs/GetNotifications200Response.md -docs/GetNotifications200ResponseOneOf.md -docs/GetResourcesApplicationTypes200Response.md -docs/GetResourcesApplicationTypes200ResponseOneOf.md -docs/GetResourcesApps200Response.md -docs/GetResourcesApps200ResponseOneOf.md -docs/GetResourcesAttacks200Response.md -docs/GetResourcesAttacks200ResponseOneOf.md -docs/GetResourcesAuthProfiles200Response.md -docs/GetResourcesAuthProfiles200ResponseOneOf.md -docs/GetResourcesCertificates200Response.md -docs/GetResourcesCertificates200ResponseOneOf.md -docs/GetResourcesCustomImportOperations200Response.md -docs/GetResourcesCustomImportOperations200ResponseOneOf.md -docs/GetResourcesHttpProfiles200Response.md -docs/GetResourcesHttpProfiles200ResponseOneOf.md -docs/GetResourcesLlmApiProfiles200Response.md -docs/GetResourcesLlmApiProfiles200ResponseOneOf.md -docs/GetResultFiles200Response.md -docs/GetResultFiles200ResponseOneOf.md -docs/GetResultStats200Response.md -docs/GetResultStats200ResponseOneOf.md -docs/GetResults200Response.md -docs/GetResults200ResponseOneOf.md -docs/GetResultsTags200Response.md -docs/GetResultsTags200ResponseOneOf.md -docs/GetSessionMeta200Response.md -docs/GetSessionMeta200ResponseOneOf.md -docs/GetSessions200Response.md -docs/GetSessions200ResponseOneOf.md -docs/GetStatsPlugins200Response.md -docs/GetStatsPlugins200ResponseOneOf.md -docs/GetStrikesOperation.md -docs/GroupTLS13.md -docs/HTTPProfile.md -docs/HTTPReqMeta.md -docs/HTTPResMeta.md -docs/HTTPVersion.md -docs/HashP1Algorithm.md -docs/HashP2Algorithm.md -docs/HealthCheckConfig.md -docs/HealthIssue.md -docs/HostID.md -docs/IPNetwork.md -docs/IPRange.md -docs/IPSecRange.md -docs/IPSecStack.md -docs/IdPSignatureAlgo.md -docs/IdentificationConfig.md -docs/ImportAllOperation.md -docs/ImportOfflineLicenseResult.md -docs/IngestOperation.md -docs/InnerIPRange.md -docs/InnerIPSecRange.md -docs/Interface.md -docs/IpMask.md -docs/IpPreference.md -docs/IpVer.md -docs/LLMAPIProfile.md -docs/License.md -docs/LicenseReceipt.md -docs/LicenseServerMetadata.md -docs/LicenseServersApi.md -docs/LicensingApi.md -docs/Link.md -docs/LoadConfigOperation.md -docs/LocalSubnetConfig.md -docs/LogConfig.md -docs/LogLevel.md -docs/MacDtlsStack.md -docs/MappingType.md -docs/MarkedAsDeleted.md -docs/Md2Tlv.md -docs/MediaFile.md -docs/MediaTrack.md -docs/Metadata.md -docs/MosMode.md -docs/NameIdFormat.md -docs/NameServer.md -docs/NetworkMapping.md -docs/NetworkMeshing.md -docs/NetworkProfile.md -docs/NetworkSegmentBase.md -docs/NodesByController.md -docs/NodesPowerCycleOperation.md -docs/Notification.md -docs/NotificationCounts.md -docs/NotificationsApi.md -docs/NtpInfo.md -docs/ObjectiveType.md -docs/ObjectiveUnit.md -docs/ObjectiveValueEntry.md -docs/ObjectivesAndTimeline.md -docs/OpenAPIDefinitions.md -docs/P1Config.md -docs/P2Config.md -docs/PANGPEncapsulation.md -docs/PANGPSettings.md -docs/PPKPair.md -docs/PSPRange.md -docs/PSPStack.md -docs/Pair.md -docs/ParamMetadata.md -docs/ParamMetadataTypeInfo.md -docs/ParamMetadataTypeInfoArrayV2.md -docs/ParamMetadataTypeInfoArrayV2ElementsInner.md -docs/ParamMetadataTypeInfoInt.md -docs/ParamMetadataTypeInfoMedia.md -docs/ParamMetadataTypeInfoString.md -docs/ParamSourceType.md -docs/ParamType.md -docs/Parameter.md -docs/ParameterMatch.md -docs/ParameterMeta.md -docs/ParameterMetadata.md -docs/Params.md -docs/ParamsEnum.md -docs/PayloadMeta.md -docs/PayloadMetadata.md -docs/PepDUT.md -docs/PfsP2Group.md -docs/PlaylistMetadata.md -docs/PlaylistSequencingMethod.md -docs/Plugin.md -docs/PluginStats.md -docs/Port.md -docs/PortSettings.md -docs/PortsByController.md -docs/PortsByNode.md -docs/PrepareTestOperation.md -docs/PreparedTestOptions.md -docs/PrfP1Algorithm.md -docs/ProtectedSubnetConfig.md -docs/QUICProfile.md -docs/QUICVersion.md -docs/RTPEncryptionMode.md -docs/RTPProfile.md -docs/RTPProfileMeta.md -docs/RebootOperationInput.md -docs/RebootPortsOperation.md -docs/Reference.md -docs/RegexMatch.md -docs/ReleaseOperationInput.md -docs/RemoteAccess.md -docs/RemoteSubnetConfig.md -docs/RenameInput.md -docs/ReorderActionInput.md -docs/ReorderExchangesInput.md -docs/ReplayCapture.md -docs/ReportsApi.md -docs/RequiredFileTypes.md -docs/ReserveOperationInput.md -docs/ResultFileMetadata.md -docs/ResultMetadata.md -docs/ResultsGroup.md -docs/SaveConfigOperation.md -docs/Scenario.md -docs/SecondaryObjective.md -docs/SegmentType.md -docs/SelectedEnv.md -docs/SequenceDataTypes.md -docs/SequenceValue.md -docs/SequenceValueTypes.md -docs/Session.md -docs/SessionReuseMethodTLS12.md -docs/SessionReuseMethodTLS13.md -docs/SessionsApi.md -docs/SetAggregationModeOperation.md -docs/SetControllerAppOperation.md -docs/SetDpdkModeOperationInput.md -docs/SetLinkStateOperation.md -docs/SetNodesAppOperation.md -docs/SetNtpOperationInput.md -docs/SimpleSequenceValue.md -docs/SimulatedIdP.md -docs/SingleValue.md -docs/Snapshot.md -docs/SnowflakeExporter.md -docs/SortBodyField.md -docs/SpecificObjective.md -docs/StartAgentsBatchDeleteRequestInner.md -docs/StatelessStream.md -docs/StaticARPEntry.md -docs/StatisticsApi.md -docs/StatsResult.md -docs/SteadySegment.md -docs/StepSegment.md -docs/StreamDirection.md -docs/StreamPayloadType.md -docs/StreamProfile.md -docs/SubStep.md -docs/SupportedGroupTLS13.md -docs/SystemInfo.md -docs/TLSProfile.md -docs/TcpProfile.md -docs/TestInfo.md -docs/TestOperationsApi.md -docs/TestResultsApi.md -docs/TestStateChangedOperation.md -docs/TestUsage.md -docs/TimeValue.md -docs/TimelineSegment.md -docs/TimelineSegmentBase.md -docs/TimelineSegmentUnion.md -docs/Timers.md -docs/Track.md -docs/TrackType.md -docs/TrafficAgentInfo.md -docs/TrafficProfileBase.md -docs/TrafficSettings.md -docs/TransportProfile.md -docs/TransportProfileBase.md -docs/TunnelRange.md -docs/TunnelSettings.md -docs/TunnelStack.md -docs/TypeArrayV2Metadata.md -docs/TypeInfoMetadata.md -docs/TypeIntMetadata.md -docs/TypeMediaMetadata.md -docs/TypeStringMetadata.md -docs/UdpProfile.md -docs/UpdateNetworkMapping.md -docs/UpdatePortTagsOperation.md -docs/UtilsApi.md -docs/VLANRange.md -docs/VLANType.md -docs/ValidationMessage.md -docs/Version.md -docs/VxLANId.md -docs/VxLANRange.md -docs/VxLANStack.md -git_push.sh -pyproject.toml -requirements.txt -setup.cfg -setup.py -test-requirements.txt -tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION deleted file mode 100644 index 1985849..0000000 --- a/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.7.0 diff --git a/README.md b/README.md index 5d530c3..635aa8d 100644 --- a/README.md +++ b/README.md @@ -75,12 +75,18 @@ Class | Method | HTTP request | Description *AgentsApi* | [**get_agent_by_id**](docs/AgentsApi.md#get_agent_by_id) | **GET** /api/v2/agents/{agentId} | *AgentsApi* | [**get_agents**](docs/AgentsApi.md#get_agents) | **GET** /api/v2/agents | *AgentsApi* | [**get_agents_tags**](docs/AgentsApi.md#get_agents_tags) | **GET** /api/v2/tags | +*AgentsApi* | [**get_compute_node_compute_resource_by_id**](docs/AgentsApi.md#get_compute_node_compute_resource_by_id) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/compute-resources/{computeResourceId} | +*AgentsApi* | [**get_compute_node_compute_resources**](docs/AgentsApi.md#get_compute_node_compute_resources) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/compute-resources | *AgentsApi* | [**get_compute_node_port_by_id**](docs/AgentsApi.md#get_compute_node_port_by_id) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports/{portId} | *AgentsApi* | [**get_compute_node_ports**](docs/AgentsApi.md#get_compute_node_ports) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports | *AgentsApi* | [**get_controller_by_id**](docs/AgentsApi.md#get_controller_by_id) | **GET** /api/v2/controllers/{controllerId} | *AgentsApi* | [**get_controller_compute_node_by_id**](docs/AgentsApi.md#get_controller_compute_node_by_id) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId} | *AgentsApi* | [**get_controller_compute_nodes**](docs/AgentsApi.md#get_controller_compute_nodes) | **GET** /api/v2/controllers/{controllerId}/compute-nodes | +*AgentsApi* | [**get_controller_front_panel_by_id**](docs/AgentsApi.md#get_controller_front_panel_by_id) | **GET** /api/v2/controllers/{controllerId}/front-panels/{frontPanelId} | +*AgentsApi* | [**get_controller_front_panels**](docs/AgentsApi.md#get_controller_front_panels) | **GET** /api/v2/controllers/{controllerId}/front-panels | *AgentsApi* | [**get_controllers**](docs/AgentsApi.md#get_controllers) | **GET** /api/v2/controllers | +*AgentsApi* | [**get_front_panel_port_by_id**](docs/AgentsApi.md#get_front_panel_port_by_id) | **GET** /api/v2/controllers/{controllerId}/front-panels/{frontPanelId}/ports/{portId} | +*AgentsApi* | [**get_front_panel_ports**](docs/AgentsApi.md#get_front_panel_ports) | **GET** /api/v2/controllers/{controllerId}/front-panels/{frontPanelId}/ports | *AgentsApi* | [**patch_agent**](docs/AgentsApi.md#patch_agent) | **PATCH** /api/v2/agents/{agentId} | *AgentsApi* | [**start_agents_batch_delete**](docs/AgentsApi.md#start_agents_batch_delete) | **POST** /api/v2/agents/operations/batch-delete | *AgentsApi* | [**start_agents_export_files**](docs/AgentsApi.md#start_agents_export_files) | **POST** /api/v2/agents/operations/exportFiles | @@ -90,10 +96,14 @@ Class | Method | HTTP request | Description *AgentsApi* | [**start_agents_set_dpdk_mode**](docs/AgentsApi.md#start_agents_set_dpdk_mode) | **POST** /api/v2/agents/operations/set-dpdk-mode | *AgentsApi* | [**start_agents_set_ntp**](docs/AgentsApi.md#start_agents_set_ntp) | **POST** /api/v2/agents/operations/set-ntp | *AgentsApi* | [**start_agents_update**](docs/AgentsApi.md#start_agents_update) | **POST** /api/v2/agents/operations/update | +*AgentsApi* | [**start_controllers_clear_compute_resource_ownership**](docs/AgentsApi.md#start_controllers_clear_compute_resource_ownership) | **POST** /api/v2/controllers/operations/clear-compute-resource-ownership | +*AgentsApi* | [**start_controllers_clear_front_panel_port_ownership**](docs/AgentsApi.md#start_controllers_clear_front_panel_port_ownership) | **POST** /api/v2/controllers/operations/clear-front-panel-port-ownership | *AgentsApi* | [**start_controllers_clear_port_ownership**](docs/AgentsApi.md#start_controllers_clear_port_ownership) | **POST** /api/v2/controllers/operations/clear-port-ownership | *AgentsApi* | [**start_controllers_power_cycle_nodes**](docs/AgentsApi.md#start_controllers_power_cycle_nodes) | **POST** /api/v2/controllers/operations/power-cycle-nodes | +*AgentsApi* | [**start_controllers_reboot_compute_resource**](docs/AgentsApi.md#start_controllers_reboot_compute_resource) | **POST** /api/v2/controllers/operations/reboot-compute-resource | *AgentsApi* | [**start_controllers_reboot_port**](docs/AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | *AgentsApi* | [**start_controllers_set_app**](docs/AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | +*AgentsApi* | [**start_controllers_set_front_panel_port_link_state**](docs/AgentsApi.md#start_controllers_set_front_panel_port_link_state) | **POST** /api/v2/controllers/operations/set-front-panel-port-link-state | *AgentsApi* | [**start_controllers_set_node_aggregation**](docs/AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | *AgentsApi* | [**start_controllers_set_node_app**](docs/AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | *AgentsApi* | [**start_controllers_set_port_link_state**](docs/AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | @@ -399,8 +409,10 @@ Class | Method | HTTP request | Description - [ActivationCodeRequest](docs/ActivationCodeRequest.md) - [AddActionInfo](docs/AddActionInfo.md) - [AddInput](docs/AddInput.md) + - [Address](docs/Address.md) - [AdvancedSettings](docs/AdvancedSettings.md) - [Agent](docs/Agent.md) + - [AgentAssignmentByFrontPanelPort](docs/AgentAssignmentByFrontPanelPort.md) - [AgentAssignmentByPort](docs/AgentAssignmentByPort.md) - [AgentAssignmentDetails](docs/AgentAssignmentDetails.md) - [AgentAssignments](docs/AgentAssignments.md) @@ -458,10 +470,15 @@ Class | Method | HTTP request | Description - [CipherTLS13](docs/CipherTLS13.md) - [CiscoAnyConnectSettings](docs/CiscoAnyConnectSettings.md) - [CiscoEncapsulation](docs/CiscoEncapsulation.md) + - [ClearComputeResourcesOwnershipOperation](docs/ClearComputeResourcesOwnershipOperation.md) + - [ClearFrontPanelPortsOwnershipOperation](docs/ClearFrontPanelPortsOwnershipOperation.md) - [ClearPortsOwnershipOperation](docs/ClearPortsOwnershipOperation.md) - [Command](docs/Command.md) - [CommandMetadata](docs/CommandMetadata.md) - [ComputeNode](docs/ComputeNode.md) + - [ComputeResource](docs/ComputeResource.md) + - [ComputeResourcesByController](docs/ComputeResourcesByController.md) + - [ComputeResourcesByNode](docs/ComputeResourcesByNode.md) - [Config](docs/Config.md) - [ConfigCategory](docs/ConfigCategory.md) - [ConfigId](docs/ConfigId.md) @@ -479,11 +496,13 @@ Class | Method | HTTP request | Description - [CreateAppOrAttackOperationInput](docs/CreateAppOrAttackOperationInput.md) - [CustomDashboards](docs/CustomDashboards.md) - [CustomImportHandler](docs/CustomImportHandler.md) + - [CustomSequence](docs/CustomSequence.md) - [CustomStat](docs/CustomStat.md) - [DNSResolver](docs/DNSResolver.md) - [DNSServer](docs/DNSServer.md) - [DTLSSettings](docs/DTLSSettings.md) - [DUTNetwork](docs/DUTNetwork.md) + - [DUTRange](docs/DUTRange.md) - [Dashboard](docs/Dashboard.md) - [DataType](docs/DataType.md) - [DataTypeValuesInner](docs/DataTypeValuesInner.md) @@ -538,6 +557,8 @@ Class | Method | HTTP request | Description - [FindParamMatchesOperation](docs/FindParamMatchesOperation.md) - [FortinetEncapsulation](docs/FortinetEncapsulation.md) - [FortinetSettings](docs/FortinetSettings.md) + - [FrontPanel](docs/FrontPanel.md) + - [FrontPanelPortsByController](docs/FrontPanelPortsByController.md) - [FulfillmentRequest](docs/FulfillmentRequest.md) - [GenerateAllOperation](docs/GenerateAllOperation.md) - [GenerateCSVReportsOperation](docs/GenerateCSVReportsOperation.md) @@ -685,12 +706,14 @@ Class | Method | HTTP request | Description - [PepDUT](docs/PepDUT.md) - [PfsP2Group](docs/PfsP2Group.md) - [PlaylistMetadata](docs/PlaylistMetadata.md) + - [PlaylistSequencingMethod](docs/PlaylistSequencingMethod.md) - [Plugin](docs/Plugin.md) - [PluginStats](docs/PluginStats.md) - [Port](docs/Port.md) - [PortSettings](docs/PortSettings.md) - [PortsByController](docs/PortsByController.md) - [PortsByNode](docs/PortsByNode.md) + - [PortsByPanel](docs/PortsByPanel.md) - [PrepareTestOperation](docs/PrepareTestOperation.md) - [PreparedTestOptions](docs/PreparedTestOptions.md) - [PrfP1Algorithm](docs/PrfP1Algorithm.md) @@ -700,6 +723,7 @@ Class | Method | HTTP request | Description - [RTPEncryptionMode](docs/RTPEncryptionMode.md) - [RTPProfile](docs/RTPProfile.md) - [RTPProfileMeta](docs/RTPProfileMeta.md) + - [RebootComputeResourcesOperation](docs/RebootComputeResourcesOperation.md) - [RebootOperationInput](docs/RebootOperationInput.md) - [RebootPortsOperation](docs/RebootPortsOperation.md) - [Reference](docs/Reference.md) @@ -721,16 +745,22 @@ Class | Method | HTTP request | Description - [SecondaryObjective](docs/SecondaryObjective.md) - [SegmentType](docs/SegmentType.md) - [SelectedEnv](docs/SelectedEnv.md) + - [SequenceDataTypes](docs/SequenceDataTypes.md) + - [SequenceValue](docs/SequenceValue.md) + - [SequenceValueTypes](docs/SequenceValueTypes.md) - [Session](docs/Session.md) - [SessionReuseMethodTLS12](docs/SessionReuseMethodTLS12.md) - [SessionReuseMethodTLS13](docs/SessionReuseMethodTLS13.md) - [SetAggregationModeOperation](docs/SetAggregationModeOperation.md) - [SetControllerAppOperation](docs/SetControllerAppOperation.md) - [SetDpdkModeOperationInput](docs/SetDpdkModeOperationInput.md) - - [SetLinkStateOperation](docs/SetLinkStateOperation.md) + - [SetFrontPanelPortsLinkStateOperation](docs/SetFrontPanelPortsLinkStateOperation.md) - [SetNodesAppOperation](docs/SetNodesAppOperation.md) - [SetNtpOperationInput](docs/SetNtpOperationInput.md) + - [SetPortsLinkStateOperation](docs/SetPortsLinkStateOperation.md) + - [SimpleSequenceValue](docs/SimpleSequenceValue.md) - [SimulatedIdP](docs/SimulatedIdP.md) + - [SingleValue](docs/SingleValue.md) - [Snapshot](docs/Snapshot.md) - [SnowflakeExporter](docs/SnowflakeExporter.md) - [SortBodyField](docs/SortBodyField.md) @@ -744,6 +774,7 @@ Class | Method | HTTP request | Description - [StreamDirection](docs/StreamDirection.md) - [StreamPayloadType](docs/StreamPayloadType.md) - [StreamProfile](docs/StreamProfile.md) + - [SubStep](docs/SubStep.md) - [SupportedGroupTLS13](docs/SupportedGroupTLS13.md) - [SystemInfo](docs/SystemInfo.md) - [TLSProfile](docs/TLSProfile.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 6a7fee7..089f072 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -64,8 +64,10 @@ from cyperf.models.activation_code_request import ActivationCodeRequest from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput +from cyperf.models.address import Address from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent +from cyperf.models.agent_assignment_by_front_panel_port import AgentAssignmentByFrontPanelPort from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort from cyperf.models.agent_assignment_details import AgentAssignmentDetails from cyperf.models.agent_assignments import AgentAssignments @@ -123,10 +125,15 @@ from cyperf.models.cipher_tls13 import CipherTLS13 from cyperf.models.cisco_any_connect_settings import CiscoAnyConnectSettings from cyperf.models.cisco_encapsulation import CiscoEncapsulation +from cyperf.models.clear_compute_resources_ownership_operation import ClearComputeResourcesOwnershipOperation +from cyperf.models.clear_front_panel_ports_ownership_operation import ClearFrontPanelPortsOwnershipOperation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command from cyperf.models.command_metadata import CommandMetadata from cyperf.models.compute_node import ComputeNode +from cyperf.models.compute_resource import ComputeResource +from cyperf.models.compute_resources_by_controller import ComputeResourcesByController +from cyperf.models.compute_resources_by_node import ComputeResourcesByNode from cyperf.models.config import Config from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId @@ -144,11 +151,13 @@ from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.custom_import_handler import CustomImportHandler +from cyperf.models.custom_sequence import CustomSequence from cyperf.models.custom_stat import CustomStat from cyperf.models.dns_resolver import DNSResolver from cyperf.models.dns_server import DNSServer from cyperf.models.dtls_settings import DTLSSettings from cyperf.models.dut_network import DUTNetwork +from cyperf.models.dut_range import DUTRange from cyperf.models.dashboard import Dashboard from cyperf.models.data_type import DataType from cyperf.models.data_type_values_inner import DataTypeValuesInner @@ -203,6 +212,8 @@ from cyperf.models.find_param_matches_operation import FindParamMatchesOperation from cyperf.models.fortinet_encapsulation import FortinetEncapsulation from cyperf.models.fortinet_settings import FortinetSettings +from cyperf.models.front_panel import FrontPanel +from cyperf.models.front_panel_ports_by_controller import FrontPanelPortsByController from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.models.generate_all_operation import GenerateAllOperation from cyperf.models.generate_csv_reports_operation import GenerateCSVReportsOperation @@ -350,12 +361,14 @@ from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group from cyperf.models.playlist_metadata import PlaylistMetadata +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port from cyperf.models.port_settings import PortSettings from cyperf.models.ports_by_controller import PortsByController from cyperf.models.ports_by_node import PortsByNode +from cyperf.models.ports_by_panel import PortsByPanel from cyperf.models.prepare_test_operation import PrepareTestOperation from cyperf.models.prepared_test_options import PreparedTestOptions from cyperf.models.prf_p1_algorithm import PrfP1Algorithm @@ -365,6 +378,7 @@ from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from cyperf.models.rtp_profile import RTPProfile from cyperf.models.rtp_profile_meta import RTPProfileMeta +from cyperf.models.reboot_compute_resources_operation import RebootComputeResourcesOperation from cyperf.models.reboot_operation_input import RebootOperationInput from cyperf.models.reboot_ports_operation import RebootPortsOperation from cyperf.models.reference import Reference @@ -386,16 +400,22 @@ from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.segment_type import SegmentType from cyperf.models.selected_env import SelectedEnv +from cyperf.models.sequence_data_types import SequenceDataTypes +from cyperf.models.sequence_value import SequenceValue +from cyperf.models.sequence_value_types import SequenceValueTypes from cyperf.models.session import Session from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput -from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_front_panel_ports_link_state_operation import SetFrontPanelPortsLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput +from cyperf.models.set_ports_link_state_operation import SetPortsLinkStateOperation +from cyperf.models.simple_sequence_value import SimpleSequenceValue from cyperf.models.simulated_id_p import SimulatedIdP +from cyperf.models.single_value import SingleValue from cyperf.models.snapshot import Snapshot from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField @@ -409,6 +429,7 @@ from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_payload_type import StreamPayloadType from cyperf.models.stream_profile import StreamProfile +from cyperf.models.sub_step import SubStep from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 from cyperf.models.system_info import SystemInfo from cyperf.models.tls_profile import TLSProfile diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 58b5f49..e805f8c 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -22,15 +22,20 @@ from typing_extensions import Annotated from cyperf.models.agent import Agent from cyperf.models.async_context import AsyncContext +from cyperf.models.clear_compute_resources_ownership_operation import ClearComputeResourcesOwnershipOperation +from cyperf.models.clear_front_panel_ports_ownership_operation import ClearFrontPanelPortsOwnershipOperation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.compute_node import ComputeNode +from cyperf.models.compute_resource import ComputeResource from cyperf.models.controller import Controller from cyperf.models.export_files_operation_input import ExportFilesOperationInput +from cyperf.models.front_panel import FrontPanel from cyperf.models.get_agents200_response import GetAgents200Response from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_controllers200_response import GetControllers200Response from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation from cyperf.models.port import Port +from cyperf.models.reboot_compute_resources_operation import RebootComputeResourcesOperation from cyperf.models.reboot_operation_input import RebootOperationInput from cyperf.models.reboot_ports_operation import RebootPortsOperation from cyperf.models.release_operation_input import ReleaseOperationInput @@ -38,9 +43,10 @@ from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput -from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_front_panel_ports_link_state_operation import SetFrontPanelPortsLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput +from cyperf.models.set_ports_link_state_operation import SetPortsLinkStateOperation from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner from cyperf.models.update_port_tags_operation import UpdatePortTagsOperation @@ -1213,11 +1219,11 @@ def _get_agents_tags_serialize( @validate_call - def get_compute_node_port_by_id( + def get_compute_node_compute_resource_by_id( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], - port_id: Annotated[StrictStr, Field(description="The ID of the port.")], + compute_resource_id: Annotated[StrictStr, Field(description="The ID of the compute resource.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1230,16 +1236,16 @@ def get_compute_node_port_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Port: - """get_compute_node_port_by_id + ) -> ComputeResource: + """get_compute_node_compute_resource_by_id :param controller_id: The ID of the controller. (required) :type controller_id: str :param compute_node_id: The ID of the compute node. (required) :type compute_node_id: str - :param port_id: The ID of the port. (required) - :type port_id: str + :param compute_resource_id: The ID of the compute resource. (required) + :type compute_resource_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1262,10 +1268,10 @@ def get_compute_node_port_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_node_port_by_id_serialize( + _param = self._get_compute_node_compute_resource_by_id_serialize( controller_id=controller_id, compute_node_id=compute_node_id, - port_id=port_id, + compute_resource_id=compute_resource_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1273,7 +1279,7 @@ def get_compute_node_port_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Port", + '200': "ComputeResource", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -1285,11 +1291,11 @@ def get_compute_node_port_by_id( @validate_call - def get_compute_node_port_by_id_with_http_info( + def get_compute_node_compute_resource_by_id_with_http_info( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], - port_id: Annotated[StrictStr, Field(description="The ID of the port.")], + compute_resource_id: Annotated[StrictStr, Field(description="The ID of the compute resource.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1302,16 +1308,16 @@ def get_compute_node_port_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Port]: - """get_compute_node_port_by_id + ) -> ApiResponse[ComputeResource]: + """get_compute_node_compute_resource_by_id :param controller_id: The ID of the controller. (required) :type controller_id: str :param compute_node_id: The ID of the compute node. (required) :type compute_node_id: str - :param port_id: The ID of the port. (required) - :type port_id: str + :param compute_resource_id: The ID of the compute resource. (required) + :type compute_resource_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1334,10 +1340,10 @@ def get_compute_node_port_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_node_port_by_id_serialize( + _param = self._get_compute_node_compute_resource_by_id_serialize( controller_id=controller_id, compute_node_id=compute_node_id, - port_id=port_id, + compute_resource_id=compute_resource_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1345,7 +1351,7 @@ def get_compute_node_port_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Port", + '200': "ComputeResource", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -1357,11 +1363,11 @@ def get_compute_node_port_by_id_with_http_info( @validate_call - def get_compute_node_port_by_id_without_preload_content( + def get_compute_node_compute_resource_by_id_without_preload_content( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], - port_id: Annotated[StrictStr, Field(description="The ID of the port.")], + compute_resource_id: Annotated[StrictStr, Field(description="The ID of the compute resource.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1375,15 +1381,15 @@ def get_compute_node_port_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_compute_node_port_by_id + """get_compute_node_compute_resource_by_id :param controller_id: The ID of the controller. (required) :type controller_id: str :param compute_node_id: The ID of the compute node. (required) :type compute_node_id: str - :param port_id: The ID of the port. (required) - :type port_id: str + :param compute_resource_id: The ID of the compute resource. (required) + :type compute_resource_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1406,10 +1412,10 @@ def get_compute_node_port_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_node_port_by_id_serialize( + _param = self._get_compute_node_compute_resource_by_id_serialize( controller_id=controller_id, compute_node_id=compute_node_id, - port_id=port_id, + compute_resource_id=compute_resource_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1417,7 +1423,7 @@ def get_compute_node_port_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Port", + '200': "ComputeResource", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -1428,11 +1434,11 @@ def get_compute_node_port_by_id_without_preload_content( ) - def _get_compute_node_port_by_id_serialize( + def _get_compute_node_compute_resource_by_id_serialize( self, controller_id, compute_node_id, - port_id, + compute_resource_id, _request_auth, _content_type, _headers, @@ -1456,8 +1462,8 @@ def _get_compute_node_port_by_id_serialize( _path_params['controllerId'] = controller_id if compute_node_id is not None: _path_params['computeNodeId'] = compute_node_id - if port_id is not None: - _path_params['portId'] = port_id + if compute_resource_id is not None: + _path_params['computeResourceId'] = compute_resource_id # process the query parameters # process the header parameters # process the form parameters @@ -1481,7 +1487,7 @@ def _get_compute_node_port_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports/{portId}', + resource_path='/api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/compute-resources/{computeResourceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1498,7 +1504,7 @@ def _get_compute_node_port_by_id_serialize( @validate_call - def get_compute_node_ports( + def get_compute_node_compute_resources( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], @@ -1516,8 +1522,8 @@ def get_compute_node_ports( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Port]: - """get_compute_node_ports + ) -> List[ComputeResource]: + """get_compute_node_compute_resources :param controller_id: The ID of the controller. (required) @@ -1550,7 +1556,7 @@ def get_compute_node_ports( :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_node_ports_serialize( + _param = self._get_compute_node_compute_resources_serialize( controller_id=controller_id, compute_node_id=compute_node_id, take=take, @@ -1562,7 +1568,7 @@ def get_compute_node_ports( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "List[ComputeResource]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1573,7 +1579,7 @@ def get_compute_node_ports( @validate_call - def get_compute_node_ports_with_http_info( + def get_compute_node_compute_resources_with_http_info( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], @@ -1591,8 +1597,8 @@ def get_compute_node_ports_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Port]]: - """get_compute_node_ports + ) -> ApiResponse[List[ComputeResource]]: + """get_compute_node_compute_resources :param controller_id: The ID of the controller. (required) @@ -1625,7 +1631,7 @@ def get_compute_node_ports_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_node_ports_serialize( + _param = self._get_compute_node_compute_resources_serialize( controller_id=controller_id, compute_node_id=compute_node_id, take=take, @@ -1637,7 +1643,7 @@ def get_compute_node_ports_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "List[ComputeResource]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1648,7 +1654,7 @@ def get_compute_node_ports_with_http_info( @validate_call - def get_compute_node_ports_without_preload_content( + def get_compute_node_compute_resources_without_preload_content( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], @@ -1667,7 +1673,7 @@ def get_compute_node_ports_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_compute_node_ports + """get_compute_node_compute_resources :param controller_id: The ID of the controller. (required) @@ -1700,7 +1706,7 @@ def get_compute_node_ports_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_compute_node_ports_serialize( + _param = self._get_compute_node_compute_resources_serialize( controller_id=controller_id, compute_node_id=compute_node_id, take=take, @@ -1712,7 +1718,7 @@ def get_compute_node_ports_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "List[ComputeResource]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1722,7 +1728,7 @@ def get_compute_node_ports_without_preload_content( ) - def _get_compute_node_ports_serialize( + def _get_compute_node_compute_resources_serialize( self, controller_id, compute_node_id, @@ -1782,7 +1788,7 @@ def _get_compute_node_ports_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports', + resource_path='/api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/compute-resources', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1799,9 +1805,11 @@ def _get_compute_node_ports_serialize( @validate_call - def get_controller_by_id( + def get_compute_node_port_by_id( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], + port_id: Annotated[StrictStr, Field(description="The ID of the port.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1814,13 +1822,16 @@ def get_controller_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Controller: - """get_controller_by_id + ) -> Port: + """get_compute_node_port_by_id - Get the controller chain. :param controller_id: The ID of the controller. (required) :type controller_id: str + :param compute_node_id: The ID of the compute node. (required) + :type compute_node_id: str + :param port_id: The ID of the port. (required) + :type port_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1843,8 +1854,10 @@ def get_controller_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_by_id_serialize( + _param = self._get_compute_node_port_by_id_serialize( controller_id=controller_id, + compute_node_id=compute_node_id, + port_id=port_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1852,7 +1865,8 @@ def get_controller_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Controller", + '200': "Port", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1863,9 +1877,11 @@ def get_controller_by_id( @validate_call - def get_controller_by_id_with_http_info( + def get_compute_node_port_by_id_with_http_info( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], + port_id: Annotated[StrictStr, Field(description="The ID of the port.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1878,13 +1894,16 @@ def get_controller_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Controller]: - """get_controller_by_id + ) -> ApiResponse[Port]: + """get_compute_node_port_by_id - Get the controller chain. :param controller_id: The ID of the controller. (required) :type controller_id: str + :param compute_node_id: The ID of the compute node. (required) + :type compute_node_id: str + :param port_id: The ID of the port. (required) + :type port_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1907,8 +1926,10 @@ def get_controller_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_by_id_serialize( + _param = self._get_compute_node_port_by_id_serialize( controller_id=controller_id, + compute_node_id=compute_node_id, + port_id=port_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1916,7 +1937,8 @@ def get_controller_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Controller", + '200': "Port", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1927,9 +1949,11 @@ def get_controller_by_id_with_http_info( @validate_call - def get_controller_by_id_without_preload_content( + def get_compute_node_port_by_id_without_preload_content( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], + port_id: Annotated[StrictStr, Field(description="The ID of the port.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1943,12 +1967,15 @@ def get_controller_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_controller_by_id + """get_compute_node_port_by_id - Get the controller chain. :param controller_id: The ID of the controller. (required) :type controller_id: str + :param compute_node_id: The ID of the compute node. (required) + :type compute_node_id: str + :param port_id: The ID of the port. (required) + :type port_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1971,8 +1998,10 @@ def get_controller_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_by_id_serialize( + _param = self._get_compute_node_port_by_id_serialize( controller_id=controller_id, + compute_node_id=compute_node_id, + port_id=port_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1980,7 +2009,8 @@ def get_controller_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Controller", + '200': "Port", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1990,9 +2020,11 @@ def get_controller_by_id_without_preload_content( ) - def _get_controller_by_id_serialize( + def _get_compute_node_port_by_id_serialize( self, controller_id, + compute_node_id, + port_id, _request_auth, _content_type, _headers, @@ -2014,6 +2046,10 @@ def _get_controller_by_id_serialize( # process the path parameters if controller_id is not None: _path_params['controllerId'] = controller_id + if compute_node_id is not None: + _path_params['computeNodeId'] = compute_node_id + if port_id is not None: + _path_params['portId'] = port_id # process the query parameters # process the header parameters # process the form parameters @@ -2037,7 +2073,7 @@ def _get_controller_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/controllers/{controllerId}', + resource_path='/api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports/{portId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2054,10 +2090,12 @@ def _get_controller_by_id_serialize( @validate_call - def get_controller_compute_node_by_id( + def get_compute_node_ports( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2070,14 +2108,18 @@ def get_controller_compute_node_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ComputeNode: - """get_controller_compute_node_by_id + ) -> List[Port]: + """get_compute_node_ports :param controller_id: The ID of the controller. (required) :type controller_id: str :param compute_node_id: The ID of the compute node. (required) :type compute_node_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2100,9 +2142,11 @@ def get_controller_compute_node_by_id( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_compute_node_by_id_serialize( + _param = self._get_compute_node_ports_serialize( controller_id=controller_id, compute_node_id=compute_node_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2110,8 +2154,7 @@ def get_controller_compute_node_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ComputeNode", - '404': "ErrorResponse", + '200': "List[Port]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2122,10 +2165,12 @@ def get_controller_compute_node_by_id( @validate_call - def get_controller_compute_node_by_id_with_http_info( + def get_compute_node_ports_with_http_info( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2138,14 +2183,18 @@ def get_controller_compute_node_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ComputeNode]: - """get_controller_compute_node_by_id + ) -> ApiResponse[List[Port]]: + """get_compute_node_ports :param controller_id: The ID of the controller. (required) :type controller_id: str :param compute_node_id: The ID of the compute node. (required) :type compute_node_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2168,9 +2217,11 @@ def get_controller_compute_node_by_id_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_compute_node_by_id_serialize( + _param = self._get_compute_node_ports_serialize( controller_id=controller_id, compute_node_id=compute_node_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2178,8 +2229,7 @@ def get_controller_compute_node_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ComputeNode", - '404': "ErrorResponse", + '200': "List[Port]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2190,10 +2240,12 @@ def get_controller_compute_node_by_id_with_http_info( @validate_call - def get_controller_compute_node_by_id_without_preload_content( + def get_compute_node_ports_without_preload_content( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2207,13 +2259,17 @@ def get_controller_compute_node_by_id_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_controller_compute_node_by_id + """get_compute_node_ports :param controller_id: The ID of the controller. (required) :type controller_id: str :param compute_node_id: The ID of the compute node. (required) :type compute_node_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2236,9 +2292,11 @@ def get_controller_compute_node_by_id_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_compute_node_by_id_serialize( + _param = self._get_compute_node_ports_serialize( controller_id=controller_id, compute_node_id=compute_node_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2246,8 +2304,7 @@ def get_controller_compute_node_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ComputeNode", - '404': "ErrorResponse", + '200': "List[Port]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2257,10 +2314,12 @@ def get_controller_compute_node_by_id_without_preload_content( ) - def _get_controller_compute_node_by_id_serialize( + def _get_compute_node_ports_serialize( self, controller_id, compute_node_id, + take, + skip, _request_auth, _content_type, _headers, @@ -2285,6 +2344,14 @@ def _get_controller_compute_node_by_id_serialize( if compute_node_id is not None: _path_params['computeNodeId'] = compute_node_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter @@ -2307,7 +2374,7 @@ def _get_controller_compute_node_by_id_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}', + resource_path='/api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2324,11 +2391,9 @@ def _get_controller_compute_node_by_id_serialize( @validate_call - def get_controller_compute_nodes( + def get_controller_by_id( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2341,16 +2406,13 @@ def get_controller_compute_nodes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ComputeNode]: - """get_controller_compute_nodes + ) -> Controller: + """get_controller_by_id + Get the controller chain. :param controller_id: The ID of the controller. (required) :type controller_id: str - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2373,10 +2435,8 @@ def get_controller_compute_nodes( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_compute_nodes_serialize( + _param = self._get_controller_by_id_serialize( controller_id=controller_id, - take=take, - skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2384,7 +2444,7 @@ def get_controller_compute_nodes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeNode]", + '200': "Controller", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2395,11 +2455,9 @@ def get_controller_compute_nodes( @validate_call - def get_controller_compute_nodes_with_http_info( + def get_controller_by_id_with_http_info( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2412,16 +2470,13 @@ def get_controller_compute_nodes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ComputeNode]]: - """get_controller_compute_nodes + ) -> ApiResponse[Controller]: + """get_controller_by_id + Get the controller chain. :param controller_id: The ID of the controller. (required) :type controller_id: str - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2444,10 +2499,8 @@ def get_controller_compute_nodes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_compute_nodes_serialize( + _param = self._get_controller_by_id_serialize( controller_id=controller_id, - take=take, - skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2455,7 +2508,7 @@ def get_controller_compute_nodes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeNode]", + '200': "Controller", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2466,11 +2519,9 @@ def get_controller_compute_nodes_with_http_info( @validate_call - def get_controller_compute_nodes_without_preload_content( + def get_controller_by_id_without_preload_content( self, controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2484,15 +2535,12 @@ def get_controller_compute_nodes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_controller_compute_nodes + """get_controller_by_id + Get the controller chain. :param controller_id: The ID of the controller. (required) :type controller_id: str - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2515,10 +2563,8 @@ def get_controller_compute_nodes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controller_compute_nodes_serialize( + _param = self._get_controller_by_id_serialize( controller_id=controller_id, - take=take, - skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2526,7 +2572,7 @@ def get_controller_compute_nodes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeNode]", + '200': "Controller", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2536,11 +2582,9 @@ def get_controller_compute_nodes_without_preload_content( ) - def _get_controller_compute_nodes_serialize( + def _get_controller_by_id_serialize( self, controller_id, - take, - skip, _request_auth, _content_type, _headers, @@ -2563,14 +2607,6 @@ def _get_controller_compute_nodes_serialize( if controller_id is not None: _path_params['controllerId'] = controller_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - # process the header parameters # process the form parameters # process the body parameter @@ -2593,7 +2629,7 @@ def _get_controller_compute_nodes_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/controllers/{controllerId}/compute-nodes', + resource_path='/api/v2/controllers/{controllerId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2610,11 +2646,10 @@ def _get_controller_compute_nodes_serialize( @validate_call - def get_controllers( + def get_controller_compute_node_by_id( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2627,17 +2662,14 @@ def get_controllers( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetControllers200Response: - """get_controllers + ) -> ComputeNode: + """get_controller_compute_node_by_id - Get the controllers chain. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param include: Specifies if the sub-fields that are objects should be included. - :type include: str + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param compute_node_id: The ID of the compute node. (required) + :type compute_node_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2660,10 +2692,9 @@ def get_controllers( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controllers_serialize( - take=take, - skip=skip, - include=include, + _param = self._get_controller_compute_node_by_id_serialize( + controller_id=controller_id, + compute_node_id=compute_node_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2671,7 +2702,8 @@ def get_controllers( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetControllers200Response", + '200': "ComputeNode", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2682,11 +2714,10 @@ def get_controllers( @validate_call - def get_controllers_with_http_info( + def get_controller_compute_node_by_id_with_http_info( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2699,17 +2730,14 @@ def get_controllers_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetControllers200Response]: - """get_controllers + ) -> ApiResponse[ComputeNode]: + """get_controller_compute_node_by_id - Get the controllers chain. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param include: Specifies if the sub-fields that are objects should be included. - :type include: str + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param compute_node_id: The ID of the compute node. (required) + :type compute_node_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2732,10 +2760,9 @@ def get_controllers_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controllers_serialize( - take=take, - skip=skip, - include=include, + _param = self._get_controller_compute_node_by_id_serialize( + controller_id=controller_id, + compute_node_id=compute_node_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2743,7 +2770,8 @@ def get_controllers_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetControllers200Response", + '200': "ComputeNode", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2754,11 +2782,10 @@ def get_controllers_with_http_info( @validate_call - def get_controllers_without_preload_content( + def get_controller_compute_node_by_id_without_preload_content( self, - take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, - skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, - include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + compute_node_id: Annotated[StrictStr, Field(description="The ID of the compute node.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2772,16 +2799,13 @@ def get_controllers_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_controllers + """get_controller_compute_node_by_id - Get the controllers chain. - :param take: The number of search results to return - :type take: int - :param skip: The number of search results to skip - :type skip: int - :param include: Specifies if the sub-fields that are objects should be included. - :type include: str + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param compute_node_id: The ID of the compute node. (required) + :type compute_node_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2804,10 +2828,9 @@ def get_controllers_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_controllers_serialize( - take=take, - skip=skip, - include=include, + _param = self._get_controller_compute_node_by_id_serialize( + controller_id=controller_id, + compute_node_id=compute_node_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2815,7 +2838,8 @@ def get_controllers_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetControllers200Response", + '200': "ComputeNode", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2825,11 +2849,10 @@ def get_controllers_without_preload_content( ) - def _get_controllers_serialize( + def _get_controller_compute_node_by_id_serialize( self, - take, - skip, - include, + controller_id, + compute_node_id, _request_auth, _content_type, _headers, @@ -2849,19 +2872,11 @@ def _get_controllers_serialize( _body_params: Optional[bytes] = None # process the path parameters + if controller_id is not None: + _path_params['controllerId'] = controller_id + if compute_node_id is not None: + _path_params['computeNodeId'] = compute_node_id # process the query parameters - if take is not None: - - _query_params.append(('take', take)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - if include is not None: - - _query_params.append(('include', include)) - # process the header parameters # process the form parameters # process the body parameter @@ -2884,7 +2899,7 @@ def _get_controllers_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/api/v2/controllers', + resource_path='/api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2901,10 +2916,11 @@ def _get_controllers_serialize( @validate_call - def patch_agent( + def get_controller_compute_nodes( self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2917,15 +2933,16 @@ def patch_agent( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """patch_agent + ) -> List[ComputeNode]: + """get_controller_compute_nodes - Update a particular agent. Only non-null fields are updated. - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2948,9 +2965,10 @@ def patch_agent( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, + _param = self._get_controller_compute_nodes_serialize( + controller_id=controller_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2958,8 +2976,7 @@ def patch_agent( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", + '200': "List[ComputeNode]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2970,10 +2987,11 @@ def patch_agent( @validate_call - def patch_agent_with_http_info( + def get_controller_compute_nodes_with_http_info( self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2986,15 +3004,16 @@ def patch_agent_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """patch_agent + ) -> ApiResponse[List[ComputeNode]]: + """get_controller_compute_nodes - Update a particular agent. Only non-null fields are updated. - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3017,9 +3036,10 @@ def patch_agent_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, + _param = self._get_controller_compute_nodes_serialize( + controller_id=controller_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3027,8 +3047,7 @@ def patch_agent_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", + '200': "List[ComputeNode]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -3039,10 +3058,11 @@ def patch_agent_with_http_info( @validate_call - def patch_agent_without_preload_content( + def get_controller_compute_nodes_without_preload_content( self, - agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], - agent: Optional[Agent] = None, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3056,14 +3076,15 @@ def patch_agent_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """patch_agent + """get_controller_compute_nodes - Update a particular agent. Only non-null fields are updated. - :param agent_id: The ID of the agent. (required) - :type agent_id: str - :param agent: - :type agent: Agent + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3086,9 +3107,10 @@ def patch_agent_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._patch_agent_serialize( - agent_id=agent_id, - agent=agent, + _param = self._get_controller_compute_nodes_serialize( + controller_id=controller_id, + take=take, + skip=skip, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3096,8 +3118,7 @@ def patch_agent_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': "ErrorResponse", + '200': "List[ComputeNode]", '500': "ErrorResponse", } return self.api_client.call_api( @@ -3107,10 +3128,11 @@ def patch_agent_without_preload_content( ) - def _patch_agent_serialize( + def _get_controller_compute_nodes_serialize( self, - agent_id, - agent, + controller_id, + take, + skip, _request_auth, _content_type, _headers, @@ -3130,14 +3152,20 @@ def _patch_agent_serialize( _body_params: Optional[bytes] = None # process the path parameters - if agent_id is not None: - _path_params['agentId'] = agent_id + if controller_id is not None: + _path_params['controllerId'] = controller_id # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + # process the header parameters # process the form parameters # process the body parameter - if agent is not None: - _body_params = agent # set the HTTP header `Accept` @@ -3148,19 +3176,6 @@ def _patch_agent_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3169,8 +3184,8 @@ def _patch_agent_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/api/v2/agents/{agentId}', + method='GET', + resource_path='/api/v2/controllers/{controllerId}/compute-nodes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3186,170 +3201,2990 @@ def _patch_agent_serialize( - - - - - - - - - - - - - - - - - - + @validate_call + def get_controller_front_panel_by_id( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> FrontPanel: + """get_controller_front_panel_by_id - + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 - + _param = self._get_controller_front_panel_by_id_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '200': "FrontPanel", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + @validate_call + def get_controller_front_panel_by_id_with_http_info( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[FrontPanel]: + """get_controller_front_panel_by_id + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + _param = self._get_controller_front_panel_by_id_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '200': "FrontPanel", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) - - - - - - + @validate_call + def get_controller_front_panel_by_id_without_preload_content( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_controller_front_panel_by_id - + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 - + _param = self._get_controller_front_panel_by_id_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '200': "FrontPanel", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + def _get_controller_front_panel_by_id_serialize( + self, + controller_id, + front_panel_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + _host = None + _collection_formats: Dict[str, str] = { + } + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None - - - - - - - + # process the path parameters + if controller_id is not None: + _path_params['controllerId'] = controller_id + if front_panel_id is not None: + _path_params['frontPanelId'] = front_panel_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) - - + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] - + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/controllers/{controllerId}/front-panels/{frontPanelId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + @validate_call + def get_controller_front_panels( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[FrontPanel]: + """get_controller_front_panels - + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_controller_front_panels_serialize( + controller_id=controller_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FrontPanel]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_controller_front_panels_with_http_info( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[FrontPanel]]: + """get_controller_front_panels + + + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_controller_front_panels_serialize( + controller_id=controller_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FrontPanel]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_controller_front_panels_without_preload_content( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_controller_front_panels + + + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_controller_front_panels_serialize( + controller_id=controller_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FrontPanel]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_controller_front_panels_serialize( + self, + controller_id, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if controller_id is not None: + _path_params['controllerId'] = controller_id + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/controllers/{controllerId}/front-panels', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_controllers( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetControllers200Response: + """get_controllers + + Get the controllers chain. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_controllers_serialize( + take=take, + skip=skip, + include=include, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetControllers200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_controllers_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetControllers200Response]: + """get_controllers + + Get the controllers chain. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_controllers_serialize( + take=take, + skip=skip, + include=include, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetControllers200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_controllers_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + include: Annotated[Optional[StrictStr], Field(description="Specifies if the sub-fields that are objects should be included.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_controllers + + Get the controllers chain. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param include: Specifies if the sub-fields that are objects should be included. + :type include: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_controllers_serialize( + take=take, + skip=skip, + include=include, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetControllers200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_controllers_serialize( + self, + take, + skip, + include, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if include is not None: + + _query_params.append(('include', include)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/controllers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_front_panel_port_by_id( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + port_id: Annotated[StrictStr, Field(description="The ID of the port.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Port: + """get_front_panel_port_by_id + + + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param port_id: The ID of the port. (required) + :type port_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_front_panel_port_by_id_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + port_id=port_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Port", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_front_panel_port_by_id_with_http_info( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + port_id: Annotated[StrictStr, Field(description="The ID of the port.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Port]: + """get_front_panel_port_by_id + + + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param port_id: The ID of the port. (required) + :type port_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_front_panel_port_by_id_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + port_id=port_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Port", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_front_panel_port_by_id_without_preload_content( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + port_id: Annotated[StrictStr, Field(description="The ID of the port.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_front_panel_port_by_id + + + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param port_id: The ID of the port. (required) + :type port_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_front_panel_port_by_id_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + port_id=port_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Port", + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_front_panel_port_by_id_serialize( + self, + controller_id, + front_panel_id, + port_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if controller_id is not None: + _path_params['controllerId'] = controller_id + if front_panel_id is not None: + _path_params['frontPanelId'] = front_panel_id + if port_id is not None: + _path_params['portId'] = port_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/controllers/{controllerId}/front-panels/{frontPanelId}/ports/{portId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_front_panel_ports( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[Port]: + """get_front_panel_ports + + + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_front_panel_ports_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Port]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_front_panel_ports_with_http_info( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[Port]]: + """get_front_panel_ports + + + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_front_panel_ports_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Port]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_front_panel_ports_without_preload_content( + self, + controller_id: Annotated[StrictStr, Field(description="The ID of the controller.")], + front_panel_id: Annotated[StrictStr, Field(description="The ID of the front panel.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_front_panel_ports + + + :param controller_id: The ID of the controller. (required) + :type controller_id: str + :param front_panel_id: The ID of the front panel. (required) + :type front_panel_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_front_panel_ports_serialize( + controller_id=controller_id, + front_panel_id=front_panel_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Port]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_front_panel_ports_serialize( + self, + controller_id, + front_panel_id, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if controller_id is not None: + _path_params['controllerId'] = controller_id + if front_panel_id is not None: + _path_params['frontPanelId'] = front_panel_id + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/controllers/{controllerId}/front-panels/{frontPanelId}/ports', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def patch_agent( + self, + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """patch_agent + + Update a particular agent. Only non-null fields are updated. + + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def patch_agent_with_http_info( + self, + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """patch_agent + + Update a particular agent. Only non-null fields are updated. + + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def patch_agent_without_preload_content( + self, + agent_id: Annotated[StrictStr, Field(description="The ID of the agent.")], + agent: Optional[Agent] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """patch_agent + + Update a particular agent. Only non-null fields are updated. + + :param agent_id: The ID of the agent. (required) + :type agent_id: str + :param agent: + :type agent: Agent + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._patch_agent_serialize( + agent_id=agent_id, + agent=agent, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '404': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _patch_agent_serialize( + self, + agent_id, + agent, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if agent_id is not None: + _path_params['agentId'] = agent_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if agent is not None: + _body_params = agent + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/api/v2/agents/{agentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @validate_call + def start_agents_batch_delete( + self, + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_agents_batch_delete + + Remove multiple agents. + + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_agents_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_agents_batch_delete_with_http_info( + self, + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_agents_batch_delete + + Remove multiple agents. + + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_agents_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_agents_batch_delete_without_preload_content( + self, + start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_agents_batch_delete + + Remove multiple agents. + + :param start_agents_batch_delete_request_inner: + :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_agents_batch_delete_serialize( + start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_agents_batch_delete_serialize( + self, + start_agents_batch_delete_request_inner, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'StartAgentsBatchDeleteRequestInner': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if start_agents_batch_delete_request_inner is not None: + _body_params = start_agents_batch_delete_request_inner + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/agents/operations/batch-delete', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def start_agents_export_files( + self, + export_files_operation_input: Optional[ExportFilesOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_agents_export_files + + Sends export files requests to a list of agents. + + :param export_files_operation_input: + :type export_files_operation_input: ExportFilesOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_agents_export_files_serialize( + export_files_operation_input=export_files_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + @validate_call + def start_agents_export_files_with_http_info( + self, + export_files_operation_input: Optional[ExportFilesOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_agents_export_files + + Sends export files requests to a list of agents. + + :param export_files_operation_input: + :type export_files_operation_input: ExportFilesOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_agents_export_files_serialize( + export_files_operation_input=export_files_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + @validate_call + def start_agents_export_files_without_preload_content( + self, + export_files_operation_input: Optional[ExportFilesOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_agents_export_files + Sends export files requests to a list of agents. + :param export_files_operation_input: + :type export_files_operation_input: ExportFilesOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + _param = self._start_agents_export_files_serialize( + export_files_operation_input=export_files_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) - + def _start_agents_export_files_serialize( + self, + export_files_operation_input, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if export_files_operation_input is not None: + _body_params = export_files_operation_input + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/agents/operations/exportFiles', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def start_agents_reboot( + self, + reboot_operation_input: Optional[RebootOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_agents_reboot + + Reboot the agents specified in the request. + + :param reboot_operation_input: + :type reboot_operation_input: RebootOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_agents_reboot_serialize( + reboot_operation_input=reboot_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + @validate_call + def start_agents_reboot_with_http_info( + self, + reboot_operation_input: Optional[RebootOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_agents_reboot + Reboot the agents specified in the request. + :param reboot_operation_input: + :type reboot_operation_input: RebootOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + _param = self._start_agents_reboot_serialize( + reboot_operation_input=reboot_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) - + @validate_call + def start_agents_reboot_without_preload_content( + self, + reboot_operation_input: Optional[RebootOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_agents_reboot - + Reboot the agents specified in the request. + :param reboot_operation_input: + :type reboot_operation_input: RebootOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + _param = self._start_agents_reboot_serialize( + reboot_operation_input=reboot_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + def _start_agents_reboot_serialize( + self, + reboot_operation_input, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: - + _host = None - + _collection_formats: Dict[str, str] = { + } - + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if reboot_operation_input is not None: + _body_params = reboot_operation_input + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type - + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] - + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/agents/operations/reboot', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) - + @validate_call + def start_agents_release( + self, + release_operation_input: Optional[ReleaseOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_agents_release + Releases all the agents from the given session. - + :param release_operation_input: + :type release_operation_input: ReleaseOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 - + _param = self._start_agents_release_serialize( + release_operation_input=release_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + @validate_call + def start_agents_release_with_http_info( + self, + release_operation_input: Optional[ReleaseOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_agents_release + Releases all the agents from the given session. + :param release_operation_input: + :type release_operation_input: ReleaseOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + _param = self._start_agents_release_serialize( + release_operation_input=release_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) - - - - + @validate_call + def start_agents_release_without_preload_content( + self, + release_operation_input: Optional[ReleaseOperationInput] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_agents_release + Releases all the agents from the given session. + :param release_operation_input: + :type release_operation_input: ReleaseOperationInput + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + _param = self._start_agents_release_serialize( + release_operation_input=release_operation_input, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) - + def _start_agents_release_serialize( + self, + release_operation_input, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: - + _host = None + _collection_formats: Dict[str, str] = { + } + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if release_operation_input is not None: + _body_params = release_operation_input - + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) - + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type - + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/agents/operations/release', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) @validate_call - def start_agents_batch_delete( + def start_agents_reserve( self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, + reserve_operation_input: Optional[ReserveOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3363,12 +6198,12 @@ def start_agents_batch_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_batch_delete + """start_agents_reserve - Remove multiple agents. + Reserves all the agents from the given session. - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] + :param reserve_operation_input: + :type reserve_operation_input: ReserveOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3391,8 +6226,8 @@ def start_agents_batch_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, + _param = self._start_agents_reserve_serialize( + reserve_operation_input=reserve_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3410,9 +6245,9 @@ def start_agents_batch_delete( @validate_call - def start_agents_batch_delete_with_http_info( + def start_agents_reserve_with_http_info( self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, + reserve_operation_input: Optional[ReserveOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3426,12 +6261,12 @@ def start_agents_batch_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_batch_delete + """start_agents_reserve - Remove multiple agents. + Reserves all the agents from the given session. - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] + :param reserve_operation_input: + :type reserve_operation_input: ReserveOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3454,8 +6289,8 @@ def start_agents_batch_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, + _param = self._start_agents_reserve_serialize( + reserve_operation_input=reserve_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3473,9 +6308,9 @@ def start_agents_batch_delete_with_http_info( @validate_call - def start_agents_batch_delete_without_preload_content( + def start_agents_reserve_without_preload_content( self, - start_agents_batch_delete_request_inner: Optional[List[StartAgentsBatchDeleteRequestInner]] = None, + reserve_operation_input: Optional[ReserveOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3489,12 +6324,12 @@ def start_agents_batch_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_batch_delete + """start_agents_reserve - Remove multiple agents. + Reserves all the agents from the given session. - :param start_agents_batch_delete_request_inner: - :type start_agents_batch_delete_request_inner: List[StartAgentsBatchDeleteRequestInner] + :param reserve_operation_input: + :type reserve_operation_input: ReserveOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3517,8 +6352,8 @@ def start_agents_batch_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_batch_delete_serialize( - start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner, + _param = self._start_agents_reserve_serialize( + reserve_operation_input=reserve_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3535,9 +6370,9 @@ def start_agents_batch_delete_without_preload_content( ) - def _start_agents_batch_delete_serialize( + def _start_agents_reserve_serialize( self, - start_agents_batch_delete_request_inner, + reserve_operation_input, _request_auth, _content_type, _headers, @@ -3547,7 +6382,6 @@ def _start_agents_batch_delete_serialize( _host = None _collection_formats: Dict[str, str] = { - 'StartAgentsBatchDeleteRequestInner': '', } _path_params: Dict[str, str] = {} @@ -3562,8 +6396,8 @@ def _start_agents_batch_delete_serialize( # process the header parameters # process the form parameters # process the body parameter - if start_agents_batch_delete_request_inner is not None: - _body_params = start_agents_batch_delete_request_inner + if reserve_operation_input is not None: + _body_params = reserve_operation_input # set the HTTP header `Accept` @@ -3596,7 +6430,7 @@ def _start_agents_batch_delete_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/batch-delete', + resource_path='/api/v2/agents/operations/reserve', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3613,9 +6447,9 @@ def _start_agents_batch_delete_serialize( @validate_call - def start_agents_export_files( + def start_agents_set_dpdk_mode( self, - export_files_operation_input: Optional[ExportFilesOperationInput] = None, + set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3629,12 +6463,12 @@ def start_agents_export_files( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_export_files + """start_agents_set_dpdk_mode - Sends export files requests to a list of agents. + Enable/disable DPDK for a list of agents. - :param export_files_operation_input: - :type export_files_operation_input: ExportFilesOperationInput + :param set_dpdk_mode_operation_input: + :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3657,8 +6491,8 @@ def start_agents_export_files( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_export_files_serialize( - export_files_operation_input=export_files_operation_input, + _param = self._start_agents_set_dpdk_mode_serialize( + set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3676,9 +6510,9 @@ def start_agents_export_files( @validate_call - def start_agents_export_files_with_http_info( + def start_agents_set_dpdk_mode_with_http_info( self, - export_files_operation_input: Optional[ExportFilesOperationInput] = None, + set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3692,12 +6526,12 @@ def start_agents_export_files_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_export_files + """start_agents_set_dpdk_mode - Sends export files requests to a list of agents. + Enable/disable DPDK for a list of agents. - :param export_files_operation_input: - :type export_files_operation_input: ExportFilesOperationInput + :param set_dpdk_mode_operation_input: + :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3720,8 +6554,8 @@ def start_agents_export_files_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_export_files_serialize( - export_files_operation_input=export_files_operation_input, + _param = self._start_agents_set_dpdk_mode_serialize( + set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3739,9 +6573,9 @@ def start_agents_export_files_with_http_info( @validate_call - def start_agents_export_files_without_preload_content( + def start_agents_set_dpdk_mode_without_preload_content( self, - export_files_operation_input: Optional[ExportFilesOperationInput] = None, + set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3755,12 +6589,12 @@ def start_agents_export_files_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_export_files + """start_agents_set_dpdk_mode - Sends export files requests to a list of agents. + Enable/disable DPDK for a list of agents. - :param export_files_operation_input: - :type export_files_operation_input: ExportFilesOperationInput + :param set_dpdk_mode_operation_input: + :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3783,8 +6617,8 @@ def start_agents_export_files_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_export_files_serialize( - export_files_operation_input=export_files_operation_input, + _param = self._start_agents_set_dpdk_mode_serialize( + set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3801,9 +6635,9 @@ def start_agents_export_files_without_preload_content( ) - def _start_agents_export_files_serialize( + def _start_agents_set_dpdk_mode_serialize( self, - export_files_operation_input, + set_dpdk_mode_operation_input, _request_auth, _content_type, _headers, @@ -3827,8 +6661,8 @@ def _start_agents_export_files_serialize( # process the header parameters # process the form parameters # process the body parameter - if export_files_operation_input is not None: - _body_params = export_files_operation_input + if set_dpdk_mode_operation_input is not None: + _body_params = set_dpdk_mode_operation_input # set the HTTP header `Accept` @@ -3861,7 +6695,7 @@ def _start_agents_export_files_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/exportFiles', + resource_path='/api/v2/agents/operations/set-dpdk-mode', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3878,9 +6712,9 @@ def _start_agents_export_files_serialize( @validate_call - def start_agents_reboot( + def start_agents_set_ntp( self, - reboot_operation_input: Optional[RebootOperationInput] = None, + set_ntp_operation_input: Optional[SetNtpOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3894,12 +6728,12 @@ def start_agents_reboot( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_reboot + """start_agents_set_ntp - Reboot the agents specified in the request. + Set the NTP servers for a list of agents. - :param reboot_operation_input: - :type reboot_operation_input: RebootOperationInput + :param set_ntp_operation_input: + :type set_ntp_operation_input: SetNtpOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3922,8 +6756,8 @@ def start_agents_reboot( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_reboot_serialize( - reboot_operation_input=reboot_operation_input, + _param = self._start_agents_set_ntp_serialize( + set_ntp_operation_input=set_ntp_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3941,9 +6775,9 @@ def start_agents_reboot( @validate_call - def start_agents_reboot_with_http_info( + def start_agents_set_ntp_with_http_info( self, - reboot_operation_input: Optional[RebootOperationInput] = None, + set_ntp_operation_input: Optional[SetNtpOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3957,12 +6791,12 @@ def start_agents_reboot_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_reboot + """start_agents_set_ntp - Reboot the agents specified in the request. + Set the NTP servers for a list of agents. - :param reboot_operation_input: - :type reboot_operation_input: RebootOperationInput + :param set_ntp_operation_input: + :type set_ntp_operation_input: SetNtpOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3985,8 +6819,8 @@ def start_agents_reboot_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_reboot_serialize( - reboot_operation_input=reboot_operation_input, + _param = self._start_agents_set_ntp_serialize( + set_ntp_operation_input=set_ntp_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4004,9 +6838,9 @@ def start_agents_reboot_with_http_info( @validate_call - def start_agents_reboot_without_preload_content( + def start_agents_set_ntp_without_preload_content( self, - reboot_operation_input: Optional[RebootOperationInput] = None, + set_ntp_operation_input: Optional[SetNtpOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4020,12 +6854,12 @@ def start_agents_reboot_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_reboot + """start_agents_set_ntp - Reboot the agents specified in the request. + Set the NTP servers for a list of agents. - :param reboot_operation_input: - :type reboot_operation_input: RebootOperationInput + :param set_ntp_operation_input: + :type set_ntp_operation_input: SetNtpOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4048,8 +6882,8 @@ def start_agents_reboot_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_reboot_serialize( - reboot_operation_input=reboot_operation_input, + _param = self._start_agents_set_ntp_serialize( + set_ntp_operation_input=set_ntp_operation_input, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4066,9 +6900,9 @@ def start_agents_reboot_without_preload_content( ) - def _start_agents_reboot_serialize( + def _start_agents_set_ntp_serialize( self, - reboot_operation_input, + set_ntp_operation_input, _request_auth, _content_type, _headers, @@ -4092,8 +6926,8 @@ def _start_agents_reboot_serialize( # process the header parameters # process the form parameters # process the body parameter - if reboot_operation_input is not None: - _body_params = reboot_operation_input + if set_ntp_operation_input is not None: + _body_params = set_ntp_operation_input # set the HTTP header `Accept` @@ -4126,7 +6960,7 @@ def _start_agents_reboot_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/reboot', + resource_path='/api/v2/agents/operations/set-ntp', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4143,9 +6977,8 @@ def _start_agents_reboot_serialize( @validate_call - def start_agents_release( + def start_agents_update( self, - release_operation_input: Optional[ReleaseOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4159,12 +6992,10 @@ def start_agents_release( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_release + """start_agents_update - Releases all the agents from the given session. + Update agents to the recommended version. - :param release_operation_input: - :type release_operation_input: ReleaseOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4187,8 +7018,7 @@ def start_agents_release( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_release_serialize( - release_operation_input=release_operation_input, + _param = self._start_agents_update_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4206,9 +7036,8 @@ def start_agents_release( @validate_call - def start_agents_release_with_http_info( + def start_agents_update_with_http_info( self, - release_operation_input: Optional[ReleaseOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4222,12 +7051,10 @@ def start_agents_release_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_release + """start_agents_update - Releases all the agents from the given session. + Update agents to the recommended version. - :param release_operation_input: - :type release_operation_input: ReleaseOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4250,8 +7077,7 @@ def start_agents_release_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_release_serialize( - release_operation_input=release_operation_input, + _param = self._start_agents_update_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4269,9 +7095,8 @@ def start_agents_release_with_http_info( @validate_call - def start_agents_release_without_preload_content( + def start_agents_update_without_preload_content( self, - release_operation_input: Optional[ReleaseOperationInput] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4285,12 +7110,10 @@ def start_agents_release_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_release + """start_agents_update - Releases all the agents from the given session. + Update agents to the recommended version. - :param release_operation_input: - :type release_operation_input: ReleaseOperationInput :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4313,8 +7136,7 @@ def start_agents_release_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_release_serialize( - release_operation_input=release_operation_input, + _param = self._start_agents_update_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4331,9 +7153,8 @@ def start_agents_release_without_preload_content( ) - def _start_agents_release_serialize( + def _start_agents_update_serialize( self, - release_operation_input, _request_auth, _content_type, _headers, @@ -4357,8 +7178,6 @@ def _start_agents_release_serialize( # process the header parameters # process the form parameters # process the body parameter - if release_operation_input is not None: - _body_params = release_operation_input # set the HTTP header `Accept` @@ -4369,19 +7188,6 @@ def _start_agents_release_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4391,7 +7197,7 @@ def _start_agents_release_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/release', + resource_path='/api/v2/agents/operations/update', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4408,9 +7214,9 @@ def _start_agents_release_serialize( @validate_call - def start_agents_reserve( + def start_controllers_clear_compute_resource_ownership( self, - reserve_operation_input: Optional[ReserveOperationInput] = None, + clear_compute_resources_ownership_operation: Optional[ClearComputeResourcesOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4424,12 +7230,12 @@ def start_agents_reserve( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_reserve + """start_controllers_clear_compute_resource_ownership - Reserves all the agents from the given session. + Clear the ownership of the compute resources. - :param reserve_operation_input: - :type reserve_operation_input: ReserveOperationInput + :param clear_compute_resources_ownership_operation: + :type clear_compute_resources_ownership_operation: ClearComputeResourcesOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4452,8 +7258,8 @@ def start_agents_reserve( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_reserve_serialize( - reserve_operation_input=reserve_operation_input, + _param = self._start_controllers_clear_compute_resource_ownership_serialize( + clear_compute_resources_ownership_operation=clear_compute_resources_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4471,9 +7277,9 @@ def start_agents_reserve( @validate_call - def start_agents_reserve_with_http_info( + def start_controllers_clear_compute_resource_ownership_with_http_info( self, - reserve_operation_input: Optional[ReserveOperationInput] = None, + clear_compute_resources_ownership_operation: Optional[ClearComputeResourcesOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4487,12 +7293,12 @@ def start_agents_reserve_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_reserve + """start_controllers_clear_compute_resource_ownership - Reserves all the agents from the given session. + Clear the ownership of the compute resources. - :param reserve_operation_input: - :type reserve_operation_input: ReserveOperationInput + :param clear_compute_resources_ownership_operation: + :type clear_compute_resources_ownership_operation: ClearComputeResourcesOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4515,8 +7321,8 @@ def start_agents_reserve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_reserve_serialize( - reserve_operation_input=reserve_operation_input, + _param = self._start_controllers_clear_compute_resource_ownership_serialize( + clear_compute_resources_ownership_operation=clear_compute_resources_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4534,9 +7340,9 @@ def start_agents_reserve_with_http_info( @validate_call - def start_agents_reserve_without_preload_content( + def start_controllers_clear_compute_resource_ownership_without_preload_content( self, - reserve_operation_input: Optional[ReserveOperationInput] = None, + clear_compute_resources_ownership_operation: Optional[ClearComputeResourcesOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4550,12 +7356,12 @@ def start_agents_reserve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_reserve + """start_controllers_clear_compute_resource_ownership - Reserves all the agents from the given session. + Clear the ownership of the compute resources. - :param reserve_operation_input: - :type reserve_operation_input: ReserveOperationInput + :param clear_compute_resources_ownership_operation: + :type clear_compute_resources_ownership_operation: ClearComputeResourcesOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4578,8 +7384,8 @@ def start_agents_reserve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_reserve_serialize( - reserve_operation_input=reserve_operation_input, + _param = self._start_controllers_clear_compute_resource_ownership_serialize( + clear_compute_resources_ownership_operation=clear_compute_resources_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4596,9 +7402,9 @@ def start_agents_reserve_without_preload_content( ) - def _start_agents_reserve_serialize( + def _start_controllers_clear_compute_resource_ownership_serialize( self, - reserve_operation_input, + clear_compute_resources_ownership_operation, _request_auth, _content_type, _headers, @@ -4622,8 +7428,8 @@ def _start_agents_reserve_serialize( # process the header parameters # process the form parameters # process the body parameter - if reserve_operation_input is not None: - _body_params = reserve_operation_input + if clear_compute_resources_ownership_operation is not None: + _body_params = clear_compute_resources_ownership_operation # set the HTTP header `Accept` @@ -4656,7 +7462,7 @@ def _start_agents_reserve_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/reserve', + resource_path='/api/v2/controllers/operations/clear-compute-resource-ownership', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4673,9 +7479,9 @@ def _start_agents_reserve_serialize( @validate_call - def start_agents_set_dpdk_mode( + def start_controllers_clear_front_panel_port_ownership( self, - set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, + clear_front_panel_ports_ownership_operation: Optional[ClearFrontPanelPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4689,12 +7495,12 @@ def start_agents_set_dpdk_mode( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_set_dpdk_mode + """start_controllers_clear_front_panel_port_ownership - Enable/disable DPDK for a list of agents. + Clear the ownership of the front panel ports. - :param set_dpdk_mode_operation_input: - :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput + :param clear_front_panel_ports_ownership_operation: + :type clear_front_panel_ports_ownership_operation: ClearFrontPanelPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4717,8 +7523,8 @@ def start_agents_set_dpdk_mode( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_dpdk_mode_serialize( - set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, + _param = self._start_controllers_clear_front_panel_port_ownership_serialize( + clear_front_panel_ports_ownership_operation=clear_front_panel_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4736,9 +7542,9 @@ def start_agents_set_dpdk_mode( @validate_call - def start_agents_set_dpdk_mode_with_http_info( + def start_controllers_clear_front_panel_port_ownership_with_http_info( self, - set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, + clear_front_panel_ports_ownership_operation: Optional[ClearFrontPanelPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4752,12 +7558,12 @@ def start_agents_set_dpdk_mode_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_set_dpdk_mode + """start_controllers_clear_front_panel_port_ownership - Enable/disable DPDK for a list of agents. + Clear the ownership of the front panel ports. - :param set_dpdk_mode_operation_input: - :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput + :param clear_front_panel_ports_ownership_operation: + :type clear_front_panel_ports_ownership_operation: ClearFrontPanelPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4780,8 +7586,8 @@ def start_agents_set_dpdk_mode_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_dpdk_mode_serialize( - set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, + _param = self._start_controllers_clear_front_panel_port_ownership_serialize( + clear_front_panel_ports_ownership_operation=clear_front_panel_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4799,9 +7605,9 @@ def start_agents_set_dpdk_mode_with_http_info( @validate_call - def start_agents_set_dpdk_mode_without_preload_content( + def start_controllers_clear_front_panel_port_ownership_without_preload_content( self, - set_dpdk_mode_operation_input: Optional[SetDpdkModeOperationInput] = None, + clear_front_panel_ports_ownership_operation: Optional[ClearFrontPanelPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4815,12 +7621,12 @@ def start_agents_set_dpdk_mode_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_set_dpdk_mode + """start_controllers_clear_front_panel_port_ownership - Enable/disable DPDK for a list of agents. + Clear the ownership of the front panel ports. - :param set_dpdk_mode_operation_input: - :type set_dpdk_mode_operation_input: SetDpdkModeOperationInput + :param clear_front_panel_ports_ownership_operation: + :type clear_front_panel_ports_ownership_operation: ClearFrontPanelPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4843,8 +7649,8 @@ def start_agents_set_dpdk_mode_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_dpdk_mode_serialize( - set_dpdk_mode_operation_input=set_dpdk_mode_operation_input, + _param = self._start_controllers_clear_front_panel_port_ownership_serialize( + clear_front_panel_ports_ownership_operation=clear_front_panel_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4861,9 +7667,9 @@ def start_agents_set_dpdk_mode_without_preload_content( ) - def _start_agents_set_dpdk_mode_serialize( + def _start_controllers_clear_front_panel_port_ownership_serialize( self, - set_dpdk_mode_operation_input, + clear_front_panel_ports_ownership_operation, _request_auth, _content_type, _headers, @@ -4887,8 +7693,8 @@ def _start_agents_set_dpdk_mode_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_dpdk_mode_operation_input is not None: - _body_params = set_dpdk_mode_operation_input + if clear_front_panel_ports_ownership_operation is not None: + _body_params = clear_front_panel_ports_ownership_operation # set the HTTP header `Accept` @@ -4921,7 +7727,7 @@ def _start_agents_set_dpdk_mode_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/set-dpdk-mode', + resource_path='/api/v2/controllers/operations/clear-front-panel-port-ownership', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4938,9 +7744,9 @@ def _start_agents_set_dpdk_mode_serialize( @validate_call - def start_agents_set_ntp( + def start_controllers_clear_port_ownership( self, - set_ntp_operation_input: Optional[SetNtpOperationInput] = None, + clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4954,12 +7760,12 @@ def start_agents_set_ntp( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_set_ntp + """start_controllers_clear_port_ownership - Set the NTP servers for a list of agents. + Clear the ownership of the ports. - :param set_ntp_operation_input: - :type set_ntp_operation_input: SetNtpOperationInput + :param clear_ports_ownership_operation: + :type clear_ports_ownership_operation: ClearPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4982,8 +7788,8 @@ def start_agents_set_ntp( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_ntp_serialize( - set_ntp_operation_input=set_ntp_operation_input, + _param = self._start_controllers_clear_port_ownership_serialize( + clear_ports_ownership_operation=clear_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5001,9 +7807,9 @@ def start_agents_set_ntp( @validate_call - def start_agents_set_ntp_with_http_info( + def start_controllers_clear_port_ownership_with_http_info( self, - set_ntp_operation_input: Optional[SetNtpOperationInput] = None, + clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5017,12 +7823,12 @@ def start_agents_set_ntp_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_set_ntp + """start_controllers_clear_port_ownership - Set the NTP servers for a list of agents. + Clear the ownership of the ports. - :param set_ntp_operation_input: - :type set_ntp_operation_input: SetNtpOperationInput + :param clear_ports_ownership_operation: + :type clear_ports_ownership_operation: ClearPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5045,8 +7851,8 @@ def start_agents_set_ntp_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_ntp_serialize( - set_ntp_operation_input=set_ntp_operation_input, + _param = self._start_controllers_clear_port_ownership_serialize( + clear_ports_ownership_operation=clear_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5064,9 +7870,9 @@ def start_agents_set_ntp_with_http_info( @validate_call - def start_agents_set_ntp_without_preload_content( + def start_controllers_clear_port_ownership_without_preload_content( self, - set_ntp_operation_input: Optional[SetNtpOperationInput] = None, + clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5080,12 +7886,12 @@ def start_agents_set_ntp_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_set_ntp + """start_controllers_clear_port_ownership - Set the NTP servers for a list of agents. + Clear the ownership of the ports. - :param set_ntp_operation_input: - :type set_ntp_operation_input: SetNtpOperationInput + :param clear_ports_ownership_operation: + :type clear_ports_ownership_operation: ClearPortsOwnershipOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5108,8 +7914,8 @@ def start_agents_set_ntp_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_set_ntp_serialize( - set_ntp_operation_input=set_ntp_operation_input, + _param = self._start_controllers_clear_port_ownership_serialize( + clear_ports_ownership_operation=clear_ports_ownership_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5126,9 +7932,9 @@ def start_agents_set_ntp_without_preload_content( ) - def _start_agents_set_ntp_serialize( + def _start_controllers_clear_port_ownership_serialize( self, - set_ntp_operation_input, + clear_ports_ownership_operation, _request_auth, _content_type, _headers, @@ -5152,8 +7958,8 @@ def _start_agents_set_ntp_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_ntp_operation_input is not None: - _body_params = set_ntp_operation_input + if clear_ports_ownership_operation is not None: + _body_params = clear_ports_ownership_operation # set the HTTP header `Accept` @@ -5186,7 +7992,7 @@ def _start_agents_set_ntp_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/set-ntp', + resource_path='/api/v2/controllers/operations/clear-port-ownership', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5203,8 +8009,9 @@ def _start_agents_set_ntp_serialize( @validate_call - def start_agents_update( + def start_controllers_power_cycle_nodes( self, + nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5218,10 +8025,12 @@ def start_agents_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_agents_update + """start_controllers_power_cycle_nodes - Update agents to the recommended version. + Power cycle the compute nodes. + :param nodes_power_cycle_operation: + :type nodes_power_cycle_operation: NodesPowerCycleOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5244,7 +8053,8 @@ def start_agents_update( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_update_serialize( + _param = self._start_controllers_power_cycle_nodes_serialize( + nodes_power_cycle_operation=nodes_power_cycle_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5262,8 +8072,9 @@ def start_agents_update( @validate_call - def start_agents_update_with_http_info( + def start_controllers_power_cycle_nodes_with_http_info( self, + nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5277,10 +8088,12 @@ def start_agents_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_agents_update + """start_controllers_power_cycle_nodes - Update agents to the recommended version. + Power cycle the compute nodes. + :param nodes_power_cycle_operation: + :type nodes_power_cycle_operation: NodesPowerCycleOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5303,7 +8116,8 @@ def start_agents_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_update_serialize( + _param = self._start_controllers_power_cycle_nodes_serialize( + nodes_power_cycle_operation=nodes_power_cycle_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5321,8 +8135,9 @@ def start_agents_update_with_http_info( @validate_call - def start_agents_update_without_preload_content( + def start_controllers_power_cycle_nodes_without_preload_content( self, + nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5336,10 +8151,12 @@ def start_agents_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_agents_update + """start_controllers_power_cycle_nodes - Update agents to the recommended version. + Power cycle the compute nodes. + :param nodes_power_cycle_operation: + :type nodes_power_cycle_operation: NodesPowerCycleOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5362,7 +8179,8 @@ def start_agents_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_agents_update_serialize( + _param = self._start_controllers_power_cycle_nodes_serialize( + nodes_power_cycle_operation=nodes_power_cycle_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5379,8 +8197,9 @@ def start_agents_update_without_preload_content( ) - def _start_agents_update_serialize( + def _start_controllers_power_cycle_nodes_serialize( self, + nodes_power_cycle_operation, _request_auth, _content_type, _headers, @@ -5404,6 +8223,8 @@ def _start_agents_update_serialize( # process the header parameters # process the form parameters # process the body parameter + if nodes_power_cycle_operation is not None: + _body_params = nodes_power_cycle_operation # set the HTTP header `Accept` @@ -5414,6 +8235,19 @@ def _start_agents_update_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5423,7 +8257,7 @@ def _start_agents_update_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/agents/operations/update', + resource_path='/api/v2/controllers/operations/power-cycle-nodes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5440,9 +8274,9 @@ def _start_agents_update_serialize( @validate_call - def start_controllers_clear_port_ownership( + def start_controllers_reboot_compute_resource( self, - clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, + reboot_compute_resources_operation: Optional[RebootComputeResourcesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5456,12 +8290,12 @@ def start_controllers_clear_port_ownership( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_clear_port_ownership + """start_controllers_reboot_compute_resource - Clear the ownership of the ports. + Reboot compute resources. - :param clear_ports_ownership_operation: - :type clear_ports_ownership_operation: ClearPortsOwnershipOperation + :param reboot_compute_resources_operation: + :type reboot_compute_resources_operation: RebootComputeResourcesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5484,8 +8318,8 @@ def start_controllers_clear_port_ownership( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_clear_port_ownership_serialize( - clear_ports_ownership_operation=clear_ports_ownership_operation, + _param = self._start_controllers_reboot_compute_resource_serialize( + reboot_compute_resources_operation=reboot_compute_resources_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5503,9 +8337,9 @@ def start_controllers_clear_port_ownership( @validate_call - def start_controllers_clear_port_ownership_with_http_info( + def start_controllers_reboot_compute_resource_with_http_info( self, - clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, + reboot_compute_resources_operation: Optional[RebootComputeResourcesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5519,12 +8353,12 @@ def start_controllers_clear_port_ownership_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_clear_port_ownership + """start_controllers_reboot_compute_resource - Clear the ownership of the ports. + Reboot compute resources. - :param clear_ports_ownership_operation: - :type clear_ports_ownership_operation: ClearPortsOwnershipOperation + :param reboot_compute_resources_operation: + :type reboot_compute_resources_operation: RebootComputeResourcesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5547,8 +8381,8 @@ def start_controllers_clear_port_ownership_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_clear_port_ownership_serialize( - clear_ports_ownership_operation=clear_ports_ownership_operation, + _param = self._start_controllers_reboot_compute_resource_serialize( + reboot_compute_resources_operation=reboot_compute_resources_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5566,9 +8400,9 @@ def start_controllers_clear_port_ownership_with_http_info( @validate_call - def start_controllers_clear_port_ownership_without_preload_content( + def start_controllers_reboot_compute_resource_without_preload_content( self, - clear_ports_ownership_operation: Optional[ClearPortsOwnershipOperation] = None, + reboot_compute_resources_operation: Optional[RebootComputeResourcesOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5582,12 +8416,12 @@ def start_controllers_clear_port_ownership_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_clear_port_ownership + """start_controllers_reboot_compute_resource - Clear the ownership of the ports. + Reboot compute resources. - :param clear_ports_ownership_operation: - :type clear_ports_ownership_operation: ClearPortsOwnershipOperation + :param reboot_compute_resources_operation: + :type reboot_compute_resources_operation: RebootComputeResourcesOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5610,8 +8444,8 @@ def start_controllers_clear_port_ownership_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_clear_port_ownership_serialize( - clear_ports_ownership_operation=clear_ports_ownership_operation, + _param = self._start_controllers_reboot_compute_resource_serialize( + reboot_compute_resources_operation=reboot_compute_resources_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5628,9 +8462,9 @@ def start_controllers_clear_port_ownership_without_preload_content( ) - def _start_controllers_clear_port_ownership_serialize( + def _start_controllers_reboot_compute_resource_serialize( self, - clear_ports_ownership_operation, + reboot_compute_resources_operation, _request_auth, _content_type, _headers, @@ -5654,8 +8488,8 @@ def _start_controllers_clear_port_ownership_serialize( # process the header parameters # process the form parameters # process the body parameter - if clear_ports_ownership_operation is not None: - _body_params = clear_ports_ownership_operation + if reboot_compute_resources_operation is not None: + _body_params = reboot_compute_resources_operation # set the HTTP header `Accept` @@ -5688,7 +8522,7 @@ def _start_controllers_clear_port_ownership_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/clear-port-ownership', + resource_path='/api/v2/controllers/operations/reboot-compute-resource', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5705,9 +8539,9 @@ def _start_controllers_clear_port_ownership_serialize( @validate_call - def start_controllers_power_cycle_nodes( + def start_controllers_reboot_port( self, - nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, + reboot_ports_operation: Optional[RebootPortsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5721,12 +8555,12 @@ def start_controllers_power_cycle_nodes( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_power_cycle_nodes + """start_controllers_reboot_port - Power cycle the compute nodes. + Reboot ports. - :param nodes_power_cycle_operation: - :type nodes_power_cycle_operation: NodesPowerCycleOperation + :param reboot_ports_operation: + :type reboot_ports_operation: RebootPortsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5749,8 +8583,8 @@ def start_controllers_power_cycle_nodes( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_power_cycle_nodes_serialize( - nodes_power_cycle_operation=nodes_power_cycle_operation, + _param = self._start_controllers_reboot_port_serialize( + reboot_ports_operation=reboot_ports_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5768,9 +8602,9 @@ def start_controllers_power_cycle_nodes( @validate_call - def start_controllers_power_cycle_nodes_with_http_info( + def start_controllers_reboot_port_with_http_info( self, - nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, + reboot_ports_operation: Optional[RebootPortsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5784,12 +8618,12 @@ def start_controllers_power_cycle_nodes_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_power_cycle_nodes + """start_controllers_reboot_port - Power cycle the compute nodes. + Reboot ports. - :param nodes_power_cycle_operation: - :type nodes_power_cycle_operation: NodesPowerCycleOperation + :param reboot_ports_operation: + :type reboot_ports_operation: RebootPortsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5812,8 +8646,8 @@ def start_controllers_power_cycle_nodes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_power_cycle_nodes_serialize( - nodes_power_cycle_operation=nodes_power_cycle_operation, + _param = self._start_controllers_reboot_port_serialize( + reboot_ports_operation=reboot_ports_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5831,9 +8665,9 @@ def start_controllers_power_cycle_nodes_with_http_info( @validate_call - def start_controllers_power_cycle_nodes_without_preload_content( + def start_controllers_reboot_port_without_preload_content( self, - nodes_power_cycle_operation: Optional[NodesPowerCycleOperation] = None, + reboot_ports_operation: Optional[RebootPortsOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5847,12 +8681,12 @@ def start_controllers_power_cycle_nodes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_power_cycle_nodes + """start_controllers_reboot_port - Power cycle the compute nodes. + Reboot ports. - :param nodes_power_cycle_operation: - :type nodes_power_cycle_operation: NodesPowerCycleOperation + :param reboot_ports_operation: + :type reboot_ports_operation: RebootPortsOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5875,8 +8709,8 @@ def start_controllers_power_cycle_nodes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_power_cycle_nodes_serialize( - nodes_power_cycle_operation=nodes_power_cycle_operation, + _param = self._start_controllers_reboot_port_serialize( + reboot_ports_operation=reboot_ports_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5893,9 +8727,9 @@ def start_controllers_power_cycle_nodes_without_preload_content( ) - def _start_controllers_power_cycle_nodes_serialize( + def _start_controllers_reboot_port_serialize( self, - nodes_power_cycle_operation, + reboot_ports_operation, _request_auth, _content_type, _headers, @@ -5919,8 +8753,8 @@ def _start_controllers_power_cycle_nodes_serialize( # process the header parameters # process the form parameters # process the body parameter - if nodes_power_cycle_operation is not None: - _body_params = nodes_power_cycle_operation + if reboot_ports_operation is not None: + _body_params = reboot_ports_operation # set the HTTP header `Accept` @@ -5953,7 +8787,7 @@ def _start_controllers_power_cycle_nodes_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/power-cycle-nodes', + resource_path='/api/v2/controllers/operations/reboot-port', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5970,9 +8804,9 @@ def _start_controllers_power_cycle_nodes_serialize( @validate_call - def start_controllers_reboot_port( + def start_controllers_set_app( self, - reboot_ports_operation: Optional[RebootPortsOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5986,12 +8820,12 @@ def start_controllers_reboot_port( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_reboot_port + """start_controllers_set_app - Reboot ports. + Set the active app of the controllers. - :param reboot_ports_operation: - :type reboot_ports_operation: RebootPortsOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6014,8 +8848,8 @@ def start_controllers_reboot_port( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_reboot_port_serialize( - reboot_ports_operation=reboot_ports_operation, + _param = self._start_controllers_set_app_serialize( + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6033,9 +8867,9 @@ def start_controllers_reboot_port( @validate_call - def start_controllers_reboot_port_with_http_info( + def start_controllers_set_app_with_http_info( self, - reboot_ports_operation: Optional[RebootPortsOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6049,12 +8883,12 @@ def start_controllers_reboot_port_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_reboot_port + """start_controllers_set_app - Reboot ports. + Set the active app of the controllers. - :param reboot_ports_operation: - :type reboot_ports_operation: RebootPortsOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6077,8 +8911,8 @@ def start_controllers_reboot_port_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_reboot_port_serialize( - reboot_ports_operation=reboot_ports_operation, + _param = self._start_controllers_set_app_serialize( + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6096,9 +8930,9 @@ def start_controllers_reboot_port_with_http_info( @validate_call - def start_controllers_reboot_port_without_preload_content( + def start_controllers_set_app_without_preload_content( self, - reboot_ports_operation: Optional[RebootPortsOperation] = None, + set_controller_app_operation: Optional[SetControllerAppOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6112,12 +8946,12 @@ def start_controllers_reboot_port_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_reboot_port + """start_controllers_set_app - Reboot ports. + Set the active app of the controllers. - :param reboot_ports_operation: - :type reboot_ports_operation: RebootPortsOperation + :param set_controller_app_operation: + :type set_controller_app_operation: SetControllerAppOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6140,8 +8974,8 @@ def start_controllers_reboot_port_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_reboot_port_serialize( - reboot_ports_operation=reboot_ports_operation, + _param = self._start_controllers_set_app_serialize( + set_controller_app_operation=set_controller_app_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6158,9 +8992,9 @@ def start_controllers_reboot_port_without_preload_content( ) - def _start_controllers_reboot_port_serialize( + def _start_controllers_set_app_serialize( self, - reboot_ports_operation, + set_controller_app_operation, _request_auth, _content_type, _headers, @@ -6184,8 +9018,8 @@ def _start_controllers_reboot_port_serialize( # process the header parameters # process the form parameters # process the body parameter - if reboot_ports_operation is not None: - _body_params = reboot_ports_operation + if set_controller_app_operation is not None: + _body_params = set_controller_app_operation # set the HTTP header `Accept` @@ -6218,7 +9052,7 @@ def _start_controllers_reboot_port_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/reboot-port', + resource_path='/api/v2/controllers/operations/set-app', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6235,9 +9069,9 @@ def _start_controllers_reboot_port_serialize( @validate_call - def start_controllers_set_app( + def start_controllers_set_front_panel_port_link_state( self, - set_controller_app_operation: Optional[SetControllerAppOperation] = None, + set_front_panel_ports_link_state_operation: Optional[SetFrontPanelPortsLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6251,12 +9085,12 @@ def start_controllers_set_app( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> AsyncContext: - """start_controllers_set_app + """start_controllers_set_front_panel_port_link_state - Set the active app of the controllers. + Set the link state of the front panel ports. - :param set_controller_app_operation: - :type set_controller_app_operation: SetControllerAppOperation + :param set_front_panel_ports_link_state_operation: + :type set_front_panel_ports_link_state_operation: SetFrontPanelPortsLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6279,8 +9113,8 @@ def start_controllers_set_app( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_app_serialize( - set_controller_app_operation=set_controller_app_operation, + _param = self._start_controllers_set_front_panel_port_link_state_serialize( + set_front_panel_ports_link_state_operation=set_front_panel_ports_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6298,9 +9132,9 @@ def start_controllers_set_app( @validate_call - def start_controllers_set_app_with_http_info( + def start_controllers_set_front_panel_port_link_state_with_http_info( self, - set_controller_app_operation: Optional[SetControllerAppOperation] = None, + set_front_panel_ports_link_state_operation: Optional[SetFrontPanelPortsLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6314,12 +9148,12 @@ def start_controllers_set_app_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[AsyncContext]: - """start_controllers_set_app + """start_controllers_set_front_panel_port_link_state - Set the active app of the controllers. + Set the link state of the front panel ports. - :param set_controller_app_operation: - :type set_controller_app_operation: SetControllerAppOperation + :param set_front_panel_ports_link_state_operation: + :type set_front_panel_ports_link_state_operation: SetFrontPanelPortsLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6342,8 +9176,8 @@ def start_controllers_set_app_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_app_serialize( - set_controller_app_operation=set_controller_app_operation, + _param = self._start_controllers_set_front_panel_port_link_state_serialize( + set_front_panel_ports_link_state_operation=set_front_panel_ports_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6361,9 +9195,9 @@ def start_controllers_set_app_with_http_info( @validate_call - def start_controllers_set_app_without_preload_content( + def start_controllers_set_front_panel_port_link_state_without_preload_content( self, - set_controller_app_operation: Optional[SetControllerAppOperation] = None, + set_front_panel_ports_link_state_operation: Optional[SetFrontPanelPortsLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6377,12 +9211,12 @@ def start_controllers_set_app_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """start_controllers_set_app + """start_controllers_set_front_panel_port_link_state - Set the active app of the controllers. + Set the link state of the front panel ports. - :param set_controller_app_operation: - :type set_controller_app_operation: SetControllerAppOperation + :param set_front_panel_ports_link_state_operation: + :type set_front_panel_ports_link_state_operation: SetFrontPanelPortsLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6405,8 +9239,8 @@ def start_controllers_set_app_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._start_controllers_set_app_serialize( - set_controller_app_operation=set_controller_app_operation, + _param = self._start_controllers_set_front_panel_port_link_state_serialize( + set_front_panel_ports_link_state_operation=set_front_panel_ports_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6423,9 +9257,9 @@ def start_controllers_set_app_without_preload_content( ) - def _start_controllers_set_app_serialize( + def _start_controllers_set_front_panel_port_link_state_serialize( self, - set_controller_app_operation, + set_front_panel_ports_link_state_operation, _request_auth, _content_type, _headers, @@ -6449,8 +9283,8 @@ def _start_controllers_set_app_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_controller_app_operation is not None: - _body_params = set_controller_app_operation + if set_front_panel_ports_link_state_operation is not None: + _body_params = set_front_panel_ports_link_state_operation # set the HTTP header `Accept` @@ -6483,7 +9317,7 @@ def _start_controllers_set_app_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/api/v2/controllers/operations/set-app', + resource_path='/api/v2/controllers/operations/set-front-panel-port-link-state', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7032,7 +9866,7 @@ def _start_controllers_set_node_app_serialize( @validate_call def start_controllers_set_port_link_state( self, - set_link_state_operation: Optional[SetLinkStateOperation] = None, + set_ports_link_state_operation: Optional[SetPortsLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7050,8 +9884,8 @@ def start_controllers_set_port_link_state( Set the link state of the ports. - :param set_link_state_operation: - :type set_link_state_operation: SetLinkStateOperation + :param set_ports_link_state_operation: + :type set_ports_link_state_operation: SetPortsLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7075,7 +9909,7 @@ def start_controllers_set_port_link_state( """ # noqa: E501 _param = self._start_controllers_set_port_link_state_serialize( - set_link_state_operation=set_link_state_operation, + set_ports_link_state_operation=set_ports_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7095,7 +9929,7 @@ def start_controllers_set_port_link_state( @validate_call def start_controllers_set_port_link_state_with_http_info( self, - set_link_state_operation: Optional[SetLinkStateOperation] = None, + set_ports_link_state_operation: Optional[SetPortsLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7113,8 +9947,8 @@ def start_controllers_set_port_link_state_with_http_info( Set the link state of the ports. - :param set_link_state_operation: - :type set_link_state_operation: SetLinkStateOperation + :param set_ports_link_state_operation: + :type set_ports_link_state_operation: SetPortsLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7138,7 +9972,7 @@ def start_controllers_set_port_link_state_with_http_info( """ # noqa: E501 _param = self._start_controllers_set_port_link_state_serialize( - set_link_state_operation=set_link_state_operation, + set_ports_link_state_operation=set_ports_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7158,7 +9992,7 @@ def start_controllers_set_port_link_state_with_http_info( @validate_call def start_controllers_set_port_link_state_without_preload_content( self, - set_link_state_operation: Optional[SetLinkStateOperation] = None, + set_ports_link_state_operation: Optional[SetPortsLinkStateOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7176,8 +10010,8 @@ def start_controllers_set_port_link_state_without_preload_content( Set the link state of the ports. - :param set_link_state_operation: - :type set_link_state_operation: SetLinkStateOperation + :param set_ports_link_state_operation: + :type set_ports_link_state_operation: SetPortsLinkStateOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7201,7 +10035,7 @@ def start_controllers_set_port_link_state_without_preload_content( """ # noqa: E501 _param = self._start_controllers_set_port_link_state_serialize( - set_link_state_operation=set_link_state_operation, + set_ports_link_state_operation=set_ports_link_state_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7220,7 +10054,7 @@ def start_controllers_set_port_link_state_without_preload_content( def _start_controllers_set_port_link_state_serialize( self, - set_link_state_operation, + set_ports_link_state_operation, _request_auth, _content_type, _headers, @@ -7244,8 +10078,8 @@ def _start_controllers_set_port_link_state_serialize( # process the header parameters # process the form parameters # process the body parameter - if set_link_state_operation is not None: - _body_params = set_link_state_operation + if set_ports_link_state_operation is not None: + _body_params = set_ports_link_state_operation # set the HTTP header `Accept` diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index d29722e..36df2ec 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -30,8 +30,10 @@ ActivationCodeRequest = DynamicModel('ActivationCodeRequest', (), {} ) AddActionInfo = DynamicModel('AddActionInfo', (), {} ) AddInput = DynamicModel('AddInput', (), {} ) +Address = DynamicModel('Address', (), {} ) AdvancedSettings = DynamicModel('AdvancedSettings', (), {} ) Agent = DynamicModel('Agent', (), {} ) +AgentAssignmentByFrontPanelPort = DynamicModel('AgentAssignmentByFrontPanelPort', (), {} ) AgentAssignmentByPort = DynamicModel('AgentAssignmentByPort', (), {} ) AgentAssignmentDetails = DynamicModel('AgentAssignmentDetails', (), {} ) AgentAssignments = DynamicModel('AgentAssignments', (), {} ) @@ -89,10 +91,15 @@ CipherTLS13 = DynamicModel('CipherTLS13', (), {} ) CiscoAnyConnectSettings = DynamicModel('CiscoAnyConnectSettings', (), {} ) CiscoEncapsulation = DynamicModel('CiscoEncapsulation', (), {} ) +ClearComputeResourcesOwnershipOperation = DynamicModel('ClearComputeResourcesOwnershipOperation', (), {} ) +ClearFrontPanelPortsOwnershipOperation = DynamicModel('ClearFrontPanelPortsOwnershipOperation', (), {} ) ClearPortsOwnershipOperation = DynamicModel('ClearPortsOwnershipOperation', (), {} ) Command = DynamicModel('Command', (), {} ) CommandMetadata = DynamicModel('CommandMetadata', (), {} ) ComputeNode = DynamicModel('ComputeNode', (), {} ) +ComputeResource = DynamicModel('ComputeResource', (), {} ) +ComputeResourcesByController = DynamicModel('ComputeResourcesByController', (), {} ) +ComputeResourcesByNode = DynamicModel('ComputeResourcesByNode', (), {} ) Config = DynamicModel('Config', (), {} ) ConfigCategory = DynamicModel('ConfigCategory', (), {} ) ConfigId = DynamicModel('ConfigId', (), {} ) @@ -110,11 +117,13 @@ CreateAppOrAttackOperationInput = DynamicModel('CreateAppOrAttackOperationInput', (), {} ) CustomDashboards = DynamicModel('CustomDashboards', (), {} ) CustomImportHandler = DynamicModel('CustomImportHandler', (), {} ) +CustomSequence = DynamicModel('CustomSequence', (), {} ) CustomStat = DynamicModel('CustomStat', (), {} ) DNSResolver = DynamicModel('DNSResolver', (), {} ) DNSServer = DynamicModel('DNSServer', (), {} ) DTLSSettings = DynamicModel('DTLSSettings', (), {} ) DUTNetwork = DynamicModel('DUTNetwork', (), {} ) +DUTRange = DynamicModel('DUTRange', (), {} ) Dashboard = DynamicModel('Dashboard', (), {} ) DataType = DynamicModel('DataType', (), {} ) DataTypeValuesInner = DynamicModel('DataTypeValuesInner', (), {} ) @@ -169,6 +178,8 @@ FindParamMatchesOperation = DynamicModel('FindParamMatchesOperation', (), {} ) FortinetEncapsulation = DynamicModel('FortinetEncapsulation', (), {} ) FortinetSettings = DynamicModel('FortinetSettings', (), {} ) +FrontPanel = DynamicModel('FrontPanel', (), {} ) +FrontPanelPortsByController = DynamicModel('FrontPanelPortsByController', (), {} ) FulfillmentRequest = DynamicModel('FulfillmentRequest', (), {} ) GenerateAllOperation = DynamicModel('GenerateAllOperation', (), {} ) GenerateCSVReportsOperation = DynamicModel('GenerateCSVReportsOperation', (), {} ) @@ -316,12 +327,14 @@ PepDUT = DynamicModel('PepDUT', (), {} ) PfsP2Group = DynamicModel('PfsP2Group', (), {} ) PlaylistMetadata = DynamicModel('PlaylistMetadata', (), {} ) +PlaylistSequencingMethod = DynamicModel('PlaylistSequencingMethod', (), {} ) Plugin = DynamicModel('Plugin', (), {} ) PluginStats = DynamicModel('PluginStats', (), {} ) Port = DynamicModel('Port', (), {} ) PortSettings = DynamicModel('PortSettings', (), {} ) PortsByController = DynamicModel('PortsByController', (), {} ) PortsByNode = DynamicModel('PortsByNode', (), {} ) +PortsByPanel = DynamicModel('PortsByPanel', (), {} ) PrepareTestOperation = DynamicModel('PrepareTestOperation', (), {} ) PreparedTestOptions = DynamicModel('PreparedTestOptions', (), {} ) PrfP1Algorithm = DynamicModel('PrfP1Algorithm', (), {} ) @@ -331,6 +344,7 @@ RTPEncryptionMode = DynamicModel('RTPEncryptionMode', (), {} ) RTPProfile = DynamicModel('RTPProfile', (), {} ) RTPProfileMeta = DynamicModel('RTPProfileMeta', (), {} ) +RebootComputeResourcesOperation = DynamicModel('RebootComputeResourcesOperation', (), {} ) RebootOperationInput = DynamicModel('RebootOperationInput', (), {} ) RebootPortsOperation = DynamicModel('RebootPortsOperation', (), {} ) Reference = DynamicModel('Reference', (), {} ) @@ -352,16 +366,22 @@ SecondaryObjective = DynamicModel('SecondaryObjective', (), {} ) SegmentType = DynamicModel('SegmentType', (), {} ) SelectedEnv = DynamicModel('SelectedEnv', (), {} ) +SequenceDataTypes = DynamicModel('SequenceDataTypes', (), {} ) +SequenceValue = DynamicModel('SequenceValue', (), {} ) +SequenceValueTypes = DynamicModel('SequenceValueTypes', (), {} ) Session = DynamicModel('Session', (), {} ) SessionReuseMethodTLS12 = DynamicModel('SessionReuseMethodTLS12', (), {} ) SessionReuseMethodTLS13 = DynamicModel('SessionReuseMethodTLS13', (), {} ) SetAggregationModeOperation = DynamicModel('SetAggregationModeOperation', (), {} ) SetControllerAppOperation = DynamicModel('SetControllerAppOperation', (), {} ) SetDpdkModeOperationInput = DynamicModel('SetDpdkModeOperationInput', (), {} ) -SetLinkStateOperation = DynamicModel('SetLinkStateOperation', (), {} ) +SetFrontPanelPortsLinkStateOperation = DynamicModel('SetFrontPanelPortsLinkStateOperation', (), {} ) SetNodesAppOperation = DynamicModel('SetNodesAppOperation', (), {} ) SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) +SetPortsLinkStateOperation = DynamicModel('SetPortsLinkStateOperation', (), {} ) +SimpleSequenceValue = DynamicModel('SimpleSequenceValue', (), {} ) SimulatedIdP = DynamicModel('SimulatedIdP', (), {} ) +SingleValue = DynamicModel('SingleValue', (), {} ) Snapshot = DynamicModel('Snapshot', (), {} ) SnowflakeExporter = DynamicModel('SnowflakeExporter', (), {} ) SortBodyField = DynamicModel('SortBodyField', (), {} ) @@ -375,6 +395,7 @@ StreamDirection = DynamicModel('StreamDirection', (), {} ) StreamPayloadType = DynamicModel('StreamPayloadType', (), {} ) StreamProfile = DynamicModel('StreamProfile', (), {} ) +SubStep = DynamicModel('SubStep', (), {} ) SupportedGroupTLS13 = DynamicModel('SupportedGroupTLS13', (), {} ) SystemInfo = DynamicModel('SystemInfo', (), {} ) TLSProfile = DynamicModel('TLSProfile', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index a7516f4..57762b5 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -30,8 +30,10 @@ class LinkNameException(Exception): from cyperf.models.activation_code_request import ActivationCodeRequest from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput +from cyperf.models.address import Address from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent +from cyperf.models.agent_assignment_by_front_panel_port import AgentAssignmentByFrontPanelPort from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort from cyperf.models.agent_assignment_details import AgentAssignmentDetails from cyperf.models.agent_assignments import AgentAssignments @@ -89,10 +91,15 @@ class LinkNameException(Exception): from cyperf.models.cipher_tls13 import CipherTLS13 from cyperf.models.cisco_any_connect_settings import CiscoAnyConnectSettings from cyperf.models.cisco_encapsulation import CiscoEncapsulation +from cyperf.models.clear_compute_resources_ownership_operation import ClearComputeResourcesOwnershipOperation +from cyperf.models.clear_front_panel_ports_ownership_operation import ClearFrontPanelPortsOwnershipOperation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command from cyperf.models.command_metadata import CommandMetadata from cyperf.models.compute_node import ComputeNode +from cyperf.models.compute_resource import ComputeResource +from cyperf.models.compute_resources_by_controller import ComputeResourcesByController +from cyperf.models.compute_resources_by_node import ComputeResourcesByNode from cyperf.models.config import Config from cyperf.models.config_category import ConfigCategory from cyperf.models.config_id import ConfigId @@ -110,11 +117,13 @@ class LinkNameException(Exception): from cyperf.models.create_app_or_attack_operation_input import CreateAppOrAttackOperationInput from cyperf.models.custom_dashboards import CustomDashboards from cyperf.models.custom_import_handler import CustomImportHandler +from cyperf.models.custom_sequence import CustomSequence from cyperf.models.custom_stat import CustomStat from cyperf.models.dns_resolver import DNSResolver from cyperf.models.dns_server import DNSServer from cyperf.models.dtls_settings import DTLSSettings from cyperf.models.dut_network import DUTNetwork +from cyperf.models.dut_range import DUTRange from cyperf.models.dashboard import Dashboard from cyperf.models.data_type import DataType from cyperf.models.data_type_values_inner import DataTypeValuesInner @@ -169,6 +178,8 @@ class LinkNameException(Exception): from cyperf.models.find_param_matches_operation import FindParamMatchesOperation from cyperf.models.fortinet_encapsulation import FortinetEncapsulation from cyperf.models.fortinet_settings import FortinetSettings +from cyperf.models.front_panel import FrontPanel +from cyperf.models.front_panel_ports_by_controller import FrontPanelPortsByController from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.models.generate_all_operation import GenerateAllOperation from cyperf.models.generate_csv_reports_operation import GenerateCSVReportsOperation @@ -316,12 +327,14 @@ class LinkNameException(Exception): from cyperf.models.pep_dut import PepDUT from cyperf.models.pfs_p2_group import PfsP2Group from cyperf.models.playlist_metadata import PlaylistMetadata +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.plugin import Plugin from cyperf.models.plugin_stats import PluginStats from cyperf.models.port import Port from cyperf.models.port_settings import PortSettings from cyperf.models.ports_by_controller import PortsByController from cyperf.models.ports_by_node import PortsByNode +from cyperf.models.ports_by_panel import PortsByPanel from cyperf.models.prepare_test_operation import PrepareTestOperation from cyperf.models.prepared_test_options import PreparedTestOptions from cyperf.models.prf_p1_algorithm import PrfP1Algorithm @@ -331,6 +344,7 @@ class LinkNameException(Exception): from cyperf.models.rtp_encryption_mode import RTPEncryptionMode from cyperf.models.rtp_profile import RTPProfile from cyperf.models.rtp_profile_meta import RTPProfileMeta +from cyperf.models.reboot_compute_resources_operation import RebootComputeResourcesOperation from cyperf.models.reboot_operation_input import RebootOperationInput from cyperf.models.reboot_ports_operation import RebootPortsOperation from cyperf.models.reference import Reference @@ -352,16 +366,22 @@ class LinkNameException(Exception): from cyperf.models.secondary_objective import SecondaryObjective from cyperf.models.segment_type import SegmentType from cyperf.models.selected_env import SelectedEnv +from cyperf.models.sequence_data_types import SequenceDataTypes +from cyperf.models.sequence_value import SequenceValue +from cyperf.models.sequence_value_types import SequenceValueTypes from cyperf.models.session import Session from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput -from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_front_panel_ports_link_state_operation import SetFrontPanelPortsLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput +from cyperf.models.set_ports_link_state_operation import SetPortsLinkStateOperation +from cyperf.models.simple_sequence_value import SimpleSequenceValue from cyperf.models.simulated_id_p import SimulatedIdP +from cyperf.models.single_value import SingleValue from cyperf.models.snapshot import Snapshot from cyperf.models.snowflake_exporter import SnowflakeExporter from cyperf.models.sort_body_field import SortBodyField @@ -375,6 +395,7 @@ class LinkNameException(Exception): from cyperf.models.stream_direction import StreamDirection from cyperf.models.stream_payload_type import StreamPayloadType from cyperf.models.stream_profile import StreamProfile +from cyperf.models.sub_step import SubStep from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 from cyperf.models.system_info import SystemInfo from cyperf.models.tls_profile import TLSProfile diff --git a/cyperf/models/action.py b/cyperf/models/action.py index 6a16cfc..6e029e0 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange +from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -45,9 +46,10 @@ class Action(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") + supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -146,6 +148,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index 6b185c7..2465540 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange +from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -45,9 +46,10 @@ class ActionBase(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") + supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -146,6 +148,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/agent_assignment_by_front_panel_port.py b/cyperf/models/agent_assignment_by_front_panel_port.py new file mode 100644 index 0000000..9f4dc70 --- /dev/null +++ b/cyperf/models/agent_assignment_by_front_panel_port.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.capture_settings import CaptureSettings +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class AgentAssignmentByFrontPanelPort(BaseModel): + """ + Details of an agent assignment by front panel port + """ # noqa: E501 + capture_settings: Optional[CaptureSettings] = Field(default=None, description="The capture settings of the front panel port that is assigned.", alias="captureSettings") + compute_resources_by_type: Optional[Dict[str, StrictInt]] = Field(default=None, description="The number of compute resources to assign per compute node type.", alias="computeResourcesByType") + front_panel_port_id: StrictStr = Field(description="The id of the front panel port that is assigned.", alias="frontPanelPortId") + id: StrictStr + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["captureSettings", "computeResourcesByType", "frontPanelPortId", "id", "links"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AgentAssignmentByFrontPanelPort from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of capture_settings + if self.capture_settings: + _dict['captureSettings'] = self.capture_settings.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AgentAssignmentByFrontPanelPort from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "captureSettings": CaptureSettings.from_dict(obj["captureSettings"]) if obj.get("captureSettings") is not None else None, + "computeResourcesByType": obj.get("computeResourcesByType"), + "frontPanelPortId": obj.get("frontPanelPortId"), + "id": obj.get("id"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index d2400e2..ea9c9bf 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.agent_assignment_by_front_panel_port import AgentAssignmentByFrontPanelPort from cyperf.models.agent_assignment_by_port import AgentAssignmentByPort from cyperf.models.agent_assignment_details import AgentAssignmentDetails from cyperf.models.api_link import APILink @@ -31,11 +32,12 @@ class AgentAssignments(BaseModel): """ The agents assigned to the current test configuration """ # noqa: E501 + by_front_panel_port: Optional[List[AgentAssignmentByFrontPanelPort]] = Field(default=None, description="The front panel ports assigned to the current test configuration.", alias="ByFrontPanelPort") by_id: Optional[List[AgentAssignmentDetails]] = Field(default=None, description="The agents statically assigned to the current test configuration.", alias="ByID") by_port: Optional[List[AgentAssignmentByPort]] = Field(default=None, description="The ports assigned to the current test configuration.", alias="ByPort") by_tag: Optional[List[StrictStr]] = Field(default=None, description="The tags according to which the agents are dynamically assigned.", alias="ByTag") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ByID", "ByPort", "ByTag", "links"] + __properties: ClassVar[List[str]] = ["ByFrontPanelPort", "ByID", "ByPort", "ByTag", "links"] model_config = ConfigDict( populate_by_name=True, @@ -76,6 +78,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in by_front_panel_port (list) + _items = [] + if self.by_front_panel_port: + for _item in self.by_front_panel_port: + if _item: + _items.append(_item.to_dict()) + _dict['ByFrontPanelPort'] = _items # override the default output from pydantic by calling `to_dict()` of each item in by_id (list) _items = [] if self.by_id: @@ -111,7 +120,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "ByID": ( [AgentAssignmentDetails.from_dict(_item) for _item in obj.get("ByID", [])] if obj.get("ByID") is not None else None), + "ByFrontPanelPort": ( [AgentAssignmentByFrontPanelPort.from_dict(_item) for _item in obj.get("ByFrontPanelPort", [])] if obj.get("ByFrontPanelPort") is not None else None), + "ByID": ( [AgentAssignmentDetails.from_dict(_item) for _item in obj.get("ByID", [])] if obj.get("ByID") is not None else None), "ByPort": ( [AgentAssignmentByPort.from_dict(_item) for _item in obj.get("ByPort", [])] if obj.get("ByPort") is not None else None), "ByTag": obj.get("ByTag") if obj.get("ByTag") is not None else [], "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) diff --git a/cyperf/models/agent_reservation.py b/cyperf/models/agent_reservation.py index cfe014e..4cf6977 100644 --- a/cyperf/models/agent_reservation.py +++ b/cyperf/models/agent_reservation.py @@ -30,11 +30,12 @@ class AgentReservation(BaseModel): """ # noqa: E501 agent_id: Optional[StrictStr] = Field(default=None, alias="agentId") agent_payload_names: Optional[List[StrictStr]] = Field(default=None, alias="agentPayloadNames") + front_panel_port_id: Optional[StrictStr] = Field(default=None, alias="frontPanelPortId") general_purpose_cpu_percent: Optional[StrictInt] = Field(default=None, alias="generalPurposeCPUPercent") interfaces: Optional[List[StrictStr]] = None ip_address_version_used: Optional[StrictStr] = Field(default=None, alias="ipAddressVersionUsed") optimization_mode: Optional[StrictStr] = Field(default=None, alias="optimizationMode") - __properties: ClassVar[List[str]] = ["agentId", "agentPayloadNames", "generalPurposeCPUPercent", "interfaces", "ipAddressVersionUsed", "optimizationMode"] + __properties: ClassVar[List[str]] = ["agentId", "agentPayloadNames", "frontPanelPortId", "generalPurposeCPUPercent", "interfaces", "ipAddressVersionUsed", "optimizationMode"] model_config = ConfigDict( populate_by_name=True, @@ -91,6 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "agentId": obj.get("agentId"), "agentPayloadNames": obj.get("agentPayloadNames") if obj.get("agentPayloadNames") is not None else [], + "frontPanelPortId": obj.get("frontPanelPortId"), "generalPurposeCPUPercent": obj.get("generalPurposeCPUPercent"), "interfaces": obj.get("interfaces") if obj.get("interfaces") is not None else [], "ipAddressVersionUsed": obj.get("ipAddressVersionUsed"), diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index 8559031..2b90483 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -25,6 +25,7 @@ from cyperf.models.external_resource_info import ExternalResourceInfo from cyperf.models.network_mapping import NetworkMapping from cyperf.models.objectives_and_timeline import ObjectivesAndTimeline +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union @@ -36,6 +37,7 @@ class ApplicationProfile(BaseModel): ApplicationProfile """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") + playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None @@ -52,7 +54,7 @@ class ApplicationProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateTrafficProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetTrafficProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Applications", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-applications", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), + "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index 03923e0..f261776 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.api_link import APILink from cyperf.models.exchange import Exchange +from cyperf.models.http_version import HTTPVersion from cyperf.models.params import Params from typing import Optional, Set, Union from typing_extensions import Self @@ -45,9 +46,10 @@ class AttackAction(BaseModel): port: Optional[StrictInt] = Field(default=None, description="The port of the destination host.", alias="Port") protocol_id: Optional[StrictStr] = Field(default=None, alias="ProtocolID") requires_uniqueness: Optional[StrictBool] = Field(default=None, description="If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands.", alias="RequiresUniqueness") + supported_http_versions: Optional[List[HTTPVersion]] = Field(default=None, description="The HTTP versions supported by the action.", alias="SupportedHTTPVersions") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "id", "links"] + __properties: ClassVar[List[str]] = ["DstHost", "Exchanges", "Index", "IsBanner", "IsDeprecated", "IsHostname", "IsLLMStrike", "IsStrike", "Name", "Params", "Port", "ProtocolID", "RequiresUniqueness", "SupportedHTTPVersions", "id", "links"] @field_validator('dst_host') def dst_host_validate_regular_expression(cls, value): @@ -146,6 +148,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Port": obj.get("Port"), "ProtocolID": obj.get("ProtocolID"), "RequiresUniqueness": obj.get("RequiresUniqueness"), + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index 643e4f6..7ac4116 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -25,6 +25,7 @@ from cyperf.models.attack_objectives_and_timeline import AttackObjectivesAndTimeline from cyperf.models.external_resource_info import ExternalResourceInfo from cyperf.models.network_mapping import NetworkMapping +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from cyperf.models.update_network_mapping import UpdateNetworkMapping from typing import Optional, Set, Union @@ -36,6 +37,7 @@ class AttackProfile(BaseModel): AttackProfile """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") + playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None @@ -52,7 +54,7 @@ class AttackProfile(BaseModel): _modify_tags_recursively_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,UpdateAttackProfileNetworkMapping" }) reset_tags_to_default: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="reset-tags-to-default") _reset_tags_to_default_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResetAttackProfileNetworkMapping" }) - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] + __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links", "Attacks", "DefaultNetworkMapping", "Name", "ObjectivesAndTimeline", "add-attacks", "modify-excluded-dut-recursively", "modify-tags-recursively", "reset-tags-to-default"] model_config = ConfigDict( populate_by_name=True, @@ -152,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), + "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index da9b587..330ab40 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union from typing_extensions import Self @@ -28,12 +28,14 @@ class ChassisInfo(BaseModel): """ ChassisInfo """ # noqa: E501 + aggregated_mode: Optional[StrictBool] = Field(default=None, description="Whether the ports of this compute node are aggregated", alias="aggregatedMode") checkout_id: Optional[StrictInt] = Field(default=None, description="The id of the compute node used for checkout licenses", alias="checkoutID") compute_node_id: Optional[StrictStr] = Field(default=None, description="The id of the compute node where the agent is running", alias="computeNodeID") - hw_platform: Optional[StrictStr] = Field(default=None, alias="hwPlatform") - hw_revision: Optional[StrictStr] = Field(default=None, alias="hwRevision") + front_panel_port_id: Optional[StrictStr] = Field(default=None, description="The ID of the Front Panel Port", alias="frontPanelPortID") + hw_platform: Optional[StrictStr] = Field(default=None, description="The hardware platform the corresponding port is running on", alias="hwPlatform") + hw_revision: Optional[StrictStr] = Field(default=None, description="The hardware revision of the underlying platform", alias="hwRevision") port_id: Optional[StrictStr] = Field(default=None, description="The id of the corresponding port", alias="portID") - __properties: ClassVar[List[str]] = ["checkoutID", "computeNodeID", "hwPlatform", "hwRevision", "portID"] + __properties: ClassVar[List[str]] = ["aggregatedMode", "checkoutID", "computeNodeID", "frontPanelPortID", "hwPlatform", "hwRevision", "portID"] model_config = ConfigDict( populate_by_name=True, @@ -68,10 +70,18 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "aggregated_mode", "checkout_id", "compute_node_id", + "front_panel_port_id", + "hw_platform", + "hw_revision", "port_id", ]) @@ -94,8 +104,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "checkoutID": obj.get("checkoutID"), + "aggregatedMode": obj.get("aggregatedMode"), + "checkoutID": obj.get("checkoutID"), "computeNodeID": obj.get("computeNodeID"), + "frontPanelPortID": obj.get("frontPanelPortID"), "hwPlatform": obj.get("hwPlatform"), "hwRevision": obj.get("hwRevision"), "portID": obj.get("portID") diff --git a/cyperf/models/clear_compute_resources_ownership_operation.py b/cyperf/models/clear_compute_resources_ownership_operation.py new file mode 100644 index 0000000..8523d78 --- /dev/null +++ b/cyperf/models/clear_compute_resources_ownership_operation.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.compute_resources_by_controller import ComputeResourcesByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ClearComputeResourcesOwnershipOperation(BaseModel): + """ + ClearComputeResourcesOwnershipOperation + """ # noqa: E501 + controllers: Optional[List[ComputeResourcesByController]] = Field(default=None, description="The controllers that the compute resources are part of.") + __properties: ClassVar[List[str]] = ["controllers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClearComputeResourcesOwnershipOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClearComputeResourcesOwnershipOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllers": ( [ComputeResourcesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/clear_front_panel_ports_ownership_operation.py b/cyperf/models/clear_front_panel_ports_ownership_operation.py new file mode 100644 index 0000000..4f4129f --- /dev/null +++ b/cyperf/models/clear_front_panel_ports_ownership_operation.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.front_panel_ports_by_controller import FrontPanelPortsByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ClearFrontPanelPortsOwnershipOperation(BaseModel): + """ + ClearFrontPanelPortsOwnershipOperation + """ # noqa: E501 + controllers: Optional[List[FrontPanelPortsByController]] = Field(default=None, description="The controllers that the front panel ports are part of.") + __properties: ClassVar[List[str]] = ["controllers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClearFrontPanelPortsOwnershipOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClearFrontPanelPortsOwnershipOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllers": ( [FrontPanelPortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index d0c1c0b..d8158ee 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -48,10 +48,11 @@ class CommandMetadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + supported_http_versions: Optional[List[StrictStr]] = Field(default=None, description="The HTTP versions supported by the application", alias="SupportedHTTPVersions") supported_protocols: Optional[List[StrictStr]] = Field(default=None, description="The list of protocols which support this command", alias="SupportedProtocols") supports_http2: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports HTTP2 multi-stream", alias="SupportsHTTP2") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedProtocols", "SupportsHTTP2", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsForAppTrafficOnly", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedHTTPVersions", "SupportedProtocols", "SupportsHTTP2", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -140,6 +141,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions") if obj.get("SupportedHTTPVersions") is not None else [], "SupportedProtocols": obj.get("SupportedProtocols") if obj.get("SupportedProtocols") is not None else [], "SupportsHTTP2": obj.get("SupportsHTTP2"), "Year": obj.get("Year") diff --git a/cyperf/models/compute_node.py b/cyperf/models/compute_node.py index 9327e8b..ca2bd1d 100644 --- a/cyperf/models/compute_node.py +++ b/cyperf/models/compute_node.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.app_mode import AppMode +from cyperf.models.compute_resource import ComputeResource from cyperf.models.health_issue import HealthIssue from cyperf.models.port import Port from typing import Optional, Set, Union @@ -34,6 +35,7 @@ class ComputeNode(BaseModel): """ # noqa: E501 aggregated_mode: Optional[StrictBool] = Field(default=None, description="Whether the ports of the compute node are aggregated or not", alias="aggregatedMode") app_mode: Optional[AppMode] = Field(default=None, alias="appMode") + compute_resources: Optional[List[ComputeResource]] = Field(default=None, description="The compute Resources of the compute node", alias="computeResources") health_details: Optional[List[HealthIssue]] = Field(default=None, description="A list with more details regarding the health of the compute node", alias="healthDetails") healthy: Optional[StrictBool] = Field(default=None, description="Whether the compute node has any health issue or not") id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the compute node") @@ -44,7 +46,8 @@ class ComputeNode(BaseModel): slot_number: Optional[StrictInt] = Field(default=None, description="The slot number of the compute node", alias="slotNumber") status: Optional[StrictStr] = Field(default=None, description="The current status of the compute node: ready or not ready") type: Optional[StrictStr] = Field(default=None, description="The type of the compute node") - __properties: ClassVar[List[str]] = ["aggregatedMode", "appMode", "healthDetails", "healthy", "id", "links", "name", "ports", "serial", "slotNumber", "status", "type"] + type_display_name: Optional[StrictStr] = Field(default=None, description="The display type name of the compute node", alias="typeDisplayName") + __properties: ClassVar[List[str]] = ["aggregatedMode", "appMode", "computeResources", "healthDetails", "healthy", "id", "links", "name", "ports", "serial", "slotNumber", "status", "type", "typeDisplayName"] model_config = ConfigDict( populate_by_name=True, @@ -88,6 +91,13 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of app_mode if self.app_mode: _dict['appMode'] = self.app_mode.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in compute_resources (list) + _items = [] + if self.compute_resources: + for _item in self.compute_resources: + if _item: + _items.append(_item.to_dict()) + _dict['computeResources'] = _items # override the default output from pydantic by calling `to_dict()` of each item in health_details (list) _items = [] if self.health_details: @@ -125,6 +135,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "aggregatedMode": obj.get("aggregatedMode"), "appMode": AppMode.from_dict(obj["appMode"]) if obj.get("appMode") is not None else None, + "computeResources": ( [ComputeResource.from_dict(_item) for _item in obj.get("computeResources", [])] if obj.get("computeResources") is not None else None), "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), @@ -134,7 +145,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "serial": obj.get("serial"), "slotNumber": obj.get("slotNumber"), "status": obj.get("status"), - "type": obj.get("type") + "type": obj.get("type"), + "typeDisplayName": obj.get("typeDisplayName") , "links": obj.get("links") }) diff --git a/cyperf/models/compute_resource.py b/cyperf/models/compute_resource.py new file mode 100644 index 0000000..8e5d924 --- /dev/null +++ b/cyperf/models/compute_resource.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ComputeResource(BaseModel): + """ + ComputeResource + """ # noqa: E501 + disabled: Optional[StrictBool] = Field(default=None, description="Whether the compute resource is disabled or not") + id: Optional[StrictStr] = Field(default=None, description="The compute resource's unique identifier") + link: Optional[StrictStr] = Field(default=None, description="The link state of the compute resource: up or down") + name: Optional[StrictStr] = Field(default=None, description="A user-friendly display name for the compute resource") + reserved_by: Optional[StrictStr] = Field(default=None, description="The owner of the compute resource", alias="reservedBy") + speed: Optional[StrictStr] = Field(default=None, description="The compute resource's speed") + status: Optional[StrictStr] = Field(default=None, description="The current status of the compute resource: ready or not ready") + traffic_status: Optional[StrictStr] = Field(default=None, description="The traffic status of the compute resource", alias="trafficStatus") + __properties: ClassVar[List[str]] = ["disabled", "id", "link", "name", "reservedBy", "speed", "status", "trafficStatus"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ComputeResource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ComputeResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "disabled": obj.get("disabled"), + "id": obj.get("id"), + "link": obj.get("link"), + "name": obj.get("name"), + "reservedBy": obj.get("reservedBy"), + "speed": obj.get("speed"), + "status": obj.get("status"), + "trafficStatus": obj.get("trafficStatus") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/compute_resources_by_controller.py b/cyperf/models/compute_resources_by_controller.py new file mode 100644 index 0000000..88408a5 --- /dev/null +++ b/cyperf/models/compute_resources_by_controller.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.compute_resources_by_node import ComputeResourcesByNode +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ComputeResourcesByController(BaseModel): + """ + ComputeResourcesByController + """ # noqa: E501 + compute_nodes: Optional[List[ComputeResourcesByNode]] = Field(default=None, description="The compute nodes that the compute resources are part of.", alias="computeNodes") + controller_id: Optional[StrictStr] = Field(default=None, description="The id of the controller that the compute resources are part of.", alias="controllerId") + __properties: ClassVar[List[str]] = ["computeNodes", "controllerId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ComputeResourcesByController from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in compute_nodes (list) + _items = [] + if self.compute_nodes: + for _item in self.compute_nodes: + if _item: + _items.append(_item.to_dict()) + _dict['computeNodes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ComputeResourcesByController from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "computeNodes": ( [ComputeResourcesByNode.from_dict(_item) for _item in obj.get("computeNodes", [])] if obj.get("computeNodes") is not None else None), + "controllerId": obj.get("controllerId") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/compute_resources_by_node.py b/cyperf/models/compute_resources_by_node.py new file mode 100644 index 0000000..7340aa4 --- /dev/null +++ b/cyperf/models/compute_resources_by_node.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ComputeResourcesByNode(BaseModel): + """ + ComputeResourcesByNode + """ # noqa: E501 + compute_node_id: Optional[StrictStr] = Field(default=None, description="The id of the compute node that the compute resources are part of.", alias="computeNodeId") + compute_resources: Optional[List[StrictStr]] = Field(default=None, description="The compute resource ids.", alias="computeResources") + __properties: ClassVar[List[str]] = ["computeNodeId", "computeResources"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ComputeResourcesByNode from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ComputeResourcesByNode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "computeNodeId": obj.get("computeNodeId"), + "computeResources": obj.get("computeResources") if obj.get("computeResources") is not None else [] + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/controller.py b/cyperf/models/controller.py index 3de31b8..0acffc6 100644 --- a/cyperf/models/controller.py +++ b/cyperf/models/controller.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink from cyperf.models.compute_node import ComputeNode +from cyperf.models.front_panel import FrontPanel from cyperf.models.health_issue import HealthIssue from typing import Optional, Set, Union from typing_extensions import Self @@ -32,6 +33,7 @@ class Controller(BaseModel): Controller """ # noqa: E501 compute_nodes: Optional[List[ComputeNode]] = Field(default=None, description="The compute nodes of the controller", alias="computeNodes") + front_panels: Optional[List[FrontPanel]] = Field(default=None, description="The front panels of the controller", alias="frontPanels") health_details: Optional[List[HealthIssue]] = Field(default=None, description="Details regarding any health issue of the controller", alias="healthDetails") healthy: Optional[StrictBool] = Field(default=None, description="Whether the controller has any health issue or not") id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the controller") @@ -39,7 +41,8 @@ class Controller(BaseModel): name: Optional[StrictStr] = Field(default=None, description="A user-friendly display name for the controller") serial: Optional[StrictStr] = Field(default=None, description="The serial of the controller") type: Optional[StrictStr] = Field(default=None, description="The type of the controller") - __properties: ClassVar[List[str]] = ["computeNodes", "healthDetails", "healthy", "id", "links", "name", "serial", "type"] + type_display_name: Optional[StrictStr] = Field(default=None, description="The display type name of the controller", alias="typeDisplayName") + __properties: ClassVar[List[str]] = ["computeNodes", "frontPanels", "healthDetails", "healthy", "id", "links", "name", "serial", "type", "typeDisplayName"] model_config = ConfigDict( populate_by_name=True, @@ -87,6 +90,13 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['computeNodes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in front_panels (list) + _items = [] + if self.front_panels: + for _item in self.front_panels: + if _item: + _items.append(_item.to_dict()) + _dict['frontPanels'] = _items # override the default output from pydantic by calling `to_dict()` of each item in health_details (list) _items = [] if self.health_details: @@ -116,13 +126,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "computeNodes": ( [ComputeNode.from_dict(_item) for _item in obj.get("computeNodes", [])] if obj.get("computeNodes") is not None else None), + "frontPanels": ( [FrontPanel.from_dict(_item) for _item in obj.get("frontPanels", [])] if obj.get("frontPanels") is not None else None), "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "name": obj.get("name"), "serial": obj.get("serial"), - "type": obj.get("type") + "type": obj.get("type"), + "typeDisplayName": obj.get("typeDisplayName") , "links": obj.get("links") }) diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index f02ea23..8d74b23 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from cyperf.models.address import Address from cyperf.models.api_link import APILink from cyperf.models.health_check_config import HealthCheckConfig from cyperf.models.params import Params @@ -54,6 +55,7 @@ class DUTNetwork(BaseModel): reverse_proxy_pep_dut: Optional[PepDUT] = Field(default=None, alias="ReverseProxyPepDUT") reverse_proxy_pep_dut_active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false)", alias="ReverseProxyPepDUTActive") server_dut_active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the server DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false)", alias="ServerDUTActive") + server_dut_address: Optional[Address] = Field(default=None, alias="ServerDUTAddress") server_dut_host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The hostname where the traffic goes if server DUT is active.", alias="ServerDUTHost") server_dut_port: Optional[StrictInt] = Field(default=None, description="The listen port for server-side DUT", alias="ServerDUTPort") tcp_health_check: Optional[HealthCheckConfig] = Field(default=None, description="The TCP HealthCheck configuration for DUT", alias="TCPHealthCheck") @@ -61,7 +63,7 @@ class DUTNetwork(BaseModel): active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false)") host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The hostname where the traffic goes if server DUT is active.") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "LLMModel", "LLMRequestURLPath", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "LLMModel", "LLMRequestURLPath", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTAddress", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -187,6 +189,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of reverse_proxy_pep_dut if self.reverse_proxy_pep_dut: _dict['ReverseProxyPepDUT'] = self.reverse_proxy_pep_dut.to_dict() + # override the default output from pydantic by calling `to_dict()` of server_dut_address + if self.server_dut_address: + _dict['ServerDUTAddress'] = self.server_dut_address.to_dict() # override the default output from pydantic by calling `to_dict()` of tcp_health_check if self.tcp_health_check: _dict['TCPHealthCheck'] = self.tcp_health_check.to_dict() @@ -232,6 +237,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "ReverseProxyPepDUT": PepDUT.from_dict(obj["ReverseProxyPepDUT"]) if obj.get("ReverseProxyPepDUT") is not None else None, "ReverseProxyPepDUTActive": obj.get("ReverseProxyPepDUTActive"), "ServerDUTActive": obj.get("ServerDUTActive"), + "ServerDUTAddress": Address.from_dict(obj["ServerDUTAddress"]) if obj.get("ServerDUTAddress") is not None else None, "ServerDUTHost": obj.get("ServerDUTHost"), "ServerDUTPort": obj.get("ServerDUTPort"), "TCPHealthCheck": HealthCheckConfig.from_dict(obj["TCPHealthCheck"]) if obj.get("TCPHealthCheck") is not None else None, diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 2b88b82..1fe348d 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -24,6 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer +from cyperf.models.sequence_value import SequenceValue from cyperf.models.vlan_range import VLANRange from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union @@ -40,6 +41,7 @@ class EmulatedRouterRange(BaseModel): gw_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The gateway start IP for the IPRange (default: 10.0.0.1).", alias="GwStart") host_count: Optional[StrictInt] = Field(default=None, description="The number of Host IPs generated (default: 1).", alias="HostCount") inner_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current IP range configuration", alias="InnerVlanRange") + ip_address: Optional[SequenceValue] = Field(default=None, alias="IpAddress") ip_auto: StrictBool = Field(description="A flag indicating if IP settings for the IPRange should be determined automatically (default: true).", alias="IpAuto") ip_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The IP incrementation rule (default: 0.0.0.1).", alias="IpIncr") ip_range_name: Annotated[str, Field(strict=True)] = Field(alias="IpRangeName") @@ -56,7 +58,7 @@ class EmulatedRouterRange(BaseModel): links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1).", alias="maxCountPerAgent") network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] + __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAddress", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] @field_validator('gw_start') def gw_start_validate_regular_expression(cls, value): @@ -137,6 +139,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of inner_vlan_range if self.inner_vlan_range: _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of ip_address + if self.ip_address: + _dict['IpAddress'] = self.ip_address.to_dict() # override the default output from pydantic by calling `to_dict()` of outer_vlan_range if self.outer_vlan_range: _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() @@ -167,6 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "GwStart": obj.get("GwStart"), "HostCount": obj.get("HostCount"), "InnerVlanRange": VLANRange.from_dict(obj["InnerVlanRange"]) if obj.get("InnerVlanRange") is not None else None, + "IpAddress": SequenceValue.from_dict(obj["IpAddress"]) if obj.get("IpAddress") is not None else None, "IpAuto": obj.get("IpAuto"), "IpIncr": obj.get("IpIncr"), "IpRangeName": obj.get("IpRangeName"), diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index 964ed14..0bf2674 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from cyperf.models.api_link import APILink +from cyperf.models.sequence_value import SequenceValue from cyperf.models.static_arp_entry import StaticARPEntry from typing import Optional, Set, Union from typing_extensions import Self @@ -32,6 +33,7 @@ class EthRange(BaseModel): The Ethernet Ranges assigned to the current test configuration """ # noqa: E501 count: Optional[StrictInt] = Field(default=None, alias="Count") + mac_address: Optional[SequenceValue] = Field(default=None, alias="MacAddress") mac_auto: StrictBool = Field(description="A flag indicating if the MAC address for the EthRange should be determined automatically (default: true).", alias="MacAuto") mac_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The MAC address increment rule for the EthRange (default: 00:00:00:00:00:01).", alias="MacIncr") mac_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The MAC start address for the EthRange (default: 00:11:01:00:00:01).", alias="MacStart") @@ -39,7 +41,7 @@ class EthRange(BaseModel): static_arp_table: Optional[List[StaticARPEntry]] = Field(default=None, alias="StaticARPTable") links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of MACs that should be assigned to each traffic agent for this Ethernet range segment in a valid test (default: 0, split equally between agents).", alias="maxCountPerAgent") - __properties: ClassVar[List[str]] = ["Count", "MacAuto", "MacIncr", "MacStart", "OneMacPerIP", "StaticARPTable", "links", "maxCountPerAgent"] + __properties: ClassVar[List[str]] = ["Count", "MacAddress", "MacAuto", "MacIncr", "MacStart", "OneMacPerIP", "StaticARPTable", "links", "maxCountPerAgent"] @field_validator('mac_incr') def mac_incr_validate_regular_expression(cls, value): @@ -100,6 +102,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of mac_address + if self.mac_address: + _dict['MacAddress'] = self.mac_address.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in static_arp_table (list) _items = [] if self.static_arp_table: @@ -129,6 +134,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Count": obj.get("Count"), + "MacAddress": SequenceValue.from_dict(obj["MacAddress"]) if obj.get("MacAddress") is not None else None, "MacAuto": obj.get("MacAuto"), "MacIncr": obj.get("MacIncr"), "MacStart": obj.get("MacStart"), diff --git a/cyperf/models/front_panel.py b/cyperf/models/front_panel.py new file mode 100644 index 0000000..67c2c9e --- /dev/null +++ b/cyperf/models/front_panel.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.health_issue import HealthIssue +from cyperf.models.port import Port +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class FrontPanel(BaseModel): + """ + FrontPanel + """ # noqa: E501 + fan_out_mode: Optional[StrictStr] = Field(default=None, description="The current fanOut mode of the front panel", alias="fanOutMode") + health_details: Optional[List[HealthIssue]] = Field(default=None, description="A list with more details regarding the health of the front panel", alias="healthDetails") + healthy: Optional[StrictBool] = Field(default=None, description="Whether the front panel has any health issue or not") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the front panel") + links: Optional[List[APILink]] = None + name: Optional[StrictStr] = Field(default=None, description="A user-friendly display name for the front panel") + ports: Optional[List[Port]] = Field(default=None, description="The front panel ports of the front panel") + status: Optional[StrictStr] = Field(default=None, description="The current status of the front panel: ready or not ready") + __properties: ClassVar[List[str]] = ["fanOutMode", "healthDetails", "healthy", "id", "links", "name", "ports", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FrontPanel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in health_details (list) + _items = [] + if self.health_details: + for _item in self.health_details: + if _item: + _items.append(_item.to_dict()) + _dict['healthDetails'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in ports (list) + _items = [] + if self.ports: + for _item in self.ports: + if _item: + _items.append(_item.to_dict()) + _dict['ports'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FrontPanel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "fanOutMode": obj.get("fanOutMode"), + "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), + "healthy": obj.get("healthy"), + "id": obj.get("id"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "name": obj.get("name"), + "ports": ( [Port.from_dict(_item) for _item in obj.get("ports", [])] if obj.get("ports") is not None else None), + "status": obj.get("status") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/front_panel_ports_by_controller.py b/cyperf/models/front_panel_ports_by_controller.py new file mode 100644 index 0000000..ec9f631 --- /dev/null +++ b/cyperf/models/front_panel_ports_by_controller.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.ports_by_panel import PortsByPanel +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class FrontPanelPortsByController(BaseModel): + """ + FrontPanelPortsByController + """ # noqa: E501 + controller_id: Optional[StrictStr] = Field(default=None, description="The id of the controller that the front panel ports are part of.", alias="controllerId") + front_panels: Optional[List[PortsByPanel]] = Field(default=None, description="The front panels that the ports are part of.", alias="frontPanels") + __properties: ClassVar[List[str]] = ["controllerId", "frontPanels"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FrontPanelPortsByController from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in front_panels (list) + _items = [] + if self.front_panels: + for _item in self.front_panels: + if _item: + _items.append(_item.to_dict()) + _dict['frontPanels'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FrontPanelPortsByController from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllerId": obj.get("controllerId"), + "frontPanels": ( [PortsByPanel.from_dict(_item) for _item in obj.get("frontPanels", [])] if obj.get("frontPanels") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index 9c83b38..58897c8 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -24,6 +24,7 @@ from cyperf.models.api_link import APILink from cyperf.models.automatic_ip_type import AutomaticIpType from cyperf.models.ip_ver import IpVer +from cyperf.models.sequence_value import SequenceValue from cyperf.models.vlan_range import VLANRange from cyperf.models.vlan_type import VLANType from typing import Optional, Set, Union @@ -40,6 +41,7 @@ class IPRange(BaseModel): gw_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The gateway start IP for the IPRange (default: 10.0.0.1).", alias="GwStart") host_count: Optional[StrictInt] = Field(default=None, description="The number of Host IPs generated (default: 1).", alias="HostCount") inner_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current IP range configuration", alias="InnerVlanRange") + ip_address: Optional[SequenceValue] = Field(default=None, alias="IpAddress") ip_auto: StrictBool = Field(description="A flag indicating if IP settings for the IPRange should be determined automatically (default: true).", alias="IpAuto") ip_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The IP incrementation rule (default: 0.0.0.1).", alias="IpIncr") ip_range_name: Annotated[str, Field(strict=True)] = Field(alias="IpRangeName") @@ -56,7 +58,7 @@ class IPRange(BaseModel): links: Optional[List[APILink]] = None max_count_per_agent: Optional[StrictInt] = Field(default=None, description="The maximum number of IPs that should be assigned to each traffic agent for this IP range segment in a valid test (default: 1).", alias="maxCountPerAgent") network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] + __properties: ClassVar[List[str]] = ["AutomaticIpType", "Count", "GwAuto", "GwStart", "HostCount", "InnerVlanRange", "IpAddress", "IpAuto", "IpIncr", "IpRangeName", "IpStart", "IpVer", "IsEmulatedRouter", "Mss", "MssAuto", "NetMask", "NetMaskAuto", "OuterVlanRange", "VLANType", "id", "links", "maxCountPerAgent", "networkTags"] @field_validator('gw_start') def gw_start_validate_regular_expression(cls, value): @@ -137,6 +139,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of inner_vlan_range if self.inner_vlan_range: _dict['InnerVlanRange'] = self.inner_vlan_range.to_dict() + # override the default output from pydantic by calling `to_dict()` of ip_address + if self.ip_address: + _dict['IpAddress'] = self.ip_address.to_dict() # override the default output from pydantic by calling `to_dict()` of outer_vlan_range if self.outer_vlan_range: _dict['OuterVlanRange'] = self.outer_vlan_range.to_dict() @@ -167,6 +172,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "GwStart": obj.get("GwStart"), "HostCount": obj.get("HostCount"), "InnerVlanRange": VLANRange.from_dict(obj["InnerVlanRange"]) if obj.get("InnerVlanRange") is not None else None, + "IpAddress": SequenceValue.from_dict(obj["IpAddress"]) if obj.get("IpAddress") is not None else None, "IpAuto": obj.get("IpAuto"), "IpIncr": obj.get("IpIncr"), "IpRangeName": obj.get("IpRangeName"), diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index 2753476..303751c 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set, Union @@ -36,8 +36,9 @@ class LocalSubnetConfig(BaseModel): prefix: StrictInt = Field(description="The network mask of the IP Range (default: 16).", alias="Prefix") start: Annotated[str, Field(strict=True)] = Field(description="The start IP for the IPRange (default: 10.0.0.10).", alias="Start") total_host_count: StrictStr = Field(alias="TotalHostCount") + wildcard_initiator_traffic: StrictBool = Field(alias="WildcardInitiatorTraffic") network_tags: List[StrictStr] = Field(description="A list of tags.", alias="networkTags") - __properties: ClassVar[List[str]] = ["HostCountPerTunnel", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "Start", "TotalHostCount", "networkTags"] + __properties: ClassVar[List[str]] = ["HostCountPerTunnel", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "Start", "TotalHostCount", "WildcardInitiatorTraffic", "networkTags"] @field_validator('hosts_increment') def hosts_increment_validate_regular_expression(cls, value): @@ -120,6 +121,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Prefix": obj.get("Prefix"), "Start": obj.get("Start"), "TotalHostCount": obj.get("TotalHostCount"), + "WildcardInitiatorTraffic": obj.get("WildcardInitiatorTraffic"), "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [] , "links": obj.get("links") diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 6e07d2b..137c4e2 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -47,9 +47,10 @@ class Metadata(BaseModel): sort_severity: Optional[StrictStr] = Field(default=None, description="The field by which the severity is sorted", alias="SortSeverity") static: Optional[StrictBool] = Field(default=None, description="If true, the application/strike is managed directly by the controller", alias="Static") supported_apps: Optional[List[StrictStr]] = Field(default=None, description="The apps that this strike can be used with", alias="SupportedApps") + supported_http_versions: Optional[List[StrictStr]] = Field(default=None, description="The HTTP versions supported by the application", alias="SupportedHTTPVersions") supports_http2: Optional[StrictBool] = Field(default=None, description="Indicates if the application supports HTTP2 multi-stream", alias="SupportsHTTP2") year: Optional[StrictStr] = Field(default=None, description="The year of the strike", alias="Year") - __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportsHTTP2", "Year"] + __properties: ClassVar[List[str]] = ["Direction", "IsBanner", "IsLLMStrike", "IsStreaming", "Keywords", "LegacyNames", "NoMultiFlowSupport", "Protocol", "RTPProfileMeta", "References", "RequiresUniqueness", "Severity", "SkipAttackGeneration", "SortSeverity", "Static", "SupportedApps", "SupportedHTTPVersions", "SupportsHTTP2", "Year"] model_config = ConfigDict( populate_by_name=True, @@ -137,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "SortSeverity": obj.get("SortSeverity"), "Static": obj.get("Static"), "SupportedApps": obj.get("SupportedApps") if obj.get("SupportedApps") is not None else [], + "SupportedHTTPVersions": obj.get("SupportedHTTPVersions") if obj.get("SupportedHTTPVersions") is not None else [], "SupportsHTTP2": obj.get("SupportsHTTP2"), "Year": obj.get("Year") , diff --git a/cyperf/models/pangp_encapsulation.py b/cyperf/models/pangp_encapsulation.py index 5b09a5a..88a533c 100644 --- a/cyperf/models/pangp_encapsulation.py +++ b/cyperf/models/pangp_encapsulation.py @@ -32,10 +32,11 @@ class PANGPEncapsulation(BaseModel): """ # noqa: E501 esp_over_udp_enabled: StrictBool = Field(alias="ESPOverUDPEnabled") esp_over_udp_settings: Optional[ESPOverUDPSettings] = Field(default=None, alias="ESPOverUDPSettings") + enable_ikev2: StrictBool = Field(alias="EnableIKEv2") encapsulation_mode: StrictStr = Field(description="The encapsulation mode for inner traffic.", alias="EncapsulationMode") udp_port: StrictInt = Field(alias="UdpPort") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["ESPOverUDPEnabled", "ESPOverUDPSettings", "EncapsulationMode", "UdpPort", "links"] + __properties: ClassVar[List[str]] = ["ESPOverUDPEnabled", "ESPOverUDPSettings", "EnableIKEv2", "EncapsulationMode", "UdpPort", "links"] @field_validator('encapsulation_mode') def encapsulation_mode_validate_enum(cls, value): @@ -109,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ESPOverUDPEnabled": obj.get("ESPOverUDPEnabled"), "ESPOverUDPSettings": ESPOverUDPSettings.from_dict(obj["ESPOverUDPSettings"]) if obj.get("ESPOverUDPSettings") is not None else None, + "EnableIKEv2": obj.get("EnableIKEv2"), "EncapsulationMode": obj.get("EncapsulationMode"), "UdpPort": obj.get("UdpPort"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) diff --git a/cyperf/models/ports_by_panel.py b/cyperf/models/ports_by_panel.py new file mode 100644 index 0000000..a5bf3c1 --- /dev/null +++ b/cyperf/models/ports_by_panel.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class PortsByPanel(BaseModel): + """ + PortsByPanel + """ # noqa: E501 + front_panel_id: Optional[StrictStr] = Field(default=None, description="The id of the front panel that the ports are part of.", alias="frontPanelId") + ports: Optional[List[StrictStr]] = Field(default=None, description="The port ids.") + __properties: ClassVar[List[str]] = ["frontPanelId", "ports"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PortsByPanel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PortsByPanel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "frontPanelId": obj.get("frontPanelId"), + "ports": obj.get("ports") if obj.get("ports") is not None else [] + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/reboot_compute_resources_operation.py b/cyperf/models/reboot_compute_resources_operation.py new file mode 100644 index 0000000..fdfcd2a --- /dev/null +++ b/cyperf/models/reboot_compute_resources_operation.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.compute_resources_by_controller import ComputeResourcesByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class RebootComputeResourcesOperation(BaseModel): + """ + RebootComputeResourcesOperation + """ # noqa: E501 + controllers: Optional[List[ComputeResourcesByController]] = Field(default=None, description="The controllers that the compute resources are part of.") + __properties: ClassVar[List[str]] = ["controllers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RebootComputeResourcesOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RebootComputeResourcesOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllers": ( [ComputeResourcesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/remote_subnet_config.py b/cyperf/models/remote_subnet_config.py index b9e55d1..a4b6e66 100644 --- a/cyperf/models/remote_subnet_config.py +++ b/cyperf/models/remote_subnet_config.py @@ -36,7 +36,8 @@ class RemoteSubnetConfig(BaseModel): prefix: StrictInt = Field(description="The length (in bits) of the subnet mask to be applied to all the addresses created in the range.", alias="Prefix") single_remote_subnet: StrictBool = Field(alias="SingleRemoteSubnet") start: Annotated[str, Field(strict=True)] = Field(description="The base address for enumerating all the local subnets in the range", alias="Start") - __properties: ClassVar[List[str]] = ["Automatic", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "SingleRemoteSubnet", "Start"] + wildcard_responder_traffic: StrictBool = Field(alias="WildcardResponderTraffic") + __properties: ClassVar[List[str]] = ["Automatic", "HostsIncrement", "HostsPrefix", "Increment", "Prefix", "SingleRemoteSubnet", "Start", "WildcardResponderTraffic"] @field_validator('hosts_increment') def hosts_increment_validate_regular_expression(cls, value): @@ -118,7 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Increment": obj.get("Increment"), "Prefix": obj.get("Prefix"), "SingleRemoteSubnet": obj.get("SingleRemoteSubnet"), - "Start": obj.get("Start") + "Start": obj.get("Start"), + "WildcardResponderTraffic": obj.get("WildcardResponderTraffic") , "links": obj.get("links") }) diff --git a/cyperf/models/set_front_panel_ports_link_state_operation.py b/cyperf/models/set_front_panel_ports_link_state_operation.py new file mode 100644 index 0000000..d4a92b9 --- /dev/null +++ b/cyperf/models/set_front_panel_ports_link_state_operation.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from cyperf.models.front_panel_ports_by_controller import FrontPanelPortsByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SetFrontPanelPortsLinkStateOperation(BaseModel): + """ + SetFrontPanelPortsLinkStateOperation + """ # noqa: E501 + controllers: Optional[List[FrontPanelPortsByController]] = Field(default=None, description="The controllers that the front panel ports are part of.") + link: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The desired link state.") + __properties: ClassVar[List[str]] = ["controllers", "link"] + + @field_validator('link') + def link_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(UP|DOWN)$", value): + raise ValueError(r"must validate the regular expression /^(UP|DOWN)$/") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetFrontPanelPortsLinkStateOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetFrontPanelPortsLinkStateOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllers": ( [FrontPanelPortsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), + "link": obj.get("link") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/set_link_state_operation.py b/cyperf/models/set_ports_link_state_operation.py similarity index 93% rename from cyperf/models/set_link_state_operation.py rename to cyperf/models/set_ports_link_state_operation.py index f5eaa24..035fe02 100644 --- a/cyperf/models/set_link_state_operation.py +++ b/cyperf/models/set_ports_link_state_operation.py @@ -26,9 +26,9 @@ from typing_extensions import Self from pydantic import Field, PrivateAttr -class SetLinkStateOperation(BaseModel): +class SetPortsLinkStateOperation(BaseModel): """ - SetLinkStateOperation + SetPortsLinkStateOperation """ # noqa: E501 controllers: Optional[List[PortsByController]] = Field(default=None, description="The controllers that the ports are part of.") link: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The desired link state.") @@ -62,7 +62,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SetLinkStateOperation from a JSON string""" + """Create an instance of SetPortsLinkStateOperation from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -94,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SetLinkStateOperation from a dict""" + """Create an instance of SetPortsLinkStateOperation from a dict""" if obj is None: return None diff --git a/cyperf/models/stream_profile.py b/cyperf/models/stream_profile.py index 5c13d58..a7d3737 100644 --- a/cyperf/models/stream_profile.py +++ b/cyperf/models/stream_profile.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.stream_payload_type import StreamPayloadType from typing import Optional, Set, Union @@ -35,7 +35,8 @@ class StreamProfile(BaseModel): total_estimated_throughput: Optional[StrictStr] = Field(default=None, alias="totalEstimatedThroughput") total_estimated_throughput_per_simulated_user: Optional[StrictStr] = Field(default=None, alias="totalEstimatedThroughputPerSimulatedUser") unique_pool_size: Optional[StrictInt] = Field(default=None, alias="uniquePoolSize") - __properties: ClassVar[List[str]] = ["packetRate", "payloadSize", "payloadType", "totalEstimatedThroughput", "totalEstimatedThroughputPerSimulatedUser", "uniquePoolSize"] + unrestricted_packet_rate: Optional[StrictBool] = Field(default=None, alias="unrestrictedPacketRate") + __properties: ClassVar[List[str]] = ["packetRate", "payloadSize", "payloadType", "totalEstimatedThroughput", "totalEstimatedThroughputPerSimulatedUser", "uniquePoolSize", "unrestrictedPacketRate"] model_config = ConfigDict( populate_by_name=True, @@ -95,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "payloadType": obj.get("payloadType"), "totalEstimatedThroughput": obj.get("totalEstimatedThroughput"), "totalEstimatedThroughputPerSimulatedUser": obj.get("totalEstimatedThroughputPerSimulatedUser"), - "uniquePoolSize": obj.get("uniquePoolSize") + "uniquePoolSize": obj.get("uniquePoolSize"), + "unrestrictedPacketRate": obj.get("unrestrictedPacketRate") , "links": obj.get("links") }) diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index e480756..6e10b0d 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.api_link import APILink +from cyperf.models.playlist_sequencing_method import PlaylistSequencingMethod from cyperf.models.traffic_settings import TrafficSettings from typing import Optional, Set, Union from typing_extensions import Self @@ -31,11 +32,12 @@ class TrafficProfileBase(BaseModel): TrafficProfileBase """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="Indicates whether the profile is enabled or not.", alias="Active") + playlist_sequencing_method: Optional[PlaylistSequencingMethod] = Field(default=None, alias="PlaylistSequencingMethod") traffic_settings: Optional[TrafficSettings] = Field(default=None, alias="TrafficSettings") use_all_source_ips_per_user: Optional[StrictBool] = Field(default=None, description="Indicates whether one or all source IPs are used for each simulated user.", alias="UseAllSourceIPsPerUser") id: Optional[StrictStr] = None links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Active", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] + __properties: ClassVar[List[str]] = ["Active", "PlaylistSequencingMethod", "TrafficSettings", "UseAllSourceIPsPerUser", "id", "links"] model_config = ConfigDict( populate_by_name=True, @@ -101,6 +103,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "Active": obj.get("Active"), + "PlaylistSequencingMethod": obj.get("PlaylistSequencingMethod"), "TrafficSettings": TrafficSettings.from_dict(obj["TrafficSettings"]) if obj.get("TrafficSettings") is not None else None, "UseAllSourceIPsPerUser": obj.get("UseAllSourceIPsPerUser"), "id": obj.get("id"), diff --git a/docs/Action.md b/docs/Action.md index 0e584a6..c832d9d 100644 --- a/docs/Action.md +++ b/docs/Action.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] +**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/ActionBase.md b/docs/ActionBase.md index be8a2e2..f419c41 100644 --- a/docs/ActionBase.md +++ b/docs/ActionBase.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] +**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/AgentAssignmentByFrontPanelPort.md b/docs/AgentAssignmentByFrontPanelPort.md new file mode 100644 index 0000000..8a4e9ab --- /dev/null +++ b/docs/AgentAssignmentByFrontPanelPort.md @@ -0,0 +1,34 @@ +# AgentAssignmentByFrontPanelPort + +Details of an agent assignment by front panel port + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capture_settings** | [**CaptureSettings**](CaptureSettings.md) | The capture settings of the front panel port that is assigned. | [optional] +**compute_resources_by_type** | **Dict[str, int]** | The number of compute resources to assign per compute node type. | [optional] +**front_panel_port_id** | **str** | The id of the front panel port that is assigned. | +**id** | **str** | | +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.agent_assignment_by_front_panel_port import AgentAssignmentByFrontPanelPort + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentAssignmentByFrontPanelPort from a JSON string +agent_assignment_by_front_panel_port_instance = AgentAssignmentByFrontPanelPort.from_json(json) +# print the JSON string representation of the object +print(AgentAssignmentByFrontPanelPort.to_json()) + +# convert the object into a dict +agent_assignment_by_front_panel_port_dict = agent_assignment_by_front_panel_port_instance.to_dict() +# create an instance of AgentAssignmentByFrontPanelPort from a dict +agent_assignment_by_front_panel_port_from_dict = AgentAssignmentByFrontPanelPort.from_dict(agent_assignment_by_front_panel_port_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentAssignments.md b/docs/AgentAssignments.md index 2b0cca7..64a3012 100644 --- a/docs/AgentAssignments.md +++ b/docs/AgentAssignments.md @@ -6,6 +6,7 @@ The agents assigned to the current test configuration Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**by_front_panel_port** | [**List[AgentAssignmentByFrontPanelPort]**](AgentAssignmentByFrontPanelPort.md) | The front panel ports assigned to the current test configuration. | [optional] **by_id** | [**List[AgentAssignmentDetails]**](AgentAssignmentDetails.md) | The agents statically assigned to the current test configuration. | [optional] **by_port** | [**List[AgentAssignmentByPort]**](AgentAssignmentByPort.md) | The ports assigned to the current test configuration. | [optional] **by_tag** | **List[str]** | The tags according to which the agents are dynamically assigned. | [optional] diff --git a/docs/AgentReservation.md b/docs/AgentReservation.md index 16a565a..205b542 100644 --- a/docs/AgentReservation.md +++ b/docs/AgentReservation.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **agent_id** | **str** | | [optional] **agent_payload_names** | **List[str]** | | [optional] +**front_panel_port_id** | **str** | | [optional] **general_purpose_cpu_percent** | **int** | | [optional] **interfaces** | **List[str]** | | [optional] **ip_address_version_used** | **str** | | [optional] diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index e0b7374..ff8134a 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -8,12 +8,18 @@ Method | HTTP request | Description [**get_agent_by_id**](AgentsApi.md#get_agent_by_id) | **GET** /api/v2/agents/{agentId} | [**get_agents**](AgentsApi.md#get_agents) | **GET** /api/v2/agents | [**get_agents_tags**](AgentsApi.md#get_agents_tags) | **GET** /api/v2/tags | +[**get_compute_node_compute_resource_by_id**](AgentsApi.md#get_compute_node_compute_resource_by_id) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/compute-resources/{computeResourceId} | +[**get_compute_node_compute_resources**](AgentsApi.md#get_compute_node_compute_resources) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/compute-resources | [**get_compute_node_port_by_id**](AgentsApi.md#get_compute_node_port_by_id) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports/{portId} | [**get_compute_node_ports**](AgentsApi.md#get_compute_node_ports) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports | [**get_controller_by_id**](AgentsApi.md#get_controller_by_id) | **GET** /api/v2/controllers/{controllerId} | [**get_controller_compute_node_by_id**](AgentsApi.md#get_controller_compute_node_by_id) | **GET** /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId} | [**get_controller_compute_nodes**](AgentsApi.md#get_controller_compute_nodes) | **GET** /api/v2/controllers/{controllerId}/compute-nodes | +[**get_controller_front_panel_by_id**](AgentsApi.md#get_controller_front_panel_by_id) | **GET** /api/v2/controllers/{controllerId}/front-panels/{frontPanelId} | +[**get_controller_front_panels**](AgentsApi.md#get_controller_front_panels) | **GET** /api/v2/controllers/{controllerId}/front-panels | [**get_controllers**](AgentsApi.md#get_controllers) | **GET** /api/v2/controllers | +[**get_front_panel_port_by_id**](AgentsApi.md#get_front_panel_port_by_id) | **GET** /api/v2/controllers/{controllerId}/front-panels/{frontPanelId}/ports/{portId} | +[**get_front_panel_ports**](AgentsApi.md#get_front_panel_ports) | **GET** /api/v2/controllers/{controllerId}/front-panels/{frontPanelId}/ports | [**patch_agent**](AgentsApi.md#patch_agent) | **PATCH** /api/v2/agents/{agentId} | [**start_agents_batch_delete**](AgentsApi.md#start_agents_batch_delete) | **POST** /api/v2/agents/operations/batch-delete | [**start_agents_export_files**](AgentsApi.md#start_agents_export_files) | **POST** /api/v2/agents/operations/exportFiles | @@ -23,10 +29,14 @@ Method | HTTP request | Description [**start_agents_set_dpdk_mode**](AgentsApi.md#start_agents_set_dpdk_mode) | **POST** /api/v2/agents/operations/set-dpdk-mode | [**start_agents_set_ntp**](AgentsApi.md#start_agents_set_ntp) | **POST** /api/v2/agents/operations/set-ntp | [**start_agents_update**](AgentsApi.md#start_agents_update) | **POST** /api/v2/agents/operations/update | +[**start_controllers_clear_compute_resource_ownership**](AgentsApi.md#start_controllers_clear_compute_resource_ownership) | **POST** /api/v2/controllers/operations/clear-compute-resource-ownership | +[**start_controllers_clear_front_panel_port_ownership**](AgentsApi.md#start_controllers_clear_front_panel_port_ownership) | **POST** /api/v2/controllers/operations/clear-front-panel-port-ownership | [**start_controllers_clear_port_ownership**](AgentsApi.md#start_controllers_clear_port_ownership) | **POST** /api/v2/controllers/operations/clear-port-ownership | [**start_controllers_power_cycle_nodes**](AgentsApi.md#start_controllers_power_cycle_nodes) | **POST** /api/v2/controllers/operations/power-cycle-nodes | +[**start_controllers_reboot_compute_resource**](AgentsApi.md#start_controllers_reboot_compute_resource) | **POST** /api/v2/controllers/operations/reboot-compute-resource | [**start_controllers_reboot_port**](AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | [**start_controllers_set_app**](AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | +[**start_controllers_set_front_panel_port_link_state**](AgentsApi.md#start_controllers_set_front_panel_port_link_state) | **POST** /api/v2/controllers/operations/set-front-panel-port-link-state | [**start_controllers_set_node_aggregation**](AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | [**start_controllers_set_node_app**](AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | [**start_controllers_set_port_link_state**](AgentsApi.md#start_controllers_set_port_link_state) | **POST** /api/v2/controllers/operations/set-port-link-state | @@ -358,6 +368,169 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_compute_node_compute_resource_by_id** +> ComputeResource get_compute_node_compute_resource_by_id(controller_id, compute_node_id, compute_resource_id) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.compute_resource import ComputeResource +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + controller_id = 'controller_id_example' # str | The ID of the controller. + compute_node_id = 'compute_node_id_example' # str | The ID of the compute node. + compute_resource_id = 'compute_resource_id_example' # str | The ID of the compute resource. + + try: + api_response = api_instance.get_compute_node_compute_resource_by_id(controller_id, compute_node_id, compute_resource_id) + print("The response of AgentsApi->get_compute_node_compute_resource_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->get_compute_node_compute_resource_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **controller_id** | **str**| The ID of the controller. | + **compute_node_id** | **str**| The ID of the compute node. | + **compute_resource_id** | **str**| The ID of the compute resource. | + +### Return type + +[**ComputeResource**](ComputeResource.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**404** | A resource with the specified ID was not found. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_compute_node_compute_resources** +> List[ComputeResource] get_compute_node_compute_resources(controller_id, compute_node_id, take=take, skip=skip) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.compute_resource import ComputeResource +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + controller_id = 'controller_id_example' # str | The ID of the controller. + compute_node_id = 'compute_node_id_example' # str | The ID of the compute node. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_compute_node_compute_resources(controller_id, compute_node_id, take=take, skip=skip) + print("The response of AgentsApi->get_compute_node_compute_resources:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->get_compute_node_compute_resources: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **controller_id** | **str**| The ID of the controller. | + **compute_node_id** | **str**| The ID of the compute node. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**List[ComputeResource]**](ComputeResource.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_compute_node_port_by_id** > Port get_compute_node_port_by_id(controller_id, compute_node_id, port_id) @@ -722,7 +895,649 @@ with cyperf.ApiClient(configuration) as api_client: print("The response of AgentsApi->get_controller_compute_nodes:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->get_controller_compute_nodes: %s\n" % e) + print("Exception when calling AgentsApi->get_controller_compute_nodes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **controller_id** | **str**| The ID of the controller. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**List[ComputeNode]**](ComputeNode.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_controller_front_panel_by_id** +> FrontPanel get_controller_front_panel_by_id(controller_id, front_panel_id) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.front_panel import FrontPanel +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + controller_id = 'controller_id_example' # str | The ID of the controller. + front_panel_id = 'front_panel_id_example' # str | The ID of the front panel. + + try: + api_response = api_instance.get_controller_front_panel_by_id(controller_id, front_panel_id) + print("The response of AgentsApi->get_controller_front_panel_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->get_controller_front_panel_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **controller_id** | **str**| The ID of the controller. | + **front_panel_id** | **str**| The ID of the front panel. | + +### Return type + +[**FrontPanel**](FrontPanel.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**404** | A resource with the specified ID was not found. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_controller_front_panels** +> List[FrontPanel] get_controller_front_panels(controller_id, take=take, skip=skip) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.front_panel import FrontPanel +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + controller_id = 'controller_id_example' # str | The ID of the controller. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_controller_front_panels(controller_id, take=take, skip=skip) + print("The response of AgentsApi->get_controller_front_panels:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->get_controller_front_panels: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **controller_id** | **str**| The ID of the controller. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**List[FrontPanel]**](FrontPanel.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_controllers** +> GetControllers200Response get_controllers(take=take, skip=skip, include=include) + + + +Get the controllers chain. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_controllers200_response import GetControllers200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + include = 'include_example' # str | Specifies if the sub-fields that are objects should be included. (optional) + + try: + api_response = api_instance.get_controllers(take=take, skip=skip, include=include) + print("The response of AgentsApi->get_controllers:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->get_controllers: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + **include** | **str**| Specifies if the sub-fields that are objects should be included. | [optional] + +### Return type + +[**GetControllers200Response**](GetControllers200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of controllers. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_front_panel_port_by_id** +> Port get_front_panel_port_by_id(controller_id, front_panel_id, port_id) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.port import Port +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + controller_id = 'controller_id_example' # str | The ID of the controller. + front_panel_id = 'front_panel_id_example' # str | The ID of the front panel. + port_id = 'port_id_example' # str | The ID of the port. + + try: + api_response = api_instance.get_front_panel_port_by_id(controller_id, front_panel_id, port_id) + print("The response of AgentsApi->get_front_panel_port_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->get_front_panel_port_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **controller_id** | **str**| The ID of the controller. | + **front_panel_id** | **str**| The ID of the front panel. | + **port_id** | **str**| The ID of the port. | + +### Return type + +[**Port**](Port.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**404** | A resource with the specified ID was not found. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_front_panel_ports** +> List[Port] get_front_panel_ports(controller_id, front_panel_id, take=take, skip=skip) + + + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.port import Port +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + controller_id = 'controller_id_example' # str | The ID of the controller. + front_panel_id = 'front_panel_id_example' # str | The ID of the front panel. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_front_panel_ports(controller_id, front_panel_id, take=take, skip=skip) + print("The response of AgentsApi->get_front_panel_ports:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->get_front_panel_ports: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **controller_id** | **str**| The ID of the controller. | + **front_panel_id** | **str**| The ID of the front panel. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**List[Port]**](Port.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_agent** +> patch_agent(agent_id, agent=agent) + + + +Update a particular agent. Only non-null fields are updated. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.agent import Agent +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + agent_id = 'agent_id_example' # str | The ID of the agent. + agent = cyperf.Agent() # Agent | (optional) + + try: + api_instance.patch_agent(agent_id, agent=agent) + except Exception as e: + print("Exception when calling AgentsApi->patch_agent: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_id** | **str**| The ID of the agent. | + **agent** | [**Agent**](Agent.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The agent was successfully updated. | - | +**404** | An agent with the specified ID was not found. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_agents_batch_delete** +> AsyncContext start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) + + + +Remove multiple agents. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + start_agents_batch_delete_request_inner = [cyperf.StartAgentsBatchDeleteRequestInner()] # List[StartAgentsBatchDeleteRequestInner] | (optional) + + try: + api_response = api_instance.start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) + print("The response of AgentsApi->start_agents_batch_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->start_agents_batch_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_agents_batch_delete_request_inner** | [**List[StartAgentsBatchDeleteRequestInner]**](StartAgentsBatchDeleteRequestInner.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_agents_export_files** +> AsyncContext start_agents_export_files(export_files_operation_input=export_files_operation_input) + + + +Sends export files requests to a list of agents. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.export_files_operation_input import ExportFilesOperationInput +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + export_files_operation_input = cyperf.ExportFilesOperationInput() # ExportFilesOperationInput | (optional) + + try: + api_response = api_instance.start_agents_export_files(export_files_operation_input=export_files_operation_input) + print("The response of AgentsApi->start_agents_export_files:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->start_agents_export_files: %s\n" % e) ``` @@ -732,13 +1547,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **controller_id** | **str**| The ID of the controller. | - **take** | **int**| The number of search results to return | [optional] - **skip** | **int**| The number of search results to skip | [optional] + **export_files_operation_input** | [**ExportFilesOperationInput**](ExportFilesOperationInput.md)| | [optional] ### Return type -[**List[ComputeNode]**](ComputeNode.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -746,24 +1559,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**500** | Unexpected error | - | +**202** | Details about the operation that just started | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_controllers** -> GetControllers200Response get_controllers(take=take, skip=skip, include=include) +# **start_agents_reboot** +> AsyncContext start_agents_reboot(reboot_operation_input=reboot_operation_input) -Get the controllers chain. +Reboot the agents specified in the request. ### Example @@ -772,7 +1584,8 @@ Get the controllers chain. ```python import cyperf -from cyperf.models.get_controllers200_response import GetControllers200Response +from cyperf.models.async_context import AsyncContext +from cyperf.models.reboot_operation_input import RebootOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -795,16 +1608,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - take = 56 # int | The number of search results to return (optional) - skip = 56 # int | The number of search results to skip (optional) - include = 'include_example' # str | Specifies if the sub-fields that are objects should be included. (optional) + reboot_operation_input = cyperf.RebootOperationInput() # RebootOperationInput | (optional) try: - api_response = api_instance.get_controllers(take=take, skip=skip, include=include) - print("The response of AgentsApi->get_controllers:\n") + api_response = api_instance.start_agents_reboot(reboot_operation_input=reboot_operation_input) + print("The response of AgentsApi->start_agents_reboot:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->get_controllers: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_reboot: %s\n" % e) ``` @@ -814,13 +1625,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **take** | **int**| The number of search results to return | [optional] - **skip** | **int**| The number of search results to skip | [optional] - **include** | **str**| Specifies if the sub-fields that are objects should be included. | [optional] + **reboot_operation_input** | [**RebootOperationInput**](RebootOperationInput.md)| | [optional] ### Return type -[**GetControllers200Response**](GetControllers200Response.md) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -828,24 +1637,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of controllers. | - | -**500** | Unexpected error | - | +**202** | Details about the operation that just started | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **patch_agent** -> patch_agent(agent_id, agent=agent) +# **start_agents_release** +> AsyncContext start_agents_release(release_operation_input=release_operation_input) -Update a particular agent. Only non-null fields are updated. +Releases all the agents from the given session. ### Example @@ -854,7 +1662,8 @@ Update a particular agent. Only non-null fields are updated. ```python import cyperf -from cyperf.models.agent import Agent +from cyperf.models.async_context import AsyncContext +from cyperf.models.release_operation_input import ReleaseOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -877,13 +1686,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - agent_id = 'agent_id_example' # str | The ID of the agent. - agent = cyperf.Agent() # Agent | (optional) + release_operation_input = cyperf.ReleaseOperationInput() # ReleaseOperationInput | (optional) try: - api_instance.patch_agent(agent_id, agent=agent) + api_response = api_instance.start_agents_release(release_operation_input=release_operation_input) + print("The response of AgentsApi->start_agents_release:\n") + pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->patch_agent: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_release: %s\n" % e) ``` @@ -893,12 +1703,11 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **agent_id** | **str**| The ID of the agent. | - **agent** | [**Agent**](Agent.md)| | [optional] + **release_operation_input** | [**ReleaseOperationInput**](ReleaseOperationInput.md)| | [optional] ### Return type -void (empty response body) +[**AsyncContext**](AsyncContext.md) ### Authorization @@ -913,18 +1722,16 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | The agent was successfully updated. | - | -**404** | An agent with the specified ID was not found. | - | -**500** | Unexpected error | - | +**202** | Details about the operation that just started | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_batch_delete** -> AsyncContext start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) +# **start_agents_reserve** +> AsyncContext start_agents_reserve(reserve_operation_input=reserve_operation_input) -Remove multiple agents. +Reserves all the agents from the given session. ### Example @@ -934,7 +1741,7 @@ Remove multiple agents. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner +from cyperf.models.reserve_operation_input import ReserveOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -957,14 +1764,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - start_agents_batch_delete_request_inner = [cyperf.StartAgentsBatchDeleteRequestInner()] # List[StartAgentsBatchDeleteRequestInner] | (optional) + reserve_operation_input = cyperf.ReserveOperationInput() # ReserveOperationInput | (optional) try: - api_response = api_instance.start_agents_batch_delete(start_agents_batch_delete_request_inner=start_agents_batch_delete_request_inner) - print("The response of AgentsApi->start_agents_batch_delete:\n") + api_response = api_instance.start_agents_reserve(reserve_operation_input=reserve_operation_input) + print("The response of AgentsApi->start_agents_reserve:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_batch_delete: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_reserve: %s\n" % e) ``` @@ -974,7 +1781,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **start_agents_batch_delete_request_inner** | [**List[StartAgentsBatchDeleteRequestInner]**](StartAgentsBatchDeleteRequestInner.md)| | [optional] + **reserve_operation_input** | [**ReserveOperationInput**](ReserveOperationInput.md)| | [optional] ### Return type @@ -997,12 +1804,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_export_files** -> AsyncContext start_agents_export_files(export_files_operation_input=export_files_operation_input) +# **start_agents_set_dpdk_mode** +> AsyncContext start_agents_set_dpdk_mode(set_dpdk_mode_operation_input=set_dpdk_mode_operation_input) -Sends export files requests to a list of agents. +Enable/disable DPDK for a list of agents. ### Example @@ -1012,7 +1819,7 @@ Sends export files requests to a list of agents. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.export_files_operation_input import ExportFilesOperationInput +from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -1035,14 +1842,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - export_files_operation_input = cyperf.ExportFilesOperationInput() # ExportFilesOperationInput | (optional) + set_dpdk_mode_operation_input = cyperf.SetDpdkModeOperationInput() # SetDpdkModeOperationInput | (optional) try: - api_response = api_instance.start_agents_export_files(export_files_operation_input=export_files_operation_input) - print("The response of AgentsApi->start_agents_export_files:\n") + api_response = api_instance.start_agents_set_dpdk_mode(set_dpdk_mode_operation_input=set_dpdk_mode_operation_input) + print("The response of AgentsApi->start_agents_set_dpdk_mode:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_export_files: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_set_dpdk_mode: %s\n" % e) ``` @@ -1052,7 +1859,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **export_files_operation_input** | [**ExportFilesOperationInput**](ExportFilesOperationInput.md)| | [optional] + **set_dpdk_mode_operation_input** | [**SetDpdkModeOperationInput**](SetDpdkModeOperationInput.md)| | [optional] ### Return type @@ -1075,12 +1882,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_reboot** -> AsyncContext start_agents_reboot(reboot_operation_input=reboot_operation_input) +# **start_agents_set_ntp** +> AsyncContext start_agents_set_ntp(set_ntp_operation_input=set_ntp_operation_input) -Reboot the agents specified in the request. +Set the NTP servers for a list of agents. ### Example @@ -1090,7 +1897,7 @@ Reboot the agents specified in the request. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.reboot_operation_input import RebootOperationInput +from cyperf.models.set_ntp_operation_input import SetNtpOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -1113,14 +1920,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - reboot_operation_input = cyperf.RebootOperationInput() # RebootOperationInput | (optional) + set_ntp_operation_input = cyperf.SetNtpOperationInput() # SetNtpOperationInput | (optional) try: - api_response = api_instance.start_agents_reboot(reboot_operation_input=reboot_operation_input) - print("The response of AgentsApi->start_agents_reboot:\n") + api_response = api_instance.start_agents_set_ntp(set_ntp_operation_input=set_ntp_operation_input) + print("The response of AgentsApi->start_agents_set_ntp:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_reboot: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_set_ntp: %s\n" % e) ``` @@ -1130,7 +1937,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reboot_operation_input** | [**RebootOperationInput**](RebootOperationInput.md)| | [optional] + **set_ntp_operation_input** | [**SetNtpOperationInput**](SetNtpOperationInput.md)| | [optional] ### Return type @@ -1153,12 +1960,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_release** -> AsyncContext start_agents_release(release_operation_input=release_operation_input) +# **start_agents_update** +> AsyncContext start_agents_update() -Releases all the agents from the given session. +Update agents to the recommended version. ### Example @@ -1168,7 +1975,6 @@ Releases all the agents from the given session. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.release_operation_input import ReleaseOperationInput from cyperf.rest import ApiException from pprint import pprint @@ -1191,24 +1997,20 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - release_operation_input = cyperf.ReleaseOperationInput() # ReleaseOperationInput | (optional) try: - api_response = api_instance.start_agents_release(release_operation_input=release_operation_input) - print("The response of AgentsApi->start_agents_release:\n") + api_response = api_instance.start_agents_update() + print("The response of AgentsApi->start_agents_update:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_release: %s\n" % e) + print("Exception when calling AgentsApi->start_agents_update: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **release_operation_input** | [**ReleaseOperationInput**](ReleaseOperationInput.md)| | [optional] +This endpoint does not need any parameter. ### Return type @@ -1220,7 +2022,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -1231,12 +2033,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_reserve** -> AsyncContext start_agents_reserve(reserve_operation_input=reserve_operation_input) +# **start_controllers_clear_compute_resource_ownership** +> AsyncContext start_controllers_clear_compute_resource_ownership(clear_compute_resources_ownership_operation=clear_compute_resources_ownership_operation) -Reserves all the agents from the given session. +Clear the ownership of the compute resources. ### Example @@ -1246,7 +2048,7 @@ Reserves all the agents from the given session. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.reserve_operation_input import ReserveOperationInput +from cyperf.models.clear_compute_resources_ownership_operation import ClearComputeResourcesOwnershipOperation from cyperf.rest import ApiException from pprint import pprint @@ -1269,14 +2071,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - reserve_operation_input = cyperf.ReserveOperationInput() # ReserveOperationInput | (optional) + clear_compute_resources_ownership_operation = cyperf.ClearComputeResourcesOwnershipOperation() # ClearComputeResourcesOwnershipOperation | (optional) try: - api_response = api_instance.start_agents_reserve(reserve_operation_input=reserve_operation_input) - print("The response of AgentsApi->start_agents_reserve:\n") + api_response = api_instance.start_controllers_clear_compute_resource_ownership(clear_compute_resources_ownership_operation=clear_compute_resources_ownership_operation) + print("The response of AgentsApi->start_controllers_clear_compute_resource_ownership:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_reserve: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_clear_compute_resource_ownership: %s\n" % e) ``` @@ -1286,7 +2088,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reserve_operation_input** | [**ReserveOperationInput**](ReserveOperationInput.md)| | [optional] + **clear_compute_resources_ownership_operation** | [**ClearComputeResourcesOwnershipOperation**](ClearComputeResourcesOwnershipOperation.md)| | [optional] ### Return type @@ -1309,12 +2111,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_set_dpdk_mode** -> AsyncContext start_agents_set_dpdk_mode(set_dpdk_mode_operation_input=set_dpdk_mode_operation_input) +# **start_controllers_clear_front_panel_port_ownership** +> AsyncContext start_controllers_clear_front_panel_port_ownership(clear_front_panel_ports_ownership_operation=clear_front_panel_ports_ownership_operation) -Enable/disable DPDK for a list of agents. +Clear the ownership of the front panel ports. ### Example @@ -1324,7 +2126,7 @@ Enable/disable DPDK for a list of agents. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput +from cyperf.models.clear_front_panel_ports_ownership_operation import ClearFrontPanelPortsOwnershipOperation from cyperf.rest import ApiException from pprint import pprint @@ -1347,14 +2149,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_dpdk_mode_operation_input = cyperf.SetDpdkModeOperationInput() # SetDpdkModeOperationInput | (optional) + clear_front_panel_ports_ownership_operation = cyperf.ClearFrontPanelPortsOwnershipOperation() # ClearFrontPanelPortsOwnershipOperation | (optional) try: - api_response = api_instance.start_agents_set_dpdk_mode(set_dpdk_mode_operation_input=set_dpdk_mode_operation_input) - print("The response of AgentsApi->start_agents_set_dpdk_mode:\n") + api_response = api_instance.start_controllers_clear_front_panel_port_ownership(clear_front_panel_ports_ownership_operation=clear_front_panel_ports_ownership_operation) + print("The response of AgentsApi->start_controllers_clear_front_panel_port_ownership:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_set_dpdk_mode: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_clear_front_panel_port_ownership: %s\n" % e) ``` @@ -1364,7 +2166,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_dpdk_mode_operation_input** | [**SetDpdkModeOperationInput**](SetDpdkModeOperationInput.md)| | [optional] + **clear_front_panel_ports_ownership_operation** | [**ClearFrontPanelPortsOwnershipOperation**](ClearFrontPanelPortsOwnershipOperation.md)| | [optional] ### Return type @@ -1387,12 +2189,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_set_ntp** -> AsyncContext start_agents_set_ntp(set_ntp_operation_input=set_ntp_operation_input) +# **start_controllers_clear_port_ownership** +> AsyncContext start_controllers_clear_port_ownership(clear_ports_ownership_operation=clear_ports_ownership_operation) -Set the NTP servers for a list of agents. +Clear the ownership of the ports. ### Example @@ -1402,7 +2204,7 @@ Set the NTP servers for a list of agents. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_ntp_operation_input import SetNtpOperationInput +from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.rest import ApiException from pprint import pprint @@ -1425,14 +2227,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_ntp_operation_input = cyperf.SetNtpOperationInput() # SetNtpOperationInput | (optional) + clear_ports_ownership_operation = cyperf.ClearPortsOwnershipOperation() # ClearPortsOwnershipOperation | (optional) try: - api_response = api_instance.start_agents_set_ntp(set_ntp_operation_input=set_ntp_operation_input) - print("The response of AgentsApi->start_agents_set_ntp:\n") + api_response = api_instance.start_controllers_clear_port_ownership(clear_ports_ownership_operation=clear_ports_ownership_operation) + print("The response of AgentsApi->start_controllers_clear_port_ownership:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_set_ntp: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_clear_port_ownership: %s\n" % e) ``` @@ -1442,7 +2244,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_ntp_operation_input** | [**SetNtpOperationInput**](SetNtpOperationInput.md)| | [optional] + **clear_ports_ownership_operation** | [**ClearPortsOwnershipOperation**](ClearPortsOwnershipOperation.md)| | [optional] ### Return type @@ -1465,12 +2267,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_agents_update** -> AsyncContext start_agents_update() +# **start_controllers_power_cycle_nodes** +> AsyncContext start_controllers_power_cycle_nodes(nodes_power_cycle_operation=nodes_power_cycle_operation) -Update agents to the recommended version. +Power cycle the compute nodes. ### Example @@ -1480,6 +2282,7 @@ Update agents to the recommended version. ```python import cyperf from cyperf.models.async_context import AsyncContext +from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation from cyperf.rest import ApiException from pprint import pprint @@ -1502,20 +2305,24 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) + nodes_power_cycle_operation = cyperf.NodesPowerCycleOperation() # NodesPowerCycleOperation | (optional) try: - api_response = api_instance.start_agents_update() - print("The response of AgentsApi->start_agents_update:\n") + api_response = api_instance.start_controllers_power_cycle_nodes(nodes_power_cycle_operation=nodes_power_cycle_operation) + print("The response of AgentsApi->start_controllers_power_cycle_nodes:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_agents_update: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_power_cycle_nodes: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nodes_power_cycle_operation** | [**NodesPowerCycleOperation**](NodesPowerCycleOperation.md)| | [optional] ### Return type @@ -1527,7 +2334,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -1538,12 +2345,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_clear_port_ownership** -> AsyncContext start_controllers_clear_port_ownership(clear_ports_ownership_operation=clear_ports_ownership_operation) +# **start_controllers_reboot_compute_resource** +> AsyncContext start_controllers_reboot_compute_resource(reboot_compute_resources_operation=reboot_compute_resources_operation) -Clear the ownership of the ports. +Reboot compute resources. ### Example @@ -1553,7 +2360,7 @@ Clear the ownership of the ports. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation +from cyperf.models.reboot_compute_resources_operation import RebootComputeResourcesOperation from cyperf.rest import ApiException from pprint import pprint @@ -1576,14 +2383,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - clear_ports_ownership_operation = cyperf.ClearPortsOwnershipOperation() # ClearPortsOwnershipOperation | (optional) + reboot_compute_resources_operation = cyperf.RebootComputeResourcesOperation() # RebootComputeResourcesOperation | (optional) try: - api_response = api_instance.start_controllers_clear_port_ownership(clear_ports_ownership_operation=clear_ports_ownership_operation) - print("The response of AgentsApi->start_controllers_clear_port_ownership:\n") + api_response = api_instance.start_controllers_reboot_compute_resource(reboot_compute_resources_operation=reboot_compute_resources_operation) + print("The response of AgentsApi->start_controllers_reboot_compute_resource:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_clear_port_ownership: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_reboot_compute_resource: %s\n" % e) ``` @@ -1593,7 +2400,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clear_ports_ownership_operation** | [**ClearPortsOwnershipOperation**](ClearPortsOwnershipOperation.md)| | [optional] + **reboot_compute_resources_operation** | [**RebootComputeResourcesOperation**](RebootComputeResourcesOperation.md)| | [optional] ### Return type @@ -1616,12 +2423,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_power_cycle_nodes** -> AsyncContext start_controllers_power_cycle_nodes(nodes_power_cycle_operation=nodes_power_cycle_operation) +# **start_controllers_reboot_port** +> AsyncContext start_controllers_reboot_port(reboot_ports_operation=reboot_ports_operation) -Power cycle the compute nodes. +Reboot ports. ### Example @@ -1631,7 +2438,7 @@ Power cycle the compute nodes. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation +from cyperf.models.reboot_ports_operation import RebootPortsOperation from cyperf.rest import ApiException from pprint import pprint @@ -1654,14 +2461,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - nodes_power_cycle_operation = cyperf.NodesPowerCycleOperation() # NodesPowerCycleOperation | (optional) + reboot_ports_operation = cyperf.RebootPortsOperation() # RebootPortsOperation | (optional) try: - api_response = api_instance.start_controllers_power_cycle_nodes(nodes_power_cycle_operation=nodes_power_cycle_operation) - print("The response of AgentsApi->start_controllers_power_cycle_nodes:\n") + api_response = api_instance.start_controllers_reboot_port(reboot_ports_operation=reboot_ports_operation) + print("The response of AgentsApi->start_controllers_reboot_port:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_power_cycle_nodes: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_reboot_port: %s\n" % e) ``` @@ -1671,7 +2478,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **nodes_power_cycle_operation** | [**NodesPowerCycleOperation**](NodesPowerCycleOperation.md)| | [optional] + **reboot_ports_operation** | [**RebootPortsOperation**](RebootPortsOperation.md)| | [optional] ### Return type @@ -1694,12 +2501,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_reboot_port** -> AsyncContext start_controllers_reboot_port(reboot_ports_operation=reboot_ports_operation) +# **start_controllers_set_app** +> AsyncContext start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) -Reboot ports. +Set the active app of the controllers. ### Example @@ -1709,7 +2516,7 @@ Reboot ports. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.reboot_ports_operation import RebootPortsOperation +from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.rest import ApiException from pprint import pprint @@ -1732,14 +2539,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - reboot_ports_operation = cyperf.RebootPortsOperation() # RebootPortsOperation | (optional) + set_controller_app_operation = cyperf.SetControllerAppOperation() # SetControllerAppOperation | (optional) try: - api_response = api_instance.start_controllers_reboot_port(reboot_ports_operation=reboot_ports_operation) - print("The response of AgentsApi->start_controllers_reboot_port:\n") + api_response = api_instance.start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) + print("The response of AgentsApi->start_controllers_set_app:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_reboot_port: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_set_app: %s\n" % e) ``` @@ -1749,7 +2556,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reboot_ports_operation** | [**RebootPortsOperation**](RebootPortsOperation.md)| | [optional] + **set_controller_app_operation** | [**SetControllerAppOperation**](SetControllerAppOperation.md)| | [optional] ### Return type @@ -1772,12 +2579,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_controllers_set_app** -> AsyncContext start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) +# **start_controllers_set_front_panel_port_link_state** +> AsyncContext start_controllers_set_front_panel_port_link_state(set_front_panel_ports_link_state_operation=set_front_panel_ports_link_state_operation) -Set the active app of the controllers. +Set the link state of the front panel ports. ### Example @@ -1787,7 +2594,7 @@ Set the active app of the controllers. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_controller_app_operation import SetControllerAppOperation +from cyperf.models.set_front_panel_ports_link_state_operation import SetFrontPanelPortsLinkStateOperation from cyperf.rest import ApiException from pprint import pprint @@ -1810,14 +2617,14 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_controller_app_operation = cyperf.SetControllerAppOperation() # SetControllerAppOperation | (optional) + set_front_panel_ports_link_state_operation = cyperf.SetFrontPanelPortsLinkStateOperation() # SetFrontPanelPortsLinkStateOperation | (optional) try: - api_response = api_instance.start_controllers_set_app(set_controller_app_operation=set_controller_app_operation) - print("The response of AgentsApi->start_controllers_set_app:\n") + api_response = api_instance.start_controllers_set_front_panel_port_link_state(set_front_panel_ports_link_state_operation=set_front_panel_ports_link_state_operation) + print("The response of AgentsApi->start_controllers_set_front_panel_port_link_state:\n") pprint(api_response) except Exception as e: - print("Exception when calling AgentsApi->start_controllers_set_app: %s\n" % e) + print("Exception when calling AgentsApi->start_controllers_set_front_panel_port_link_state: %s\n" % e) ``` @@ -1827,7 +2634,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_controller_app_operation** | [**SetControllerAppOperation**](SetControllerAppOperation.md)| | [optional] + **set_front_panel_ports_link_state_operation** | [**SetFrontPanelPortsLinkStateOperation**](SetFrontPanelPortsLinkStateOperation.md)| | [optional] ### Return type @@ -2007,7 +2814,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start_controllers_set_port_link_state** -> AsyncContext start_controllers_set_port_link_state(set_link_state_operation=set_link_state_operation) +> AsyncContext start_controllers_set_port_link_state(set_ports_link_state_operation=set_ports_link_state_operation) @@ -2021,7 +2828,7 @@ Set the link state of the ports. ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_ports_link_state_operation import SetPortsLinkStateOperation from cyperf.rest import ApiException from pprint import pprint @@ -2044,10 +2851,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.AgentsApi(api_client) - set_link_state_operation = cyperf.SetLinkStateOperation() # SetLinkStateOperation | (optional) + set_ports_link_state_operation = cyperf.SetPortsLinkStateOperation() # SetPortsLinkStateOperation | (optional) try: - api_response = api_instance.start_controllers_set_port_link_state(set_link_state_operation=set_link_state_operation) + api_response = api_instance.start_controllers_set_port_link_state(set_ports_link_state_operation=set_ports_link_state_operation) print("The response of AgentsApi->start_controllers_set_port_link_state:\n") pprint(api_response) except Exception as e: @@ -2061,7 +2868,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **set_link_state_operation** | [**SetLinkStateOperation**](SetLinkStateOperation.md)| | [optional] + **set_ports_link_state_operation** | [**SetPortsLinkStateOperation**](SetPortsLinkStateOperation.md)| | [optional] ### Return type diff --git a/docs/ApplicationProfile.md b/docs/ApplicationProfile.md index 6cde695..c2fac4f 100644 --- a/docs/ApplicationProfile.md +++ b/docs/ApplicationProfile.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] +**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] diff --git a/docs/AttackAction.md b/docs/AttackAction.md index cf9e1dd..75b7c94 100644 --- a/docs/AttackAction.md +++ b/docs/AttackAction.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **port** | **int** | The port of the destination host. | [optional] **protocol_id** | **str** | | [optional] **requires_uniqueness** | **bool** | If true, for applications with the same protocol id, application/attack must have been uniquely identified in previous commands. | [optional] +**supported_http_versions** | [**List[HTTPVersion]**](HTTPVersion.md) | The HTTP versions supported by the action. | [optional] **id** | **str** | | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/AttackProfile.md b/docs/AttackProfile.md index 4d64831..0c42c28 100644 --- a/docs/AttackProfile.md +++ b/docs/AttackProfile.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] +**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] diff --git a/docs/ChassisInfo.md b/docs/ChassisInfo.md index 5cc85f3..5655c76 100644 --- a/docs/ChassisInfo.md +++ b/docs/ChassisInfo.md @@ -5,10 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**aggregated_mode** | **bool** | Whether the ports of this compute node are aggregated | [optional] [readonly] **checkout_id** | **int** | The id of the compute node used for checkout licenses | [optional] [readonly] **compute_node_id** | **str** | The id of the compute node where the agent is running | [optional] [readonly] -**hw_platform** | **str** | | [optional] -**hw_revision** | **str** | | [optional] +**front_panel_port_id** | **str** | The ID of the Front Panel Port | [optional] [readonly] +**hw_platform** | **str** | The hardware platform the corresponding port is running on | [optional] [readonly] +**hw_revision** | **str** | The hardware revision of the underlying platform | [optional] [readonly] **port_id** | **str** | The id of the corresponding port | [optional] [readonly] ## Example diff --git a/docs/ClearComputeResourcesOwnershipOperation.md b/docs/ClearComputeResourcesOwnershipOperation.md new file mode 100644 index 0000000..8cf0b78 --- /dev/null +++ b/docs/ClearComputeResourcesOwnershipOperation.md @@ -0,0 +1,29 @@ +# ClearComputeResourcesOwnershipOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**List[ComputeResourcesByController]**](ComputeResourcesByController.md) | The controllers that the compute resources are part of. | [optional] + +## Example + +```python +from cyperf.models.clear_compute_resources_ownership_operation import ClearComputeResourcesOwnershipOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ClearComputeResourcesOwnershipOperation from a JSON string +clear_compute_resources_ownership_operation_instance = ClearComputeResourcesOwnershipOperation.from_json(json) +# print the JSON string representation of the object +print(ClearComputeResourcesOwnershipOperation.to_json()) + +# convert the object into a dict +clear_compute_resources_ownership_operation_dict = clear_compute_resources_ownership_operation_instance.to_dict() +# create an instance of ClearComputeResourcesOwnershipOperation from a dict +clear_compute_resources_ownership_operation_from_dict = ClearComputeResourcesOwnershipOperation.from_dict(clear_compute_resources_ownership_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ClearFrontPanelPortsOwnershipOperation.md b/docs/ClearFrontPanelPortsOwnershipOperation.md new file mode 100644 index 0000000..d49e2c3 --- /dev/null +++ b/docs/ClearFrontPanelPortsOwnershipOperation.md @@ -0,0 +1,29 @@ +# ClearFrontPanelPortsOwnershipOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**List[FrontPanelPortsByController]**](FrontPanelPortsByController.md) | The controllers that the front panel ports are part of. | [optional] + +## Example + +```python +from cyperf.models.clear_front_panel_ports_ownership_operation import ClearFrontPanelPortsOwnershipOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ClearFrontPanelPortsOwnershipOperation from a JSON string +clear_front_panel_ports_ownership_operation_instance = ClearFrontPanelPortsOwnershipOperation.from_json(json) +# print the JSON string representation of the object +print(ClearFrontPanelPortsOwnershipOperation.to_json()) + +# convert the object into a dict +clear_front_panel_ports_ownership_operation_dict = clear_front_panel_ports_ownership_operation_instance.to_dict() +# create an instance of ClearFrontPanelPortsOwnershipOperation from a dict +clear_front_panel_ports_ownership_operation_from_dict = ClearFrontPanelPortsOwnershipOperation.from_dict(clear_front_panel_ports_ownership_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CommandMetadata.md b/docs/CommandMetadata.md index 849dde1..469a6cc 100644 --- a/docs/CommandMetadata.md +++ b/docs/CommandMetadata.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**supported_http_versions** | **List[str]** | The HTTP versions supported by the application | [optional] **supported_protocols** | **List[str]** | The list of protocols which support this command | [optional] **supports_http2** | **bool** | Indicates if the application supports HTTP2 multi-stream | [optional] **year** | **str** | The year of the strike | [optional] diff --git a/docs/ComputeNode.md b/docs/ComputeNode.md index 2f93893..9a45359 100644 --- a/docs/ComputeNode.md +++ b/docs/ComputeNode.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **aggregated_mode** | **bool** | Whether the ports of the compute node are aggregated or not | [optional] **app_mode** | [**AppMode**](AppMode.md) | | [optional] +**compute_resources** | [**List[ComputeResource]**](ComputeResource.md) | The compute Resources of the compute node | [optional] **health_details** | [**List[HealthIssue]**](HealthIssue.md) | A list with more details regarding the health of the compute node | [optional] **healthy** | **bool** | Whether the compute node has any health issue or not | [optional] **id** | **str** | The unique identifier of the compute node | [optional] @@ -17,6 +18,7 @@ Name | Type | Description | Notes **slot_number** | **int** | The slot number of the compute node | [optional] **status** | **str** | The current status of the compute node: ready or not ready | [optional] **type** | **str** | The type of the compute node | [optional] +**type_display_name** | **str** | The display type name of the compute node | [optional] ## Example diff --git a/docs/ComputeResource.md b/docs/ComputeResource.md new file mode 100644 index 0000000..cafb67a --- /dev/null +++ b/docs/ComputeResource.md @@ -0,0 +1,36 @@ +# ComputeResource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disabled** | **bool** | Whether the compute resource is disabled or not | [optional] +**id** | **str** | The compute resource's unique identifier | [optional] +**link** | **str** | The link state of the compute resource: up or down | [optional] +**name** | **str** | A user-friendly display name for the compute resource | [optional] +**reserved_by** | **str** | The owner of the compute resource | [optional] +**speed** | **str** | The compute resource's speed | [optional] +**status** | **str** | The current status of the compute resource: ready or not ready | [optional] +**traffic_status** | **str** | The traffic status of the compute resource | [optional] + +## Example + +```python +from cyperf.models.compute_resource import ComputeResource + +# TODO update the JSON string below +json = "{}" +# create an instance of ComputeResource from a JSON string +compute_resource_instance = ComputeResource.from_json(json) +# print the JSON string representation of the object +print(ComputeResource.to_json()) + +# convert the object into a dict +compute_resource_dict = compute_resource_instance.to_dict() +# create an instance of ComputeResource from a dict +compute_resource_from_dict = ComputeResource.from_dict(compute_resource_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputeResourcesByController.md b/docs/ComputeResourcesByController.md new file mode 100644 index 0000000..9c14221 --- /dev/null +++ b/docs/ComputeResourcesByController.md @@ -0,0 +1,30 @@ +# ComputeResourcesByController + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**compute_nodes** | [**List[ComputeResourcesByNode]**](ComputeResourcesByNode.md) | The compute nodes that the compute resources are part of. | [optional] +**controller_id** | **str** | The id of the controller that the compute resources are part of. | [optional] + +## Example + +```python +from cyperf.models.compute_resources_by_controller import ComputeResourcesByController + +# TODO update the JSON string below +json = "{}" +# create an instance of ComputeResourcesByController from a JSON string +compute_resources_by_controller_instance = ComputeResourcesByController.from_json(json) +# print the JSON string representation of the object +print(ComputeResourcesByController.to_json()) + +# convert the object into a dict +compute_resources_by_controller_dict = compute_resources_by_controller_instance.to_dict() +# create an instance of ComputeResourcesByController from a dict +compute_resources_by_controller_from_dict = ComputeResourcesByController.from_dict(compute_resources_by_controller_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputeResourcesByNode.md b/docs/ComputeResourcesByNode.md new file mode 100644 index 0000000..429a63f --- /dev/null +++ b/docs/ComputeResourcesByNode.md @@ -0,0 +1,30 @@ +# ComputeResourcesByNode + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**compute_node_id** | **str** | The id of the compute node that the compute resources are part of. | [optional] +**compute_resources** | **List[str]** | The compute resource ids. | [optional] + +## Example + +```python +from cyperf.models.compute_resources_by_node import ComputeResourcesByNode + +# TODO update the JSON string below +json = "{}" +# create an instance of ComputeResourcesByNode from a JSON string +compute_resources_by_node_instance = ComputeResourcesByNode.from_json(json) +# print the JSON string representation of the object +print(ComputeResourcesByNode.to_json()) + +# convert the object into a dict +compute_resources_by_node_dict = compute_resources_by_node_instance.to_dict() +# create an instance of ComputeResourcesByNode from a dict +compute_resources_by_node_from_dict = ComputeResourcesByNode.from_dict(compute_resources_by_node_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Controller.md b/docs/Controller.md index 07f53cc..ebd86e6 100644 --- a/docs/Controller.md +++ b/docs/Controller.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **compute_nodes** | [**List[ComputeNode]**](ComputeNode.md) | The compute nodes of the controller | [optional] +**front_panels** | [**List[FrontPanel]**](FrontPanel.md) | The front panels of the controller | [optional] **health_details** | [**List[HealthIssue]**](HealthIssue.md) | Details regarding any health issue of the controller | [optional] **healthy** | **bool** | Whether the controller has any health issue or not | [optional] **id** | **str** | The unique identifier of the controller | [optional] @@ -13,6 +14,7 @@ Name | Type | Description | Notes **name** | **str** | A user-friendly display name for the controller | [optional] **serial** | **str** | The serial of the controller | [optional] **type** | **str** | The type of the controller | [optional] +**type_display_name** | **str** | The display type name of the controller | [optional] ## Example diff --git a/docs/DUTNetwork.md b/docs/DUTNetwork.md index d44a65c..94b8c76 100644 --- a/docs/DUTNetwork.md +++ b/docs/DUTNetwork.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **reverse_proxy_pep_dut** | [**PepDUT**](PepDUT.md) | | [optional] **reverse_proxy_pep_dut_active** | **bool** | A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false) | [optional] **server_dut_active** | **bool** | A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the server DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false) | [optional] +**server_dut_address** | [**Address**](Address.md) | | [optional] **server_dut_host** | **str** | The hostname where the traffic goes if server DUT is active. | [optional] **server_dut_port** | **int** | The listen port for server-side DUT | [optional] **tcp_health_check** | [**HealthCheckConfig**](HealthCheckConfig.md) | The TCP HealthCheck configuration for DUT | [optional] diff --git a/docs/EmulatedRouterRange.md b/docs/EmulatedRouterRange.md index 98757c0..35e5fba 100644 --- a/docs/EmulatedRouterRange.md +++ b/docs/EmulatedRouterRange.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **gw_start** | **str** | The gateway start IP for the IPRange (default: 10.0.0.1). | [optional] **host_count** | **int** | The number of Host IPs generated (default: 1). | [optional] **inner_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current IP range configuration | [optional] +**ip_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **ip_auto** | **bool** | A flag indicating if IP settings for the IPRange should be determined automatically (default: true). | **ip_incr** | **str** | The IP incrementation rule (default: 0.0.0.1). | [optional] **ip_range_name** | **str** | | diff --git a/docs/EthRange.md b/docs/EthRange.md index 58f4130..c4a2467 100644 --- a/docs/EthRange.md +++ b/docs/EthRange.md @@ -7,6 +7,7 @@ The Ethernet Ranges assigned to the current test configuration Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | | [optional] +**mac_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **mac_auto** | **bool** | A flag indicating if the MAC address for the EthRange should be determined automatically (default: true). | **mac_incr** | **str** | The MAC address increment rule for the EthRange (default: 00:00:00:00:00:01). | [optional] **mac_start** | **str** | The MAC start address for the EthRange (default: 00:11:01:00:00:01). | [optional] diff --git a/docs/FrontPanel.md b/docs/FrontPanel.md new file mode 100644 index 0000000..5e275fa --- /dev/null +++ b/docs/FrontPanel.md @@ -0,0 +1,36 @@ +# FrontPanel + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fan_out_mode** | **str** | The current fanOut mode of the front panel | [optional] +**health_details** | [**List[HealthIssue]**](HealthIssue.md) | A list with more details regarding the health of the front panel | [optional] +**healthy** | **bool** | Whether the front panel has any health issue or not | [optional] +**id** | **str** | The unique identifier of the front panel | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] +**name** | **str** | A user-friendly display name for the front panel | [optional] +**ports** | [**List[Port]**](Port.md) | The front panel ports of the front panel | [optional] +**status** | **str** | The current status of the front panel: ready or not ready | [optional] + +## Example + +```python +from cyperf.models.front_panel import FrontPanel + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontPanel from a JSON string +front_panel_instance = FrontPanel.from_json(json) +# print the JSON string representation of the object +print(FrontPanel.to_json()) + +# convert the object into a dict +front_panel_dict = front_panel_instance.to_dict() +# create an instance of FrontPanel from a dict +front_panel_from_dict = FrontPanel.from_dict(front_panel_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontPanelPortsByController.md b/docs/FrontPanelPortsByController.md new file mode 100644 index 0000000..6239924 --- /dev/null +++ b/docs/FrontPanelPortsByController.md @@ -0,0 +1,30 @@ +# FrontPanelPortsByController + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller_id** | **str** | The id of the controller that the front panel ports are part of. | [optional] +**front_panels** | [**List[PortsByPanel]**](PortsByPanel.md) | The front panels that the ports are part of. | [optional] + +## Example + +```python +from cyperf.models.front_panel_ports_by_controller import FrontPanelPortsByController + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontPanelPortsByController from a JSON string +front_panel_ports_by_controller_instance = FrontPanelPortsByController.from_json(json) +# print the JSON string representation of the object +print(FrontPanelPortsByController.to_json()) + +# convert the object into a dict +front_panel_ports_by_controller_dict = front_panel_ports_by_controller_instance.to_dict() +# create an instance of FrontPanelPortsByController from a dict +front_panel_ports_by_controller_from_dict = FrontPanelPortsByController.from_dict(front_panel_ports_by_controller_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPRange.md b/docs/IPRange.md index 22b27ee..1ef5e34 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **gw_start** | **str** | The gateway start IP for the IPRange (default: 10.0.0.1). | [optional] **host_count** | **int** | The number of Host IPs generated (default: 1). | [optional] **inner_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current IP range configuration | [optional] +**ip_address** | [**SequenceValue**](SequenceValue.md) | | [optional] **ip_auto** | **bool** | A flag indicating if IP settings for the IPRange should be determined automatically (default: true). | **ip_incr** | **str** | The IP incrementation rule (default: 0.0.0.1). | [optional] **ip_range_name** | **str** | | diff --git a/docs/LocalSubnetConfig.md b/docs/LocalSubnetConfig.md index 52dc57e..2132b36 100644 --- a/docs/LocalSubnetConfig.md +++ b/docs/LocalSubnetConfig.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **prefix** | **int** | The network mask of the IP Range (default: 16). | **start** | **str** | The start IP for the IPRange (default: 10.0.0.10). | **total_host_count** | **str** | | +**wildcard_initiator_traffic** | **bool** | | **network_tags** | **List[str]** | A list of tags. | ## Example diff --git a/docs/Metadata.md b/docs/Metadata.md index fbe520a..eb74216 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **sort_severity** | **str** | The field by which the severity is sorted | [optional] **static** | **bool** | If true, the application/strike is managed directly by the controller | [optional] **supported_apps** | **List[str]** | The apps that this strike can be used with | [optional] +**supported_http_versions** | **List[str]** | The HTTP versions supported by the application | [optional] **supports_http2** | **bool** | Indicates if the application supports HTTP2 multi-stream | [optional] **year** | **str** | The year of the strike | [optional] diff --git a/docs/PANGPEncapsulation.md b/docs/PANGPEncapsulation.md index 5c6a530..54e807c 100644 --- a/docs/PANGPEncapsulation.md +++ b/docs/PANGPEncapsulation.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **esp_over_udp_enabled** | **bool** | | **esp_over_udp_settings** | [**ESPOverUDPSettings**](ESPOverUDPSettings.md) | | [optional] +**enable_ikev2** | **bool** | | **encapsulation_mode** | **str** | The encapsulation mode for inner traffic. | **udp_port** | **int** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/PortsByPanel.md b/docs/PortsByPanel.md new file mode 100644 index 0000000..d68b554 --- /dev/null +++ b/docs/PortsByPanel.md @@ -0,0 +1,30 @@ +# PortsByPanel + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**front_panel_id** | **str** | The id of the front panel that the ports are part of. | [optional] +**ports** | **List[str]** | The port ids. | [optional] + +## Example + +```python +from cyperf.models.ports_by_panel import PortsByPanel + +# TODO update the JSON string below +json = "{}" +# create an instance of PortsByPanel from a JSON string +ports_by_panel_instance = PortsByPanel.from_json(json) +# print the JSON string representation of the object +print(PortsByPanel.to_json()) + +# convert the object into a dict +ports_by_panel_dict = ports_by_panel_instance.to_dict() +# create an instance of PortsByPanel from a dict +ports_by_panel_from_dict = PortsByPanel.from_dict(ports_by_panel_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RebootComputeResourcesOperation.md b/docs/RebootComputeResourcesOperation.md new file mode 100644 index 0000000..1ece768 --- /dev/null +++ b/docs/RebootComputeResourcesOperation.md @@ -0,0 +1,29 @@ +# RebootComputeResourcesOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**List[ComputeResourcesByController]**](ComputeResourcesByController.md) | The controllers that the compute resources are part of. | [optional] + +## Example + +```python +from cyperf.models.reboot_compute_resources_operation import RebootComputeResourcesOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of RebootComputeResourcesOperation from a JSON string +reboot_compute_resources_operation_instance = RebootComputeResourcesOperation.from_json(json) +# print the JSON string representation of the object +print(RebootComputeResourcesOperation.to_json()) + +# convert the object into a dict +reboot_compute_resources_operation_dict = reboot_compute_resources_operation_instance.to_dict() +# create an instance of RebootComputeResourcesOperation from a dict +reboot_compute_resources_operation_from_dict = RebootComputeResourcesOperation.from_dict(reboot_compute_resources_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RemoteSubnetConfig.md b/docs/RemoteSubnetConfig.md index d21f07b..85b1aaa 100644 --- a/docs/RemoteSubnetConfig.md +++ b/docs/RemoteSubnetConfig.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **prefix** | **int** | The length (in bits) of the subnet mask to be applied to all the addresses created in the range. | **single_remote_subnet** | **bool** | | **start** | **str** | The base address for enumerating all the local subnets in the range | +**wildcard_responder_traffic** | **bool** | | ## Example diff --git a/docs/SetFrontPanelPortsLinkStateOperation.md b/docs/SetFrontPanelPortsLinkStateOperation.md new file mode 100644 index 0000000..add8ff7 --- /dev/null +++ b/docs/SetFrontPanelPortsLinkStateOperation.md @@ -0,0 +1,30 @@ +# SetFrontPanelPortsLinkStateOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**List[FrontPanelPortsByController]**](FrontPanelPortsByController.md) | The controllers that the front panel ports are part of. | [optional] +**link** | **str** | The desired link state. | [optional] + +## Example + +```python +from cyperf.models.set_front_panel_ports_link_state_operation import SetFrontPanelPortsLinkStateOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of SetFrontPanelPortsLinkStateOperation from a JSON string +set_front_panel_ports_link_state_operation_instance = SetFrontPanelPortsLinkStateOperation.from_json(json) +# print the JSON string representation of the object +print(SetFrontPanelPortsLinkStateOperation.to_json()) + +# convert the object into a dict +set_front_panel_ports_link_state_operation_dict = set_front_panel_ports_link_state_operation_instance.to_dict() +# create an instance of SetFrontPanelPortsLinkStateOperation from a dict +set_front_panel_ports_link_state_operation_from_dict = SetFrontPanelPortsLinkStateOperation.from_dict(set_front_panel_ports_link_state_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetLinkStateOperation.md b/docs/SetPortsLinkStateOperation.md similarity index 51% rename from docs/SetLinkStateOperation.md rename to docs/SetPortsLinkStateOperation.md index 0a001b1..6354fc5 100644 --- a/docs/SetLinkStateOperation.md +++ b/docs/SetPortsLinkStateOperation.md @@ -1,4 +1,4 @@ -# SetLinkStateOperation +# SetPortsLinkStateOperation ## Properties @@ -11,19 +11,19 @@ Name | Type | Description | Notes ## Example ```python -from cyperf.models.set_link_state_operation import SetLinkStateOperation +from cyperf.models.set_ports_link_state_operation import SetPortsLinkStateOperation # TODO update the JSON string below json = "{}" -# create an instance of SetLinkStateOperation from a JSON string -set_link_state_operation_instance = SetLinkStateOperation.from_json(json) +# create an instance of SetPortsLinkStateOperation from a JSON string +set_ports_link_state_operation_instance = SetPortsLinkStateOperation.from_json(json) # print the JSON string representation of the object -print(SetLinkStateOperation.to_json()) +print(SetPortsLinkStateOperation.to_json()) # convert the object into a dict -set_link_state_operation_dict = set_link_state_operation_instance.to_dict() -# create an instance of SetLinkStateOperation from a dict -set_link_state_operation_from_dict = SetLinkStateOperation.from_dict(set_link_state_operation_dict) +set_ports_link_state_operation_dict = set_ports_link_state_operation_instance.to_dict() +# create an instance of SetPortsLinkStateOperation from a dict +set_ports_link_state_operation_from_dict = SetPortsLinkStateOperation.from_dict(set_ports_link_state_operation_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StreamProfile.md b/docs/StreamProfile.md index 189344f..0281ab9 100644 --- a/docs/StreamProfile.md +++ b/docs/StreamProfile.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **total_estimated_throughput** | **str** | | [optional] **total_estimated_throughput_per_simulated_user** | **str** | | [optional] **unique_pool_size** | **int** | | [optional] +**unrestricted_packet_rate** | **bool** | | [optional] ## Example diff --git a/docs/TrafficProfileBase.md b/docs/TrafficProfileBase.md index 31f48b9..a8e538a 100644 --- a/docs/TrafficProfileBase.md +++ b/docs/TrafficProfileBase.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | Indicates whether the profile is enabled or not. | [optional] +**playlist_sequencing_method** | [**PlaylistSequencingMethod**](PlaylistSequencingMethod.md) | | [optional] **traffic_settings** | [**TrafficSettings**](TrafficSettings.md) | | [optional] **use_all_source_ips_per_user** | **bool** | Indicates whether one or all source IPs are used for each simulated user. | [optional] **id** | **str** | | [optional] From d56047c14892759a34819c39961fb8f9392f41ed Mon Sep 17 00:00:00 2001 From: Marian-Madalin Stanciu Date: Tue, 14 Jul 2026 07:47:36 -0600 Subject: [PATCH 40/53] Pull request #77: ISGAPPSEC2-38156 sample script for appbuilder Merge in ISGAPPSEC/cyperf-api-wrapper from add_sample_script_for_appbuilder to main Squashed commit of the following: commit 24415d238aeca8372d72f3f021c4059860a10f6f Author: Marian-Madalin Stanciu Date: Tue Jul 14 13:36:03 2026 +0300 update comment commit fe330a4a607a64ccf6075fb9f63f03c434adc092 Author: Marian-Madalin Stanciu Date: Tue Jul 7 17:28:59 2026 +0300 sample script for appbuilder --- samples/appbuilder/claude.pcap | Bin 0 -> 9308 bytes .../appbuilder/sample_appbuilder_examples.py | 163 ++++++++++++++++++ samples/appbuilder/tls_key.log | 5 + 3 files changed, 168 insertions(+) create mode 100644 samples/appbuilder/claude.pcap create mode 100644 samples/appbuilder/sample_appbuilder_examples.py create mode 100644 samples/appbuilder/tls_key.log diff --git a/samples/appbuilder/claude.pcap b/samples/appbuilder/claude.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e4b0f42a4110564a1c57909b5968fa5b12b9906e GIT binary patch literal 9308 zcmb_?1yEc|yX_trV36SM8r%s4f@^RBK>`6na0u@14go@fyA#~qU4y#@cY+h_4JY@% z_dn;|XH{=keO*m^C$mQ{+}3s zkp84kSb_f^v9h69l2GU;`@`T*?GQi$0A2!sFdz&M08j0CVs-%mHI@=ukY_Ke>X0{})_up~!^Z_{d66-2U(kIt8GpxUe7)0tf)X!oqG# z@c~FkARx>068H#953Dj{0K_9C0J%5=AHW+%0HF921FqxLfO|Xx5KGDp z>gK>#BF z3j^(2W&j2R0yqIF=qTX@j|co9+{9_|vg` zd&iWCa9MK{ei4IEUvbd7?|kPtnY=Dh(AyNNkBI)%yKdxQAPqX!Pxi+L{%g$OqyO}7 z#l}CzjIfNr58vIQYj|JZE`%oQ~qUotmCr|)v;#* z@5nQk9n**U108E%-#F8iTH7H;$zdpd>RR~KKzc5b$gW0o#-(144dn*{;XzZP(isdM znK(7Xo6p%|AQIKjGRijL>juuZr_dA8O$$YpL@%lO1?`y zVcs>3ycCiE6N>eu%Zd2FcOWB*yD?+LBMr9kP_XS-dyO-iXMeum$?)jKGqBKRbYGTj zcKP&r1N+PyiI3+*Rtp!cC#Z*vE^h3+`W9_eppNBSZCH6#R|!MwL$lm_!_3hGTBLf6 z6($r>)8mjzl@Nt>MyecTn>Bm5w{JYe&(aD{zrV&tsuJ3KAHr3Nk zypqbdRFiwARF}mISc5diispHS=0c&w<9zjoq^~ud#dyta#;;=9H|yDP^~$VU32 zH(IZS<$S$;&(V>BmOb^=R9b^M>T;jt2_cnGyo}gqI^AX}1{n#q2Sb$#&9=5SuyUu6VE-;Z+iARjj&D;}L3bHpjvHGVa0B6NYsdVoAo6{9AclQxEAfWl0MxegQA! z>?}u#5#{#Q%X^U_s?U13=)#dn6PWBsg+w^?2#qvS@4bwOx(Xh=ixo#1hRsYMWpUEE4HXM)K zwI^{M>2!G;BZH_aubV!YbDoAH*{s{ql+gYB5P{1gg+mTl`d6)>TE6d83au6~b%3i8 z%D$XvSI2}cEqbUFBnbh-c$#LdyXqZBk)>WX??(bs->wS#oMWNi9Y{U-zE5FU*wTf3UB{js)L z*WpZHUAoM!B*Js0I~^VUbrH0&IzB z40e@Gzb_4HOz{b#aD^T)WsI}$v9T(ILH8N2W z6zIIj+&l4}X-wa|c-G4P?F@zsE{R3w;Myzvt(HL*vd_`eWGkV`>p45kfST1JsG^!1 z$2*!#a?;!A#@+?)$P_1DI#u$Y4pH4(#-x_{kaFaWiBhPhw!}zZV032-I=cPJb5z1GWHk$@;J5Kw=DedL1~hfUPsq zBdcw%R)mYxFx1S1l6qx|xNDv$oJRO&b9;-jinljM;wWx?@B{HunZnxW3x|~&L06)X z%{5ygw7Vxy&<=KV#oQG(X7f-~O~+c0mW_$-j1Ibxk5@_bGMuORokUvfOqz~!-W|od z?yRp6r$<>SseWWfb-xtV(x)*`&?8nGJc}{vE_ESP5Rgp4S`is&hM(WDkLEvyeV&%2 zhLj*6O5k&cx=H?do%Q1{V=4Uduqj#opYPIB41O4A?GVBHaK29^Djk2=N(9yC} z7SqWrXU2aVX^55twXHMurSyEEpma$rP8(x>Yb(6}i6a)WC@IMdwXFMhvA2-3yRU`= zzwVD4r)#wFa~kvnqvs-O>qzMM4PBSZt^7l7l*!KCcm&h3#jF`TW+JlnJ6{!$%+ zpDCeN3*uq}h2(NQ$0IxeM-`_OkXDo&M;Oo5v5+yHEMh8txO;SI2>wb@*rhH0;>ia* z8NdJn1o+GTDOnJ1{`f$-``;zYwNn{^fBlmW2=o0*vM34w@&mTeF+*ru8u|I~X?FgB z*@7Ep^6V>fz^qJie^v>^Dl=*gY zr{eqa4{LDixoUjjrK(G*C70VCW-l1xU0^$|{Jcs%X|5eivicgPL@>i~q|p(uD(>LB zh6-X$bgLg*s;P1);zm^XS-9bDLI=mgA^)AvZ}2A*Gf^nsJr zF1C~PGUADPPHs{h!a_glgV38YmX^|*({MiWaGfUVpl`3%E0DUE?}0jb${*p$b(eo6 zdiK~Zv4@mDZ&4fKzOw?jreV`3`aI)k_xRKn}xJ0lv8U^Ry{P0%2nJQhhKzLvGaB)@}=ar zj6oj_j4sCg@56Z)(a8=QJE@E}?_&E@2rwoQgt@sYhw6q7l2J5#rO8N&)d&>gn7@Yo zu2$!D$!W2P@uVU&z(@csG~QVXW2XAFR%lR=+qUpmUkf%M_WDtLeh5?Uc@e5-VEEl& zfV~?0?ttBC@}SP)`DQiTZEHG>!8VA!7wP#a)5SY&bJdC7jxmds{Y)x4_*y-nKW&G5 zsIeO72BGb^59?>#P2NY`!Rz>VF6Cs#xFcSz*-4}KWC##C&mVYK-j=~c+E(ldFe_tm zJ4ntt`O*(RG#aLB?fEi?kO-Oa4^EK!>8Glau4?YFjQ8tek$x4vMDTF;GP05W7#l%d zAE?WVu+I>97L`CjeW^+3rKhGkYe>(k@ygRW`x5~m(i4w0`~9M8V%Q}b#r>Cy0%&zw#FHo zJN=4!9)XWUDtIV2GY%R%4>XI{OTtoqyD<7QQN5d>J{IB>)Uy(d-Up?})`5M6g z74^5u)lxwMV}b&p-(OL8>Ff5UKT4U-+{4^2;ddv#wkHu&KUE;0+U+mf7mH@F*3KnT z{^)kl&Z;AjwUuy9j?hTa3Adu)xS-I=;Y>dISu^9Ip6p?J*dc~@vut^hVBmVg%+FU! z(w3&rV9R(+0-h4zqHIfy#1oe~uc_nv=00#MpAdWe+B%c_;53;pYe7s>jGRZnKI5LC z_A@c~rJUbmKf;#!K;i zn8w}p6Z~Z_smuimC;5ttpgeYq{CcPH+^K6r;}{o8v*0MF3pTnSJvby@aBtlZZ4UC$-W+~5cvr)fx1 zThm81JbuOY`f~D{5!hfRiUEdZ^su0H-#XB(G(+qKNUao4K6|%T3(@IyaZG7@e~+|i zon4gNNOke2ss;LKG0YTsMnJT}C7X@hPti(}t6vH!R()E7zeJ~pnuVy_v|*%8!R6a~ z4`XYBcNV(+RCXgGdZi`3_!qfEpC%g8JX82L4}!eBkmEnSrZsu8@RAESze8@V8-3k_^C-qjJvhU$7z`?WBdCV>f7Z)x$gfr&L1X`Ks{X%piw zE04U-G1uGGcCr#eP2m^36H9Zg4X-E9uk2_IMTXO^s!pi=n2o6yeAv7W4Oe{jr^G(H zU7$MCZ2skBjVFy=GW+w)pjApcw#p+|MjxN+Ks*tky&lbBgyadJZ^C}${) z%~hOrA4m9%tdRR8neaNN>a5>BguZ6!swp9ebPu&Bem`ew*jx6U535uPs&G6ZM24O# zuKH5n8zKCM6omdqna+rXE?sOw04|TBYy7pf@%_*>o{v^A+3L`@@+)r(&Sc&fBwm;& zZ(LtHnDx&!A$f+?sh5QVD3C;O)~1i1ctY3N^19S`t(qyPIp(I_LJswnV;_y|Qb zf^G>u**_7%8vk3wzwJDYdORUQg$9_cAH+JlVuV?Ga1?5H6`Uw@RP2vweuWm@WG`&^ zV&PlMuOdXZEbSy07>r+c>KEy94TQv??#&%f_$E+Mgm+`wHszz~VMin{a$K7NB%0k! zF10?bE%CJHqGP3|eW+Xa^g9+PrKN1fah-!f-s~l0r7}+V7+7EFE{<~b+M{IrAUY=2 zbUVCJ%W1XzTyaQ0A?f8i;*js@Iyvg$6wbe)oMaRI=0QB{nqwxxPnQ#NT7WzxPZJ?tATa1gINd}3o z&2#N}6f31ZSmf}ftv*WZ@CU__Ub;(<5_GgYYA2L)n^6Z@G8s-!wq-^IRv%B54n6ZX zCQ|R1K>n8)`KD?Z0%HlKx8#7&T%XMMFZ?I<_CG%}im3OeVk#zrtz@nqL?*QJJ5*2A z!O0`B*r45w=2SW#iJ&UQ+&bIuhr95cMx-_)BB#^xA_JEpIbOtvYHR!AO8yTK@qD`q zA3a9|9;k0Pow1tEN@c-mQvMDqE>1B!h*zQ0aSc8koW90Q1LtHRytRi32e0yUh4ivi z<7riGnGSR}hg!NEri$;QBIG{MXnV`WI#!=V8SI(4P1M(_MYSThkFiF)vLA3_$8(F6 zDpJol)xQhvA2uPKExYRe6o1;x+y0U9cIjO1wi{A`@H}0CCBWs@P=U2JGv4UtR4CB* z%683Y$)HIhaVHj)x--7qv%WscZ!voQ-Y{Hs>lz<|FG~_1YwbK-+(9fs95^C|MQfR- z_yNP4=};uE(tlD%?rlu?%I_b@cK$!ZV^=2y(D-MZ% zzs)9*vxe;H3u3I29PDg=H5i!LPE9;cakA9LzI&P62`53JL#Qg&J0BRO%ZsApPu6QS z+cw9qh3OnD*rt@7_zdi!Gqj&3;=BphX-i`~HsVx-KjiV3^s42* zbx|Ox%3Cr_f5p^fNAIWCLBidTCBuNs?_F#&NYAllTAYGw7+OT4fqWy$XdeQGtMNC4v?TOf#rAAEOTv*7XH(LJXR_Kp7hssUmNYB7YT-=GY%|adx(LrnxDPK>k(Yn*6 zH=9X}SSF$+E~0-vFGb!Nld3xZa|R)g9iPeXi`IP0<7%WShhSTyqhpv3l8236DNWz5 z*iSq7F*<^Z4K&48y~16Zi)OLdz+gYzv|p>qm}R+PKbp_!YelYm1*l})$Fc0NuQCUI z(Ucx!qPV=4On6Hak%aT54tJ|(&4bHSSx1g-T#P#dsLKB_CmJ*4aQVveY1Y|c1OwR6 zbA%`RXLy4I-K7QbE+HOWsb<~MgyoPT27jzZ$CldOPDZvw z`l5PKt`Ju#&>dg9wJNH88CYDw5~4$d6BIwR%poL|vht?r%|s@sDNM)3-L1gEllhuQ zUx}}djxX2I?UINmnF!J-%EzF9<)NZo-k7DuSBcvv9Tdd65s*SyToDl3Vp!1biyR@~ z@n}p+6>?AiW~at=etx#kQq!?D##wc?}!rtMP1A zcD3A5%C4d|V4!t}L{v5gD{YI&B$4d&<>QAeKlLf&B=IK5l@;Tb1SPr{OWAMJsi_c+v zD)^(ktYmd=b1MX$->nBEc^bVM($=WQIxP;=%v!WpFwmNPA7DYdDcF`aJ}`b;JLoG1 zAtCwRhKEK3JKL%k@pS7|3x={YgV_sJtFzy!3p0N|n)qxJatcVO-5d=P3BL+5y_@T} z9$GNelY52(yKhw-H5Bn8W3JKdaEWV!TTPNyIBEG{M7^CaM5ZHPr!#bh(mkXCmQY)! zXhxZ6VmB+DR|5TgLMt|2!H`{RGq#g5!B*k3IbOk?*wy`h>&{d+f`mMq?uE75&*ce} zT|a~^F@!S6>=A84?n%#<6)XqGzvRJPK58lF-v7R6AipfF`r@7M2m2#&6pydA)I$5h zgqoaFdU)0XE<@Q>Qr|t-!Rye;7Z*=F!!MNJjc}7e3b>|!4k$8A4r1&aU$WZk9%~*x z0nrs`p$B<7j9umKS0?XuSsgqt8He4UV3emY3P=^VBe)ME)50bsc(B6H@Eg#ZYpO;U zKslJtGKtvy2@F;_OpQ}w5uViOC5~bU`)8}C$g5P#%!+=so^bajZr=pot30gP&mYvJO&r(vzo(RoBzw}UiB1uYPcc}As=q&P+Do1O zC^x~0CZ;c2pw3&9q(9gfHed^;#5l;%ZNH`kGhJC5m9|yENp2Yg`gFfC=93X)%Vbj3 z6%^rYSyJTPB3p-dx-Pevb-;61O@biZPKA;6)iDyBIw86=SIJWiatlsZmSbkO4tLo- zdl8o7#ZXanXvEYqYSlp4e0``W+rr&Nh@v5lI?qI}QO0H|VEguGXtR3Q6(Ol~h7RwU z@XnnDu14{V=!E*`W>#u&sBa>TEPG>lM`C}dCvP`aM1Z2dbZb})3X#t;*b6Q}Y~f45 z?GGXF#2%0tP{^rgS-H?y>+CCl-0$-%^O9^?Dmx^&u=q`v%z2AA_-gall6~o+Jf`VU zAGyEMA~Sgsag%YEpOulvV}vHP3(P9~>%!8+r3n`|d>H7dF8?GR#+=D_b*!Zn?wgN^ zDVoB#7NDCKNM{x;Alht4HKSe)2?C~>q|WNpbDWD&?Sc`>G9{KO=K(nK+cEi_@GnZg z`W2$ZVmUEFUdM6@4OHIseYsIU#SlEo6>~N>d90BYJSgsoS|*g12>vQ-5Lx+3qA2nv zPx{EO1>Tis`jME)bEUzlbzYo?mFo5G9^p&TIIg&aIC#cnK`OL$2ix`-#41C|b_`?} z49C+3PdJwI7_M{Qboi!Ko6bzJ0JhZilqx6lmECysA%ymY4sM+;>2amnxM$ybd)wI^ zo|#z~lt#}Yitv~!eg0C!UlGlA;d0&hCA|H|il{;dV^8o=(l~=&c*b?%?H#T2YLk5B zK|La76YtFlgLU@mNPBq5qWN1Z9~Pvt3Nq>pOc3r>3w8y6P{{qz(V;_LF2`?gcqVcG zVs#qP)Kx`$k9q$vfFcQHsa}01!2>z^tvDUC1TOj5Nu;9?HjGMSW{-5Uk&4Qr+Sh6+ z2S2>y*KZh6m(VyQPrF`hs)nt;-IMt^(k)ve&IbgJQqYZ)PEPVaZv`TK4o~=a-8z*{pwF!dJ zPf-!lM_)2qN7O~s0E%HGs~4pFycSuc=5f`I%ZFv-_ZSE~jIc^8Yt`3=gG7MKy9?IO zgBX&SnqDVf3|=G4Ay=BHpYU5Q+#7raW)Yn{ipf-}@|*2LIe&%^L+bqd1%)VBod}6= z_mxm)m$}*xl(PWH5zg7t1x#+k4R?ll8lxdF$fo$e>USoB~#063H z9_zvly--A#{$=}tgz&hM;bGs@f@)y5X<72+n2;BV2nyD(-p^R!HQShJhv)h3hyl)@ z`VCl&K3UK(@luKmrJSo(9?q%v6=y_kuF<(`V9t`%wSE?&ptY5jK|mq3{l;$*8oe_K z?}ldr;~E&aq^W}Hk8e8JmyEJ)>a#~2w)DeBy+u@AzETq5oEw>`OO#=7{R>)dVdS@Y zcL@VUgHhv6X)O9y+;!r{iNHJl_cyK>Op!@Vmf=_%*M-R=4Tqqa}MVJGhRp8)s zxF4r(-6)qFAO6OHX}C!{(~nDLnR@NMnftsWX?aMg0*ZjqRIf1B*XehlUG+=tSK6fB5dcxA0z3-|U&44e2_3 z;?=q9{Wav&aw;#pb1N=g!Qq>*Qy(%w)wEq!S-nbPv3&3mcNWnrdE0x~=1GmJL2LSdjjDq${;CP%-=pdYqNkdk5SRas z`1e~P{}HFxi~L>RBB4U{?S(fKQ6KYP`t~jK#=!*k6XMUmBSP=j{L#&S-8=bTME=2- kP>yJSkNhW@|HX0h?}-0*9MPa0FP{+gk^hrp@e{}Y0idO7;{X5v literal 0 HcmV?d00001 diff --git a/samples/appbuilder/sample_appbuilder_examples.py b/samples/appbuilder/sample_appbuilder_examples.py new file mode 100644 index 0000000..42c1bfd --- /dev/null +++ b/samples/appbuilder/sample_appbuilder_examples.py @@ -0,0 +1,163 @@ +import cyperf, random, string +from cyperf import CreateAppOperation, ParameterMeta, ParameterMatch, RegexMatch, ActionInput, CaptureInput, \ + AppFlowInput +from cyperf.utils import parse_cli_options + + +def _create_api_client_from_cli(): + args, offline_token = parse_cli_options() + + configuration = cyperf.Configuration( + host=f"https://{args.controller}", + refresh_token=offline_token, + username=args.user, + password=args.password, + ) + configuration.verify_ssl = False + api_client = cyperf.ApiClient(configuration) + + return api_client + +def random_string(length=8): + letters = string.ascii_lowercase + return ''.join(random.choice(letters) for i in range(length)) + +def get_capture_id(capture_upload_result): + return capture_upload_result['resourceURL'].split('/')[-1] + +def app_params(param_name: str, patterns: list[str], match_location: list[str]): + regex_match = RegexMatch( + Patterns=patterns + ) + param_match = ParameterMatch( + MatchLocation=match_location, # URL, REQ_HEADERS, RES_HEADERS, REQ_BODY, RES_BODY + MatchType="REGEX", + RegexMatch=regex_match + ) + param_anthropic_version = ParameterMeta( + Name=param_name, + Matches=[param_match] + ) + return [param_anthropic_version] + +def action_get_models(capture_id): + get_models_flow = AppFlowInput( + AppFlowId="2", + Exchanges=["1"] + ) + get_models_content = CaptureInput( + CaptureId=capture_id, + Flows=[get_models_flow] + ) + return ActionInput( + Name="Get Models", + Captures=[get_models_content], + Parameters=app_params("Claude Model", ["claude-opus-4-6|claude-sonnet-5"], ["REQ_BODY", "RES_BODY"]) + ) + +def action_ask_claude(capture_id): + get_models_flow = AppFlowInput( + AppFlowId="2", + Exchanges=["2"] + ) + get_models_content = CaptureInput( + CaptureId=capture_id, + Flows=[get_models_flow] + ) + return ActionInput( + Name="Ask Claude", + Captures=[get_models_content], + Parameters=app_params("Claude Model", ["claude-opus-4-6|claude-sonnet-5"], ["REQ_BODY", "RES_BODY"]) + ) + +def actions(capture_id): + return [action_get_models(capture_id), action_ask_claude(capture_id)] + +def new_action(action_name: str, capture_id: str, flow_id: str, exchanges: list[str]): + return ActionInput( + Name=action_name, + Captures=[CaptureInput( + CaptureId=capture_id, + Flows=[AppFlowInput( + AppFlowId=flow_id, + Exchanges=exchanges + )] + )] + ) + +def one_action_per_exchange(client, capture_id): + flows = client.get_capture_flows(capture_id=capture_id) + actions = [] + for flow in flows: + exchanges = client.get_flow_exchanges(capture_id=capture_id, flow_id=flow.id) + for exchange in exchanges: + actions.append(new_action(exchange.name, capture_id, flow.id, [exchange.id])) + + return actions + +def one_action_all_exchanges(client, action_name, capture_id): + flows = client.get_capture_flows(capture_id=capture_id) + actions = [] + for flow in flows: + actions.append(new_action(action_name, capture_id, flow.id, ["all"])) + + return actions + + +def create_claude_app(client): + new_claude_app = CreateAppOperation( + AppName=f"Anthropic Claude ({random_string(8)})", + Description="This is a dummy implementation of Anthropic Claude Application", + Actions=actions(capture_id), + Parameters=app_params("Anthropic Version", ["Anthropic-Version.*"], ["REQ_HEADERS"]) + ) + + create_app_op = client.start_resources_create_app(new_claude_app) + create_app_op.await_completion() + +def create_app_with_one_action_for_each_exch(client, capture_id): + new_action_per_exch_app = CreateAppOperation( + AppName=f"Generic app ({random_string(8)})", + Description="This is a sample application generated from a capture, there is one action for each exchange in the original capture", + Actions=one_action_per_exchange(client, capture_id), + ) + + create_app_op = client.start_resources_create_app(new_action_per_exch_app) + create_app_op.await_completion() + +def create_app_with_one_action_all_exchanges(client, capture_id): + new_action_per_exch_app = CreateAppOperation( + AppName=f"Generic app ({random_string(8)})", + Description="This is a sample application generated from a capture, there is one action for each exchange in the original capture", + Actions=one_action_all_exchanges(client, "Generic Action", capture_id), + ) + + create_app_op = client.start_resources_create_app(new_action_per_exch_app) + create_app_op.await_completion() + + +if __name__ == "__main__": + import urllib3 + + urllib3.disable_warnings() + + api_client = _create_api_client_from_cli() + + with api_client: + resource_api = cyperf.ApplicationResourcesApi(api_client) + upload_op = resource_api.start_resources_captures_encrypted_upload_file(file="claude.pcap", ssl_key_log_file="tls_key.log") + + #use this method instead if the capture is not encrypted or you do not have the decryption keys(TCP flows will be parsed instead) + #upload_op = resource_api.start_resources_captures_upload_file(file="claude.pcap") + + capture_upload_result = upload_op.await_completion() + capture_id = get_capture_id(capture_upload_result) + + # creates one application, starting from the uploaded capture, creates a single action with all the exchanges from all the flows + create_app_with_one_action_all_exchanges(resource_api, capture_id) + + # creates one application, starting from the uploaded capture, creates a single action for each exchange in each flow + create_app_with_one_action_for_each_exch(resource_api, capture_id) + + # creates one application with some specific logic(choose specific exchanges from specific flows) and add parameters to the application + create_claude_app(resource_api) diff --git a/samples/appbuilder/tls_key.log b/samples/appbuilder/tls_key.log new file mode 100644 index 0000000..12d7323 --- /dev/null +++ b/samples/appbuilder/tls_key.log @@ -0,0 +1,5 @@ +SERVER_HANDSHAKE_TRAFFIC_SECRET e7473a000a0a200073602900bd923e004b37380062032900e02d11001cce1d00 43aabac76ed9db15178c5b9c2f33bcccf1fefc11915d76e32fbfb4cb0b11b4f5cd4e28e57d24cf40c209d9d7640d5db6 +EXPORTER_SECRET e7473a000a0a200073602900bd923e004b37380062032900e02d11001cce1d00 6a2a60c3d0ff18a0bbef088d4173bb33b134437446434f6d168f55eddb63607065a96468a5a796186e2cf80b02e342ad +SERVER_TRAFFIC_SECRET_0 e7473a000a0a200073602900bd923e004b37380062032900e02d11001cce1d00 fa0a3629a6e1dfa3551cb2a0e09e1922192d319011065d1f726bc9f185a3247e8d65f82028bff02557f3be65a6e4ac64 +CLIENT_HANDSHAKE_TRAFFIC_SECRET e7473a000a0a200073602900bd923e004b37380062032900e02d11001cce1d00 a544da63a713d4393506fe7138fbc9204356efcd81c69b7f2c4a37a9459b3ae034c69a0e193cc36072515badb8173a8c +CLIENT_TRAFFIC_SECRET_0 e7473a000a0a200073602900bd923e004b37380062032900e02d11001cce1d00 8ecdbcb8e7d7faf9e090bae36ca745509a1089fc76cc1b42fa44ff41fbe0caeec030c8e35e58241bdd31dfaee961858b From e28b0073a67937773f3d07dd244367b78a71f32d Mon Sep 17 00:00:00 2001 From: Stingescu Andrei Petrut Date: Mon, 27 Jul 2026 07:23:45 -0600 Subject: [PATCH 41/53] Pull request #81: Regenerate Cyperf Python Wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-37153-update-cyperf-python-wrapper to main Squashed commit of the following: commit 083542b9db90a53e829416b0beed8d585f4e5545 Author: stinandr Date: Fri Jul 24 18:21:21 2026 +0300 Remove another deprecated python files commit f8b4fa3c98f2eff5e3caf220f55ba7153448320c Author: stinandr Date: Fri Jul 24 16:18:59 2026 +0300 Regenerate python wrapper commit 803ff054cdd0a06c8b4cde3e9fd2d8c2674e1eee Author: stinandr Date: Fri Jul 17 14:30:41 2026 +0300 Remove deprecated generated python files --- README.md | 22 +- cyperf/__init__.py | 17 +- cyperf/api/application_resources_api.py | 165 +++++++--- cyperf/api/data_migration_api.py | 32 +- cyperf/api/sessions_api.py | 292 ------------------ cyperf/api/utils_api.py | 34 +- cyperf/dynamic_models/__init__.py | 17 +- cyperf/models/__init__.py | 17 +- cyperf/models/agent.py | 4 +- .../models/attack_metadata_keywords_inner.py | 208 ------------- ...l_openid_connect_token_post200_response.py | 99 ------ ...sponse_one_of.py => basic_auth_profile.py} | 44 ++- cyperf/models/broker.py | 30 +- .../change_aggregation_mode_operation.py | 97 ------ cyperf/models/change_link_state_operation.py | 106 ------- .../classical_signature_algorithm_tls13.py | 53 ++++ ...composite_pqc_signature_algorithm_tls13.py | 40 +++ .../config_metadata_config_data_value.py | 208 ------------- .../models/{capture.py => content_block.py} | 40 ++- cyperf/models/dut_network.py | 12 +- cyperf/models/eth_range.py | 2 +- ...nse_one_of.py => formatted_description.py} | 43 ++- cyperf/models/get_agent_tags200_response.py | 143 --------- .../get_application_types200_response.py | 143 --------- cyperf/models/get_apps200_response.py | 143 --------- cyperf/models/get_attacks200_response.py | 143 --------- .../models/get_attacks200_response_one_of.py | 103 ------ cyperf/models/get_attacks_operation.py | 121 -------- .../models/get_auth_profiles200_response.py | 143 --------- .../get_auth_profiles200_response_one_of.py | 103 ------ cyperf/models/get_certificates200_response.py | 143 --------- .../get_certificates200_response_one_of.py | 103 ------ cyperf/models/get_consumers200_response.py | 143 --------- .../get_consumers200_response_one_of.py | 103 ------ ...et_custom_import_operations200_response.py | 143 --------- ...om_import_operations200_response_one_of.py | 103 ------ cyperf/models/get_files200_response.py | 143 --------- cyperf/models/get_files200_response_one_of.py | 103 ------ .../models/get_http_profiles200_response.py | 143 --------- .../get_http_profiles200_response_one_of.py | 103 ------ cyperf/models/get_meta200_response.py | 143 --------- cyperf/models/get_meta200_response_one_of.py | 103 ------ cyperf/models/get_plugins200_response.py | 143 --------- .../models/get_plugins200_response_one_of.py | 103 ------ cyperf/models/get_result_tags200_response.py | 143 --------- .../get_result_tags200_response_one_of.py | 103 ------ ...peration.py => get_scenarios_operation.py} | 8 +- cyperf/models/get_stats200_response.py | 143 --------- cyperf/models/get_stats200_response_one_of.py | 103 ------ cyperf/models/ip_range.py | 4 +- cyperf/models/{test_usage.py => keyword.py} | 20 +- ...lete_request_inner.py => layout_config.py} | 20 +- cyperf/models/license_server_metadata.py | 30 +- cyperf/models/llmapi_profile.py | 8 +- .../models/pqc_signature_algorithm_tls13.py | 39 +++ cyperf/models/prepared_test_options.py | 103 ------ .../{prepare_test_operation.py => profile.py} | 56 ++-- ...types200_response_one_of.py => section.py} | 42 ++- cyperf/models/session_reuse_method_tls12.py | 2 +- cyperf/models/session_reuse_method_tls13.py | 3 +- .../start_batch_delete_request_inner.py | 93 ------ cyperf/models/switch_app_operation.py | 93 ------ cyperf/models/test_info.py | 10 +- .../{set_app_operation.py => text_segment.py} | 26 +- cyperf/models/tls_profile.py | 21 +- docs/Agent.md | 1 + docs/ApplicationResourcesApi.md | 73 +++-- docs/AttackMetadataKeywordsInner.md | 28 -- ...otocolOpenidConnectTokenPost200Response.md | 32 -- docs/BasicAuthProfile.md | 31 ++ docs/Broker.md | 22 +- docs/Capture.md | 30 -- docs/ChangeAggregationModeOperation.md | 31 -- docs/ChangeLinkStateOperation.md | 30 -- docs/ClassicalSignatureAlgorithmTLS13.md | 43 +++ docs/CompositePqcSignatureAlgorithmTLS13.md | 17 + docs/ConfigMetadataConfigDataValue.md | 28 -- docs/ContentBlock.md | 33 ++ docs/DUTNetwork.md | 3 +- docs/DataMigrationApi.md | 12 +- docs/EthRange.md | 2 +- docs/FormattedDescription.md | 31 ++ docs/GetAgentTags200Response.md | 30 -- docs/GetAgentTags200ResponseOneOf.md | 30 -- docs/GetApplicationTypes200Response.md | 30 -- docs/GetApplicationTypes200ResponseOneOf.md | 30 -- docs/GetApps200Response.md | 30 -- docs/GetApps200ResponseOneOf.md | 30 -- docs/GetAttacks200Response.md | 30 -- docs/GetAttacks200ResponseOneOf.md | 30 -- docs/GetAttacksOperation.md | 35 --- docs/GetAuthProfiles200Response.md | 30 -- docs/GetAuthProfiles200ResponseOneOf.md | 30 -- docs/GetCertificates200Response.md | 30 -- docs/GetCertificates200ResponseOneOf.md | 30 -- docs/GetConsumers200Response.md | 30 -- docs/GetConsumers200ResponseOneOf.md | 30 -- docs/GetCustomImportOperations200Response.md | 30 -- ...tCustomImportOperations200ResponseOneOf.md | 30 -- docs/GetFiles200Response.md | 30 -- docs/GetFiles200ResponseOneOf.md | 30 -- docs/GetHttpProfiles200Response.md | 30 -- docs/GetHttpProfiles200ResponseOneOf.md | 30 -- docs/GetMeta200Response.md | 30 -- docs/GetMeta200ResponseOneOf.md | 30 -- docs/GetPlugins200Response.md | 30 -- docs/GetPlugins200ResponseOneOf.md | 30 -- docs/GetResultTags200Response.md | 30 -- docs/GetResultTags200ResponseOneOf.md | 30 -- ...sOperation.md => GetScenariosOperation.md} | 16 +- docs/GetStats200Response.md | 30 -- docs/GetStats200ResponseOneOf.md | 30 -- docs/IPRange.md | 4 +- docs/Keyword.md | 31 ++ docs/LLMAPIProfile.md | 1 + docs/LayoutConfig.md | 29 ++ docs/LicenseServerMetadata.md | 22 +- docs/PqcSignatureAlgorithmTLS13.md | 15 + docs/PrepareTestOperation.md | 37 --- docs/PreparedTestOptions.md | 34 -- docs/Profile.md | 39 +++ docs/Section.md | 30 ++ docs/SessionReuseMethodTLS12.md | 2 +- docs/SessionReuseMethodTLS13.md | 4 +- docs/SessionsApi.md | 81 ----- docs/SetAppOperation.md | 31 -- docs/StartBatchDeleteRequestInner.md | 29 -- docs/StartRootBatchDeleteRequestInner.md | 29 -- docs/SwitchAppOperation.md | 29 -- docs/TLSProfile.md | 9 +- docs/TestInfo.md | 2 +- docs/TestUsage.md | 30 -- docs/TextSegment.md | 33 ++ docs/UtilsApi.md | 20 +- 134 files changed, 1049 insertions(+), 6246 deletions(-) delete mode 100644 cyperf/models/attack_metadata_keywords_inner.py delete mode 100644 cyperf/models/auth_realms_keysight_protocol_openid_connect_token_post200_response.py rename cyperf/models/{get_apps200_response_one_of.py => basic_auth_profile.py} (61%) delete mode 100644 cyperf/models/change_aggregation_mode_operation.py delete mode 100644 cyperf/models/change_link_state_operation.py create mode 100644 cyperf/models/classical_signature_algorithm_tls13.py create mode 100644 cyperf/models/composite_pqc_signature_algorithm_tls13.py delete mode 100644 cyperf/models/config_metadata_config_data_value.py rename cyperf/models/{capture.py => content_block.py} (58%) rename cyperf/models/{get_agent_tags200_response_one_of.py => formatted_description.py} (60%) delete mode 100644 cyperf/models/get_agent_tags200_response.py delete mode 100644 cyperf/models/get_application_types200_response.py delete mode 100644 cyperf/models/get_apps200_response.py delete mode 100644 cyperf/models/get_attacks200_response.py delete mode 100644 cyperf/models/get_attacks200_response_one_of.py delete mode 100644 cyperf/models/get_attacks_operation.py delete mode 100644 cyperf/models/get_auth_profiles200_response.py delete mode 100644 cyperf/models/get_auth_profiles200_response_one_of.py delete mode 100644 cyperf/models/get_certificates200_response.py delete mode 100644 cyperf/models/get_certificates200_response_one_of.py delete mode 100644 cyperf/models/get_consumers200_response.py delete mode 100644 cyperf/models/get_consumers200_response_one_of.py delete mode 100644 cyperf/models/get_custom_import_operations200_response.py delete mode 100644 cyperf/models/get_custom_import_operations200_response_one_of.py delete mode 100644 cyperf/models/get_files200_response.py delete mode 100644 cyperf/models/get_files200_response_one_of.py delete mode 100644 cyperf/models/get_http_profiles200_response.py delete mode 100644 cyperf/models/get_http_profiles200_response_one_of.py delete mode 100644 cyperf/models/get_meta200_response.py delete mode 100644 cyperf/models/get_meta200_response_one_of.py delete mode 100644 cyperf/models/get_plugins200_response.py delete mode 100644 cyperf/models/get_plugins200_response_one_of.py delete mode 100644 cyperf/models/get_result_tags200_response.py delete mode 100644 cyperf/models/get_result_tags200_response_one_of.py rename cyperf/models/{get_apps_operation.py => get_scenarios_operation.py} (95%) delete mode 100644 cyperf/models/get_stats200_response.py delete mode 100644 cyperf/models/get_stats200_response_one_of.py rename cyperf/models/{test_usage.py => keyword.py} (76%) rename cyperf/models/{start_root_batch_delete_request_inner.py => layout_config.py} (80%) create mode 100644 cyperf/models/pqc_signature_algorithm_tls13.py delete mode 100644 cyperf/models/prepared_test_options.py rename cyperf/models/{prepare_test_operation.py => profile.py} (53%) rename cyperf/models/{get_application_types200_response_one_of.py => section.py} (62%) delete mode 100644 cyperf/models/start_batch_delete_request_inner.py delete mode 100644 cyperf/models/switch_app_operation.py rename cyperf/models/{set_app_operation.py => text_segment.py} (69%) delete mode 100644 docs/AttackMetadataKeywordsInner.md delete mode 100644 docs/AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response.md create mode 100644 docs/BasicAuthProfile.md delete mode 100644 docs/Capture.md delete mode 100644 docs/ChangeAggregationModeOperation.md delete mode 100644 docs/ChangeLinkStateOperation.md create mode 100644 docs/ClassicalSignatureAlgorithmTLS13.md create mode 100644 docs/CompositePqcSignatureAlgorithmTLS13.md delete mode 100644 docs/ConfigMetadataConfigDataValue.md create mode 100644 docs/ContentBlock.md create mode 100644 docs/FormattedDescription.md delete mode 100644 docs/GetAgentTags200Response.md delete mode 100644 docs/GetAgentTags200ResponseOneOf.md delete mode 100644 docs/GetApplicationTypes200Response.md delete mode 100644 docs/GetApplicationTypes200ResponseOneOf.md delete mode 100644 docs/GetApps200Response.md delete mode 100644 docs/GetApps200ResponseOneOf.md delete mode 100644 docs/GetAttacks200Response.md delete mode 100644 docs/GetAttacks200ResponseOneOf.md delete mode 100644 docs/GetAttacksOperation.md delete mode 100644 docs/GetAuthProfiles200Response.md delete mode 100644 docs/GetAuthProfiles200ResponseOneOf.md delete mode 100644 docs/GetCertificates200Response.md delete mode 100644 docs/GetCertificates200ResponseOneOf.md delete mode 100644 docs/GetConsumers200Response.md delete mode 100644 docs/GetConsumers200ResponseOneOf.md delete mode 100644 docs/GetCustomImportOperations200Response.md delete mode 100644 docs/GetCustomImportOperations200ResponseOneOf.md delete mode 100644 docs/GetFiles200Response.md delete mode 100644 docs/GetFiles200ResponseOneOf.md delete mode 100644 docs/GetHttpProfiles200Response.md delete mode 100644 docs/GetHttpProfiles200ResponseOneOf.md delete mode 100644 docs/GetMeta200Response.md delete mode 100644 docs/GetMeta200ResponseOneOf.md delete mode 100644 docs/GetPlugins200Response.md delete mode 100644 docs/GetPlugins200ResponseOneOf.md delete mode 100644 docs/GetResultTags200Response.md delete mode 100644 docs/GetResultTags200ResponseOneOf.md rename docs/{GetAppsOperation.md => GetScenariosOperation.md} (61%) delete mode 100644 docs/GetStats200Response.md delete mode 100644 docs/GetStats200ResponseOneOf.md create mode 100644 docs/Keyword.md create mode 100644 docs/LayoutConfig.md create mode 100644 docs/PqcSignatureAlgorithmTLS13.md delete mode 100644 docs/PrepareTestOperation.md delete mode 100644 docs/PreparedTestOptions.md create mode 100644 docs/Profile.md create mode 100644 docs/Section.md delete mode 100644 docs/SetAppOperation.md delete mode 100644 docs/StartBatchDeleteRequestInner.md delete mode 100644 docs/StartRootBatchDeleteRequestInner.md delete mode 100644 docs/SwitchAppOperation.md delete mode 100644 docs/TestUsage.md create mode 100644 docs/TextSegment.md diff --git a/README.md b/README.md index 635aa8d..b38644b 100644 --- a/README.md +++ b/README.md @@ -337,7 +337,6 @@ Class | Method | HTTP request | Description *SessionsApi* | [**start_session_config_granular_stats_default_dashboards**](docs/SessionsApi.md#start_session_config_granular_stats_default_dashboards) | **POST** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards | *SessionsApi* | [**start_session_config_save**](docs/SessionsApi.md#start_session_config_save) | **POST** /api/v2/sessions/{sessionId}/config/operations/save | *SessionsApi* | [**start_session_load_config**](docs/SessionsApi.md#start_session_load_config) | **POST** /api/v2/sessions/{sessionId}/operations/loadConfig | -*SessionsApi* | [**start_session_prepare_test**](docs/SessionsApi.md#start_session_prepare_test) | **POST** /api/v2/sessions/{sessionId}/operations/prepareTest | *SessionsApi* | [**start_session_test_end**](docs/SessionsApi.md#start_session_test_end) | **POST** /api/v2/sessions/{sessionId}/operations/testEnd | *SessionsApi* | [**start_session_test_init**](docs/SessionsApi.md#start_session_test_init) | **POST** /api/v2/sessions/{sessionId}/operations/testInit | *SessionsApi* | [**start_session_touch**](docs/SessionsApi.md#start_session_touch) | **POST** /api/v2/sessions/{sessionId}/operations/touch | @@ -380,11 +379,11 @@ Class | Method | HTTP request | Description *UtilsApi* | [**get_docs**](docs/UtilsApi.md#get_docs) | **GET** /api/v2/docs | *UtilsApi* | [**get_docs_json**](docs/UtilsApi.md#get_docs_json) | **GET** /api/v2/docs.json | *UtilsApi* | [**get_docs_yaml**](docs/UtilsApi.md#get_docs_yaml) | **GET** /api/v2/docs.yaml | -*UtilsApi* | [**get_eula**](docs/UtilsApi.md#get_eula) | **GET** /eula/v1/eula/CyPerf | Retrieve EULA detail +*UtilsApi* | [**get_eula**](docs/UtilsApi.md#get_eula) | **GET** /eula/v1/eula/{id} | Retrieve EULA detail *UtilsApi* | [**get_log_config**](docs/UtilsApi.md#get_log_config) | **GET** /api/v2/log-config | *UtilsApi* | [**get_time**](docs/UtilsApi.md#get_time) | **GET** /api/v2/time | *UtilsApi* | [**list_eulas**](docs/UtilsApi.md#list_eulas) | **GET** /eula/v1/eula | list of EULAs -*UtilsApi* | [**post_eula**](docs/UtilsApi.md#post_eula) | **POST** /eula/v1/eula/CyPerf | Update properties an EULA +*UtilsApi* | [**post_eula**](docs/UtilsApi.md#post_eula) | **POST** /eula/v1/eula/{id} | Update properties an EULA *UtilsApi* | [**start_cert_manager_generate**](docs/UtilsApi.md#start_cert_manager_generate) | **POST** /api/v2/cert-manager/operations/generate | *UtilsApi* | [**start_cert_manager_upload**](docs/UtilsApi.md#start_cert_manager_upload) | **POST** /api/v2/cert-manager/operations/upload | *UtilsApi* | [**start_disk_usage_cleanup_diagnostics**](docs/UtilsApi.md#start_disk_usage_cleanup_diagnostics) | **POST** /api/v2/disk-usage/operations/cleanup-diagnostics | @@ -455,6 +454,7 @@ Class | Method | HTTP request | Description - [Authenticate200Response](docs/Authenticate200Response.md) - [AuthenticationSettings](docs/AuthenticationSettings.md) - [AutomaticIpType](docs/AutomaticIpType.md) + - [BasicAuthProfile](docs/BasicAuthProfile.md) - [Broker](docs/Broker.md) - [CaptureInput](docs/CaptureInput.md) - [CaptureInputFindParam](docs/CaptureInputFindParam.md) @@ -470,11 +470,13 @@ Class | Method | HTTP request | Description - [CipherTLS13](docs/CipherTLS13.md) - [CiscoAnyConnectSettings](docs/CiscoAnyConnectSettings.md) - [CiscoEncapsulation](docs/CiscoEncapsulation.md) + - [ClassicalSignatureAlgorithmTLS13](docs/ClassicalSignatureAlgorithmTLS13.md) - [ClearComputeResourcesOwnershipOperation](docs/ClearComputeResourcesOwnershipOperation.md) - [ClearFrontPanelPortsOwnershipOperation](docs/ClearFrontPanelPortsOwnershipOperation.md) - [ClearPortsOwnershipOperation](docs/ClearPortsOwnershipOperation.md) - [Command](docs/Command.md) - [CommandMetadata](docs/CommandMetadata.md) + - [CompositePqcSignatureAlgorithmTLS13](docs/CompositePqcSignatureAlgorithmTLS13.md) - [ComputeNode](docs/ComputeNode.md) - [ComputeResource](docs/ComputeResource.md) - [ComputeResourcesByController](docs/ComputeResourcesByController.md) @@ -489,6 +491,7 @@ Class | Method | HTTP request | Description - [Connection](docs/Connection.md) - [ConnectionPersistence](docs/ConnectionPersistence.md) - [Consumer](docs/Consumer.md) + - [ContentBlock](docs/ContentBlock.md) - [Controller](docs/Controller.md) - [CountedFeatureConsumer](docs/CountedFeatureConsumer.md) - [CountedFeatureStats](docs/CountedFeatureStats.md) @@ -555,6 +558,7 @@ Class | Method | HTTP request | Description - [Filter](docs/Filter.md) - [FilteredStat](docs/FilteredStat.md) - [FindParamMatchesOperation](docs/FindParamMatchesOperation.md) + - [FormattedDescription](docs/FormattedDescription.md) - [FortinetEncapsulation](docs/FortinetEncapsulation.md) - [FortinetSettings](docs/FortinetSettings.md) - [FrontPanel](docs/FrontPanel.md) @@ -568,9 +572,7 @@ Class | Method | HTTP request | Description - [GetAgents200ResponseOneOf](docs/GetAgents200ResponseOneOf.md) - [GetAgentsTags200Response](docs/GetAgentsTags200Response.md) - [GetAgentsTags200ResponseOneOf](docs/GetAgentsTags200ResponseOneOf.md) - - [GetAppsOperation](docs/GetAppsOperation.md) - [GetAsyncOperationResult200Response](docs/GetAsyncOperationResult200Response.md) - - [GetAttacksOperation](docs/GetAttacksOperation.md) - [GetBrokers200Response](docs/GetBrokers200Response.md) - [GetBrokers200ResponseOneOf](docs/GetBrokers200ResponseOneOf.md) - [GetCategoriesOperation](docs/GetCategoriesOperation.md) @@ -613,6 +615,7 @@ Class | Method | HTTP request | Description - [GetResults200ResponseOneOf](docs/GetResults200ResponseOneOf.md) - [GetResultsTags200Response](docs/GetResultsTags200Response.md) - [GetResultsTags200ResponseOneOf](docs/GetResultsTags200ResponseOneOf.md) + - [GetScenariosOperation](docs/GetScenariosOperation.md) - [GetSessionMeta200Response](docs/GetSessionMeta200Response.md) - [GetSessionMeta200ResponseOneOf](docs/GetSessionMeta200ResponseOneOf.md) - [GetSessions200Response](docs/GetSessions200Response.md) @@ -645,7 +648,9 @@ Class | Method | HTTP request | Description - [IpMask](docs/IpMask.md) - [IpPreference](docs/IpPreference.md) - [IpVer](docs/IpVer.md) + - [Keyword](docs/Keyword.md) - [LLMAPIProfile](docs/LLMAPIProfile.md) + - [LayoutConfig](docs/LayoutConfig.md) - [License](docs/License.md) - [LicenseReceipt](docs/LicenseReceipt.md) - [LicenseServerMetadata](docs/LicenseServerMetadata.md) @@ -714,9 +719,9 @@ Class | Method | HTTP request | Description - [PortsByController](docs/PortsByController.md) - [PortsByNode](docs/PortsByNode.md) - [PortsByPanel](docs/PortsByPanel.md) - - [PrepareTestOperation](docs/PrepareTestOperation.md) - - [PreparedTestOptions](docs/PreparedTestOptions.md) + - [PqcSignatureAlgorithmTLS13](docs/PqcSignatureAlgorithmTLS13.md) - [PrfP1Algorithm](docs/PrfP1Algorithm.md) + - [Profile](docs/Profile.md) - [ProtectedSubnetConfig](docs/ProtectedSubnetConfig.md) - [QUICProfile](docs/QUICProfile.md) - [QUICVersion](docs/QUICVersion.md) @@ -743,6 +748,7 @@ Class | Method | HTTP request | Description - [SaveConfigOperation](docs/SaveConfigOperation.md) - [Scenario](docs/Scenario.md) - [SecondaryObjective](docs/SecondaryObjective.md) + - [Section](docs/Section.md) - [SegmentType](docs/SegmentType.md) - [SelectedEnv](docs/SelectedEnv.md) - [SequenceDataTypes](docs/SequenceDataTypes.md) @@ -781,7 +787,7 @@ Class | Method | HTTP request | Description - [TcpProfile](docs/TcpProfile.md) - [TestInfo](docs/TestInfo.md) - [TestStateChangedOperation](docs/TestStateChangedOperation.md) - - [TestUsage](docs/TestUsage.md) + - [TextSegment](docs/TextSegment.md) - [TimeValue](docs/TimeValue.md) - [TimelineSegment](docs/TimelineSegment.md) - [TimelineSegmentBase](docs/TimelineSegmentBase.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 089f072..d848912 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -110,6 +110,7 @@ from cyperf.models.authenticate200_response import Authenticate200Response from cyperf.models.authentication_settings import AuthenticationSettings from cyperf.models.automatic_ip_type import AutomaticIpType +from cyperf.models.basic_auth_profile import BasicAuthProfile from cyperf.models.broker import Broker from cyperf.models.capture_input import CaptureInput from cyperf.models.capture_input_find_param import CaptureInputFindParam @@ -125,11 +126,13 @@ from cyperf.models.cipher_tls13 import CipherTLS13 from cyperf.models.cisco_any_connect_settings import CiscoAnyConnectSettings from cyperf.models.cisco_encapsulation import CiscoEncapsulation +from cyperf.models.classical_signature_algorithm_tls13 import ClassicalSignatureAlgorithmTLS13 from cyperf.models.clear_compute_resources_ownership_operation import ClearComputeResourcesOwnershipOperation from cyperf.models.clear_front_panel_ports_ownership_operation import ClearFrontPanelPortsOwnershipOperation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command from cyperf.models.command_metadata import CommandMetadata +from cyperf.models.composite_pqc_signature_algorithm_tls13 import CompositePqcSignatureAlgorithmTLS13 from cyperf.models.compute_node import ComputeNode from cyperf.models.compute_resource import ComputeResource from cyperf.models.compute_resources_by_controller import ComputeResourcesByController @@ -144,6 +147,7 @@ from cyperf.models.connection import Connection from cyperf.models.connection_persistence import ConnectionPersistence from cyperf.models.consumer import Consumer +from cyperf.models.content_block import ContentBlock from cyperf.models.controller import Controller from cyperf.models.counted_feature_consumer import CountedFeatureConsumer from cyperf.models.counted_feature_stats import CountedFeatureStats @@ -210,6 +214,7 @@ from cyperf.models.filter import Filter from cyperf.models.filtered_stat import FilteredStat from cyperf.models.find_param_matches_operation import FindParamMatchesOperation +from cyperf.models.formatted_description import FormattedDescription from cyperf.models.fortinet_encapsulation import FortinetEncapsulation from cyperf.models.fortinet_settings import FortinetSettings from cyperf.models.front_panel import FrontPanel @@ -223,9 +228,7 @@ from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf -from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response -from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation @@ -268,6 +271,7 @@ from cyperf.models.get_results200_response_one_of import GetResults200ResponseOneOf from cyperf.models.get_results_tags200_response import GetResultsTags200Response from cyperf.models.get_results_tags200_response_one_of import GetResultsTags200ResponseOneOf +from cyperf.models.get_scenarios_operation import GetScenariosOperation from cyperf.models.get_session_meta200_response import GetSessionMeta200Response from cyperf.models.get_session_meta200_response_one_of import GetSessionMeta200ResponseOneOf from cyperf.models.get_sessions200_response import GetSessions200Response @@ -300,7 +304,9 @@ from cyperf.models.ip_mask import IpMask from cyperf.models.ip_preference import IpPreference from cyperf.models.ip_ver import IpVer +from cyperf.models.keyword import Keyword from cyperf.models.llmapi_profile import LLMAPIProfile +from cyperf.models.layout_config import LayoutConfig from cyperf.models.license import License from cyperf.models.license_receipt import LicenseReceipt from cyperf.models.license_server_metadata import LicenseServerMetadata @@ -369,9 +375,9 @@ from cyperf.models.ports_by_controller import PortsByController from cyperf.models.ports_by_node import PortsByNode from cyperf.models.ports_by_panel import PortsByPanel -from cyperf.models.prepare_test_operation import PrepareTestOperation -from cyperf.models.prepared_test_options import PreparedTestOptions +from cyperf.models.pqc_signature_algorithm_tls13 import PqcSignatureAlgorithmTLS13 from cyperf.models.prf_p1_algorithm import PrfP1Algorithm +from cyperf.models.profile import Profile from cyperf.models.protected_subnet_config import ProtectedSubnetConfig from cyperf.models.quic_profile import QUICProfile from cyperf.models.quic_version import QUICVersion @@ -398,6 +404,7 @@ from cyperf.models.save_config_operation import SaveConfigOperation from cyperf.models.scenario import Scenario from cyperf.models.secondary_objective import SecondaryObjective +from cyperf.models.section import Section from cyperf.models.segment_type import SegmentType from cyperf.models.selected_env import SelectedEnv from cyperf.models.sequence_data_types import SequenceDataTypes @@ -436,7 +443,7 @@ from cyperf.models.tcp_profile import TcpProfile from cyperf.models.test_info import TestInfo from cyperf.models.test_state_changed_operation import TestStateChangedOperation -from cyperf.models.test_usage import TestUsage +from cyperf.models.text_segment import TextSegment from cyperf.models.time_value import TimeValue from cyperf.models.timeline_segment import TimelineSegment from cyperf.models.timeline_segment_base import TimelineSegmentBase diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index aa42349..1755616 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -33,8 +33,6 @@ from cyperf.models.export_apps_operation_input import ExportAppsOperationInput from cyperf.models.find_param_matches_operation import FindParamMatchesOperation from cyperf.models.generic_file import GenericFile -from cyperf.models.get_apps_operation import GetAppsOperation -from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_categories_operation import GetCategoriesOperation from cyperf.models.get_resources_application_types200_response import GetResourcesApplicationTypes200Response from cyperf.models.get_resources_apps200_response import GetResourcesApps200Response @@ -43,6 +41,7 @@ from cyperf.models.get_resources_certificates200_response import GetResourcesCertificates200Response from cyperf.models.get_resources_http_profiles200_response import GetResourcesHttpProfiles200Response from cyperf.models.get_resources_llm_api_profiles200_response import GetResourcesLlmApiProfiles200Response +from cyperf.models.get_scenarios_operation import GetScenariosOperation from cyperf.models.get_strikes_operation import GetStrikesOperation from cyperf.models.http_profile import HTTPProfile from cyperf.models.llmapi_profile import LLMAPIProfile @@ -86,6 +85,7 @@ def delete_resources_capture( ) -> None: """delete_resources_capture + Delete a capture that was loaded by the user. :param capture_id: The ID of the capture. (required) :type capture_id: str @@ -121,6 +121,9 @@ def delete_resources_capture( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -149,6 +152,7 @@ def delete_resources_capture_with_http_info( ) -> ApiResponse[None]: """delete_resources_capture + Delete a capture that was loaded by the user. :param capture_id: The ID of the capture. (required) :type capture_id: str @@ -184,6 +188,9 @@ def delete_resources_capture_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -212,6 +219,7 @@ def delete_resources_capture_without_preload_content( ) -> RESTResponseType: """delete_resources_capture + Delete a capture that was loaded by the user. :param capture_id: The ID of the capture. (required) :type capture_id: str @@ -247,6 +255,9 @@ def delete_resources_capture_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '204': None, + '401': "ErrorResponse", + '403': "ErrorResponse", + '404': "ErrorResponse", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4466,7 +4477,7 @@ def delete_resources_user_defined_app( ) -> None: """delete_resources_user_defined_app - Delete a CyPerf application that was created by the user. + Delete an application that was created by the user. :param user_defined_app_id: The ID of the user defined app. (required) :type user_defined_app_id: str @@ -4533,7 +4544,7 @@ def delete_resources_user_defined_app_with_http_info( ) -> ApiResponse[None]: """delete_resources_user_defined_app - Delete a CyPerf application that was created by the user. + Delete an application that was created by the user. :param user_defined_app_id: The ID of the user defined app. (required) :type user_defined_app_id: str @@ -4600,7 +4611,7 @@ def delete_resources_user_defined_app_without_preload_content( ) -> RESTResponseType: """delete_resources_user_defined_app - Delete a CyPerf application that was created by the user. + Delete an application that was created by the user. :param user_defined_app_id: The ID of the user defined app. (required) :type user_defined_app_id: str @@ -5575,7 +5586,7 @@ def get_resources_app_by_id( ) -> AppsecApp: """get_resources_app_by_id - Get a particular CyPerf application. + Get a particular application. :param app_id: The ID of the app. (required) :type app_id: str @@ -5641,7 +5652,7 @@ def get_resources_app_by_id_with_http_info( ) -> ApiResponse[AppsecApp]: """get_resources_app_by_id - Get a particular CyPerf application. + Get a particular application. :param app_id: The ID of the app. (required) :type app_id: str @@ -5707,7 +5718,7 @@ def get_resources_app_by_id_without_preload_content( ) -> RESTResponseType: """get_resources_app_by_id - Get a particular CyPerf application. + Get a particular application. :param app_id: The ID of the app. (required) :type app_id: str @@ -6642,7 +6653,7 @@ def get_resources_apps( ) -> GetResourcesApps200Response: """get_resources_apps - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int @@ -6732,7 +6743,7 @@ def get_resources_apps_with_http_info( ) -> ApiResponse[GetResourcesApps200Response]: """get_resources_apps - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int @@ -6822,7 +6833,7 @@ def get_resources_apps_without_preload_content( ) -> RESTResponseType: """get_resources_apps - Get all the available CyPerf applications. + Get all the available applications. :param take: The number of search results to return :type take: int @@ -7001,7 +7012,7 @@ def get_resources_attack_by_id( ) -> AppsecAttack: """get_resources_attack_by_id - Get a particular CyPerf attack. + Get a particular attack. :param attack_id: The ID of the attack. (required) :type attack_id: str @@ -7067,7 +7078,7 @@ def get_resources_attack_by_id_with_http_info( ) -> ApiResponse[AppsecAttack]: """get_resources_attack_by_id - Get a particular CyPerf attack. + Get a particular attack. :param attack_id: The ID of the attack. (required) :type attack_id: str @@ -7133,7 +7144,7 @@ def get_resources_attack_by_id_without_preload_content( ) -> RESTResponseType: """get_resources_attack_by_id - Get a particular CyPerf attack. + Get a particular attack. :param attack_id: The ID of the attack. (required) :type attack_id: str @@ -7539,7 +7550,7 @@ def get_resources_attacks( ) -> GetResourcesAttacks200Response: """get_resources_attacks - Get all the available CyPerf attacks. + Get all the available attacks. :param take: The number of search results to return :type take: int @@ -7629,7 +7640,7 @@ def get_resources_attacks_with_http_info( ) -> ApiResponse[GetResourcesAttacks200Response]: """get_resources_attacks - Get all the available CyPerf attacks. + Get all the available attacks. :param take: The number of search results to return :type take: int @@ -7719,7 +7730,7 @@ def get_resources_attacks_without_preload_content( ) -> RESTResponseType: """get_resources_attacks - Get all the available CyPerf attacks. + Get all the available attacks. :param take: The number of search results to return :type take: int @@ -8430,7 +8441,7 @@ def get_resources_capture_by_id( ) -> ReplayCapture: """get_resources_capture_by_id - Get a particular CyPerf capture loaded by the user. + Get a particular capture loaded by the user. :param capture_id: The ID of the capture. (required) :type capture_id: str @@ -8496,7 +8507,7 @@ def get_resources_capture_by_id_with_http_info( ) -> ApiResponse[ReplayCapture]: """get_resources_capture_by_id - Get a particular CyPerf capture loaded by the user. + Get a particular capture loaded by the user. :param capture_id: The ID of the capture. (required) :type capture_id: str @@ -8562,7 +8573,7 @@ def get_resources_capture_by_id_without_preload_content( ) -> RESTResponseType: """get_resources_capture_by_id - Get a particular CyPerf capture loaded by the user. + Get a particular capture loaded by the user. :param capture_id: The ID of the capture. (required) :type capture_id: str @@ -9775,6 +9786,7 @@ def get_resources_certificate_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -9839,6 +9851,7 @@ def get_resources_certificate_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -9903,6 +9916,7 @@ def get_resources_certificate_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -10827,6 +10841,7 @@ def get_resources_custom_fuzzing_script_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -10891,6 +10906,7 @@ def get_resources_custom_fuzzing_script_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -10955,6 +10971,7 @@ def get_resources_custom_fuzzing_script_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -12156,6 +12173,7 @@ def get_resources_flow_library_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -12220,6 +12238,7 @@ def get_resources_flow_library_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -12284,6 +12303,7 @@ def get_resources_flow_library_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -12931,6 +12951,7 @@ def get_resources_global_playlist_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -12995,6 +13016,7 @@ def get_resources_global_playlist_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -13059,6 +13081,7 @@ def get_resources_global_playlist_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -14260,6 +14283,7 @@ def get_resources_http_library_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -14324,6 +14348,7 @@ def get_resources_http_library_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -14388,6 +14413,7 @@ def get_resources_http_library_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -16099,6 +16125,7 @@ def get_resources_media_file_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -16163,6 +16190,7 @@ def get_resources_media_file_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -16227,6 +16255,7 @@ def get_resources_media_file_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -17428,6 +17457,7 @@ def get_resources_media_library_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -17492,6 +17522,7 @@ def get_resources_media_library_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -17556,6 +17587,7 @@ def get_resources_media_library_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -18480,6 +18512,7 @@ def get_resources_other_library_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -18544,6 +18577,7 @@ def get_resources_other_library_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -18608,6 +18642,7 @@ def get_resources_other_library_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -19255,6 +19290,7 @@ def get_resources_payload_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -19319,6 +19355,7 @@ def get_resources_payload_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -19383,6 +19420,7 @@ def get_resources_payload_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -20307,6 +20345,7 @@ def get_resources_pcap_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -20371,6 +20410,7 @@ def get_resources_pcap_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -20435,6 +20475,7 @@ def get_resources_pcap_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -21359,6 +21400,7 @@ def get_resources_playlist_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -21423,6 +21465,7 @@ def get_resources_playlist_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -21487,6 +21530,7 @@ def get_resources_playlist_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -21619,6 +21663,7 @@ def get_resources_playlist_values( _response_types_map: Dict[str, Optional[str]] = { '200': None, + '401': "ErrorResponse", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -21688,6 +21733,7 @@ def get_resources_playlist_values_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, + '401': "ErrorResponse", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -21757,6 +21803,7 @@ def get_resources_playlist_values_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, + '401': "ErrorResponse", '404': "ErrorResponse", '500': "ErrorResponse", } @@ -22963,6 +23010,7 @@ def get_resources_sip_library_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -23027,6 +23075,7 @@ def get_resources_sip_library_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -23091,6 +23140,7 @@ def get_resources_sip_library_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -24015,6 +24065,7 @@ def get_resources_stats_profile_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -24079,6 +24130,7 @@ def get_resources_stats_profile_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -24143,6 +24195,7 @@ def get_resources_stats_profile_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -25695,6 +25748,7 @@ def get_resources_tls_certificate_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -25759,6 +25813,7 @@ def get_resources_tls_certificate_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -25823,6 +25878,7 @@ def get_resources_tls_certificate_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -26747,6 +26803,7 @@ def get_resources_tls_dh_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -26811,6 +26868,7 @@ def get_resources_tls_dh_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -26875,6 +26933,7 @@ def get_resources_tls_dh_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -27799,6 +27858,7 @@ def get_resources_tls_key_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -27863,6 +27923,7 @@ def get_resources_tls_key_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -27927,6 +27988,7 @@ def get_resources_tls_key_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -29380,6 +29442,7 @@ def get_resources_voice_custom_flow_content_file( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -29444,6 +29507,7 @@ def get_resources_voice_custom_flow_content_file_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -29508,6 +29572,7 @@ def get_resources_voice_custom_flow_content_file_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", + '401': "ErrorResponse", '404': "ErrorResponse", } return self.api_client.call_api( @@ -33618,7 +33683,7 @@ def _start_resources_get_app_categories_serialize( @validate_call def start_resources_get_apps( self, - get_apps_operation: Optional[GetAppsOperation] = None, + get_scenarios_operation: Optional[GetScenariosOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33636,8 +33701,8 @@ def start_resources_get_apps( Get the list of applications - :param get_apps_operation: - :type get_apps_operation: GetAppsOperation + :param get_scenarios_operation: + :type get_scenarios_operation: GetScenariosOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33661,7 +33726,7 @@ def start_resources_get_apps( """ # noqa: E501 _param = self._start_resources_get_apps_serialize( - get_apps_operation=get_apps_operation, + get_scenarios_operation=get_scenarios_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33681,7 +33746,7 @@ def start_resources_get_apps( @validate_call def start_resources_get_apps_with_http_info( self, - get_apps_operation: Optional[GetAppsOperation] = None, + get_scenarios_operation: Optional[GetScenariosOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33699,8 +33764,8 @@ def start_resources_get_apps_with_http_info( Get the list of applications - :param get_apps_operation: - :type get_apps_operation: GetAppsOperation + :param get_scenarios_operation: + :type get_scenarios_operation: GetScenariosOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33724,7 +33789,7 @@ def start_resources_get_apps_with_http_info( """ # noqa: E501 _param = self._start_resources_get_apps_serialize( - get_apps_operation=get_apps_operation, + get_scenarios_operation=get_scenarios_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33744,7 +33809,7 @@ def start_resources_get_apps_with_http_info( @validate_call def start_resources_get_apps_without_preload_content( self, - get_apps_operation: Optional[GetAppsOperation] = None, + get_scenarios_operation: Optional[GetScenariosOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33762,8 +33827,8 @@ def start_resources_get_apps_without_preload_content( Get the list of applications - :param get_apps_operation: - :type get_apps_operation: GetAppsOperation + :param get_scenarios_operation: + :type get_scenarios_operation: GetScenariosOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33787,7 +33852,7 @@ def start_resources_get_apps_without_preload_content( """ # noqa: E501 _param = self._start_resources_get_apps_serialize( - get_apps_operation=get_apps_operation, + get_scenarios_operation=get_scenarios_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33806,7 +33871,7 @@ def start_resources_get_apps_without_preload_content( def _start_resources_get_apps_serialize( self, - get_apps_operation, + get_scenarios_operation, _request_auth, _content_type, _headers, @@ -33830,8 +33895,8 @@ def _start_resources_get_apps_serialize( # process the header parameters # process the form parameters # process the body parameter - if get_apps_operation is not None: - _body_params = get_apps_operation + if get_scenarios_operation is not None: + _body_params = get_scenarios_operation # set the HTTP header `Accept` @@ -34148,7 +34213,7 @@ def _start_resources_get_attack_categories_serialize( @validate_call def start_resources_get_attacks( self, - get_attacks_operation: Optional[GetAttacksOperation] = None, + get_scenarios_operation: Optional[GetScenariosOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34166,8 +34231,8 @@ def start_resources_get_attacks( Get the list of attacks - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation + :param get_scenarios_operation: + :type get_scenarios_operation: GetScenariosOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34191,7 +34256,7 @@ def start_resources_get_attacks( """ # noqa: E501 _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, + get_scenarios_operation=get_scenarios_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34211,7 +34276,7 @@ def start_resources_get_attacks( @validate_call def start_resources_get_attacks_with_http_info( self, - get_attacks_operation: Optional[GetAttacksOperation] = None, + get_scenarios_operation: Optional[GetScenariosOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34229,8 +34294,8 @@ def start_resources_get_attacks_with_http_info( Get the list of attacks - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation + :param get_scenarios_operation: + :type get_scenarios_operation: GetScenariosOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34254,7 +34319,7 @@ def start_resources_get_attacks_with_http_info( """ # noqa: E501 _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, + get_scenarios_operation=get_scenarios_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34274,7 +34339,7 @@ def start_resources_get_attacks_with_http_info( @validate_call def start_resources_get_attacks_without_preload_content( self, - get_attacks_operation: Optional[GetAttacksOperation] = None, + get_scenarios_operation: Optional[GetScenariosOperation] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34292,8 +34357,8 @@ def start_resources_get_attacks_without_preload_content( Get the list of attacks - :param get_attacks_operation: - :type get_attacks_operation: GetAttacksOperation + :param get_scenarios_operation: + :type get_scenarios_operation: GetScenariosOperation :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34317,7 +34382,7 @@ def start_resources_get_attacks_without_preload_content( """ # noqa: E501 _param = self._start_resources_get_attacks_serialize( - get_attacks_operation=get_attacks_operation, + get_scenarios_operation=get_scenarios_operation, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34336,7 +34401,7 @@ def start_resources_get_attacks_without_preload_content( def _start_resources_get_attacks_serialize( self, - get_attacks_operation, + get_scenarios_operation, _request_auth, _content_type, _headers, @@ -34360,8 +34425,8 @@ def _start_resources_get_attacks_serialize( # process the header parameters # process the form parameters # process the body parameter - if get_attacks_operation is not None: - _body_params = get_attacks_operation + if get_scenarios_operation is not None: + _body_params = get_scenarios_operation # set the HTTP header `Accept` diff --git a/cyperf/api/data_migration_api.py b/cyperf/api/data_migration_api.py index 674238c..0a62312 100644 --- a/cyperf/api/data_migration_api.py +++ b/cyperf/api/data_migration_api.py @@ -17,8 +17,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt -from typing import Optional +from pydantic import Field, StrictBytes, StrictInt, StrictStr +from typing import Optional, Union from typing_extensions import Annotated from cyperf.models.async_context import AsyncContext from cyperf.models.export_package_operation import ExportPackageOperation @@ -330,6 +330,7 @@ def _start_controller_migration_export_serialize( @validate_call def start_controller_migration_import( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -347,6 +348,8 @@ def start_controller_migration_import( Import the data from the supplied package into the controller. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -370,6 +373,7 @@ def start_controller_migration_import( """ # noqa: E501 _param = self._start_controller_migration_import_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -389,6 +393,7 @@ def start_controller_migration_import( @validate_call def start_controller_migration_import_with_http_info( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -406,6 +411,8 @@ def start_controller_migration_import_with_http_info( Import the data from the supplied package into the controller. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -429,6 +436,7 @@ def start_controller_migration_import_with_http_info( """ # noqa: E501 _param = self._start_controller_migration_import_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -448,6 +456,7 @@ def start_controller_migration_import_with_http_info( @validate_call def start_controller_migration_import_without_preload_content( self, + file: Optional[Union[StrictBytes, StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -465,6 +474,8 @@ def start_controller_migration_import_without_preload_content( Import the data from the supplied package into the controller. + :param file: + :type file: bytearray :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -488,6 +499,7 @@ def start_controller_migration_import_without_preload_content( """ # noqa: E501 _param = self._start_controller_migration_import_serialize( + file=file, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -506,6 +518,7 @@ def start_controller_migration_import_without_preload_content( def _start_controller_migration_import_serialize( self, + file, _request_auth, _content_type, _headers, @@ -528,6 +541,8 @@ def _start_controller_migration_import_serialize( # process the query parameters # process the header parameters # process the form parameters + if file is not None: + _files['file'] = file # process the body parameter @@ -539,6 +554,19 @@ def _start_controller_migration_import_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ diff --git a/cyperf/api/sessions_api.py b/cyperf/api/sessions_api.py index 705e787..6cd1e66 100644 --- a/cyperf/api/sessions_api.py +++ b/cyperf/api/sessions_api.py @@ -28,7 +28,6 @@ from cyperf.models.load_config_operation import LoadConfigOperation from cyperf.models.open_api_definitions import OpenAPIDefinitions from cyperf.models.pair import Pair -from cyperf.models.prepare_test_operation import PrepareTestOperation from cyperf.models.save_config_operation import SaveConfigOperation from cyperf.models.session import Session from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner @@ -4562,16 +4561,6 @@ def _patch_session_test_serialize( - - - - - - - - - - @@ -5691,287 +5680,6 @@ def _start_session_load_config_serialize( - @validate_call - def start_session_prepare_test( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - prepare_test_operation: Optional[List[PrepareTestOperation]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AsyncContext: - """start_session_prepare_test - - This operation returns the config processed as agent messages and any data necessary for UI and REST stats - - :param session_id: The ID of the session. (required) - :type session_id: str - :param prepare_test_operation: - :type prepare_test_operation: List[PrepareTestOperation] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_prepare_test_serialize( - session_id=session_id, - prepare_test_operation=prepare_test_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_prepare_test_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - prepare_test_operation: Optional[List[PrepareTestOperation]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AsyncContext]: - """start_session_prepare_test - - This operation returns the config processed as agent messages and any data necessary for UI and REST stats - - :param session_id: The ID of the session. (required) - :type session_id: str - :param prepare_test_operation: - :type prepare_test_operation: List[PrepareTestOperation] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_prepare_test_serialize( - session_id=session_id, - prepare_test_operation=prepare_test_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=_response_types_map, - _request_timeout=_request_timeout - ) - - - @validate_call - def start_session_prepare_test_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="The ID of the session.")], - prepare_test_operation: Optional[List[PrepareTestOperation]] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """start_session_prepare_test - - This operation returns the config processed as agent messages and any data necessary for UI and REST stats - - :param session_id: The ID of the session. (required) - :type session_id: str - :param prepare_test_operation: - :type prepare_test_operation: List[PrepareTestOperation] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._start_session_prepare_test_serialize( - session_id=session_id, - prepare_test_operation=prepare_test_operation, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '202': "AsyncContext", - } - return self.api_client.call_api( - *_param, - _response_types_map=None, - _request_timeout=_request_timeout - ) - - - def _start_session_prepare_test_serialize( - self, - session_id, - prepare_test_operation, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'PrepareTestOperation': '', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if session_id is not None: - _path_params['sessionId'] = session_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if prepare_test_operation is not None: - _body_params = prepare_test_operation - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'OAuth2', - 'OAuth2' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/api/v2/sessions/{sessionId}/operations/prepareTest', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def start_session_test_end( self, diff --git a/cyperf/api/utils_api.py b/cyperf/api/utils_api.py index b4eaf2f..0fa71ae 100644 --- a/cyperf/api/utils_api.py +++ b/cyperf/api/utils_api.py @@ -2030,6 +2030,7 @@ def _get_docs_yaml_serialize( @validate_call def get_eula( self, + id: Annotated[StrictStr, Field(description="The ID of the EULA.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2046,6 +2047,8 @@ def get_eula( """Retrieve EULA detail + :param id: The ID of the EULA. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2069,6 +2072,7 @@ def get_eula( """ # noqa: E501 _param = self._get_eula_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2089,6 +2093,7 @@ def get_eula( @validate_call def get_eula_with_http_info( self, + id: Annotated[StrictStr, Field(description="The ID of the EULA.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2105,6 +2110,8 @@ def get_eula_with_http_info( """Retrieve EULA detail + :param id: The ID of the EULA. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2128,6 +2135,7 @@ def get_eula_with_http_info( """ # noqa: E501 _param = self._get_eula_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2148,6 +2156,7 @@ def get_eula_with_http_info( @validate_call def get_eula_without_preload_content( self, + id: Annotated[StrictStr, Field(description="The ID of the EULA.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2164,6 +2173,8 @@ def get_eula_without_preload_content( """Retrieve EULA detail + :param id: The ID of the EULA. (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2187,6 +2198,7 @@ def get_eula_without_preload_content( """ # noqa: E501 _param = self._get_eula_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2206,6 +2218,7 @@ def get_eula_without_preload_content( def _get_eula_serialize( self, + id, _request_auth, _content_type, _headers, @@ -2225,6 +2238,8 @@ def _get_eula_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -2248,7 +2263,7 @@ def _get_eula_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/eula/v1/eula/CyPerf', + resource_path='/eula/v1/eula/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3048,6 +3063,7 @@ def _list_eulas_serialize( @validate_call def post_eula( self, + id: Annotated[StrictStr, Field(description="The ID of the EULA.")], eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, @@ -3065,6 +3081,8 @@ def post_eula( """Update properties an EULA + :param id: The ID of the EULA. (required) + :type id: str :param eula_summary: :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one @@ -3090,6 +3108,7 @@ def post_eula( """ # noqa: E501 _param = self._post_eula_serialize( + id=id, eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, @@ -3111,6 +3130,7 @@ def post_eula( @validate_call def post_eula_with_http_info( self, + id: Annotated[StrictStr, Field(description="The ID of the EULA.")], eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, @@ -3128,6 +3148,8 @@ def post_eula_with_http_info( """Update properties an EULA + :param id: The ID of the EULA. (required) + :type id: str :param eula_summary: :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one @@ -3153,6 +3175,7 @@ def post_eula_with_http_info( """ # noqa: E501 _param = self._post_eula_serialize( + id=id, eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, @@ -3174,6 +3197,7 @@ def post_eula_with_http_info( @validate_call def post_eula_without_preload_content( self, + id: Annotated[StrictStr, Field(description="The ID of the EULA.")], eula_summary: Optional[EulaSummary] = None, _request_timeout: Union[ None, @@ -3191,6 +3215,8 @@ def post_eula_without_preload_content( """Update properties an EULA + :param id: The ID of the EULA. (required) + :type id: str :param eula_summary: :type eula_summary: EulaSummary :param _request_timeout: timeout setting for this request. If one @@ -3216,6 +3242,7 @@ def post_eula_without_preload_content( """ # noqa: E501 _param = self._post_eula_serialize( + id=id, eula_summary=eula_summary, _request_auth=_request_auth, _content_type=_content_type, @@ -3236,6 +3263,7 @@ def post_eula_without_preload_content( def _post_eula_serialize( self, + id, eula_summary, _request_auth, _content_type, @@ -3256,6 +3284,8 @@ def _post_eula_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -3294,7 +3324,7 @@ def _post_eula_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/eula/v1/eula/CyPerf', + resource_path='/eula/v1/eula/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 36df2ec..08c3cbf 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -76,6 +76,7 @@ Authenticate200Response = DynamicModel('Authenticate200Response', (), {} ) AuthenticationSettings = DynamicModel('AuthenticationSettings', (), {} ) AutomaticIpType = DynamicModel('AutomaticIpType', (), {} ) +BasicAuthProfile = DynamicModel('BasicAuthProfile', (), {} ) Broker = DynamicModel('Broker', (), {} ) CaptureInput = DynamicModel('CaptureInput', (), {} ) CaptureInputFindParam = DynamicModel('CaptureInputFindParam', (), {} ) @@ -91,11 +92,13 @@ CipherTLS13 = DynamicModel('CipherTLS13', (), {} ) CiscoAnyConnectSettings = DynamicModel('CiscoAnyConnectSettings', (), {} ) CiscoEncapsulation = DynamicModel('CiscoEncapsulation', (), {} ) +ClassicalSignatureAlgorithmTLS13 = DynamicModel('ClassicalSignatureAlgorithmTLS13', (), {} ) ClearComputeResourcesOwnershipOperation = DynamicModel('ClearComputeResourcesOwnershipOperation', (), {} ) ClearFrontPanelPortsOwnershipOperation = DynamicModel('ClearFrontPanelPortsOwnershipOperation', (), {} ) ClearPortsOwnershipOperation = DynamicModel('ClearPortsOwnershipOperation', (), {} ) Command = DynamicModel('Command', (), {} ) CommandMetadata = DynamicModel('CommandMetadata', (), {} ) +CompositePqcSignatureAlgorithmTLS13 = DynamicModel('CompositePqcSignatureAlgorithmTLS13', (), {} ) ComputeNode = DynamicModel('ComputeNode', (), {} ) ComputeResource = DynamicModel('ComputeResource', (), {} ) ComputeResourcesByController = DynamicModel('ComputeResourcesByController', (), {} ) @@ -110,6 +113,7 @@ Connection = DynamicModel('Connection', (), {} ) ConnectionPersistence = DynamicModel('ConnectionPersistence', (), {} ) Consumer = DynamicModel('Consumer', (), {} ) +ContentBlock = DynamicModel('ContentBlock', (), {} ) Controller = DynamicModel('Controller', (), {} ) CountedFeatureConsumer = DynamicModel('CountedFeatureConsumer', (), {} ) CountedFeatureStats = DynamicModel('CountedFeatureStats', (), {} ) @@ -176,6 +180,7 @@ Filter = DynamicModel('Filter', (), {} ) FilteredStat = DynamicModel('FilteredStat', (), {} ) FindParamMatchesOperation = DynamicModel('FindParamMatchesOperation', (), {} ) +FormattedDescription = DynamicModel('FormattedDescription', (), {} ) FortinetEncapsulation = DynamicModel('FortinetEncapsulation', (), {} ) FortinetSettings = DynamicModel('FortinetSettings', (), {} ) FrontPanel = DynamicModel('FrontPanel', (), {} ) @@ -189,9 +194,7 @@ GetAgents200ResponseOneOf = DynamicModel('GetAgents200ResponseOneOf', (), {} ) GetAgentsTags200Response = DynamicModel('GetAgentsTags200Response', (), {} ) GetAgentsTags200ResponseOneOf = DynamicModel('GetAgentsTags200ResponseOneOf', (), {} ) -GetAppsOperation = DynamicModel('GetAppsOperation', (), {} ) GetAsyncOperationResult200Response = DynamicModel('GetAsyncOperationResult200Response', (), {} ) -GetAttacksOperation = DynamicModel('GetAttacksOperation', (), {} ) GetBrokers200Response = DynamicModel('GetBrokers200Response', (), {} ) GetBrokers200ResponseOneOf = DynamicModel('GetBrokers200ResponseOneOf', (), {} ) GetCategoriesOperation = DynamicModel('GetCategoriesOperation', (), {} ) @@ -234,6 +237,7 @@ GetResults200ResponseOneOf = DynamicModel('GetResults200ResponseOneOf', (), {} ) GetResultsTags200Response = DynamicModel('GetResultsTags200Response', (), {} ) GetResultsTags200ResponseOneOf = DynamicModel('GetResultsTags200ResponseOneOf', (), {} ) +GetScenariosOperation = DynamicModel('GetScenariosOperation', (), {} ) GetSessionMeta200Response = DynamicModel('GetSessionMeta200Response', (), {} ) GetSessionMeta200ResponseOneOf = DynamicModel('GetSessionMeta200ResponseOneOf', (), {} ) GetSessions200Response = DynamicModel('GetSessions200Response', (), {} ) @@ -266,7 +270,9 @@ IpMask = DynamicModel('IpMask', (), {} ) IpPreference = DynamicModel('IpPreference', (), {} ) IpVer = DynamicModel('IpVer', (), {} ) +Keyword = DynamicModel('Keyword', (), {} ) LLMAPIProfile = DynamicModel('LLMAPIProfile', (), {} ) +LayoutConfig = DynamicModel('LayoutConfig', (), {} ) License = DynamicModel('License', (), {} ) LicenseReceipt = DynamicModel('LicenseReceipt', (), {} ) LicenseServerMetadata = DynamicModel('LicenseServerMetadata', (), {} ) @@ -335,9 +341,9 @@ PortsByController = DynamicModel('PortsByController', (), {} ) PortsByNode = DynamicModel('PortsByNode', (), {} ) PortsByPanel = DynamicModel('PortsByPanel', (), {} ) -PrepareTestOperation = DynamicModel('PrepareTestOperation', (), {} ) -PreparedTestOptions = DynamicModel('PreparedTestOptions', (), {} ) +PqcSignatureAlgorithmTLS13 = DynamicModel('PqcSignatureAlgorithmTLS13', (), {} ) PrfP1Algorithm = DynamicModel('PrfP1Algorithm', (), {} ) +Profile = DynamicModel('Profile', (), {} ) ProtectedSubnetConfig = DynamicModel('ProtectedSubnetConfig', (), {} ) QUICProfile = DynamicModel('QUICProfile', (), {} ) QUICVersion = DynamicModel('QUICVersion', (), {} ) @@ -364,6 +370,7 @@ SaveConfigOperation = DynamicModel('SaveConfigOperation', (), {} ) Scenario = DynamicModel('Scenario', (), {} ) SecondaryObjective = DynamicModel('SecondaryObjective', (), {} ) +Section = DynamicModel('Section', (), {} ) SegmentType = DynamicModel('SegmentType', (), {} ) SelectedEnv = DynamicModel('SelectedEnv', (), {} ) SequenceDataTypes = DynamicModel('SequenceDataTypes', (), {} ) @@ -402,7 +409,7 @@ TcpProfile = DynamicModel('TcpProfile', (), {} ) TestInfo = DynamicModel('TestInfo', (), {} ) TestStateChangedOperation = DynamicModel('TestStateChangedOperation', (), {} ) -TestUsage = DynamicModel('TestUsage', (), {} ) +TextSegment = DynamicModel('TextSegment', (), {} ) TimeValue = DynamicModel('TimeValue', (), {} ) TimelineSegment = DynamicModel('TimelineSegment', (), {} ) TimelineSegmentBase = DynamicModel('TimelineSegmentBase', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 57762b5..24b5a3f 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -76,6 +76,7 @@ class LinkNameException(Exception): from cyperf.models.authenticate200_response import Authenticate200Response from cyperf.models.authentication_settings import AuthenticationSettings from cyperf.models.automatic_ip_type import AutomaticIpType +from cyperf.models.basic_auth_profile import BasicAuthProfile from cyperf.models.broker import Broker from cyperf.models.capture_input import CaptureInput from cyperf.models.capture_input_find_param import CaptureInputFindParam @@ -91,11 +92,13 @@ class LinkNameException(Exception): from cyperf.models.cipher_tls13 import CipherTLS13 from cyperf.models.cisco_any_connect_settings import CiscoAnyConnectSettings from cyperf.models.cisco_encapsulation import CiscoEncapsulation +from cyperf.models.classical_signature_algorithm_tls13 import ClassicalSignatureAlgorithmTLS13 from cyperf.models.clear_compute_resources_ownership_operation import ClearComputeResourcesOwnershipOperation from cyperf.models.clear_front_panel_ports_ownership_operation import ClearFrontPanelPortsOwnershipOperation from cyperf.models.clear_ports_ownership_operation import ClearPortsOwnershipOperation from cyperf.models.command import Command from cyperf.models.command_metadata import CommandMetadata +from cyperf.models.composite_pqc_signature_algorithm_tls13 import CompositePqcSignatureAlgorithmTLS13 from cyperf.models.compute_node import ComputeNode from cyperf.models.compute_resource import ComputeResource from cyperf.models.compute_resources_by_controller import ComputeResourcesByController @@ -110,6 +113,7 @@ class LinkNameException(Exception): from cyperf.models.connection import Connection from cyperf.models.connection_persistence import ConnectionPersistence from cyperf.models.consumer import Consumer +from cyperf.models.content_block import ContentBlock from cyperf.models.controller import Controller from cyperf.models.counted_feature_consumer import CountedFeatureConsumer from cyperf.models.counted_feature_stats import CountedFeatureStats @@ -176,6 +180,7 @@ class LinkNameException(Exception): from cyperf.models.filter import Filter from cyperf.models.filtered_stat import FilteredStat from cyperf.models.find_param_matches_operation import FindParamMatchesOperation +from cyperf.models.formatted_description import FormattedDescription from cyperf.models.fortinet_encapsulation import FortinetEncapsulation from cyperf.models.fortinet_settings import FortinetSettings from cyperf.models.front_panel import FrontPanel @@ -189,9 +194,7 @@ class LinkNameException(Exception): from cyperf.models.get_agents200_response_one_of import GetAgents200ResponseOneOf from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response from cyperf.models.get_agents_tags200_response_one_of import GetAgentsTags200ResponseOneOf -from cyperf.models.get_apps_operation import GetAppsOperation from cyperf.models.get_async_operation_result200_response import GetAsyncOperationResult200Response -from cyperf.models.get_attacks_operation import GetAttacksOperation from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation @@ -234,6 +237,7 @@ class LinkNameException(Exception): from cyperf.models.get_results200_response_one_of import GetResults200ResponseOneOf from cyperf.models.get_results_tags200_response import GetResultsTags200Response from cyperf.models.get_results_tags200_response_one_of import GetResultsTags200ResponseOneOf +from cyperf.models.get_scenarios_operation import GetScenariosOperation from cyperf.models.get_session_meta200_response import GetSessionMeta200Response from cyperf.models.get_session_meta200_response_one_of import GetSessionMeta200ResponseOneOf from cyperf.models.get_sessions200_response import GetSessions200Response @@ -266,7 +270,9 @@ class LinkNameException(Exception): from cyperf.models.ip_mask import IpMask from cyperf.models.ip_preference import IpPreference from cyperf.models.ip_ver import IpVer +from cyperf.models.keyword import Keyword from cyperf.models.llmapi_profile import LLMAPIProfile +from cyperf.models.layout_config import LayoutConfig from cyperf.models.license import License from cyperf.models.license_receipt import LicenseReceipt from cyperf.models.license_server_metadata import LicenseServerMetadata @@ -335,9 +341,9 @@ class LinkNameException(Exception): from cyperf.models.ports_by_controller import PortsByController from cyperf.models.ports_by_node import PortsByNode from cyperf.models.ports_by_panel import PortsByPanel -from cyperf.models.prepare_test_operation import PrepareTestOperation -from cyperf.models.prepared_test_options import PreparedTestOptions +from cyperf.models.pqc_signature_algorithm_tls13 import PqcSignatureAlgorithmTLS13 from cyperf.models.prf_p1_algorithm import PrfP1Algorithm +from cyperf.models.profile import Profile from cyperf.models.protected_subnet_config import ProtectedSubnetConfig from cyperf.models.quic_profile import QUICProfile from cyperf.models.quic_version import QUICVersion @@ -364,6 +370,7 @@ class LinkNameException(Exception): from cyperf.models.save_config_operation import SaveConfigOperation from cyperf.models.scenario import Scenario from cyperf.models.secondary_objective import SecondaryObjective +from cyperf.models.section import Section from cyperf.models.segment_type import SegmentType from cyperf.models.selected_env import SelectedEnv from cyperf.models.sequence_data_types import SequenceDataTypes @@ -402,7 +409,7 @@ class LinkNameException(Exception): from cyperf.models.tcp_profile import TcpProfile from cyperf.models.test_info import TestInfo from cyperf.models.test_state_changed_operation import TestStateChangedOperation -from cyperf.models.test_usage import TestUsage +from cyperf.models.text_segment import TextSegment from cyperf.models.time_value import TimeValue from cyperf.models.timeline_segment import TimelineSegment from cyperf.models.timeline_segment_base import TimelineSegmentBase diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 60d8573..e88d757 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -42,6 +42,7 @@ class Agent(BaseModel): last_update: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the agent was last updated", alias="LastUpdate") port_id_format: Optional[StrictStr] = Field(default=None, description="port agent id format", alias="PortIDFormat") reservation_id: Optional[StrictStr] = Field(default=None, description="The ID of the reservation", alias="ReservationID") + resource_name_format: Optional[StrictStr] = Field(default=None, description="display agent resource name format", alias="ResourceNameFormat") selected_env: Optional[SelectedEnv] = Field(default=None, alias="SelectedEnv") selection_status: Optional[StrictStr] = Field(default=None, description="The current status of the selection operation", alias="SelectionStatus") session_name: Optional[StrictStr] = Field(default=None, description="The session's name where the agent is running", alias="SessionName") @@ -62,7 +63,7 @@ class Agent(BaseModel): requires_updating: Optional[StrictBool] = Field(default=None, description="A flag indicating whether the agent is not using the recommended version", alias="requiresUpdating") system_info: Optional[SystemInfo] = Field(default=None, alias="systemInfo") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AgentTags", "DisplayNameFormat", "IP", "Interfaces", "LastUpdate", "PortIDFormat", "ReservationID", "SelectedEnv", "SelectionStatus", "SessionName", "Status", "configuredProxy", "cpuInfo", "dpdkEnabled", "features", "hostname", "id", "memoryMB", "mgmtInterface", "ntpInfo", "offline", "owner", "ownerId", "packageVersionStatus", "requiresUpdating", "systemInfo", "links"] + __properties: ClassVar[List[str]] = ["AgentTags", "DisplayNameFormat", "IP", "Interfaces", "LastUpdate", "PortIDFormat", "ReservationID", "ResourceNameFormat", "SelectedEnv", "SelectionStatus", "SessionName", "Status", "configuredProxy", "cpuInfo", "dpdkEnabled", "features", "hostname", "id", "memoryMB", "mgmtInterface", "ntpInfo", "offline", "owner", "ownerId", "packageVersionStatus", "requiresUpdating", "systemInfo", "links"] model_config = ConfigDict( populate_by_name=True, @@ -190,6 +191,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "LastUpdate": obj.get("LastUpdate"), "PortIDFormat": obj.get("PortIDFormat"), "ReservationID": obj.get("ReservationID"), + "ResourceNameFormat": obj.get("ResourceNameFormat"), "SelectedEnv": SelectedEnv.from_dict(obj["SelectedEnv"]) if obj.get("SelectedEnv") is not None else None, "SelectionStatus": obj.get("SelectionStatus"), "SessionName": obj.get("SessionName"), diff --git a/cyperf/models/attack_metadata_keywords_inner.py b/cyperf/models/attack_metadata_keywords_inner.py deleted file mode 100644 index 43082b2..0000000 --- a/cyperf/models/attack_metadata_keywords_inner.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator -from typing import Any, Dict, List, Optional, Union -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -ATTACKMETADATAKEYWORDSINNER_ANY_OF_SCHEMAS = ["List[object]", "bool", "float", "int", "object", "str"] - -class AttackMetadataKeywordsInner(BaseModel): - """ - AttackMetadataKeywordsInner - """ - - # data type: str - anyof_schema_1_validator: Optional[StrictStr] = None - # data type: float - anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None - # data type: int - anyof_schema_3_validator: Optional[StrictInt] = None - # data type: bool - anyof_schema_4_validator: Optional[StrictBool] = None - # data type: List[object] - anyof_schema_5_validator: Optional[List[Any]] = None - # data type: object - anyof_schema_6_validator: Optional[Dict[str, Any]] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[List[object], bool, float, int, object, str]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "List[object]", "bool", "float", "int", "object", "str" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = AttackMetadataKeywordsInner.model_construct() - error_messages = [] - # validate data type: str - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: float - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: int - try: - instance.anyof_schema_3_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: bool - try: - instance.anyof_schema_4_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: List[object] - try: - instance.anyof_schema_5_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: object - try: - instance.anyof_schema_6_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in AttackMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - # deserialize data into str - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into float - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into int - try: - # validation - instance.anyof_schema_3_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_3_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into bool - try: - # validation - instance.anyof_schema_4_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_4_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into List[object] - try: - # validation - instance.anyof_schema_5_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_5_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into object - try: - # validation - instance.anyof_schema_6_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_6_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into AttackMetadataKeywordsInner with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], List[object], bool, float, int, object, str]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/auth_realms_keysight_protocol_openid_connect_token_post200_response.py b/cyperf/models/auth_realms_keysight_protocol_openid_connect_token_post200_response.py deleted file mode 100644 index e89e3a2..0000000 --- a/cyperf/models/auth_realms_keysight_protocol_openid_connect_token_post200_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response(BaseModel): - """ - AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - """ # noqa: E501 - access_token: Optional[StrictStr] = Field(default=None, description="The access token. Set this in the Authorization HTTP Header to authenticate requests.") - expires_in: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The access token lifetime.") - refresh_expires_in: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The refresh token lifetime.") - refresh_token: Optional[StrictStr] = Field(default=None, description="Token that can be used with this request and grant_type: refresh_token to get a new access_token if the current one expires.") - __properties: ClassVar[List[str]] = ["access_token", "expires_in", "refresh_expires_in", "refresh_token"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "access_token": obj.get("access_token"), - "expires_in": obj.get("expires_in"), - "refresh_expires_in": obj.get("refresh_expires_in"), - "refresh_token": obj.get("refresh_token") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_apps200_response_one_of.py b/cyperf/models/basic_auth_profile.py similarity index 61% rename from cyperf/models/get_apps200_response_one_of.py rename to cyperf/models/basic_auth_profile.py index b77db43..311e829 100644 --- a/cyperf/models/get_apps200_response_one_of.py +++ b/cyperf/models/basic_auth_profile.py @@ -18,20 +18,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.appsec_app import AppsecApp -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.api_link import APILink +from cyperf.models.params import Params +from typing import Optional, Set, Union from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr -class GetApps200ResponseOneOf(BaseModel): +class BasicAuthProfile(BaseModel): """ - GetApps200ResponseOneOf + BasicAuthProfile """ # noqa: E501 - data: Optional[List[AppsecApp]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] + active: Optional[StrictBool] = Field(default=None, alias="Active") + params: Optional[List[Params]] = Field(default=None, alias="Params") + links: Optional[List[APILink]] = None + __properties: ClassVar[List[str]] = ["Active", "Params", "links"] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetApps200ResponseOneOf from a JSON string""" + """Create an instance of BasicAuthProfile from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,18 +74,25 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) + # override the default output from pydantic by calling `to_dict()` of each item in params (list) _items = [] - if self.data: - for _item in self.data: + if self.params: + for _item in self.params: if _item: _items.append(_item.to_dict()) - _dict['data'] = _items + _dict['Params'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetApps200ResponseOneOf from a dict""" + """Create an instance of BasicAuthProfile from a dict""" if obj is None: return None @@ -93,8 +102,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AppsecApp.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") + "Active": obj.get("Active"), + "Params": ( [Params.from_dict(_item) for _item in obj.get("Params", [])] if obj.get("Params") is not None else None), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/broker.py b/cyperf/models/broker.py index ec2df0c..8c84a17 100644 --- a/cyperf/models/broker.py +++ b/cyperf/models/broker.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set, Union from typing_extensions import Self @@ -28,18 +28,18 @@ class Broker(BaseModel): """ Broker """ # noqa: E501 - connection_status: Optional[StrictStr] = Field(default=None, description="The broker's connection status", alias="connectionStatus") - failure_reason: Optional[StrictStr] = Field(default=None, description="The broker's connection failure reason", alias="failureReason") - fingerprint: Optional[StrictStr] = Field(default=None, description="The broker's fingerprint") - host: Optional[StrictStr] = Field(default=None, description="The IP or hostname of the registered broker") - host_name: Optional[StrictStr] = Field(default=None, description="The IP or hostname of the registered broker", alias="hostName") - id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the broker") - interactive_fingerprint_verification: Optional[StrictBool] = Field(default=None, description="Validate the broker's fingerprint interactively", alias="interactiveFingerprintVerification") - password: Optional[StrictStr] = Field(default=None, description="The broker's authentication password") - pretty_conn_status: Optional[StrictStr] = Field(default=None, description="The broker's connection status in human readable format", alias="prettyConnStatus") - trust_new: Optional[StrictBool] = Field(default=None, description="The flag used to skip broker's identity verifications", alias="trustNew") - user: Optional[StrictStr] = Field(default=None, description="The broker's authentication user") - __properties: ClassVar[List[str]] = ["connectionStatus", "failureReason", "fingerprint", "host", "hostName", "id", "interactiveFingerprintVerification", "password", "prettyConnStatus", "trustNew", "user"] + connection_status: Optional[StrictStr] = Field(default=None, alias="connectionStatus") + failure_reason: Optional[StrictStr] = Field(default=None, alias="failureReason") + fingerprint: Optional[StrictStr] = None + host_name: Optional[StrictStr] = Field(default=None, alias="hostName") + id: Optional[StrictInt] = None + interactive_fingerprint_verification: Optional[StrictBool] = Field(default=None, alias="interactiveFingerprintVerification") + password: Optional[StrictStr] = None + pretty_conn_status: Optional[StrictStr] = Field(default=None, alias="prettyConnStatus") + trust_new: Optional[StrictBool] = Field(default=None, alias="trustNew") + tunnel_host_name: Optional[StrictStr] = Field(default=None, alias="tunnelHostName") + user: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["connectionStatus", "failureReason", "fingerprint", "hostName", "id", "interactiveFingerprintVerification", "password", "prettyConnStatus", "trustNew", "tunnelHostName", "user"] model_config = ConfigDict( populate_by_name=True, @@ -71,10 +71,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ - "id", ]) _dict = self.model_dump( @@ -99,13 +97,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "connectionStatus": obj.get("connectionStatus"), "failureReason": obj.get("failureReason"), "fingerprint": obj.get("fingerprint"), - "host": obj.get("host"), "hostName": obj.get("hostName"), "id": obj.get("id"), "interactiveFingerprintVerification": obj.get("interactiveFingerprintVerification"), "password": obj.get("password"), "prettyConnStatus": obj.get("prettyConnStatus"), "trustNew": obj.get("trustNew"), + "tunnelHostName": obj.get("tunnelHostName"), "user": obj.get("user") , "links": obj.get("links") diff --git a/cyperf/models/change_aggregation_mode_operation.py b/cyperf/models/change_aggregation_mode_operation.py deleted file mode 100644 index 9a62ec8..0000000 --- a/cyperf/models/change_aggregation_mode_operation.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class ChangeAggregationModeOperation(BaseModel): - """ - ChangeAggregationModeOperation - """ # noqa: E501 - aggregated: Optional[StrictBool] = Field(default=None, description="The desired aggregation mode.") - compute_nodes: Optional[List[StrictStr]] = Field(default=None, description="The compute-node ids for which to change the aggregation mode.", alias="compute-nodes") - controller: Optional[StrictStr] = Field(default=None, description="The id of the controller that is linked with the compute-nodes.") - __properties: ClassVar[List[str]] = ["aggregated", "compute-nodes", "controller"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ChangeAggregationModeOperation from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ChangeAggregationModeOperation from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "aggregated": obj.get("aggregated"), - "compute-nodes": obj.get("compute-nodes"), - "controller": obj.get("controller") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/change_link_state_operation.py b/cyperf/models/change_link_state_operation.py deleted file mode 100644 index 71ef69e..0000000 --- a/cyperf/models/change_link_state_operation.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing_extensions import Annotated -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class ChangeLinkStateOperation(BaseModel): - """ - ChangeLinkStateOperation - """ # noqa: E501 - link: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The desired link state.") - ports: Optional[List[StrictStr]] = Field(default=None, description="The port ids for which to change the link state.") - __properties: ClassVar[List[str]] = ["link", "ports"] - - @field_validator('link') - def link_validate_regular_expression(cls, value): - """Validates the regular expression""" - if value is None: - return value - - if not re.match(r"^(UP|DOWN)$", value): - raise ValueError(r"must validate the regular expression /^(UP|DOWN)$/") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ChangeLinkStateOperation from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ChangeLinkStateOperation from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "link": obj.get("link"), - "ports": obj.get("ports") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/classical_signature_algorithm_tls13.py b/cyperf/models/classical_signature_algorithm_tls13.py new file mode 100644 index 0000000..9ebe192 --- /dev/null +++ b/cyperf/models/classical_signature_algorithm_tls13.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ClassicalSignatureAlgorithmTLS13(str, Enum): + """ + The TLS supported classical signature algorithms. + """ + + """ + allowed enum values + """ + RSA_PKCS1_SHA256 = 'rsa_pkcs1_sha256' + RSA_PKCS1_SHA384 = 'rsa_pkcs1_sha384' + RSA_PKCS1_SHA512 = 'rsa_pkcs1_sha512' + ECDSA_SECP256R1_SHA256 = 'ecdsa_secp256r1_sha256' + ECDSA_SECP384R1_SHA384 = 'ecdsa_secp384r1_sha384' + ECDSA_SECP521R1_SHA512 = 'ecdsa_secp521r1_sha512' + RSA_PSS_RSAE_SHA256 = 'rsa_pss_rsae_sha256' + RSA_PSS_RSAE_SHA384 = 'rsa_pss_rsae_sha384' + RSA_PSS_RSAE_SHA512 = 'rsa_pss_rsae_sha512' + RSA_PSS_PSS_SHA256 = 'rsa_pss_pss_sha256' + RSA_PSS_PSS_SHA384 = 'rsa_pss_pss_sha384' + RSA_PSS_PSS_SHA512 = 'rsa_pss_pss_sha512' + ED25519 = 'ed25519' + ED448 = 'ed448' + ECDSA_BRAINPOOLP256R1TLS13_SHA256 = 'ecdsa_brainpoolp256r1tls13_sha256' + ECDSA_BRAINPOOLP384R1TLS13_SHA384 = 'ecdsa_brainpoolp384r1tls13_sha384' + ECDSA_BRAINPOOLP512R1TLS13_SHA512 = 'ecdsa_brainpoolp512r1tls13_sha512' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ClassicalSignatureAlgorithmTLS13 from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/composite_pqc_signature_algorithm_tls13.py b/cyperf/models/composite_pqc_signature_algorithm_tls13.py new file mode 100644 index 0000000..c69163f --- /dev/null +++ b/cyperf/models/composite_pqc_signature_algorithm_tls13.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class CompositePqcSignatureAlgorithmTLS13(str, Enum): + """ + The TLSv1.3 supported composite PQC signature algorithms. + """ + + """ + allowed enum values + """ + P256_MLDSA44 = 'p256_mldsa44' + P384_MLDSA65 = 'p384_mldsa65' + P521_MLDSA87 = 'p521_mldsa87' + RSA3072_MLDSA44 = 'rsa3072_mldsa44' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of CompositePqcSignatureAlgorithmTLS13 from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/config_metadata_config_data_value.py b/cyperf/models/config_metadata_config_data_value.py deleted file mode 100644 index 021627c..0000000 --- a/cyperf/models/config_metadata_config_data_value.py +++ /dev/null @@ -1,208 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator -from typing import Any, Dict, List, Optional, Union -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CONFIGMETADATACONFIGDATAVALUE_ANY_OF_SCHEMAS = ["List[object]", "bool", "float", "int", "object", "str"] - -class ConfigMetadataConfigDataValue(BaseModel): - """ - ConfigMetadataConfigDataValue - """ - - # data type: str - anyof_schema_1_validator: Optional[StrictStr] = None - # data type: float - anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None - # data type: int - anyof_schema_3_validator: Optional[StrictInt] = None - # data type: bool - anyof_schema_4_validator: Optional[StrictBool] = None - # data type: List[object] - anyof_schema_5_validator: Optional[List[Any]] = None - # data type: object - anyof_schema_6_validator: Optional[Dict[str, Any]] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[List[object], bool, float, int, object, str]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "List[object]", "bool", "float", "int", "object", "str" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = ConfigMetadataConfigDataValue.model_construct() - error_messages = [] - # validate data type: str - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: float - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: int - try: - instance.anyof_schema_3_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: bool - try: - instance.anyof_schema_4_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: List[object] - try: - instance.anyof_schema_5_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: object - try: - instance.anyof_schema_6_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in ConfigMetadataConfigDataValue with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - # deserialize data into str - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into float - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into int - try: - # validation - instance.anyof_schema_3_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_3_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into bool - try: - # validation - instance.anyof_schema_4_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_4_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into List[object] - try: - # validation - instance.anyof_schema_5_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_5_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into object - try: - # validation - instance.anyof_schema_6_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_6_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into ConfigMetadataConfigDataValue with anyOf schemas: List[object], bool, float, int, object, str. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], List[object], bool, float, int, object, str]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/capture.py b/cyperf/models/content_block.py similarity index 58% rename from cyperf/models/capture.py rename to cyperf/models/content_block.py index b9cff67..3831fde 100644 --- a/cyperf/models/capture.py +++ b/cyperf/models/content_block.py @@ -18,20 +18,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.app_flow import AppFlow -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.text_segment import TextSegment +from typing import Optional, Set, Union from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr -class Capture(BaseModel): +class ContentBlock(BaseModel): """ - Capture + ContentBlock """ # noqa: E501 - capture_id: Optional[StrictStr] = Field(default=None, alias="CaptureId") - flows: Optional[List[AppFlow]] = Field(default=None, alias="Flows") - __properties: ClassVar[List[str]] = ["CaptureId", "Flows"] + content: Optional[List[TextSegment]] = Field(default=None, description="The content of the block, as a list of rich text segments.") + level: Optional[StrictInt] = Field(default=None, description="The heading level (1-6), used by heading blocks.") + list_style: Optional[StrictStr] = Field(default=None, description="The list style: ordered or unordered (used by list blocks).", alias="listStyle") + severity: Optional[StrictStr] = Field(default=None, description="The severity level of a note block: info, warning, error, or success.") + type: Optional[StrictStr] = Field(default=None, description="The type of content block (e.g. paragraph, list, note, heading, divider).") + __properties: ClassVar[List[str]] = ["content", "level", "listStyle", "severity", "type"] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Capture from a JSON string""" + """Create an instance of ContentBlock from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,18 +75,18 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flows (list) + # override the default output from pydantic by calling `to_dict()` of each item in content (list) _items = [] - if self.flows: - for _item in self.flows: + if self.content: + for _item in self.content: if _item: _items.append(_item.to_dict()) - _dict['Flows'] = _items + _dict['content'] = _items return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Capture from a dict""" + """Create an instance of ContentBlock from a dict""" if obj is None: return None @@ -93,8 +96,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "CaptureId": obj.get("CaptureId"), - "Flows": [AppFlow.from_dict(_item) for _item in obj["Flows"]] if obj.get("Flows") is not None else None + "content": ( [TextSegment.from_dict(_item) for _item in obj.get("content", [])] if obj.get("content") is not None else None), + "level": obj.get("level"), + "listStyle": obj.get("listStyle"), + "severity": obj.get("severity"), + "type": obj.get("type") , "links": obj.get("links") }) diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index 8d74b23..3e5ff3f 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from cyperf.models.address import Address from cyperf.models.api_link import APILink +from cyperf.models.basic_auth_profile import BasicAuthProfile from cyperf.models.health_check_config import HealthCheckConfig from cyperf.models.params import Params from cyperf.models.pep_dut import PepDUT @@ -37,6 +38,7 @@ class DUTNetwork(BaseModel): name: Annotated[str, Field(strict=True)] = Field(alias="Name") id: StrictStr network_tags: Optional[List[StrictStr]] = Field(default=None, description="A list of tags.", alias="networkTags") + basic_auth_profile: Optional[BasicAuthProfile] = Field(default=None, alias="BasicAuthProfile") client_dut_active: Optional[StrictBool] = Field(default=None, alias="ClientDUTActive") client_dut_host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="ClientDUTHost") client_dut_port: Optional[StrictInt] = Field(default=None, description="The listen port for client-side DUT (default: 80).", alias="ClientDUTPort") @@ -47,8 +49,6 @@ class DUTNetwork(BaseModel): https_health_check: Optional[HealthCheckConfig] = Field(default=None, description="The HTTPS HealthCheck configuration for DUT", alias="HTTPSHealthCheck") hostname_suffix: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A suffix to be added to the Host header of all Apps/Attacks running through the forward proxy DUT (default: empty string).", alias="HostnameSuffix") http_forward_proxy_mode: Optional[StrictStr] = Field(default=None, description="Deprecated. This is ignored and the proxy mode will be deduced from the connection type.", alias="HttpForwardProxyMode") - llm_model: Optional[StrictStr] = Field(default=None, description="The identifier of the LLM model to use for inference.", alias="LLMModel") - llm_request_url_path: Optional[StrictStr] = Field(default=None, description="The endpoint URL for the LLM chat completions API.", alias="LLMRequestURLPath") non_proxied_hosts: Optional[Params] = Field(default=None, alias="NonProxiedHosts") pep_dut: Optional[PepDUT] = Field(default=None, alias="PepDUT") pep_dut_active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false)", alias="PepDUTActive") @@ -63,7 +63,7 @@ class DUTNetwork(BaseModel): active: Optional[StrictBool] = Field(default=None, description="A flag indicating if the server DUT is an active device. If it is, the simulated clients or client DUT(if active) will send traffic to the DUT 'host'; and the simulated servers will use the healtcheck configurations. (default: false)") host: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The hostname where the traffic goes if server DUT is active.") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "LLMModel", "LLMRequestURLPath", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTAddress", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] + __properties: ClassVar[List[str]] = ["Name", "id", "networkTags", "BasicAuthProfile", "ClientDUTActive", "ClientDUTHost", "ClientDUTPort", "ConfigSettings", "ForwardProxyPepDUT", "ForwardProxyPepDUTActive", "HTTPHealthCheck", "HTTPSHealthCheck", "HostnameSuffix", "HttpForwardProxyMode", "NonProxiedHosts", "PepDUT", "PepDUTActive", "ReverseProxyPepDUT", "ReverseProxyPepDUTActive", "ServerDUTActive", "ServerDUTAddress", "ServerDUTHost", "ServerDUTPort", "TCPHealthCheck", "UseRealHost", "active", "host", "links"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -171,6 +171,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of basic_auth_profile + if self.basic_auth_profile: + _dict['BasicAuthProfile'] = self.basic_auth_profile.to_dict() # override the default output from pydantic by calling `to_dict()` of forward_proxy_pep_dut if self.forward_proxy_pep_dut: _dict['ForwardProxyPepDUT'] = self.forward_proxy_pep_dut.to_dict() @@ -219,6 +222,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Name": obj.get("Name"), "id": obj.get("id"), "networkTags": obj.get("networkTags") if obj.get("networkTags") is not None else [], + "BasicAuthProfile": BasicAuthProfile.from_dict(obj["BasicAuthProfile"]) if obj.get("BasicAuthProfile") is not None else None, "ClientDUTActive": obj.get("ClientDUTActive"), "ClientDUTHost": obj.get("ClientDUTHost"), "ClientDUTPort": obj.get("ClientDUTPort"), @@ -229,8 +233,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "HTTPSHealthCheck": HealthCheckConfig.from_dict(obj["HTTPSHealthCheck"]) if obj.get("HTTPSHealthCheck") is not None else None, "HostnameSuffix": obj.get("HostnameSuffix"), "HttpForwardProxyMode": obj.get("HttpForwardProxyMode"), - "LLMModel": obj.get("LLMModel"), - "LLMRequestURLPath": obj.get("LLMRequestURLPath"), "NonProxiedHosts": Params.from_dict(obj["NonProxiedHosts"]) if obj.get("NonProxiedHosts") is not None else None, "PepDUT": PepDUT.from_dict(obj["PepDUT"]) if obj.get("PepDUT") is not None else None, "PepDUTActive": obj.get("PepDUTActive"), diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index 0bf2674..8939eb3 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -34,7 +34,7 @@ class EthRange(BaseModel): """ # noqa: E501 count: Optional[StrictInt] = Field(default=None, alias="Count") mac_address: Optional[SequenceValue] = Field(default=None, alias="MacAddress") - mac_auto: StrictBool = Field(description="A flag indicating if the MAC address for the EthRange should be determined automatically (default: true).", alias="MacAuto") + mac_auto: Optional[StrictBool] = Field(default=None, description="A flag indicating if the MAC address for the EthRange should be determined automatically (default: true).", alias="MacAuto") mac_incr: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The MAC address increment rule for the EthRange (default: 00:00:00:00:00:01).", alias="MacIncr") mac_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The MAC start address for the EthRange (default: 00:11:01:00:00:01).", alias="MacStart") one_mac_per_ip: Optional[StrictBool] = Field(default=None, description="A flag indicating if there is only one MAC address for the EthRange per IPRange (default: true).", alias="OneMacPerIP") diff --git a/cyperf/models/get_agent_tags200_response_one_of.py b/cyperf/models/formatted_description.py similarity index 60% rename from cyperf/models/get_agent_tags200_response_one_of.py rename to cyperf/models/formatted_description.py index e03d5f6..d6a7531 100644 --- a/cyperf/models/get_agent_tags200_response_one_of.py +++ b/cyperf/models/formatted_description.py @@ -18,20 +18,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.agents_group import AgentsGroup -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.layout_config import LayoutConfig +from cyperf.models.section import Section +from typing import Optional, Set, Union from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr -class GetAgentTags200ResponseOneOf(BaseModel): +class FormattedDescription(BaseModel): """ - GetAgentTags200ResponseOneOf + FormattedDescription """ # noqa: E501 - data: Optional[List[AgentsGroup]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] + layout: Optional[LayoutConfig] = None + sections: Optional[List[Section]] = Field(default=None, description="The list of sections that make up the page.") + summary: Optional[Section] = None + __properties: ClassVar[List[str]] = ["layout", "sections", "summary"] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAgentTags200ResponseOneOf from a JSON string""" + """Create an instance of FormattedDescription from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,18 +74,24 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) + # override the default output from pydantic by calling `to_dict()` of layout + if self.layout: + _dict['layout'] = self.layout.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in sections (list) _items = [] - if self.data: - for _item in self.data: + if self.sections: + for _item in self.sections: if _item: _items.append(_item.to_dict()) - _dict['data'] = _items + _dict['sections'] = _items + # override the default output from pydantic by calling `to_dict()` of summary + if self.summary: + _dict['summary'] = self.summary.to_dict() return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAgentTags200ResponseOneOf from a dict""" + """Create an instance of FormattedDescription from a dict""" if obj is None: return None @@ -93,8 +101,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [AgentsGroup.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") + "layout": LayoutConfig.from_dict(obj["layout"]) if obj.get("layout") is not None else None, + "sections": ( [Section.from_dict(_item) for _item in obj.get("sections", [])] if obj.get("sections") is not None else None), + "summary": Section.from_dict(obj["summary"]) if obj.get("summary") is not None else None , "links": obj.get("links") }) diff --git a/cyperf/models/get_agent_tags200_response.py b/cyperf/models/get_agent_tags200_response.py deleted file mode 100644 index 450b953..0000000 --- a/cyperf/models/get_agent_tags200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.agents_group import AgentsGroup -from cyperf.models.get_agent_tags200_response_one_of import GetAgentTags200ResponseOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETAGENTTAGS200RESPONSE_ONE_OF_SCHEMAS = ["GetAgentTags200ResponseOneOf", "List[AgentsGroup]"] - -class GetAgentTags200Response(BaseModel): - """ - GetAgentTags200Response - """ - # data type: List[AgentsGroup] - oneof_schema_1_validator: Optional[List[AgentsGroup]] = None - # data type: GetAgentTags200ResponseOneOf - oneof_schema_2_validator: Optional[GetAgentTags200ResponseOneOf] = None - actual_instance: Optional[Union[GetAgentTags200ResponseOneOf, List[AgentsGroup]]] = None - one_of_schemas: Set[str] = { "GetAgentTags200ResponseOneOf", "List[AgentsGroup]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetAgentTags200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[AgentsGroup] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetAgentTags200ResponseOneOf - if not isinstance(v, GetAgentTags200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetAgentTags200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetAgentTags200Response with oneOf schemas: GetAgentTags200ResponseOneOf, List[AgentsGroup]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetAgentTags200Response with oneOf schemas: GetAgentTags200ResponseOneOf, List[AgentsGroup]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[AgentsGroup] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetAgentTags200ResponseOneOf - try: - instance.actual_instance = GetAgentTags200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetAgentTags200Response with oneOf schemas: GetAgentTags200ResponseOneOf, List[AgentsGroup]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetAgentTags200Response with oneOf schemas: GetAgentTags200ResponseOneOf, List[AgentsGroup]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetAgentTags200ResponseOneOf, List[AgentsGroup]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_application_types200_response.py b/cyperf/models/get_application_types200_response.py deleted file mode 100644 index 6f26155..0000000 --- a/cyperf/models/get_application_types200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.application_type import ApplicationType -from cyperf.models.get_application_types200_response_one_of import GetApplicationTypes200ResponseOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETAPPLICATIONTYPES200RESPONSE_ONE_OF_SCHEMAS = ["GetApplicationTypes200ResponseOneOf", "List[ApplicationType]"] - -class GetApplicationTypes200Response(BaseModel): - """ - GetApplicationTypes200Response - """ - # data type: List[ApplicationType] - oneof_schema_1_validator: Optional[List[ApplicationType]] = None - # data type: GetApplicationTypes200ResponseOneOf - oneof_schema_2_validator: Optional[GetApplicationTypes200ResponseOneOf] = None - actual_instance: Optional[Union[GetApplicationTypes200ResponseOneOf, List[ApplicationType]]] = None - one_of_schemas: Set[str] = { "GetApplicationTypes200ResponseOneOf", "List[ApplicationType]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetApplicationTypes200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[ApplicationType] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetApplicationTypes200ResponseOneOf - if not isinstance(v, GetApplicationTypes200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetApplicationTypes200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetApplicationTypes200Response with oneOf schemas: GetApplicationTypes200ResponseOneOf, List[ApplicationType]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetApplicationTypes200Response with oneOf schemas: GetApplicationTypes200ResponseOneOf, List[ApplicationType]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[ApplicationType] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetApplicationTypes200ResponseOneOf - try: - instance.actual_instance = GetApplicationTypes200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetApplicationTypes200Response with oneOf schemas: GetApplicationTypes200ResponseOneOf, List[ApplicationType]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetApplicationTypes200Response with oneOf schemas: GetApplicationTypes200ResponseOneOf, List[ApplicationType]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetApplicationTypes200ResponseOneOf, List[ApplicationType]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_apps200_response.py b/cyperf/models/get_apps200_response.py deleted file mode 100644 index 9d1d4ac..0000000 --- a/cyperf/models/get_apps200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.appsec_app import AppsecApp -from cyperf.models.get_apps200_response_one_of import GetApps200ResponseOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETAPPS200RESPONSE_ONE_OF_SCHEMAS = ["GetApps200ResponseOneOf", "List[AppsecApp]"] - -class GetApps200Response(BaseModel): - """ - GetApps200Response - """ - # data type: List[AppsecApp] - oneof_schema_1_validator: Optional[List[AppsecApp]] = None - # data type: GetApps200ResponseOneOf - oneof_schema_2_validator: Optional[GetApps200ResponseOneOf] = None - actual_instance: Optional[Union[GetApps200ResponseOneOf, List[AppsecApp]]] = None - one_of_schemas: Set[str] = { "GetApps200ResponseOneOf", "List[AppsecApp]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetApps200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[AppsecApp] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetApps200ResponseOneOf - if not isinstance(v, GetApps200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetApps200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetApps200Response with oneOf schemas: GetApps200ResponseOneOf, List[AppsecApp]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetApps200Response with oneOf schemas: GetApps200ResponseOneOf, List[AppsecApp]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[AppsecApp] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetApps200ResponseOneOf - try: - instance.actual_instance = GetApps200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetApps200Response with oneOf schemas: GetApps200ResponseOneOf, List[AppsecApp]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetApps200Response with oneOf schemas: GetApps200ResponseOneOf, List[AppsecApp]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetApps200ResponseOneOf, List[AppsecApp]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_attacks200_response.py b/cyperf/models/get_attacks200_response.py deleted file mode 100644 index e3d23a1..0000000 --- a/cyperf/models/get_attacks200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.appsec_attack import AppsecAttack -from cyperf.models.get_attacks200_response_one_of import GetAttacks200ResponseOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETATTACKS200RESPONSE_ONE_OF_SCHEMAS = ["GetAttacks200ResponseOneOf", "List[AppsecAttack]"] - -class GetAttacks200Response(BaseModel): - """ - GetAttacks200Response - """ - # data type: List[AppsecAttack] - oneof_schema_1_validator: Optional[List[AppsecAttack]] = None - # data type: GetAttacks200ResponseOneOf - oneof_schema_2_validator: Optional[GetAttacks200ResponseOneOf] = None - actual_instance: Optional[Union[GetAttacks200ResponseOneOf, List[AppsecAttack]]] = None - one_of_schemas: Set[str] = { "GetAttacks200ResponseOneOf", "List[AppsecAttack]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetAttacks200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[AppsecAttack] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetAttacks200ResponseOneOf - if not isinstance(v, GetAttacks200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetAttacks200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetAttacks200Response with oneOf schemas: GetAttacks200ResponseOneOf, List[AppsecAttack]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetAttacks200Response with oneOf schemas: GetAttacks200ResponseOneOf, List[AppsecAttack]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[AppsecAttack] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetAttacks200ResponseOneOf - try: - instance.actual_instance = GetAttacks200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetAttacks200Response with oneOf schemas: GetAttacks200ResponseOneOf, List[AppsecAttack]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetAttacks200Response with oneOf schemas: GetAttacks200ResponseOneOf, List[AppsecAttack]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetAttacks200ResponseOneOf, List[AppsecAttack]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_attacks200_response_one_of.py b/cyperf/models/get_attacks200_response_one_of.py deleted file mode 100644 index 255e432..0000000 --- a/cyperf/models/get_attacks200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.appsec_attack import AppsecAttack -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetAttacks200ResponseOneOf(BaseModel): - """ - GetAttacks200ResponseOneOf - """ # noqa: E501 - data: Optional[List[AppsecAttack]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAttacks200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAttacks200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [AppsecAttack.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_attacks_operation.py b/cyperf/models/get_attacks_operation.py deleted file mode 100644 index 02528b7..0000000 --- a/cyperf/models/get_attacks_operation.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.category_filter import CategoryFilter -from cyperf.models.sort_body_field import SortBodyField -from typing import Optional, Set, Union -from typing_extensions import Self -from pydantic import Field, PrivateAttr - -class GetAttacksOperation(BaseModel): - """ - GetAttacksOperation - """ # noqa: E501 - categories: Optional[List[CategoryFilter]] = None - filter_mode: Optional[StrictStr] = Field(default=None, alias="filterMode") - search_col: Optional[List[StrictStr]] = Field(default=None, alias="searchCol") - search_val: Optional[List[StrictStr]] = Field(default=None, alias="searchVal") - skip: Optional[StrictStr] = None - sort: Optional[List[SortBodyField]] = None - take: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["categories", "filterMode", "searchCol", "searchVal", "skip", "sort", "take"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAttacksOperation from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in categories (list) - _items = [] - if self.categories: - for _item in self.categories: - if _item: - _items.append(_item.to_dict()) - _dict['categories'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in sort (list) - _items = [] - if self.sort: - for _item in self.sort: - if _item: - _items.append(_item.to_dict()) - _dict['sort'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAttacksOperation from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "categories": ( [CategoryFilter.from_dict(_item) for _item in obj.get("categories", [])] if obj.get("categories") is not None else None), - "filterMode": obj.get("filterMode"), - "searchCol": obj.get("searchCol") if obj.get("searchCol") is not None else [], - "searchVal": obj.get("searchVal") if obj.get("searchVal") is not None else [], - "skip": obj.get("skip"), - "sort": ( [SortBodyField.from_dict(_item) for _item in obj.get("sort", [])] if obj.get("sort") is not None else None), - "take": obj.get("take") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_auth_profiles200_response.py b/cyperf/models/get_auth_profiles200_response.py deleted file mode 100644 index 56d4e0e..0000000 --- a/cyperf/models/get_auth_profiles200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.auth_profile import AuthProfile -from cyperf.models.get_auth_profiles200_response_one_of import GetAuthProfiles200ResponseOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETAUTHPROFILES200RESPONSE_ONE_OF_SCHEMAS = ["GetAuthProfiles200ResponseOneOf", "List[AuthProfile]"] - -class GetAuthProfiles200Response(BaseModel): - """ - GetAuthProfiles200Response - """ - # data type: List[AuthProfile] - oneof_schema_1_validator: Optional[List[AuthProfile]] = None - # data type: GetAuthProfiles200ResponseOneOf - oneof_schema_2_validator: Optional[GetAuthProfiles200ResponseOneOf] = None - actual_instance: Optional[Union[GetAuthProfiles200ResponseOneOf, List[AuthProfile]]] = None - one_of_schemas: Set[str] = { "GetAuthProfiles200ResponseOneOf", "List[AuthProfile]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetAuthProfiles200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[AuthProfile] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetAuthProfiles200ResponseOneOf - if not isinstance(v, GetAuthProfiles200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetAuthProfiles200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetAuthProfiles200Response with oneOf schemas: GetAuthProfiles200ResponseOneOf, List[AuthProfile]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetAuthProfiles200Response with oneOf schemas: GetAuthProfiles200ResponseOneOf, List[AuthProfile]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[AuthProfile] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetAuthProfiles200ResponseOneOf - try: - instance.actual_instance = GetAuthProfiles200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetAuthProfiles200Response with oneOf schemas: GetAuthProfiles200ResponseOneOf, List[AuthProfile]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetAuthProfiles200Response with oneOf schemas: GetAuthProfiles200ResponseOneOf, List[AuthProfile]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetAuthProfiles200ResponseOneOf, List[AuthProfile]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_auth_profiles200_response_one_of.py b/cyperf/models/get_auth_profiles200_response_one_of.py deleted file mode 100644 index db0f7e3..0000000 --- a/cyperf/models/get_auth_profiles200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.auth_profile import AuthProfile -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetAuthProfiles200ResponseOneOf(BaseModel): - """ - GetAuthProfiles200ResponseOneOf - """ # noqa: E501 - data: Optional[List[AuthProfile]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAuthProfiles200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAuthProfiles200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [AuthProfile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_certificates200_response.py b/cyperf/models/get_certificates200_response.py deleted file mode 100644 index fcb4573..0000000 --- a/cyperf/models/get_certificates200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.generic_file import GenericFile -from cyperf.models.get_certificates200_response_one_of import GetCertificates200ResponseOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETCERTIFICATES200RESPONSE_ONE_OF_SCHEMAS = ["GetCertificates200ResponseOneOf", "List[GenericFile]"] - -class GetCertificates200Response(BaseModel): - """ - GetCertificates200Response - """ - # data type: List[GenericFile] - oneof_schema_1_validator: Optional[List[GenericFile]] = None - # data type: GetCertificates200ResponseOneOf - oneof_schema_2_validator: Optional[GetCertificates200ResponseOneOf] = None - actual_instance: Optional[Union[GetCertificates200ResponseOneOf, List[GenericFile]]] = None - one_of_schemas: Set[str] = { "GetCertificates200ResponseOneOf", "List[GenericFile]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetCertificates200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[GenericFile] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetCertificates200ResponseOneOf - if not isinstance(v, GetCertificates200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetCertificates200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetCertificates200Response with oneOf schemas: GetCertificates200ResponseOneOf, List[GenericFile]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetCertificates200Response with oneOf schemas: GetCertificates200ResponseOneOf, List[GenericFile]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[GenericFile] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetCertificates200ResponseOneOf - try: - instance.actual_instance = GetCertificates200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetCertificates200Response with oneOf schemas: GetCertificates200ResponseOneOf, List[GenericFile]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetCertificates200Response with oneOf schemas: GetCertificates200ResponseOneOf, List[GenericFile]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetCertificates200ResponseOneOf, List[GenericFile]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_certificates200_response_one_of.py b/cyperf/models/get_certificates200_response_one_of.py deleted file mode 100644 index 20fc846..0000000 --- a/cyperf/models/get_certificates200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.generic_file import GenericFile -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetCertificates200ResponseOneOf(BaseModel): - """ - GetCertificates200ResponseOneOf - """ # noqa: E501 - data: Optional[List[GenericFile]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetCertificates200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetCertificates200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [GenericFile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_consumers200_response.py b/cyperf/models/get_consumers200_response.py deleted file mode 100644 index cf071ef..0000000 --- a/cyperf/models/get_consumers200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.consumer import Consumer -from cyperf.models.get_consumers200_response_one_of import GetConsumers200ResponseOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETCONSUMERS200RESPONSE_ONE_OF_SCHEMAS = ["GetConsumers200ResponseOneOf", "List[Consumer]"] - -class GetConsumers200Response(BaseModel): - """ - GetConsumers200Response - """ - # data type: List[Consumer] - oneof_schema_1_validator: Optional[List[Consumer]] = None - # data type: GetConsumers200ResponseOneOf - oneof_schema_2_validator: Optional[GetConsumers200ResponseOneOf] = None - actual_instance: Optional[Union[GetConsumers200ResponseOneOf, List[Consumer]]] = None - one_of_schemas: Set[str] = { "GetConsumers200ResponseOneOf", "List[Consumer]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetConsumers200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[Consumer] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetConsumers200ResponseOneOf - if not isinstance(v, GetConsumers200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetConsumers200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetConsumers200Response with oneOf schemas: GetConsumers200ResponseOneOf, List[Consumer]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetConsumers200Response with oneOf schemas: GetConsumers200ResponseOneOf, List[Consumer]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[Consumer] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetConsumers200ResponseOneOf - try: - instance.actual_instance = GetConsumers200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetConsumers200Response with oneOf schemas: GetConsumers200ResponseOneOf, List[Consumer]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetConsumers200Response with oneOf schemas: GetConsumers200ResponseOneOf, List[Consumer]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetConsumers200ResponseOneOf, List[Consumer]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_consumers200_response_one_of.py b/cyperf/models/get_consumers200_response_one_of.py deleted file mode 100644 index cac4604..0000000 --- a/cyperf/models/get_consumers200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.consumer import Consumer -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetConsumers200ResponseOneOf(BaseModel): - """ - GetConsumers200ResponseOneOf - """ # noqa: E501 - data: Optional[List[Consumer]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetConsumers200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetConsumers200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [Consumer.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_custom_import_operations200_response.py b/cyperf/models/get_custom_import_operations200_response.py deleted file mode 100644 index 3a9d0a5..0000000 --- a/cyperf/models/get_custom_import_operations200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.custom_import_handler import CustomImportHandler -from cyperf.models.get_custom_import_operations200_response_one_of import GetCustomImportOperations200ResponseOneOf -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETCUSTOMIMPORTOPERATIONS200RESPONSE_ONE_OF_SCHEMAS = ["GetCustomImportOperations200ResponseOneOf", "List[CustomImportHandler]"] - -class GetCustomImportOperations200Response(BaseModel): - """ - GetCustomImportOperations200Response - """ - # data type: List[CustomImportHandler] - oneof_schema_1_validator: Optional[List[CustomImportHandler]] = None - # data type: GetCustomImportOperations200ResponseOneOf - oneof_schema_2_validator: Optional[GetCustomImportOperations200ResponseOneOf] = None - actual_instance: Optional[Union[GetCustomImportOperations200ResponseOneOf, List[CustomImportHandler]]] = None - one_of_schemas: Set[str] = { "GetCustomImportOperations200ResponseOneOf", "List[CustomImportHandler]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetCustomImportOperations200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[CustomImportHandler] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetCustomImportOperations200ResponseOneOf - if not isinstance(v, GetCustomImportOperations200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetCustomImportOperations200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetCustomImportOperations200Response with oneOf schemas: GetCustomImportOperations200ResponseOneOf, List[CustomImportHandler]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetCustomImportOperations200Response with oneOf schemas: GetCustomImportOperations200ResponseOneOf, List[CustomImportHandler]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[CustomImportHandler] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetCustomImportOperations200ResponseOneOf - try: - instance.actual_instance = GetCustomImportOperations200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetCustomImportOperations200Response with oneOf schemas: GetCustomImportOperations200ResponseOneOf, List[CustomImportHandler]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetCustomImportOperations200Response with oneOf schemas: GetCustomImportOperations200ResponseOneOf, List[CustomImportHandler]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetCustomImportOperations200ResponseOneOf, List[CustomImportHandler]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_custom_import_operations200_response_one_of.py b/cyperf/models/get_custom_import_operations200_response_one_of.py deleted file mode 100644 index 4d20050..0000000 --- a/cyperf/models/get_custom_import_operations200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.custom_import_handler import CustomImportHandler -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetCustomImportOperations200ResponseOneOf(BaseModel): - """ - GetCustomImportOperations200ResponseOneOf - """ # noqa: E501 - data: Optional[List[CustomImportHandler]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetCustomImportOperations200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetCustomImportOperations200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [CustomImportHandler.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_files200_response.py b/cyperf/models/get_files200_response.py deleted file mode 100644 index bf44eb6..0000000 --- a/cyperf/models/get_files200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.get_files200_response_one_of import GetFiles200ResponseOneOf -from cyperf.models.result_file_metadata import ResultFileMetadata -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETFILES200RESPONSE_ONE_OF_SCHEMAS = ["GetFiles200ResponseOneOf", "List[ResultFileMetadata]"] - -class GetFiles200Response(BaseModel): - """ - GetFiles200Response - """ - # data type: List[ResultFileMetadata] - oneof_schema_1_validator: Optional[List[ResultFileMetadata]] = None - # data type: GetFiles200ResponseOneOf - oneof_schema_2_validator: Optional[GetFiles200ResponseOneOf] = None - actual_instance: Optional[Union[GetFiles200ResponseOneOf, List[ResultFileMetadata]]] = None - one_of_schemas: Set[str] = { "GetFiles200ResponseOneOf", "List[ResultFileMetadata]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetFiles200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[ResultFileMetadata] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetFiles200ResponseOneOf - if not isinstance(v, GetFiles200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetFiles200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetFiles200Response with oneOf schemas: GetFiles200ResponseOneOf, List[ResultFileMetadata]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetFiles200Response with oneOf schemas: GetFiles200ResponseOneOf, List[ResultFileMetadata]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[ResultFileMetadata] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetFiles200ResponseOneOf - try: - instance.actual_instance = GetFiles200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetFiles200Response with oneOf schemas: GetFiles200ResponseOneOf, List[ResultFileMetadata]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetFiles200Response with oneOf schemas: GetFiles200ResponseOneOf, List[ResultFileMetadata]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetFiles200ResponseOneOf, List[ResultFileMetadata]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_files200_response_one_of.py b/cyperf/models/get_files200_response_one_of.py deleted file mode 100644 index 2713068..0000000 --- a/cyperf/models/get_files200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.result_file_metadata import ResultFileMetadata -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetFiles200ResponseOneOf(BaseModel): - """ - GetFiles200ResponseOneOf - """ # noqa: E501 - data: Optional[List[ResultFileMetadata]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetFiles200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetFiles200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [ResultFileMetadata.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_http_profiles200_response.py b/cyperf/models/get_http_profiles200_response.py deleted file mode 100644 index 85d853f..0000000 --- a/cyperf/models/get_http_profiles200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.get_http_profiles200_response_one_of import GetHttpProfiles200ResponseOneOf -from cyperf.models.http_profile import HTTPProfile -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETHTTPPROFILES200RESPONSE_ONE_OF_SCHEMAS = ["GetHttpProfiles200ResponseOneOf", "List[HTTPProfile]"] - -class GetHttpProfiles200Response(BaseModel): - """ - GetHttpProfiles200Response - """ - # data type: List[HTTPProfile] - oneof_schema_1_validator: Optional[List[HTTPProfile]] = None - # data type: GetHttpProfiles200ResponseOneOf - oneof_schema_2_validator: Optional[GetHttpProfiles200ResponseOneOf] = None - actual_instance: Optional[Union[GetHttpProfiles200ResponseOneOf, List[HTTPProfile]]] = None - one_of_schemas: Set[str] = { "GetHttpProfiles200ResponseOneOf", "List[HTTPProfile]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetHttpProfiles200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[HTTPProfile] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetHttpProfiles200ResponseOneOf - if not isinstance(v, GetHttpProfiles200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetHttpProfiles200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetHttpProfiles200Response with oneOf schemas: GetHttpProfiles200ResponseOneOf, List[HTTPProfile]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetHttpProfiles200Response with oneOf schemas: GetHttpProfiles200ResponseOneOf, List[HTTPProfile]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[HTTPProfile] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetHttpProfiles200ResponseOneOf - try: - instance.actual_instance = GetHttpProfiles200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetHttpProfiles200Response with oneOf schemas: GetHttpProfiles200ResponseOneOf, List[HTTPProfile]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetHttpProfiles200Response with oneOf schemas: GetHttpProfiles200ResponseOneOf, List[HTTPProfile]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetHttpProfiles200ResponseOneOf, List[HTTPProfile]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_http_profiles200_response_one_of.py b/cyperf/models/get_http_profiles200_response_one_of.py deleted file mode 100644 index 309c61f..0000000 --- a/cyperf/models/get_http_profiles200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.http_profile import HTTPProfile -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetHttpProfiles200ResponseOneOf(BaseModel): - """ - GetHttpProfiles200ResponseOneOf - """ # noqa: E501 - data: Optional[List[HTTPProfile]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetHttpProfiles200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetHttpProfiles200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [HTTPProfile.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_meta200_response.py b/cyperf/models/get_meta200_response.py deleted file mode 100644 index 3e65f25..0000000 --- a/cyperf/models/get_meta200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.get_meta200_response_one_of import GetMeta200ResponseOneOf -from cyperf.models.pair import Pair -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETMETA200RESPONSE_ONE_OF_SCHEMAS = ["GetMeta200ResponseOneOf", "List[Pair]"] - -class GetMeta200Response(BaseModel): - """ - GetMeta200Response - """ - # data type: List[Pair] - oneof_schema_1_validator: Optional[List[Pair]] = None - # data type: GetMeta200ResponseOneOf - oneof_schema_2_validator: Optional[GetMeta200ResponseOneOf] = None - actual_instance: Optional[Union[GetMeta200ResponseOneOf, List[Pair]]] = None - one_of_schemas: Set[str] = { "GetMeta200ResponseOneOf", "List[Pair]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetMeta200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[Pair] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetMeta200ResponseOneOf - if not isinstance(v, GetMeta200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetMeta200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetMeta200Response with oneOf schemas: GetMeta200ResponseOneOf, List[Pair]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetMeta200Response with oneOf schemas: GetMeta200ResponseOneOf, List[Pair]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[Pair] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetMeta200ResponseOneOf - try: - instance.actual_instance = GetMeta200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetMeta200Response with oneOf schemas: GetMeta200ResponseOneOf, List[Pair]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetMeta200Response with oneOf schemas: GetMeta200ResponseOneOf, List[Pair]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetMeta200ResponseOneOf, List[Pair]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_meta200_response_one_of.py b/cyperf/models/get_meta200_response_one_of.py deleted file mode 100644 index 0cbd4dc..0000000 --- a/cyperf/models/get_meta200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.pair import Pair -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetMeta200ResponseOneOf(BaseModel): - """ - GetMeta200ResponseOneOf - """ # noqa: E501 - data: Optional[List[Pair]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetMeta200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetMeta200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [Pair.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_plugins200_response.py b/cyperf/models/get_plugins200_response.py deleted file mode 100644 index d088e62..0000000 --- a/cyperf/models/get_plugins200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.get_plugins200_response_one_of import GetPlugins200ResponseOneOf -from cyperf.models.plugin import Plugin -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETPLUGINS200RESPONSE_ONE_OF_SCHEMAS = ["GetPlugins200ResponseOneOf", "List[Plugin]"] - -class GetPlugins200Response(BaseModel): - """ - GetPlugins200Response - """ - # data type: List[Plugin] - oneof_schema_1_validator: Optional[List[Plugin]] = None - # data type: GetPlugins200ResponseOneOf - oneof_schema_2_validator: Optional[GetPlugins200ResponseOneOf] = None - actual_instance: Optional[Union[GetPlugins200ResponseOneOf, List[Plugin]]] = None - one_of_schemas: Set[str] = { "GetPlugins200ResponseOneOf", "List[Plugin]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetPlugins200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[Plugin] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetPlugins200ResponseOneOf - if not isinstance(v, GetPlugins200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetPlugins200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetPlugins200Response with oneOf schemas: GetPlugins200ResponseOneOf, List[Plugin]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetPlugins200Response with oneOf schemas: GetPlugins200ResponseOneOf, List[Plugin]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[Plugin] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetPlugins200ResponseOneOf - try: - instance.actual_instance = GetPlugins200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetPlugins200Response with oneOf schemas: GetPlugins200ResponseOneOf, List[Plugin]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetPlugins200Response with oneOf schemas: GetPlugins200ResponseOneOf, List[Plugin]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetPlugins200ResponseOneOf, List[Plugin]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_plugins200_response_one_of.py b/cyperf/models/get_plugins200_response_one_of.py deleted file mode 100644 index 9528f19..0000000 --- a/cyperf/models/get_plugins200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.plugin import Plugin -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetPlugins200ResponseOneOf(BaseModel): - """ - GetPlugins200ResponseOneOf - """ # noqa: E501 - data: Optional[List[Plugin]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPlugins200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPlugins200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [Plugin.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_result_tags200_response.py b/cyperf/models/get_result_tags200_response.py deleted file mode 100644 index 587cc7b..0000000 --- a/cyperf/models/get_result_tags200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.get_result_tags200_response_one_of import GetResultTags200ResponseOneOf -from cyperf.models.results_group import ResultsGroup -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETRESULTTAGS200RESPONSE_ONE_OF_SCHEMAS = ["GetResultTags200ResponseOneOf", "List[ResultsGroup]"] - -class GetResultTags200Response(BaseModel): - """ - GetResultTags200Response - """ - # data type: List[ResultsGroup] - oneof_schema_1_validator: Optional[List[ResultsGroup]] = None - # data type: GetResultTags200ResponseOneOf - oneof_schema_2_validator: Optional[GetResultTags200ResponseOneOf] = None - actual_instance: Optional[Union[GetResultTags200ResponseOneOf, List[ResultsGroup]]] = None - one_of_schemas: Set[str] = { "GetResultTags200ResponseOneOf", "List[ResultsGroup]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetResultTags200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[ResultsGroup] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetResultTags200ResponseOneOf - if not isinstance(v, GetResultTags200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetResultTags200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetResultTags200Response with oneOf schemas: GetResultTags200ResponseOneOf, List[ResultsGroup]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetResultTags200Response with oneOf schemas: GetResultTags200ResponseOneOf, List[ResultsGroup]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[ResultsGroup] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetResultTags200ResponseOneOf - try: - instance.actual_instance = GetResultTags200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetResultTags200Response with oneOf schemas: GetResultTags200ResponseOneOf, List[ResultsGroup]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetResultTags200Response with oneOf schemas: GetResultTags200ResponseOneOf, List[ResultsGroup]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetResultTags200ResponseOneOf, List[ResultsGroup]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_result_tags200_response_one_of.py b/cyperf/models/get_result_tags200_response_one_of.py deleted file mode 100644 index 8c1eed1..0000000 --- a/cyperf/models/get_result_tags200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.results_group import ResultsGroup -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetResultTags200ResponseOneOf(BaseModel): - """ - GetResultTags200ResponseOneOf - """ # noqa: E501 - data: Optional[List[ResultsGroup]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetResultTags200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetResultTags200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [ResultsGroup.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/get_apps_operation.py b/cyperf/models/get_scenarios_operation.py similarity index 95% rename from cyperf/models/get_apps_operation.py rename to cyperf/models/get_scenarios_operation.py index 1da38fe..b849232 100644 --- a/cyperf/models/get_apps_operation.py +++ b/cyperf/models/get_scenarios_operation.py @@ -26,9 +26,9 @@ from typing_extensions import Self from pydantic import Field, PrivateAttr -class GetAppsOperation(BaseModel): +class GetScenariosOperation(BaseModel): """ - GetAppsOperation + GetScenariosOperation """ # noqa: E501 categories: Optional[List[CategoryFilter]] = None filter_mode: Optional[StrictStr] = Field(default=None, alias="filterMode") @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetAppsOperation from a JSON string""" + """Create an instance of GetScenariosOperation from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -96,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetAppsOperation from a dict""" + """Create an instance of GetScenariosOperation from a dict""" if obj is None: return None diff --git a/cyperf/models/get_stats200_response.py b/cyperf/models/get_stats200_response.py deleted file mode 100644 index 8d1f764..0000000 --- a/cyperf/models/get_stats200_response.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -import pprint -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Any, List, Optional -from cyperf.models.get_stats200_response_one_of import GetStats200ResponseOneOf -from cyperf.models.stats_result import StatsResult -from pydantic import StrictStr, Field -from typing import Union, List, Set, Optional, Dict -from typing_extensions import Literal, Self - -GETSTATS200RESPONSE_ONE_OF_SCHEMAS = ["GetStats200ResponseOneOf", "List[StatsResult]"] - -class GetStats200Response(BaseModel): - """ - GetStats200Response - """ - # data type: List[StatsResult] - oneof_schema_1_validator: Optional[List[StatsResult]] = None - # data type: GetStats200ResponseOneOf - oneof_schema_2_validator: Optional[GetStats200ResponseOneOf] = None - actual_instance: Optional[Union[GetStats200ResponseOneOf, List[StatsResult]]] = None - one_of_schemas: Set[str] = { "GetStats200ResponseOneOf", "List[StatsResult]" } - - model_config = ConfigDict( - validate_assignment=True, - protected_namespaces=(), - ) - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = GetStats200Response.model_construct() - error_messages = [] - match = 0 - # validate data type: List[StatsResult] - try: - instance.oneof_schema_1_validator = v - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: GetStats200ResponseOneOf - if not isinstance(v, GetStats200ResponseOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetStats200ResponseOneOf`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in GetStats200Response with oneOf schemas: GetStats200ResponseOneOf, List[StatsResult]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in GetStats200Response with oneOf schemas: GetStats200ResponseOneOf, List[StatsResult]. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() -# instance.api_client = client - error_messages = [] - match = 0 - - # deserialize data into List[StatsResult] - try: - # validation - instance.oneof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.oneof_schema_1_validator - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GetStats200ResponseOneOf - try: - instance.actual_instance = GetStats200ResponseOneOf.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into GetStats200Response with oneOf schemas: GetStats200ResponseOneOf, List[StatsResult]. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into GetStats200Response with oneOf schemas: GetStats200ResponseOneOf, List[StatsResult]. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetStats200ResponseOneOf, List[StatsResult]]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/cyperf/models/get_stats200_response_one_of.py b/cyperf/models/get_stats200_response_one_of.py deleted file mode 100644 index 3ec57df..0000000 --- a/cyperf/models/get_stats200_response_one_of.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.stats_result import StatsResult -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class GetStats200ResponseOneOf(BaseModel): - """ - GetStats200ResponseOneOf - """ # noqa: E501 - data: Optional[List[StatsResult]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetStats200ResponseOneOf from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) - _items = [] - if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) - _dict['data'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetStats200ResponseOneOf from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "data": [StatsResult.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index 58897c8..d29d5f0 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -37,7 +37,7 @@ class IPRange(BaseModel): """ # noqa: E501 automatic_ip_type: Optional[AutomaticIpType] = Field(default=None, description="The automatic IP types, either 'ONLY_IPV4', 'ONLY_IPV6' or 'BOTH_IPV4_IPV6'.", alias="AutomaticIpType") count: Optional[StrictInt] = Field(default=None, description="The number of IPs generated (default: 1).", alias="Count") - gw_auto: StrictBool = Field(description="A flag indicating if the gateway settings for the IPRange should be determined automatically (default: true).", alias="GwAuto") + gw_auto: Optional[StrictBool] = Field(default=None, description="A flag indicating if the gateway settings for the IPRange should be determined automatically (default: true).", alias="GwAuto") gw_start: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The gateway start IP for the IPRange (default: 10.0.0.1).", alias="GwStart") host_count: Optional[StrictInt] = Field(default=None, description="The number of Host IPs generated (default: 1).", alias="HostCount") inner_vlan_range: Optional[VLANRange] = Field(default=None, description="The inner VLAN range assigned to the current IP range configuration", alias="InnerVlanRange") @@ -51,7 +51,7 @@ class IPRange(BaseModel): mss: Optional[StrictInt] = Field(default=None, description="The maximum segment size of the TCP header.", alias="Mss") mss_auto: Optional[StrictBool] = Field(default=None, description="A flag indicating if Mss settings for the IPRange should be determined automatically (default: false).", alias="MssAuto") net_mask: Optional[StrictInt] = Field(default=None, description="The network mask of the IP Range (default: 16).", alias="NetMask") - net_mask_auto: StrictBool = Field(description="A flag indicating if the network mask of the IPRange should be determined automatically (default: true).", alias="NetMaskAuto") + net_mask_auto: Optional[StrictBool] = Field(default=None, description="A flag indicating if the network mask of the IPRange should be determined automatically (default: true).", alias="NetMaskAuto") outer_vlan_range: Optional[VLANRange] = Field(default=None, description="The outer VLAN range assigned to the current IP range configuration", alias="OuterVlanRange") vlan_type: Optional[VLANType] = Field(default=None, description="The type of VLAN used", alias="VLANType") id: Optional[StrictStr] = None diff --git a/cyperf/models/test_usage.py b/cyperf/models/keyword.py similarity index 76% rename from cyperf/models/test_usage.py rename to cyperf/models/keyword.py index 79a4446..e4999eb 100644 --- a/cyperf/models/test_usage.py +++ b/cyperf/models/keyword.py @@ -24,13 +24,14 @@ from typing_extensions import Self from pydantic import Field, PrivateAttr -class TestUsage(BaseModel): +class Keyword(BaseModel): """ - TestUsage + Keyword """ # noqa: E501 - used_agents: Optional[List[StrictStr]] = Field(default=None, description="The agents used by the current test", alias="usedAgents") - used_licenses: Optional[Dict[str, StrictInt]] = Field(default=None, description="Feature types used by the current test and their respective counts", alias="usedLicenses") - __properties: ClassVar[List[str]] = ["usedAgents", "usedLicenses"] + category: Optional[StrictStr] = Field(default=None, description="The keyword category", alias="Category") + value: Optional[StrictStr] = Field(default=None, description="The keyword value", alias="Value") + index: Optional[StrictInt] = Field(default=None, description="The index of the category") + __properties: ClassVar[List[str]] = ["Category", "Value", "index"] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TestUsage from a JSON string""" + """Create an instance of Keyword from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -75,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TestUsage from a dict""" + """Create an instance of Keyword from a dict""" if obj is None: return None @@ -85,8 +86,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "usedAgents": obj.get("usedAgents") if obj.get("usedAgents") is not None else [], - "usedLicenses": obj.get("usedLicenses") + "Category": obj.get("Category"), + "Value": obj.get("Value"), + "index": obj.get("index") , "links": obj.get("links") }) diff --git a/cyperf/models/start_root_batch_delete_request_inner.py b/cyperf/models/layout_config.py similarity index 80% rename from cyperf/models/start_root_batch_delete_request_inner.py rename to cyperf/models/layout_config.py index 55c9623..9820871 100644 --- a/cyperf/models/start_root_batch_delete_request_inner.py +++ b/cyperf/models/layout_config.py @@ -18,18 +18,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args +from typing import Optional, Set, Union from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr -class StartRootBatchDeleteRequestInner(BaseModel): +class LayoutConfig(BaseModel): """ - StartRootBatchDeleteRequestInner + LayoutConfig """ # noqa: E501 - id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id"] + columns: Optional[StrictInt] = Field(default=None, description="The number of columns in the layout grid.") + __properties: ClassVar[List[str]] = ["columns"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StartRootBatchDeleteRequestInner from a JSON string""" + """Create an instance of LayoutConfig from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StartRootBatchDeleteRequestInner from a dict""" + """Create an instance of LayoutConfig from a dict""" if obj is None: return None @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "id": obj.get("id") + "columns": obj.get("columns") , "links": obj.get("links") }) diff --git a/cyperf/models/license_server_metadata.py b/cyperf/models/license_server_metadata.py index c3f0cb6..9f78ef9 100644 --- a/cyperf/models/license_server_metadata.py +++ b/cyperf/models/license_server_metadata.py @@ -28,17 +28,17 @@ class LicenseServerMetadata(BaseModel): """ LicenseServerMetadata """ # noqa: E501 - connection_status: Optional[StrictStr] = Field(default=None, description="The license server's connection status", alias="connectionStatus") - failure_reason: Optional[StrictStr] = Field(default=None, description="The license server's connection failure reason", alias="failureReason") - fingerprint: Optional[StrictStr] = Field(default=None, description="The license server's fingerprint") - host_name: Optional[StrictStr] = Field(default=None, description="The hostname/IP of the server", alias="hostName") - id: Optional[StrictInt] = Field(default=None, description="The unique identifier of the license server") - interactive_fingerprint_verification: Optional[StrictBool] = Field(default=None, description="Validate the license's server fingerprint interactively", alias="interactiveFingerprintVerification") - password: Optional[StrictStr] = Field(default=None, description="The license server's authentication password") - pretty_conn_status: Optional[StrictStr] = Field(default=None, description="The license server's connection status in a human-readable format", alias="prettyConnStatus") - trust_new: Optional[StrictBool] = Field(default=None, description="The flag used to skip license server's identity verifications", alias="trustNew") - tunnel_host_name: Optional[StrictStr] = Field(default=None, description="The hostname/IP of the license server tunnel", alias="tunnelHostName") - user: Optional[StrictStr] = Field(default=None, description="The license server's authentication user") + connection_status: Optional[StrictStr] = Field(default=None, alias="connectionStatus") + failure_reason: Optional[StrictStr] = Field(default=None, alias="failureReason") + fingerprint: Optional[StrictStr] = None + host_name: Optional[StrictStr] = Field(default=None, alias="hostName") + id: Optional[StrictInt] = None + interactive_fingerprint_verification: Optional[StrictBool] = Field(default=None, alias="interactiveFingerprintVerification") + password: Optional[StrictStr] = None + pretty_conn_status: Optional[StrictStr] = Field(default=None, alias="prettyConnStatus") + trust_new: Optional[StrictBool] = Field(default=None, alias="trustNew") + tunnel_host_name: Optional[StrictStr] = Field(default=None, alias="tunnelHostName") + user: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["connectionStatus", "failureReason", "fingerprint", "hostName", "id", "interactiveFingerprintVerification", "password", "prettyConnStatus", "trustNew", "tunnelHostName", "user"] model_config = ConfigDict( @@ -71,16 +71,8 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. - * OpenAPI `readOnly` fields are excluded. - * OpenAPI `readOnly` fields are excluded. - * OpenAPI `readOnly` fields are excluded. - * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ - "connection_status", - "id", - "pretty_conn_status", - "tunnel_host_name", ]) _dict = self.model_dump( diff --git a/cyperf/models/llmapi_profile.py b/cyperf/models/llmapi_profile.py index 163ce6e..3b5fe79 100644 --- a/cyperf/models/llmapi_profile.py +++ b/cyperf/models/llmapi_profile.py @@ -34,16 +34,17 @@ class LLMAPIProfile(BaseModel): connections: Optional[List[Connection]] = Field(default=None, alias="Connections") id: StrictStr is_enabled: StrictBool = Field(alias="isEnabled") + is_one_arm: StrictBool = Field(description="Indicates whether the LLM API profile is one-arm", alias="isOneArm") links: Optional[List[APILink]] = None model_name: StrictStr = Field(alias="modelName") params: Optional[List[Params]] = None - __properties: ClassVar[List[str]] = ["Connections", "id", "isEnabled", "links", "modelName", "params"] + __properties: ClassVar[List[str]] = ["Connections", "id", "isEnabled", "isOneArm", "links", "modelName", "params"] @field_validator('model_name') def model_name_validate_enum(cls, value): """Validates the enum""" - if value not in set(['OpenAI', 'Gemini', 'Grok']): - raise ValueError("must be one of enum values ('OpenAI', 'Gemini', 'Grok')") + if value not in set(['OpenAI', 'Gemini', 'Grok', 'Azure Content Safety Prompt Shield API Interceptor', 'Model Armor API Interceptor', 'Prisma AIRS API Interceptor']): + raise ValueError("must be one of enum values ('OpenAI', 'Gemini', 'Grok', 'Azure Content Safety Prompt Shield API Interceptor', 'Model Armor API Interceptor', 'Prisma AIRS API Interceptor')") return value model_config = ConfigDict( @@ -123,6 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "Connections": ( [Connection.from_dict(_item) for _item in obj.get("Connections", [])] if obj.get("Connections") is not None else None), "id": obj.get("id"), "isEnabled": obj.get("isEnabled"), + "isOneArm": obj.get("isOneArm"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "modelName": obj.get("modelName"), "params": ( [Params.from_dict(_item) for _item in obj.get("params", [])] if obj.get("params") is not None else None) diff --git a/cyperf/models/pqc_signature_algorithm_tls13.py b/cyperf/models/pqc_signature_algorithm_tls13.py new file mode 100644 index 0000000..34d6b8a --- /dev/null +++ b/cyperf/models/pqc_signature_algorithm_tls13.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + CyPerf Application API + + CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PqcSignatureAlgorithmTLS13(str, Enum): + """ + The TLSv1.3 supported PQC signature algorithms. + """ + + """ + allowed enum values + """ + MLDSA44 = 'mldsa44' + MLDSA65 = 'mldsa65' + MLDSA87 = 'mldsa87' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PqcSignatureAlgorithmTLS13 from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/prepared_test_options.py b/cyperf/models/prepared_test_options.py deleted file mode 100644 index e6704ce..0000000 --- a/cyperf/models/prepared_test_options.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union -from typing_extensions import Self -from pydantic import Field, PrivateAttr - -class PreparedTestOptions(BaseModel): - """ - PreparedTestOptions - """ # noqa: E501 - add_activity_meta: Optional[StrictBool] = Field(default=None, alias="AddActivityMeta") - datasource_for_ui_views: Optional[StrictStr] = Field(default=None, alias="DatasourceForUIViews") - extra_tags: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="ExtraTags") - filter_by_properties: Optional[Dict[str, StrictStr]] = Field(default=None, alias="FilterByProperties") - format_protocol_name: Optional[StrictBool] = Field(default=None, alias="FormatProtocolName") - override_properties: Optional[Dict[str, StrictStr]] = Field(default=None, alias="OverrideProperties") - __properties: ClassVar[List[str]] = ["AddActivityMeta", "DatasourceForUIViews", "ExtraTags", "FilterByProperties", "FormatProtocolName", "OverrideProperties"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PreparedTestOptions from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PreparedTestOptions from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "AddActivityMeta": obj.get("AddActivityMeta"), - "DatasourceForUIViews": obj.get("DatasourceForUIViews"), - "ExtraTags": obj.get("ExtraTags"), - "FilterByProperties": obj.get("FilterByProperties"), - "FormatProtocolName": obj.get("FormatProtocolName"), - "OverrideProperties": obj.get("OverrideProperties") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/prepare_test_operation.py b/cyperf/models/profile.py similarity index 53% rename from cyperf/models/prepare_test_operation.py rename to cyperf/models/profile.py index d9f44e9..814b593 100644 --- a/cyperf/models/prepare_test_operation.py +++ b/cyperf/models/profile.py @@ -20,25 +20,26 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.prepared_test_options import PreparedTestOptions from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr -class PrepareTestOperation(BaseModel): +class Profile(BaseModel): """ - PrepareTestOperation + Profile """ # noqa: E501 - options: Optional[PreparedTestOptions] = Field(default=None, alias="Options") - message: Optional[StrictStr] = Field(default=None, description="An optional message that describes the reason the test ended") - new_state: Optional[StrictStr] = Field(default=None, description="An optional enum that identifies the current state of the test", alias="newState") - old_state: Optional[StrictStr] = Field(default=None, description="An optional enum that identifies the previous state of the test", alias="oldState") - owner: Optional[StrictStr] = Field(default=None, description="An optional friendly display name for the user which initiated the operation") - owner_id: Optional[StrictStr] = Field(default=None, description="An optional identifier that uniquely identifies the user which initiated the operation", alias="ownerId") - reason: Optional[StrictStr] = Field(default=None, description="An optional enum that identifies the underlying reason for the test's end") - test_id: Optional[StrictStr] = Field(default=None, description="The test to which the state change refers", alias="testId") - timestamp: Optional[StrictInt] = Field(default=None, description="An optional Unix timestamp that indicates when the test state was changed") - __properties: ClassVar[List[str]] = ["Options", "message", "newState", "oldState", "owner", "ownerId", "reason", "testId", "timestamp"] + category: Optional[StrictStr] = Field(default=None, description="Category of the profile") + config_id: Optional[StrictStr] = Field(default=None, description="The config ID associated with this profile", alias="configId") + description: Optional[StrictStr] = Field(default=None, description="Description of the profile") + display_name: Optional[StrictStr] = Field(default=None, description="Display name of the profile", alias="displayName") + icon: Optional[StrictStr] = Field(default=None, description="Profile icon (base64 encoded)") + id: Optional[StrictStr] = None + index: Optional[StrictInt] = Field(default=None, description="The index of the profile in the list of profiles. This is used for ordering profiles.") + owner: Optional[StrictStr] = Field(default=None, description="The friendly display name of the profile's owner") + owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the profile's owner", alias="ownerId") + topology_img_dark: Optional[StrictStr] = Field(default=None, description="Topology image (dark theme, base64 encoded)", alias="topologyImgDark") + topology_img_light: Optional[StrictStr] = Field(default=None, description="Topology image (light theme, base64 encoded)", alias="topologyImgLight") + __properties: ClassVar[List[str]] = ["category", "configId", "description", "displayName", "icon", "id", "index", "owner", "ownerId", "topologyImgDark", "topologyImgLight"] model_config = ConfigDict( populate_by_name=True, @@ -58,7 +59,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PrepareTestOperation from a JSON string""" + """Create an instance of Profile from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,8 +71,14 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "index", + "owner", + "owner_id", ]) _dict = self.model_dump( @@ -79,14 +86,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of options - if self.options: - _dict['Options'] = self.options.to_dict() return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PrepareTestOperation from a dict""" + """Create an instance of Profile from a dict""" if obj is None: return None @@ -96,15 +100,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "Options": PreparedTestOptions.from_dict(obj["Options"]) if obj.get("Options") is not None else None, - "message": obj.get("message"), - "newState": obj.get("newState"), - "oldState": obj.get("oldState"), + "category": obj.get("category"), + "configId": obj.get("configId"), + "description": obj.get("description"), + "displayName": obj.get("displayName"), + "icon": obj.get("icon"), + "id": obj.get("id"), + "index": obj.get("index"), "owner": obj.get("owner"), "ownerId": obj.get("ownerId"), - "reason": obj.get("reason"), - "testId": obj.get("testId"), - "timestamp": obj.get("timestamp") + "topologyImgDark": obj.get("topologyImgDark"), + "topologyImgLight": obj.get("topologyImgLight") , "links": obj.get("links") }) diff --git a/cyperf/models/get_application_types200_response_one_of.py b/cyperf/models/section.py similarity index 62% rename from cyperf/models/get_application_types200_response_one_of.py rename to cyperf/models/section.py index c5eb652..3e4fc2c 100644 --- a/cyperf/models/get_application_types200_response_one_of.py +++ b/cyperf/models/section.py @@ -18,20 +18,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from cyperf.models.application_type import ApplicationType -from typing import Optional, Set, Union, GenericAlias, get_args +from cyperf.models.content_block import ContentBlock +from cyperf.models.text_segment import TextSegment +from typing import Optional, Set, Union from typing_extensions import Self -from pydantic import Field +from pydantic import Field, PrivateAttr -class GetApplicationTypes200ResponseOneOf(BaseModel): +class Section(BaseModel): """ - GetApplicationTypes200ResponseOneOf + Section """ # noqa: E501 - data: Optional[List[ApplicationType]] = None - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") - __properties: ClassVar[List[str]] = ["data", "totalCount"] + content: Optional[List[ContentBlock]] = Field(default=None, description="The content blocks that belong to this section.") + title: Optional[List[TextSegment]] = Field(default=None, description="The title of the section, as a rich text.") + __properties: ClassVar[List[str]] = ["content", "title"] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetApplicationTypes200ResponseOneOf from a JSON string""" + """Create an instance of Section from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,18 +73,25 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in data (list) + # override the default output from pydantic by calling `to_dict()` of each item in content (list) _items = [] - if self.data: - for _item in self.data: + if self.content: + for _item in self.content: if _item: _items.append(_item.to_dict()) - _dict['data'] = _items + _dict['content'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in title (list) + _items = [] + if self.title: + for _item in self.title: + if _item: + _items.append(_item.to_dict()) + _dict['title'] = _items return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetApplicationTypes200ResponseOneOf from a dict""" + """Create an instance of Section from a dict""" if obj is None: return None @@ -93,8 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "data": [ApplicationType.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "totalCount": obj.get("totalCount") + "content": ( [ContentBlock.from_dict(_item) for _item in obj.get("content", [])] if obj.get("content") is not None else None), + "title": ( [TextSegment.from_dict(_item) for _item in obj.get("title", [])] if obj.get("title") is not None else None) , "links": obj.get("links") }) diff --git a/cyperf/models/session_reuse_method_tls12.py b/cyperf/models/session_reuse_method_tls12.py index 910f53f..0ad5c51 100644 --- a/cyperf/models/session_reuse_method_tls12.py +++ b/cyperf/models/session_reuse_method_tls12.py @@ -21,7 +21,7 @@ class SessionReuseMethodTLS12(str, Enum): """ - The session reuse method. Must be one of: DISABLE, SESSION-TICKET or SESSION-ID (default: DISABLE). + TLS 1.2 session reuse method. Must be one of: DISABLE, SESSION-TICKET, SESSION-ID (default: DISABLE). """ """ diff --git a/cyperf/models/session_reuse_method_tls13.py b/cyperf/models/session_reuse_method_tls13.py index aea72e3..350a7c5 100644 --- a/cyperf/models/session_reuse_method_tls13.py +++ b/cyperf/models/session_reuse_method_tls13.py @@ -21,13 +21,14 @@ class SessionReuseMethodTLS13(str, Enum): """ - The session reuse method. Must be DISABLE (default: DISABLE). + TLS 1.3 session reuse method. Must be one of: DISABLE, PSK_ECDHE_REUSE (default: DISABLE). """ """ allowed enum values """ DISABLE = 'DISABLE' + PSK_ECDHE_REUSE = 'PSK_ECDHE_REUSE' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/cyperf/models/start_batch_delete_request_inner.py b/cyperf/models/start_batch_delete_request_inner.py deleted file mode 100644 index abc0571..0000000 --- a/cyperf/models/start_batch_delete_request_inner.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class StartBatchDeleteRequestInner(BaseModel): - """ - StartBatchDeleteRequestInner - """ # noqa: E501 - id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StartBatchDeleteRequestInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StartBatchDeleteRequestInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "id": obj.get("id") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/switch_app_operation.py b/cyperf/models/switch_app_operation.py deleted file mode 100644 index 1a9b95b..0000000 --- a/cyperf/models/switch_app_operation.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - CyPerf Application API - - CyPerf REST API - - The version of the OpenAPI document: 1.0.0 - Contact: support@keysight.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set, Union, GenericAlias, get_args -from typing_extensions import Self -from pydantic import Field - -class SwitchAppOperation(BaseModel): - """ - SwitchAppOperation - """ # noqa: E501 - app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the controller.", alias="appID") - __properties: ClassVar[List[str]] = ["appID"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SwitchAppOperation from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SwitchAppOperation from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - _obj = cls.model_validate(obj) -# _obj.api_client = client - return _obj - - _obj = cls.model_validate({ - "appID": obj.get("appID") - , - "links": obj.get("links") - }) - return _obj - - diff --git a/cyperf/models/test_info.py b/cyperf/models/test_info.py index 0a05bfd..5a2ddf6 100644 --- a/cyperf/models/test_info.py +++ b/cyperf/models/test_info.py @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from cyperf.models.dashboard import Dashboard -from cyperf.models.test_usage import TestUsage from typing import Optional, Set, Union from typing_extensions import Self from pydantic import Field, PrivateAttr @@ -41,8 +40,8 @@ class TestInfo(BaseModel): test_initialized: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the last test was initialized", alias="testInitialized") test_started: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was started", alias="testStarted") test_stopped: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the test was stopped. May be null if the test is still running.", alias="testStopped") - test_usage: Optional[TestUsage] = Field(default=None, alias="testUsage") - __properties: ClassVar[List[str]] = ["dashboards", "defaultDashboardIndex", "defaultPollingInterval", "status", "testDetails", "testDuration", "testElapsed", "testId", "testInitialized", "testStarted", "testStopped", "testUsage"] + used_licenses: Optional[Dict[str, StrictInt]] = Field(default=None, description="Feature types used by the current test and their respective counts", alias="usedLicenses") + __properties: ClassVar[List[str]] = ["dashboards", "defaultDashboardIndex", "defaultPollingInterval", "status", "testDetails", "testDuration", "testElapsed", "testId", "testInitialized", "testStarted", "testStopped", "usedLicenses"] model_config = ConfigDict( populate_by_name=True, @@ -92,9 +91,6 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict['dashboards'] = _items - # override the default output from pydantic by calling `to_dict()` of test_usage - if self.test_usage: - _dict['testUsage'] = self.test_usage.to_dict() return _dict @classmethod @@ -120,7 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "testInitialized": obj.get("testInitialized"), "testStarted": obj.get("testStarted"), "testStopped": obj.get("testStopped"), - "testUsage": TestUsage.from_dict(obj["testUsage"]) if obj.get("testUsage") is not None else None + "usedLicenses": obj.get("usedLicenses") , "links": obj.get("links") }) diff --git a/cyperf/models/set_app_operation.py b/cyperf/models/text_segment.py similarity index 69% rename from cyperf/models/set_app_operation.py rename to cyperf/models/text_segment.py index 134363b..5f1c8d9 100644 --- a/cyperf/models/set_app_operation.py +++ b/cyperf/models/text_segment.py @@ -24,14 +24,16 @@ from typing_extensions import Self from pydantic import Field, PrivateAttr -class SetAppOperation(BaseModel): +class TextSegment(BaseModel): """ - SetAppOperation + TextSegment """ # noqa: E501 - app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the controllers.", alias="appId") - controllers: Optional[List[StrictStr]] = Field(default=None, description="The controller ids for which to activate the app.") - force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") - __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + bold: Optional[StrictBool] = Field(default=None, description="Whether the text is bold.") + color: Optional[StrictStr] = Field(default=None, description="The color of the text.") + css_class: Optional[StrictStr] = Field(default=None, description="A CSS class to apply to the text segment.", alias="cssClass") + italic: Optional[StrictBool] = Field(default=None, description="Whether the text is italic.") + text: Optional[StrictStr] = Field(default=None, description="The text content of the segment.") + __properties: ClassVar[List[str]] = ["bold", "color", "cssClass", "italic", "text"] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SetAppOperation from a JSON string""" + """Create an instance of TextSegment from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SetAppOperation from a dict""" + """Create an instance of TextSegment from a dict""" if obj is None: return None @@ -86,9 +88,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "appId": obj.get("appId"), - "controllers": obj.get("controllers") if obj.get("controllers") is not None else [], - "force": obj.get("force") + "bold": obj.get("bold"), + "color": obj.get("color"), + "cssClass": obj.get("cssClass"), + "italic": obj.get("italic"), + "text": obj.get("text") , "links": obj.get("links") }) diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index 7e16c99..cfe841f 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -24,9 +24,12 @@ from cyperf.models.cert_config import CertConfig from cyperf.models.cipher_tls12 import CipherTLS12 from cyperf.models.cipher_tls13 import CipherTLS13 +from cyperf.models.classical_signature_algorithm_tls13 import ClassicalSignatureAlgorithmTLS13 +from cyperf.models.composite_pqc_signature_algorithm_tls13 import CompositePqcSignatureAlgorithmTLS13 from cyperf.models.conflict import Conflict from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.params import Params +from cyperf.models.pqc_signature_algorithm_tls13 import PqcSignatureAlgorithmTLS13 from cyperf.models.session_reuse_method_tls12 import SessionReuseMethodTLS12 from cyperf.models.session_reuse_method_tls13 import SessionReuseMethodTLS13 from cyperf.models.supported_group_tls13 import SupportedGroupTLS13 @@ -44,7 +47,10 @@ class TLSProfile(BaseModel): cipher13: Optional[CipherTLS13] = None ciphers12: Optional[List[CipherTLS12]] = None ciphers13: Optional[List[CipherTLS13]] = None + classical_signature_algorithms13: Optional[List[ClassicalSignatureAlgorithmTLS13]] = Field(default=None, alias="classicalSignatureAlgorithms13") + composite_pqc_signature_algorithms13: Optional[List[CompositePqcSignatureAlgorithmTLS13]] = Field(default=None, alias="compositePqcSignatureAlgorithms13") dh_file: Optional[Params] = Field(default=None, alias="dhFile") + early_data_enabled: Optional[StrictBool] = Field(default=None, description="If true, TLS 1.3 early data will be enabled.", alias="earlyDataEnabled") get_tls_conflicts: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="get-tls-conflicts") _get_tls_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,GetTLSConflicts" }) groups13: Optional[List[GroupTLS13]] = None @@ -53,11 +59,14 @@ class TLSProfile(BaseModel): key_file_password: Optional[StrictStr] = Field(default=None, description="The key file password of the TLS profile.", alias="keyFilePassword") links: Optional[List[APILink]] = None middle_box_enabled: Optional[StrictBool] = Field(default=None, description="If true, the middle box compatibility will be enabled", alias="middleBoxEnabled") + pqc_signature_algorithms13: Optional[List[PqcSignatureAlgorithmTLS13]] = Field(default=None, alias="pqcSignatureAlgorithms13") profile_id: StrictStr = Field(description="The ID of the TLS profile (default: TLSProfile).", alias="profileId") resolve_tls_conflicts: Optional[List[Conflict]] = Field(default=None, alias="resolve-tls-conflicts") _resolve_tls_conflicts_json_schema_extra: dict = PrivateAttr(default={"x-operation": "-,ResolveTLSConflicts" }) send_close_notify: Optional[StrictBool] = Field(default=None, description="If true, a TLS close-notify alert will be sent while closing the TLS session", alias="sendCloseNotify") - session_reuse_count: Optional[StrictInt] = Field(default=None, alias="sessionReuseCount") + session_reuse_count: Optional[StrictInt] = Field(default=None, description="Deprecated: retained for backward compatibility. Represents the TLS 1.2 session reuse count - the number of times a TLS 1.2 client can reuse a previously established session before performing a full handshake (a value of 0 disables session reuse). Use sessionReuseCount12 instead.", alias="sessionReuseCount") + session_reuse_count12: Optional[StrictInt] = Field(default=None, description="The number of times a TLS 1.2 client can reuse a previously established session before performing a full handshake ( a value of 0 disables session reuse).", alias="sessionReuseCount12") + session_reuse_count13: Optional[StrictInt] = Field(default=None, description="The number of times a TLS 1.3 client can reuse a previously established session before performing a full handshake ( a value of 0 disables session reuse).", alias="sessionReuseCount13") session_reuse_method: Optional[SessionReuseMethodTLS12] = Field(default=None, alias="sessionReuseMethod") session_reuse_method12: Optional[SessionReuseMethodTLS12] = Field(default=None, alias="sessionReuseMethod12") session_reuse_method13: Optional[SessionReuseMethodTLS13] = Field(default=None, alias="sessionReuseMethod13") @@ -66,9 +75,10 @@ class TLSProfile(BaseModel): supported_groups13: Optional[List[SupportedGroupTLS13]] = Field(default=None, alias="supportedGroups13") tls12_enabled: StrictBool = Field(alias="tls12Enabled") tls13_enabled: Optional[StrictBool] = Field(default=None, alias="tls13Enabled") + use_default_signature_algorithms: Optional[StrictBool] = Field(default=None, description="If true, default signature algorithms will be used.", alias="useDefaultSignatureAlgorithms") use_tls_profile: Optional[StrictBool] = Field(default=None, description="When disabled, the connection is not TLS secured (default: true).", alias="useTlsProfile") version: StrictStr = Field(description="The version of the TLS profile (default: NONE). Must be one of: NONE or TLSv1.2 or TLSv1.3.") - __properties: ClassVar[List[str]] = ["certificateFile", "cipher", "cipher12", "cipher13", "ciphers12", "ciphers13", "dhFile", "get-tls-conflicts", "groups13", "immediateClose", "keyFile", "keyFilePassword", "links", "middleBoxEnabled", "profileId", "resolve-tls-conflicts", "sendCloseNotify", "sessionReuseCount", "sessionReuseMethod", "sessionReuseMethod12", "sessionReuseMethod13", "sniCertConfigs", "sniEnabled", "supportedGroups13", "tls12Enabled", "tls13Enabled", "useTlsProfile", "version"] + __properties: ClassVar[List[str]] = ["certificateFile", "cipher", "cipher12", "cipher13", "ciphers12", "ciphers13", "classicalSignatureAlgorithms13", "compositePqcSignatureAlgorithms13", "dhFile", "earlyDataEnabled", "get-tls-conflicts", "groups13", "immediateClose", "keyFile", "keyFilePassword", "links", "middleBoxEnabled", "pqcSignatureAlgorithms13", "profileId", "resolve-tls-conflicts", "sendCloseNotify", "sessionReuseCount", "sessionReuseCount12", "sessionReuseCount13", "sessionReuseMethod", "sessionReuseMethod12", "sessionReuseMethod13", "sniCertConfigs", "sniEnabled", "supportedGroups13", "tls12Enabled", "tls13Enabled", "useDefaultSignatureAlgorithms", "useTlsProfile", "version"] @field_validator('version') def version_validate_enum(cls, value): @@ -173,7 +183,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "cipher13": obj.get("cipher13"), "ciphers12": obj.get("ciphers12"), "ciphers13": obj.get("ciphers13"), + "classicalSignatureAlgorithms13": obj.get("classicalSignatureAlgorithms13"), + "compositePqcSignatureAlgorithms13": obj.get("compositePqcSignatureAlgorithms13"), "dhFile": Params.from_dict(obj["dhFile"]) if obj.get("dhFile") is not None else None, + "earlyDataEnabled": obj.get("earlyDataEnabled"), "get-tls-conflicts": obj.get("get-tls-conflicts") if obj.get("get-tls-conflicts") is not None else [], "groups13": ( [GroupTLS13.from_dict(_item) for _item in obj.get("groups13", [])] if obj.get("groups13") is not None else None), "immediateClose": obj.get("immediateClose"), @@ -181,10 +194,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "keyFilePassword": obj.get("keyFilePassword"), "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), "middleBoxEnabled": obj.get("middleBoxEnabled"), + "pqcSignatureAlgorithms13": obj.get("pqcSignatureAlgorithms13"), "profileId": obj.get("profileId"), "resolve-tls-conflicts": ( [Conflict.from_dict(_item) for _item in obj.get("resolve-tls-conflicts", [])] if obj.get("resolve-tls-conflicts") is not None else None), "sendCloseNotify": obj.get("sendCloseNotify"), "sessionReuseCount": obj.get("sessionReuseCount"), + "sessionReuseCount12": obj.get("sessionReuseCount12"), + "sessionReuseCount13": obj.get("sessionReuseCount13"), "sessionReuseMethod": obj.get("sessionReuseMethod"), "sessionReuseMethod12": obj.get("sessionReuseMethod12"), "sessionReuseMethod13": obj.get("sessionReuseMethod13"), @@ -193,6 +209,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "supportedGroups13": obj.get("supportedGroups13"), "tls12Enabled": obj.get("tls12Enabled"), "tls13Enabled": obj.get("tls13Enabled"), + "useDefaultSignatureAlgorithms": obj.get("useDefaultSignatureAlgorithms"), "useTlsProfile": obj.get("useTlsProfile"), "version": obj.get("version") , diff --git a/docs/Agent.md b/docs/Agent.md index 97c003b..f06fdf5 100644 --- a/docs/Agent.md +++ b/docs/Agent.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **last_update** | **int** | A Unix timestamp that indicates when the agent was last updated | [optional] [readonly] **port_id_format** | **str** | port agent id format | [optional] **reservation_id** | **str** | The ID of the reservation | [optional] [readonly] +**resource_name_format** | **str** | display agent resource name format | [optional] **selected_env** | [**SelectedEnv**](SelectedEnv.md) | | [optional] **selection_status** | **str** | The current status of the selection operation | [optional] **session_name** | **str** | The session's name where the agent is running | [optional] [readonly] diff --git a/docs/ApplicationResourcesApi.md b/docs/ApplicationResourcesApi.md index e5c2971..841aa2c 100644 --- a/docs/ApplicationResourcesApi.md +++ b/docs/ApplicationResourcesApi.md @@ -157,6 +157,8 @@ Method | HTTP request | Description +Delete a capture that was loaded by the user. + ### Example * OAuth Authentication (OAuth2): @@ -220,7 +222,10 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | The request was completed successfully. | - | +**204** | The capture was deleted. | - | +**401** | The user is not authorized to delete resources. | - | +**403** | The user is not allowed to delete a capture not owned by them. | - | +**404** | A resource with the specified ID was not found. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1446,7 +1451,7 @@ void (empty response body) -Delete a CyPerf application that was created by the user. +Delete an application that was created by the user. ### Example @@ -1762,7 +1767,7 @@ Name | Type | Description | Notes -Get a particular CyPerf application. +Get a particular application. ### Example @@ -1830,9 +1835,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The requested CyPerf application | - | +**200** | The requested application | - | **401** | Authorization information is missing or invalid. | - | -**404** | A CyPerf application with the specified ID was not found. | - | +**404** | An application with the specified ID was not found. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2078,7 +2083,7 @@ Name | Type | Description | Notes -Get all the available CyPerf applications. +Get all the available applications. ### Example @@ -2158,7 +2163,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of CyPerf applications | - | +**200** | The list of applications | - | **400** | Bad request | - | **401** | Authorization information is missing or invalid. | - | **500** | Unexpected error | - | @@ -2170,7 +2175,7 @@ Name | Type | Description | Notes -Get a particular CyPerf attack. +Get a particular attack. ### Example @@ -2238,9 +2243,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The requested CyPerf attack | - | +**200** | The requested attack | - | **401** | Authorization information is missing or invalid. | - | -**404** | A CyPerf attack with the specified ID was not found. | - | +**404** | An attack with the specified ID was not found. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2328,7 +2333,7 @@ Name | Type | Description | Notes -Get all the available CyPerf attacks. +Get all the available attacks. ### Example @@ -2408,7 +2413,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of CyPerf attacks | - | +**200** | The list of attacks | - | **400** | Bad request | - | **401** | Authorization information is missing or invalid. | - | **500** | Unexpected error | - | @@ -2579,7 +2584,7 @@ Name | Type | Description | Notes -Get a particular CyPerf capture loaded by the user. +Get a particular capture loaded by the user. ### Example @@ -2647,9 +2652,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The requested CyPerf application | - | +**200** | The requested capture | - | **401** | Authorization information is missing or invalid. | - | -**404** | A CyPerf capture with the specified ID was not found. | - | +**404** | A capture with the specified ID was not found. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3037,6 +3042,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the certificate archive file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A certificate file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3351,6 +3357,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the custom fuzzing script file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A custom fuzzing script file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3746,6 +3753,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the flow library file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A flow library file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3979,6 +3987,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the global playlists archive file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A global playlists file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4374,6 +4383,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the http library file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A http library file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4925,6 +4935,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the media file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A media file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -5320,6 +5331,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the media library file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A media library file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -5634,6 +5646,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the other library file | - | +**401** | Authorization information is missing or invalid. | - | **404** | An other library file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -5867,6 +5880,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the payload file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A payload file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -6181,6 +6195,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the pcap file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A pcap file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -6495,6 +6510,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the playlist file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A playlist file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -6572,6 +6588,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The requested values from the playlist file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A playlist file with the specified ID was not found. | - | **500** | Unexpected error | - | @@ -6968,6 +6985,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the sip library file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A sip library file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -7282,6 +7300,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the stats profile file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A stats profile file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -7764,6 +7783,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the TLS certificate file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A TLS certificate file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -8078,6 +8098,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the TLS DH file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A TLS DH file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -8392,6 +8413,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the TLS key file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A TLS key file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -8860,6 +8882,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The content of the voice custom flow file | - | +**401** | Authorization information is missing or invalid. | - | **404** | A voice custom flow file with the specified ID was not found. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -9945,7 +9968,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start_resources_get_apps** -> AsyncContext start_resources_get_apps(get_apps_operation=get_apps_operation) +> AsyncContext start_resources_get_apps(get_scenarios_operation=get_scenarios_operation) @@ -9959,7 +9982,7 @@ Get the list of applications ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.get_apps_operation import GetAppsOperation +from cyperf.models.get_scenarios_operation import GetScenariosOperation from cyperf.rest import ApiException from pprint import pprint @@ -9982,10 +10005,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - get_apps_operation = cyperf.GetAppsOperation() # GetAppsOperation | (optional) + get_scenarios_operation = cyperf.GetScenariosOperation() # GetScenariosOperation | (optional) try: - api_response = api_instance.start_resources_get_apps(get_apps_operation=get_apps_operation) + api_response = api_instance.start_resources_get_apps(get_scenarios_operation=get_scenarios_operation) print("The response of ApplicationResourcesApi->start_resources_get_apps:\n") pprint(api_response) except Exception as e: @@ -9999,7 +10022,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **get_apps_operation** | [**GetAppsOperation**](GetAppsOperation.md)| | [optional] + **get_scenarios_operation** | [**GetScenariosOperation**](GetScenariosOperation.md)| | [optional] ### Return type @@ -10101,7 +10124,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start_resources_get_attacks** -> AsyncContext start_resources_get_attacks(get_attacks_operation=get_attacks_operation) +> AsyncContext start_resources_get_attacks(get_scenarios_operation=get_scenarios_operation) @@ -10115,7 +10138,7 @@ Get the list of attacks ```python import cyperf from cyperf.models.async_context import AsyncContext -from cyperf.models.get_attacks_operation import GetAttacksOperation +from cyperf.models.get_scenarios_operation import GetScenariosOperation from cyperf.rest import ApiException from pprint import pprint @@ -10138,10 +10161,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.ApplicationResourcesApi(api_client) - get_attacks_operation = cyperf.GetAttacksOperation() # GetAttacksOperation | (optional) + get_scenarios_operation = cyperf.GetScenariosOperation() # GetScenariosOperation | (optional) try: - api_response = api_instance.start_resources_get_attacks(get_attacks_operation=get_attacks_operation) + api_response = api_instance.start_resources_get_attacks(get_scenarios_operation=get_scenarios_operation) print("The response of ApplicationResourcesApi->start_resources_get_attacks:\n") pprint(api_response) except Exception as e: @@ -10155,7 +10178,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **get_attacks_operation** | [**GetAttacksOperation**](GetAttacksOperation.md)| | [optional] + **get_scenarios_operation** | [**GetScenariosOperation**](GetScenariosOperation.md)| | [optional] ### Return type diff --git a/docs/AttackMetadataKeywordsInner.md b/docs/AttackMetadataKeywordsInner.md deleted file mode 100644 index 1ffb2a0..0000000 --- a/docs/AttackMetadataKeywordsInner.md +++ /dev/null @@ -1,28 +0,0 @@ -# AttackMetadataKeywordsInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from cyperf.models.attack_metadata_keywords_inner import AttackMetadataKeywordsInner - -# TODO update the JSON string below -json = "{}" -# create an instance of AttackMetadataKeywordsInner from a JSON string -attack_metadata_keywords_inner_instance = AttackMetadataKeywordsInner.from_json(json) -# print the JSON string representation of the object -print(AttackMetadataKeywordsInner.to_json()) - -# convert the object into a dict -attack_metadata_keywords_inner_dict = attack_metadata_keywords_inner_instance.to_dict() -# create an instance of AttackMetadataKeywordsInner from a dict -attack_metadata_keywords_inner_from_dict = AttackMetadataKeywordsInner.from_dict(attack_metadata_keywords_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response.md b/docs/AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response.md deleted file mode 100644 index e1dbc6b..0000000 --- a/docs/AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_token** | **str** | The access token. Set this in the Authorization HTTP Header to authenticate requests. | [optional] -**expires_in** | **float** | The access token lifetime. | [optional] -**refresh_expires_in** | **float** | The refresh token lifetime. | [optional] -**refresh_token** | **str** | Token that can be used with this request and grant_type: refresh_token to get a new access_token if the current one expires. | [optional] - -## Example - -```python -from cyperf.models.auth_realms_keysight_protocol_openid_connect_token_post200_response import AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response from a JSON string -auth_realms_keysight_protocol_openid_connect_token_post200_response_instance = AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response.from_json(json) -# print the JSON string representation of the object -print(AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response.to_json()) - -# convert the object into a dict -auth_realms_keysight_protocol_openid_connect_token_post200_response_dict = auth_realms_keysight_protocol_openid_connect_token_post200_response_instance.to_dict() -# create an instance of AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response from a dict -auth_realms_keysight_protocol_openid_connect_token_post200_response_from_dict = AuthRealmsKeysightProtocolOpenidConnectTokenPost200Response.from_dict(auth_realms_keysight_protocol_openid_connect_token_post200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BasicAuthProfile.md b/docs/BasicAuthProfile.md new file mode 100644 index 0000000..22cde00 --- /dev/null +++ b/docs/BasicAuthProfile.md @@ -0,0 +1,31 @@ +# BasicAuthProfile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | | [optional] +**params** | [**List[Params]**](Params.md) | | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] + +## Example + +```python +from cyperf.models.basic_auth_profile import BasicAuthProfile + +# TODO update the JSON string below +json = "{}" +# create an instance of BasicAuthProfile from a JSON string +basic_auth_profile_instance = BasicAuthProfile.from_json(json) +# print the JSON string representation of the object +print(BasicAuthProfile.to_json()) + +# convert the object into a dict +basic_auth_profile_dict = basic_auth_profile_instance.to_dict() +# create an instance of BasicAuthProfile from a dict +basic_auth_profile_from_dict = BasicAuthProfile.from_dict(basic_auth_profile_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Broker.md b/docs/Broker.md index 281a6b7..51dfc05 100644 --- a/docs/Broker.md +++ b/docs/Broker.md @@ -5,17 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**connection_status** | **str** | The broker's connection status | [optional] -**failure_reason** | **str** | The broker's connection failure reason | [optional] -**fingerprint** | **str** | The broker's fingerprint | [optional] -**host** | **str** | The IP or hostname of the registered broker | [optional] -**host_name** | **str** | The IP or hostname of the registered broker | [optional] -**id** | **str** | The unique identifier of the broker | [optional] [readonly] -**interactive_fingerprint_verification** | **bool** | Validate the broker's fingerprint interactively | [optional] -**password** | **str** | The broker's authentication password | [optional] -**pretty_conn_status** | **str** | The broker's connection status in human readable format | [optional] -**trust_new** | **bool** | The flag used to skip broker's identity verifications | [optional] -**user** | **str** | The broker's authentication user | [optional] +**connection_status** | **str** | | [optional] +**failure_reason** | **str** | | [optional] +**fingerprint** | **str** | | [optional] +**host_name** | **str** | | [optional] +**id** | **int** | | [optional] +**interactive_fingerprint_verification** | **bool** | | [optional] +**password** | **str** | | [optional] +**pretty_conn_status** | **str** | | [optional] +**trust_new** | **bool** | | [optional] +**tunnel_host_name** | **str** | | [optional] +**user** | **str** | | [optional] ## Example diff --git a/docs/Capture.md b/docs/Capture.md deleted file mode 100644 index cf15bf9..0000000 --- a/docs/Capture.md +++ /dev/null @@ -1,30 +0,0 @@ -# Capture - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capture_id** | **str** | | [optional] -**flows** | [**List[AppFlow]**](AppFlow.md) | | [optional] - -## Example - -```python -from cyperf.models.capture import Capture - -# TODO update the JSON string below -json = "{}" -# create an instance of Capture from a JSON string -capture_instance = Capture.from_json(json) -# print the JSON string representation of the object -print(Capture.to_json()) - -# convert the object into a dict -capture_dict = capture_instance.to_dict() -# create an instance of Capture from a dict -capture_from_dict = Capture.from_dict(capture_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ChangeAggregationModeOperation.md b/docs/ChangeAggregationModeOperation.md deleted file mode 100644 index 6d1e6c1..0000000 --- a/docs/ChangeAggregationModeOperation.md +++ /dev/null @@ -1,31 +0,0 @@ -# ChangeAggregationModeOperation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aggregated** | **bool** | The desired aggregation mode. | [optional] -**compute_nodes** | **List[str]** | The compute-node ids for which to change the aggregation mode. | [optional] -**controller** | **str** | The id of the controller that is linked with the compute-nodes. | [optional] - -## Example - -```python -from cyperf.models.change_aggregation_mode_operation import ChangeAggregationModeOperation - -# TODO update the JSON string below -json = "{}" -# create an instance of ChangeAggregationModeOperation from a JSON string -change_aggregation_mode_operation_instance = ChangeAggregationModeOperation.from_json(json) -# print the JSON string representation of the object -print(ChangeAggregationModeOperation.to_json()) - -# convert the object into a dict -change_aggregation_mode_operation_dict = change_aggregation_mode_operation_instance.to_dict() -# create an instance of ChangeAggregationModeOperation from a dict -change_aggregation_mode_operation_from_dict = ChangeAggregationModeOperation.from_dict(change_aggregation_mode_operation_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ChangeLinkStateOperation.md b/docs/ChangeLinkStateOperation.md deleted file mode 100644 index 977e6f6..0000000 --- a/docs/ChangeLinkStateOperation.md +++ /dev/null @@ -1,30 +0,0 @@ -# ChangeLinkStateOperation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**link** | **str** | The desired link state. | [optional] -**ports** | **List[str]** | The port ids for which to change the link state. | [optional] - -## Example - -```python -from cyperf.models.change_link_state_operation import ChangeLinkStateOperation - -# TODO update the JSON string below -json = "{}" -# create an instance of ChangeLinkStateOperation from a JSON string -change_link_state_operation_instance = ChangeLinkStateOperation.from_json(json) -# print the JSON string representation of the object -print(ChangeLinkStateOperation.to_json()) - -# convert the object into a dict -change_link_state_operation_dict = change_link_state_operation_instance.to_dict() -# create an instance of ChangeLinkStateOperation from a dict -change_link_state_operation_from_dict = ChangeLinkStateOperation.from_dict(change_link_state_operation_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ClassicalSignatureAlgorithmTLS13.md b/docs/ClassicalSignatureAlgorithmTLS13.md new file mode 100644 index 0000000..17e2b4b --- /dev/null +++ b/docs/ClassicalSignatureAlgorithmTLS13.md @@ -0,0 +1,43 @@ +# ClassicalSignatureAlgorithmTLS13 + +The TLS supported classical signature algorithms. + +## Enum + +* `RSA_PKCS1_SHA256` (value: `'rsa_pkcs1_sha256'`) + +* `RSA_PKCS1_SHA384` (value: `'rsa_pkcs1_sha384'`) + +* `RSA_PKCS1_SHA512` (value: `'rsa_pkcs1_sha512'`) + +* `ECDSA_SECP256R1_SHA256` (value: `'ecdsa_secp256r1_sha256'`) + +* `ECDSA_SECP384R1_SHA384` (value: `'ecdsa_secp384r1_sha384'`) + +* `ECDSA_SECP521R1_SHA512` (value: `'ecdsa_secp521r1_sha512'`) + +* `RSA_PSS_RSAE_SHA256` (value: `'rsa_pss_rsae_sha256'`) + +* `RSA_PSS_RSAE_SHA384` (value: `'rsa_pss_rsae_sha384'`) + +* `RSA_PSS_RSAE_SHA512` (value: `'rsa_pss_rsae_sha512'`) + +* `RSA_PSS_PSS_SHA256` (value: `'rsa_pss_pss_sha256'`) + +* `RSA_PSS_PSS_SHA384` (value: `'rsa_pss_pss_sha384'`) + +* `RSA_PSS_PSS_SHA512` (value: `'rsa_pss_pss_sha512'`) + +* `ED25519` (value: `'ed25519'`) + +* `ED448` (value: `'ed448'`) + +* `ECDSA_BRAINPOOLP256R1TLS13_SHA256` (value: `'ecdsa_brainpoolp256r1tls13_sha256'`) + +* `ECDSA_BRAINPOOLP384R1TLS13_SHA384` (value: `'ecdsa_brainpoolp384r1tls13_sha384'`) + +* `ECDSA_BRAINPOOLP512R1TLS13_SHA512` (value: `'ecdsa_brainpoolp512r1tls13_sha512'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompositePqcSignatureAlgorithmTLS13.md b/docs/CompositePqcSignatureAlgorithmTLS13.md new file mode 100644 index 0000000..f56b062 --- /dev/null +++ b/docs/CompositePqcSignatureAlgorithmTLS13.md @@ -0,0 +1,17 @@ +# CompositePqcSignatureAlgorithmTLS13 + +The TLSv1.3 supported composite PQC signature algorithms. + +## Enum + +* `P256_MLDSA44` (value: `'p256_mldsa44'`) + +* `P384_MLDSA65` (value: `'p384_mldsa65'`) + +* `P521_MLDSA87` (value: `'p521_mldsa87'`) + +* `RSA3072_MLDSA44` (value: `'rsa3072_mldsa44'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConfigMetadataConfigDataValue.md b/docs/ConfigMetadataConfigDataValue.md deleted file mode 100644 index 4785116..0000000 --- a/docs/ConfigMetadataConfigDataValue.md +++ /dev/null @@ -1,28 +0,0 @@ -# ConfigMetadataConfigDataValue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from cyperf.models.config_metadata_config_data_value import ConfigMetadataConfigDataValue - -# TODO update the JSON string below -json = "{}" -# create an instance of ConfigMetadataConfigDataValue from a JSON string -config_metadata_config_data_value_instance = ConfigMetadataConfigDataValue.from_json(json) -# print the JSON string representation of the object -print(ConfigMetadataConfigDataValue.to_json()) - -# convert the object into a dict -config_metadata_config_data_value_dict = config_metadata_config_data_value_instance.to_dict() -# create an instance of ConfigMetadataConfigDataValue from a dict -config_metadata_config_data_value_from_dict = ConfigMetadataConfigDataValue.from_dict(config_metadata_config_data_value_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ContentBlock.md b/docs/ContentBlock.md new file mode 100644 index 0000000..00ebe4c --- /dev/null +++ b/docs/ContentBlock.md @@ -0,0 +1,33 @@ +# ContentBlock + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[TextSegment]**](TextSegment.md) | The content of the block, as a list of rich text segments. | [optional] +**level** | **int** | The heading level (1-6), used by heading blocks. | [optional] +**list_style** | **str** | The list style: ordered or unordered (used by list blocks). | [optional] +**severity** | **str** | The severity level of a note block: info, warning, error, or success. | [optional] +**type** | **str** | The type of content block (e.g. paragraph, list, note, heading, divider). | [optional] + +## Example + +```python +from cyperf.models.content_block import ContentBlock + +# TODO update the JSON string below +json = "{}" +# create an instance of ContentBlock from a JSON string +content_block_instance = ContentBlock.from_json(json) +# print the JSON string representation of the object +print(ContentBlock.to_json()) + +# convert the object into a dict +content_block_dict = content_block_instance.to_dict() +# create an instance of ContentBlock from a dict +content_block_from_dict = ContentBlock.from_dict(content_block_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DUTNetwork.md b/docs/DUTNetwork.md index 94b8c76..562f9dc 100644 --- a/docs/DUTNetwork.md +++ b/docs/DUTNetwork.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **name** | **str** | | **id** | **str** | | **network_tags** | **List[str]** | A list of tags. | [optional] +**basic_auth_profile** | [**BasicAuthProfile**](BasicAuthProfile.md) | | [optional] **client_dut_active** | **bool** | | [optional] **client_dut_host** | **str** | | [optional] **client_dut_port** | **int** | The listen port for client-side DUT (default: 80). | [optional] @@ -18,8 +19,6 @@ Name | Type | Description | Notes **https_health_check** | [**HealthCheckConfig**](HealthCheckConfig.md) | The HTTPS HealthCheck configuration for DUT | [optional] **hostname_suffix** | **str** | A suffix to be added to the Host header of all Apps/Attacks running through the forward proxy DUT (default: empty string). | [optional] **http_forward_proxy_mode** | **str** | Deprecated. This is ignored and the proxy mode will be deduced from the connection type. | [optional] -**llm_model** | **str** | The identifier of the LLM model to use for inference. | [optional] -**llm_request_url_path** | **str** | The endpoint URL for the LLM chat completions API. | [optional] **non_proxied_hosts** | [**Params**](Params.md) | | [optional] **pep_dut** | [**PepDUT**](PepDUT.md) | | [optional] **pep_dut_active** | **bool** | A flag indicating if the PEP device is an active device. If active, the simulated clients will send traffic to the PEP device host. (default: false) | [optional] diff --git a/docs/DataMigrationApi.md b/docs/DataMigrationApi.md index cb37771..9c8d569 100644 --- a/docs/DataMigrationApi.md +++ b/docs/DataMigrationApi.md @@ -87,7 +87,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **start_controller_migration_import** -> AsyncContext start_controller_migration_import() +> AsyncContext start_controller_migration_import(file=file) @@ -123,9 +123,10 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.DataMigrationApi(api_client) + file = None # bytearray | (optional) try: - api_response = api_instance.start_controller_migration_import() + api_response = api_instance.start_controller_migration_import(file=file) print("The response of DataMigrationApi->start_controller_migration_import:\n") pprint(api_response) except Exception as e: @@ -136,7 +137,10 @@ with cyperf.ApiClient(configuration) as api_client: ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | [optional] ### Return type @@ -148,7 +152,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: multipart/form-data - **Accept**: application/json ### HTTP response details diff --git a/docs/EthRange.md b/docs/EthRange.md index c4a2467..082f2e5 100644 --- a/docs/EthRange.md +++ b/docs/EthRange.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | | [optional] **mac_address** | [**SequenceValue**](SequenceValue.md) | | [optional] -**mac_auto** | **bool** | A flag indicating if the MAC address for the EthRange should be determined automatically (default: true). | +**mac_auto** | **bool** | A flag indicating if the MAC address for the EthRange should be determined automatically (default: true). | [optional] **mac_incr** | **str** | The MAC address increment rule for the EthRange (default: 00:00:00:00:00:01). | [optional] **mac_start** | **str** | The MAC start address for the EthRange (default: 00:11:01:00:00:01). | [optional] **one_mac_per_ip** | **bool** | A flag indicating if there is only one MAC address for the EthRange per IPRange (default: true). | [optional] diff --git a/docs/FormattedDescription.md b/docs/FormattedDescription.md new file mode 100644 index 0000000..f588c0f --- /dev/null +++ b/docs/FormattedDescription.md @@ -0,0 +1,31 @@ +# FormattedDescription + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**layout** | [**LayoutConfig**](LayoutConfig.md) | | [optional] +**sections** | [**List[Section]**](Section.md) | The list of sections that make up the page. | [optional] +**summary** | [**Section**](Section.md) | | [optional] + +## Example + +```python +from cyperf.models.formatted_description import FormattedDescription + +# TODO update the JSON string below +json = "{}" +# create an instance of FormattedDescription from a JSON string +formatted_description_instance = FormattedDescription.from_json(json) +# print the JSON string representation of the object +print(FormattedDescription.to_json()) + +# convert the object into a dict +formatted_description_dict = formatted_description_instance.to_dict() +# create an instance of FormattedDescription from a dict +formatted_description_from_dict = FormattedDescription.from_dict(formatted_description_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetAgentTags200Response.md b/docs/GetAgentTags200Response.md deleted file mode 100644 index 96a6bb2..0000000 --- a/docs/GetAgentTags200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAgentTags200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AgentsGroup]**](AgentsGroup.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_agent_tags200_response import GetAgentTags200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAgentTags200Response from a JSON string -get_agent_tags200_response_instance = GetAgentTags200Response.from_json(json) -# print the JSON string representation of the object -print(GetAgentTags200Response.to_json()) - -# convert the object into a dict -get_agent_tags200_response_dict = get_agent_tags200_response_instance.to_dict() -# create an instance of GetAgentTags200Response from a dict -get_agent_tags200_response_from_dict = GetAgentTags200Response.from_dict(get_agent_tags200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAgentTags200ResponseOneOf.md b/docs/GetAgentTags200ResponseOneOf.md deleted file mode 100644 index da2638d..0000000 --- a/docs/GetAgentTags200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAgentTags200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AgentsGroup]**](AgentsGroup.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_agent_tags200_response_one_of import GetAgentTags200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAgentTags200ResponseOneOf from a JSON string -get_agent_tags200_response_one_of_instance = GetAgentTags200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetAgentTags200ResponseOneOf.to_json()) - -# convert the object into a dict -get_agent_tags200_response_one_of_dict = get_agent_tags200_response_one_of_instance.to_dict() -# create an instance of GetAgentTags200ResponseOneOf from a dict -get_agent_tags200_response_one_of_from_dict = GetAgentTags200ResponseOneOf.from_dict(get_agent_tags200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetApplicationTypes200Response.md b/docs/GetApplicationTypes200Response.md deleted file mode 100644 index cf052d1..0000000 --- a/docs/GetApplicationTypes200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetApplicationTypes200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[ApplicationType]**](ApplicationType.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_application_types200_response import GetApplicationTypes200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetApplicationTypes200Response from a JSON string -get_application_types200_response_instance = GetApplicationTypes200Response.from_json(json) -# print the JSON string representation of the object -print(GetApplicationTypes200Response.to_json()) - -# convert the object into a dict -get_application_types200_response_dict = get_application_types200_response_instance.to_dict() -# create an instance of GetApplicationTypes200Response from a dict -get_application_types200_response_from_dict = GetApplicationTypes200Response.from_dict(get_application_types200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetApplicationTypes200ResponseOneOf.md b/docs/GetApplicationTypes200ResponseOneOf.md deleted file mode 100644 index ee08d2b..0000000 --- a/docs/GetApplicationTypes200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetApplicationTypes200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[ApplicationType]**](ApplicationType.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_application_types200_response_one_of import GetApplicationTypes200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetApplicationTypes200ResponseOneOf from a JSON string -get_application_types200_response_one_of_instance = GetApplicationTypes200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetApplicationTypes200ResponseOneOf.to_json()) - -# convert the object into a dict -get_application_types200_response_one_of_dict = get_application_types200_response_one_of_instance.to_dict() -# create an instance of GetApplicationTypes200ResponseOneOf from a dict -get_application_types200_response_one_of_from_dict = GetApplicationTypes200ResponseOneOf.from_dict(get_application_types200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetApps200Response.md b/docs/GetApps200Response.md deleted file mode 100644 index f86194c..0000000 --- a/docs/GetApps200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetApps200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AppsecApp]**](AppsecApp.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_apps200_response import GetApps200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetApps200Response from a JSON string -get_apps200_response_instance = GetApps200Response.from_json(json) -# print the JSON string representation of the object -print(GetApps200Response.to_json()) - -# convert the object into a dict -get_apps200_response_dict = get_apps200_response_instance.to_dict() -# create an instance of GetApps200Response from a dict -get_apps200_response_from_dict = GetApps200Response.from_dict(get_apps200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetApps200ResponseOneOf.md b/docs/GetApps200ResponseOneOf.md deleted file mode 100644 index 7831c53..0000000 --- a/docs/GetApps200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetApps200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AppsecApp]**](AppsecApp.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_apps200_response_one_of import GetApps200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetApps200ResponseOneOf from a JSON string -get_apps200_response_one_of_instance = GetApps200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetApps200ResponseOneOf.to_json()) - -# convert the object into a dict -get_apps200_response_one_of_dict = get_apps200_response_one_of_instance.to_dict() -# create an instance of GetApps200ResponseOneOf from a dict -get_apps200_response_one_of_from_dict = GetApps200ResponseOneOf.from_dict(get_apps200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAttacks200Response.md b/docs/GetAttacks200Response.md deleted file mode 100644 index c3952a6..0000000 --- a/docs/GetAttacks200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAttacks200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AppsecAttack]**](AppsecAttack.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_attacks200_response import GetAttacks200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAttacks200Response from a JSON string -get_attacks200_response_instance = GetAttacks200Response.from_json(json) -# print the JSON string representation of the object -print(GetAttacks200Response.to_json()) - -# convert the object into a dict -get_attacks200_response_dict = get_attacks200_response_instance.to_dict() -# create an instance of GetAttacks200Response from a dict -get_attacks200_response_from_dict = GetAttacks200Response.from_dict(get_attacks200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAttacks200ResponseOneOf.md b/docs/GetAttacks200ResponseOneOf.md deleted file mode 100644 index 56de8af..0000000 --- a/docs/GetAttacks200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAttacks200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AppsecAttack]**](AppsecAttack.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_attacks200_response_one_of import GetAttacks200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAttacks200ResponseOneOf from a JSON string -get_attacks200_response_one_of_instance = GetAttacks200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetAttacks200ResponseOneOf.to_json()) - -# convert the object into a dict -get_attacks200_response_one_of_dict = get_attacks200_response_one_of_instance.to_dict() -# create an instance of GetAttacks200ResponseOneOf from a dict -get_attacks200_response_one_of_from_dict = GetAttacks200ResponseOneOf.from_dict(get_attacks200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAttacksOperation.md b/docs/GetAttacksOperation.md deleted file mode 100644 index c6725a6..0000000 --- a/docs/GetAttacksOperation.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetAttacksOperation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**categories** | [**List[CategoryFilter]**](CategoryFilter.md) | | [optional] -**filter_mode** | **str** | | [optional] -**search_col** | **List[str]** | | [optional] -**search_val** | **List[str]** | | [optional] -**skip** | **str** | | [optional] -**sort** | [**List[SortBodyField]**](SortBodyField.md) | | [optional] -**take** | **str** | | [optional] - -## Example - -```python -from cyperf.models.get_attacks_operation import GetAttacksOperation - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAttacksOperation from a JSON string -get_attacks_operation_instance = GetAttacksOperation.from_json(json) -# print the JSON string representation of the object -print(GetAttacksOperation.to_json()) - -# convert the object into a dict -get_attacks_operation_dict = get_attacks_operation_instance.to_dict() -# create an instance of GetAttacksOperation from a dict -get_attacks_operation_from_dict = GetAttacksOperation.from_dict(get_attacks_operation_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAuthProfiles200Response.md b/docs/GetAuthProfiles200Response.md deleted file mode 100644 index cd5d550..0000000 --- a/docs/GetAuthProfiles200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAuthProfiles200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AuthProfile]**](AuthProfile.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_auth_profiles200_response import GetAuthProfiles200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAuthProfiles200Response from a JSON string -get_auth_profiles200_response_instance = GetAuthProfiles200Response.from_json(json) -# print the JSON string representation of the object -print(GetAuthProfiles200Response.to_json()) - -# convert the object into a dict -get_auth_profiles200_response_dict = get_auth_profiles200_response_instance.to_dict() -# create an instance of GetAuthProfiles200Response from a dict -get_auth_profiles200_response_from_dict = GetAuthProfiles200Response.from_dict(get_auth_profiles200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAuthProfiles200ResponseOneOf.md b/docs/GetAuthProfiles200ResponseOneOf.md deleted file mode 100644 index 90b8cfe..0000000 --- a/docs/GetAuthProfiles200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetAuthProfiles200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[AuthProfile]**](AuthProfile.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_auth_profiles200_response_one_of import GetAuthProfiles200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAuthProfiles200ResponseOneOf from a JSON string -get_auth_profiles200_response_one_of_instance = GetAuthProfiles200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetAuthProfiles200ResponseOneOf.to_json()) - -# convert the object into a dict -get_auth_profiles200_response_one_of_dict = get_auth_profiles200_response_one_of_instance.to_dict() -# create an instance of GetAuthProfiles200ResponseOneOf from a dict -get_auth_profiles200_response_one_of_from_dict = GetAuthProfiles200ResponseOneOf.from_dict(get_auth_profiles200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCertificates200Response.md b/docs/GetCertificates200Response.md deleted file mode 100644 index aac9575..0000000 --- a/docs/GetCertificates200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetCertificates200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[GenericFile]**](GenericFile.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_certificates200_response import GetCertificates200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetCertificates200Response from a JSON string -get_certificates200_response_instance = GetCertificates200Response.from_json(json) -# print the JSON string representation of the object -print(GetCertificates200Response.to_json()) - -# convert the object into a dict -get_certificates200_response_dict = get_certificates200_response_instance.to_dict() -# create an instance of GetCertificates200Response from a dict -get_certificates200_response_from_dict = GetCertificates200Response.from_dict(get_certificates200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCertificates200ResponseOneOf.md b/docs/GetCertificates200ResponseOneOf.md deleted file mode 100644 index 4c471a7..0000000 --- a/docs/GetCertificates200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetCertificates200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[GenericFile]**](GenericFile.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_certificates200_response_one_of import GetCertificates200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetCertificates200ResponseOneOf from a JSON string -get_certificates200_response_one_of_instance = GetCertificates200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetCertificates200ResponseOneOf.to_json()) - -# convert the object into a dict -get_certificates200_response_one_of_dict = get_certificates200_response_one_of_instance.to_dict() -# create an instance of GetCertificates200ResponseOneOf from a dict -get_certificates200_response_one_of_from_dict = GetCertificates200ResponseOneOf.from_dict(get_certificates200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetConsumers200Response.md b/docs/GetConsumers200Response.md deleted file mode 100644 index 07505ca..0000000 --- a/docs/GetConsumers200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetConsumers200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[Consumer]**](Consumer.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_consumers200_response import GetConsumers200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetConsumers200Response from a JSON string -get_consumers200_response_instance = GetConsumers200Response.from_json(json) -# print the JSON string representation of the object -print(GetConsumers200Response.to_json()) - -# convert the object into a dict -get_consumers200_response_dict = get_consumers200_response_instance.to_dict() -# create an instance of GetConsumers200Response from a dict -get_consumers200_response_from_dict = GetConsumers200Response.from_dict(get_consumers200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetConsumers200ResponseOneOf.md b/docs/GetConsumers200ResponseOneOf.md deleted file mode 100644 index 34f34b8..0000000 --- a/docs/GetConsumers200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetConsumers200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[Consumer]**](Consumer.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_consumers200_response_one_of import GetConsumers200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetConsumers200ResponseOneOf from a JSON string -get_consumers200_response_one_of_instance = GetConsumers200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetConsumers200ResponseOneOf.to_json()) - -# convert the object into a dict -get_consumers200_response_one_of_dict = get_consumers200_response_one_of_instance.to_dict() -# create an instance of GetConsumers200ResponseOneOf from a dict -get_consumers200_response_one_of_from_dict = GetConsumers200ResponseOneOf.from_dict(get_consumers200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCustomImportOperations200Response.md b/docs/GetCustomImportOperations200Response.md deleted file mode 100644 index 2aa8381..0000000 --- a/docs/GetCustomImportOperations200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetCustomImportOperations200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[CustomImportHandler]**](CustomImportHandler.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_custom_import_operations200_response import GetCustomImportOperations200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetCustomImportOperations200Response from a JSON string -get_custom_import_operations200_response_instance = GetCustomImportOperations200Response.from_json(json) -# print the JSON string representation of the object -print(GetCustomImportOperations200Response.to_json()) - -# convert the object into a dict -get_custom_import_operations200_response_dict = get_custom_import_operations200_response_instance.to_dict() -# create an instance of GetCustomImportOperations200Response from a dict -get_custom_import_operations200_response_from_dict = GetCustomImportOperations200Response.from_dict(get_custom_import_operations200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCustomImportOperations200ResponseOneOf.md b/docs/GetCustomImportOperations200ResponseOneOf.md deleted file mode 100644 index 0a461cc..0000000 --- a/docs/GetCustomImportOperations200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetCustomImportOperations200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[CustomImportHandler]**](CustomImportHandler.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_custom_import_operations200_response_one_of import GetCustomImportOperations200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetCustomImportOperations200ResponseOneOf from a JSON string -get_custom_import_operations200_response_one_of_instance = GetCustomImportOperations200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetCustomImportOperations200ResponseOneOf.to_json()) - -# convert the object into a dict -get_custom_import_operations200_response_one_of_dict = get_custom_import_operations200_response_one_of_instance.to_dict() -# create an instance of GetCustomImportOperations200ResponseOneOf from a dict -get_custom_import_operations200_response_one_of_from_dict = GetCustomImportOperations200ResponseOneOf.from_dict(get_custom_import_operations200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetFiles200Response.md b/docs/GetFiles200Response.md deleted file mode 100644 index 0172b72..0000000 --- a/docs/GetFiles200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetFiles200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[ResultFileMetadata]**](ResultFileMetadata.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_files200_response import GetFiles200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetFiles200Response from a JSON string -get_files200_response_instance = GetFiles200Response.from_json(json) -# print the JSON string representation of the object -print(GetFiles200Response.to_json()) - -# convert the object into a dict -get_files200_response_dict = get_files200_response_instance.to_dict() -# create an instance of GetFiles200Response from a dict -get_files200_response_from_dict = GetFiles200Response.from_dict(get_files200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetFiles200ResponseOneOf.md b/docs/GetFiles200ResponseOneOf.md deleted file mode 100644 index e496180..0000000 --- a/docs/GetFiles200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetFiles200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[ResultFileMetadata]**](ResultFileMetadata.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_files200_response_one_of import GetFiles200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetFiles200ResponseOneOf from a JSON string -get_files200_response_one_of_instance = GetFiles200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetFiles200ResponseOneOf.to_json()) - -# convert the object into a dict -get_files200_response_one_of_dict = get_files200_response_one_of_instance.to_dict() -# create an instance of GetFiles200ResponseOneOf from a dict -get_files200_response_one_of_from_dict = GetFiles200ResponseOneOf.from_dict(get_files200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetHttpProfiles200Response.md b/docs/GetHttpProfiles200Response.md deleted file mode 100644 index c7787e6..0000000 --- a/docs/GetHttpProfiles200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetHttpProfiles200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[HTTPProfile]**](HTTPProfile.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_http_profiles200_response import GetHttpProfiles200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHttpProfiles200Response from a JSON string -get_http_profiles200_response_instance = GetHttpProfiles200Response.from_json(json) -# print the JSON string representation of the object -print(GetHttpProfiles200Response.to_json()) - -# convert the object into a dict -get_http_profiles200_response_dict = get_http_profiles200_response_instance.to_dict() -# create an instance of GetHttpProfiles200Response from a dict -get_http_profiles200_response_from_dict = GetHttpProfiles200Response.from_dict(get_http_profiles200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetHttpProfiles200ResponseOneOf.md b/docs/GetHttpProfiles200ResponseOneOf.md deleted file mode 100644 index 7cbf9fa..0000000 --- a/docs/GetHttpProfiles200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetHttpProfiles200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[HTTPProfile]**](HTTPProfile.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_http_profiles200_response_one_of import GetHttpProfiles200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHttpProfiles200ResponseOneOf from a JSON string -get_http_profiles200_response_one_of_instance = GetHttpProfiles200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetHttpProfiles200ResponseOneOf.to_json()) - -# convert the object into a dict -get_http_profiles200_response_one_of_dict = get_http_profiles200_response_one_of_instance.to_dict() -# create an instance of GetHttpProfiles200ResponseOneOf from a dict -get_http_profiles200_response_one_of_from_dict = GetHttpProfiles200ResponseOneOf.from_dict(get_http_profiles200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetMeta200Response.md b/docs/GetMeta200Response.md deleted file mode 100644 index fc6d7b1..0000000 --- a/docs/GetMeta200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetMeta200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[Pair]**](Pair.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_meta200_response import GetMeta200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetMeta200Response from a JSON string -get_meta200_response_instance = GetMeta200Response.from_json(json) -# print the JSON string representation of the object -print(GetMeta200Response.to_json()) - -# convert the object into a dict -get_meta200_response_dict = get_meta200_response_instance.to_dict() -# create an instance of GetMeta200Response from a dict -get_meta200_response_from_dict = GetMeta200Response.from_dict(get_meta200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetMeta200ResponseOneOf.md b/docs/GetMeta200ResponseOneOf.md deleted file mode 100644 index 4299233..0000000 --- a/docs/GetMeta200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetMeta200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[Pair]**](Pair.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_meta200_response_one_of import GetMeta200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetMeta200ResponseOneOf from a JSON string -get_meta200_response_one_of_instance = GetMeta200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetMeta200ResponseOneOf.to_json()) - -# convert the object into a dict -get_meta200_response_one_of_dict = get_meta200_response_one_of_instance.to_dict() -# create an instance of GetMeta200ResponseOneOf from a dict -get_meta200_response_one_of_from_dict = GetMeta200ResponseOneOf.from_dict(get_meta200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetPlugins200Response.md b/docs/GetPlugins200Response.md deleted file mode 100644 index 400f521..0000000 --- a/docs/GetPlugins200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetPlugins200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[Plugin]**](Plugin.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_plugins200_response import GetPlugins200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPlugins200Response from a JSON string -get_plugins200_response_instance = GetPlugins200Response.from_json(json) -# print the JSON string representation of the object -print(GetPlugins200Response.to_json()) - -# convert the object into a dict -get_plugins200_response_dict = get_plugins200_response_instance.to_dict() -# create an instance of GetPlugins200Response from a dict -get_plugins200_response_from_dict = GetPlugins200Response.from_dict(get_plugins200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetPlugins200ResponseOneOf.md b/docs/GetPlugins200ResponseOneOf.md deleted file mode 100644 index 7a778cc..0000000 --- a/docs/GetPlugins200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetPlugins200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[Plugin]**](Plugin.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_plugins200_response_one_of import GetPlugins200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPlugins200ResponseOneOf from a JSON string -get_plugins200_response_one_of_instance = GetPlugins200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetPlugins200ResponseOneOf.to_json()) - -# convert the object into a dict -get_plugins200_response_one_of_dict = get_plugins200_response_one_of_instance.to_dict() -# create an instance of GetPlugins200ResponseOneOf from a dict -get_plugins200_response_one_of_from_dict = GetPlugins200ResponseOneOf.from_dict(get_plugins200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetResultTags200Response.md b/docs/GetResultTags200Response.md deleted file mode 100644 index 8938c86..0000000 --- a/docs/GetResultTags200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetResultTags200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[ResultsGroup]**](ResultsGroup.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_result_tags200_response import GetResultTags200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetResultTags200Response from a JSON string -get_result_tags200_response_instance = GetResultTags200Response.from_json(json) -# print the JSON string representation of the object -print(GetResultTags200Response.to_json()) - -# convert the object into a dict -get_result_tags200_response_dict = get_result_tags200_response_instance.to_dict() -# create an instance of GetResultTags200Response from a dict -get_result_tags200_response_from_dict = GetResultTags200Response.from_dict(get_result_tags200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetResultTags200ResponseOneOf.md b/docs/GetResultTags200ResponseOneOf.md deleted file mode 100644 index 8efa3cf..0000000 --- a/docs/GetResultTags200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetResultTags200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[ResultsGroup]**](ResultsGroup.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_result_tags200_response_one_of import GetResultTags200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetResultTags200ResponseOneOf from a JSON string -get_result_tags200_response_one_of_instance = GetResultTags200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetResultTags200ResponseOneOf.to_json()) - -# convert the object into a dict -get_result_tags200_response_one_of_dict = get_result_tags200_response_one_of_instance.to_dict() -# create an instance of GetResultTags200ResponseOneOf from a dict -get_result_tags200_response_one_of_from_dict = GetResultTags200ResponseOneOf.from_dict(get_result_tags200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAppsOperation.md b/docs/GetScenariosOperation.md similarity index 61% rename from docs/GetAppsOperation.md rename to docs/GetScenariosOperation.md index 8c8163f..65f7c5e 100644 --- a/docs/GetAppsOperation.md +++ b/docs/GetScenariosOperation.md @@ -1,4 +1,4 @@ -# GetAppsOperation +# GetScenariosOperation ## Properties @@ -16,19 +16,19 @@ Name | Type | Description | Notes ## Example ```python -from cyperf.models.get_apps_operation import GetAppsOperation +from cyperf.models.get_scenarios_operation import GetScenariosOperation # TODO update the JSON string below json = "{}" -# create an instance of GetAppsOperation from a JSON string -get_apps_operation_instance = GetAppsOperation.from_json(json) +# create an instance of GetScenariosOperation from a JSON string +get_scenarios_operation_instance = GetScenariosOperation.from_json(json) # print the JSON string representation of the object -print(GetAppsOperation.to_json()) +print(GetScenariosOperation.to_json()) # convert the object into a dict -get_apps_operation_dict = get_apps_operation_instance.to_dict() -# create an instance of GetAppsOperation from a dict -get_apps_operation_from_dict = GetAppsOperation.from_dict(get_apps_operation_dict) +get_scenarios_operation_dict = get_scenarios_operation_instance.to_dict() +# create an instance of GetScenariosOperation from a dict +get_scenarios_operation_from_dict = GetScenariosOperation.from_dict(get_scenarios_operation_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetStats200Response.md b/docs/GetStats200Response.md deleted file mode 100644 index fb14927..0000000 --- a/docs/GetStats200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetStats200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[StatsResult]**](StatsResult.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_stats200_response import GetStats200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetStats200Response from a JSON string -get_stats200_response_instance = GetStats200Response.from_json(json) -# print the JSON string representation of the object -print(GetStats200Response.to_json()) - -# convert the object into a dict -get_stats200_response_dict = get_stats200_response_instance.to_dict() -# create an instance of GetStats200Response from a dict -get_stats200_response_from_dict = GetStats200Response.from_dict(get_stats200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetStats200ResponseOneOf.md b/docs/GetStats200ResponseOneOf.md deleted file mode 100644 index 0f63bea..0000000 --- a/docs/GetStats200ResponseOneOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetStats200ResponseOneOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List[StatsResult]**](StatsResult.md) | | [optional] -**total_count** | **int** | | [optional] - -## Example - -```python -from cyperf.models.get_stats200_response_one_of import GetStats200ResponseOneOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetStats200ResponseOneOf from a JSON string -get_stats200_response_one_of_instance = GetStats200ResponseOneOf.from_json(json) -# print the JSON string representation of the object -print(GetStats200ResponseOneOf.to_json()) - -# convert the object into a dict -get_stats200_response_one_of_dict = get_stats200_response_one_of_instance.to_dict() -# create an instance of GetStats200ResponseOneOf from a dict -get_stats200_response_one_of_from_dict = GetStats200ResponseOneOf.from_dict(get_stats200_response_one_of_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IPRange.md b/docs/IPRange.md index 1ef5e34..9247453 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **automatic_ip_type** | [**AutomaticIpType**](AutomaticIpType.md) | The automatic IP types, either 'ONLY_IPV4', 'ONLY_IPV6' or 'BOTH_IPV4_IPV6'. | [optional] **count** | **int** | The number of IPs generated (default: 1). | [optional] -**gw_auto** | **bool** | A flag indicating if the gateway settings for the IPRange should be determined automatically (default: true). | +**gw_auto** | **bool** | A flag indicating if the gateway settings for the IPRange should be determined automatically (default: true). | [optional] **gw_start** | **str** | The gateway start IP for the IPRange (default: 10.0.0.1). | [optional] **host_count** | **int** | The number of Host IPs generated (default: 1). | [optional] **inner_vlan_range** | [**VLANRange**](VLANRange.md) | The inner VLAN range assigned to the current IP range configuration | [optional] @@ -22,7 +22,7 @@ Name | Type | Description | Notes **mss** | **int** | The maximum segment size of the TCP header. | [optional] **mss_auto** | **bool** | A flag indicating if Mss settings for the IPRange should be determined automatically (default: false). | [optional] **net_mask** | **int** | The network mask of the IP Range (default: 16). | [optional] -**net_mask_auto** | **bool** | A flag indicating if the network mask of the IPRange should be determined automatically (default: true). | +**net_mask_auto** | **bool** | A flag indicating if the network mask of the IPRange should be determined automatically (default: true). | [optional] **outer_vlan_range** | [**VLANRange**](VLANRange.md) | The outer VLAN range assigned to the current IP range configuration | [optional] **vlan_type** | [**VLANType**](VLANType.md) | The type of VLAN used | [optional] **id** | **str** | | [optional] diff --git a/docs/Keyword.md b/docs/Keyword.md new file mode 100644 index 0000000..4c27b09 --- /dev/null +++ b/docs/Keyword.md @@ -0,0 +1,31 @@ +# Keyword + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | The keyword category | [optional] +**value** | **str** | The keyword value | [optional] +**index** | **int** | The index of the category | [optional] + +## Example + +```python +from cyperf.models.keyword import Keyword + +# TODO update the JSON string below +json = "{}" +# create an instance of Keyword from a JSON string +keyword_instance = Keyword.from_json(json) +# print the JSON string representation of the object +print(Keyword.to_json()) + +# convert the object into a dict +keyword_dict = keyword_instance.to_dict() +# create an instance of Keyword from a dict +keyword_from_dict = Keyword.from_dict(keyword_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LLMAPIProfile.md b/docs/LLMAPIProfile.md index f4072b4..4cd1566 100644 --- a/docs/LLMAPIProfile.md +++ b/docs/LLMAPIProfile.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **connections** | [**List[Connection]**](Connection.md) | | [optional] **id** | **str** | | **is_enabled** | **bool** | | +**is_one_arm** | **bool** | Indicates whether the LLM API profile is one-arm | **links** | [**List[APILink]**](APILink.md) | | [optional] **model_name** | **str** | | **params** | [**List[Params]**](Params.md) | | [optional] diff --git a/docs/LayoutConfig.md b/docs/LayoutConfig.md new file mode 100644 index 0000000..c183c41 --- /dev/null +++ b/docs/LayoutConfig.md @@ -0,0 +1,29 @@ +# LayoutConfig + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**columns** | **int** | The number of columns in the layout grid. | [optional] + +## Example + +```python +from cyperf.models.layout_config import LayoutConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of LayoutConfig from a JSON string +layout_config_instance = LayoutConfig.from_json(json) +# print the JSON string representation of the object +print(LayoutConfig.to_json()) + +# convert the object into a dict +layout_config_dict = layout_config_instance.to_dict() +# create an instance of LayoutConfig from a dict +layout_config_from_dict = LayoutConfig.from_dict(layout_config_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LicenseServerMetadata.md b/docs/LicenseServerMetadata.md index a57d326..c3bbeb3 100644 --- a/docs/LicenseServerMetadata.md +++ b/docs/LicenseServerMetadata.md @@ -5,17 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**connection_status** | **str** | The license server's connection status | [optional] [readonly] -**failure_reason** | **str** | The license server's connection failure reason | [optional] -**fingerprint** | **str** | The license server's fingerprint | [optional] -**host_name** | **str** | The hostname/IP of the server | [optional] -**id** | **int** | The unique identifier of the license server | [optional] [readonly] -**interactive_fingerprint_verification** | **bool** | Validate the license's server fingerprint interactively | [optional] -**password** | **str** | The license server's authentication password | [optional] -**pretty_conn_status** | **str** | The license server's connection status in a human-readable format | [optional] [readonly] -**trust_new** | **bool** | The flag used to skip license server's identity verifications | [optional] -**tunnel_host_name** | **str** | The hostname/IP of the license server tunnel | [optional] [readonly] -**user** | **str** | The license server's authentication user | [optional] +**connection_status** | **str** | | [optional] +**failure_reason** | **str** | | [optional] +**fingerprint** | **str** | | [optional] +**host_name** | **str** | | [optional] +**id** | **int** | | [optional] +**interactive_fingerprint_verification** | **bool** | | [optional] +**password** | **str** | | [optional] +**pretty_conn_status** | **str** | | [optional] +**trust_new** | **bool** | | [optional] +**tunnel_host_name** | **str** | | [optional] +**user** | **str** | | [optional] ## Example diff --git a/docs/PqcSignatureAlgorithmTLS13.md b/docs/PqcSignatureAlgorithmTLS13.md new file mode 100644 index 0000000..e9b5bff --- /dev/null +++ b/docs/PqcSignatureAlgorithmTLS13.md @@ -0,0 +1,15 @@ +# PqcSignatureAlgorithmTLS13 + +The TLSv1.3 supported PQC signature algorithms. + +## Enum + +* `MLDSA44` (value: `'mldsa44'`) + +* `MLDSA65` (value: `'mldsa65'`) + +* `MLDSA87` (value: `'mldsa87'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PrepareTestOperation.md b/docs/PrepareTestOperation.md deleted file mode 100644 index 06d87a6..0000000 --- a/docs/PrepareTestOperation.md +++ /dev/null @@ -1,37 +0,0 @@ -# PrepareTestOperation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**options** | [**PreparedTestOptions**](PreparedTestOptions.md) | | [optional] -**message** | **str** | An optional message that describes the reason the test ended | [optional] -**new_state** | **str** | An optional enum that identifies the current state of the test | [optional] -**old_state** | **str** | An optional enum that identifies the previous state of the test | [optional] -**owner** | **str** | An optional friendly display name for the user which initiated the operation | [optional] -**owner_id** | **str** | An optional identifier that uniquely identifies the user which initiated the operation | [optional] -**reason** | **str** | An optional enum that identifies the underlying reason for the test's end | [optional] -**test_id** | **str** | The test to which the state change refers | [optional] -**timestamp** | **int** | An optional Unix timestamp that indicates when the test state was changed | [optional] - -## Example - -```python -from cyperf.models.prepare_test_operation import PrepareTestOperation - -# TODO update the JSON string below -json = "{}" -# create an instance of PrepareTestOperation from a JSON string -prepare_test_operation_instance = PrepareTestOperation.from_json(json) -# print the JSON string representation of the object -print(PrepareTestOperation.to_json()) - -# convert the object into a dict -prepare_test_operation_dict = prepare_test_operation_instance.to_dict() -# create an instance of PrepareTestOperation from a dict -prepare_test_operation_from_dict = PrepareTestOperation.from_dict(prepare_test_operation_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PreparedTestOptions.md b/docs/PreparedTestOptions.md deleted file mode 100644 index 358654a..0000000 --- a/docs/PreparedTestOptions.md +++ /dev/null @@ -1,34 +0,0 @@ -# PreparedTestOptions - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**add_activity_meta** | **bool** | | [optional] -**datasource_for_ui_views** | **str** | | [optional] -**extra_tags** | **Dict[str, List[str]]** | | [optional] -**filter_by_properties** | **Dict[str, str]** | | [optional] -**format_protocol_name** | **bool** | | [optional] -**override_properties** | **Dict[str, str]** | | [optional] - -## Example - -```python -from cyperf.models.prepared_test_options import PreparedTestOptions - -# TODO update the JSON string below -json = "{}" -# create an instance of PreparedTestOptions from a JSON string -prepared_test_options_instance = PreparedTestOptions.from_json(json) -# print the JSON string representation of the object -print(PreparedTestOptions.to_json()) - -# convert the object into a dict -prepared_test_options_dict = prepared_test_options_instance.to_dict() -# create an instance of PreparedTestOptions from a dict -prepared_test_options_from_dict = PreparedTestOptions.from_dict(prepared_test_options_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Profile.md b/docs/Profile.md new file mode 100644 index 0000000..060f801 --- /dev/null +++ b/docs/Profile.md @@ -0,0 +1,39 @@ +# Profile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | Category of the profile | [optional] +**config_id** | **str** | The config ID associated with this profile | [optional] +**description** | **str** | Description of the profile | [optional] +**display_name** | **str** | Display name of the profile | [optional] +**icon** | **str** | Profile icon (base64 encoded) | [optional] +**id** | **str** | | [optional] +**index** | **int** | The index of the profile in the list of profiles. This is used for ordering profiles. | [optional] [readonly] +**owner** | **str** | The friendly display name of the profile's owner | [optional] [readonly] +**owner_id** | **str** | The unique identifier of the profile's owner | [optional] [readonly] +**topology_img_dark** | **str** | Topology image (dark theme, base64 encoded) | [optional] +**topology_img_light** | **str** | Topology image (light theme, base64 encoded) | [optional] + +## Example + +```python +from cyperf.models.profile import Profile + +# TODO update the JSON string below +json = "{}" +# create an instance of Profile from a JSON string +profile_instance = Profile.from_json(json) +# print the JSON string representation of the object +print(Profile.to_json()) + +# convert the object into a dict +profile_dict = profile_instance.to_dict() +# create an instance of Profile from a dict +profile_from_dict = Profile.from_dict(profile_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Section.md b/docs/Section.md new file mode 100644 index 0000000..141e324 --- /dev/null +++ b/docs/Section.md @@ -0,0 +1,30 @@ +# Section + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[ContentBlock]**](ContentBlock.md) | The content blocks that belong to this section. | [optional] +**title** | [**List[TextSegment]**](TextSegment.md) | The title of the section, as a rich text. | [optional] + +## Example + +```python +from cyperf.models.section import Section + +# TODO update the JSON string below +json = "{}" +# create an instance of Section from a JSON string +section_instance = Section.from_json(json) +# print the JSON string representation of the object +print(Section.to_json()) + +# convert the object into a dict +section_dict = section_instance.to_dict() +# create an instance of Section from a dict +section_from_dict = Section.from_dict(section_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SessionReuseMethodTLS12.md b/docs/SessionReuseMethodTLS12.md index bf7b994..c29a12d 100644 --- a/docs/SessionReuseMethodTLS12.md +++ b/docs/SessionReuseMethodTLS12.md @@ -1,6 +1,6 @@ # SessionReuseMethodTLS12 -The session reuse method. Must be one of: DISABLE, SESSION-TICKET or SESSION-ID (default: DISABLE). +TLS 1.2 session reuse method. Must be one of: DISABLE, SESSION-TICKET, SESSION-ID (default: DISABLE). ## Enum diff --git a/docs/SessionReuseMethodTLS13.md b/docs/SessionReuseMethodTLS13.md index a7114c3..074c28c 100644 --- a/docs/SessionReuseMethodTLS13.md +++ b/docs/SessionReuseMethodTLS13.md @@ -1,11 +1,13 @@ # SessionReuseMethodTLS13 -The session reuse method. Must be DISABLE (default: DISABLE). +TLS 1.3 session reuse method. Must be one of: DISABLE, PSK_ECDHE_REUSE (default: DISABLE). ## Enum * `DISABLE` (value: `'DISABLE'`) +* `PSK_ECDHE_REUSE` (value: `'PSK_ECDHE_REUSE'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SessionsApi.md b/docs/SessionsApi.md index f34d6a3..b5378d4 100644 --- a/docs/SessionsApi.md +++ b/docs/SessionsApi.md @@ -24,7 +24,6 @@ Method | HTTP request | Description [**start_session_config_granular_stats_default_dashboards**](SessionsApi.md#start_session_config_granular_stats_default_dashboards) | **POST** /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards | [**start_session_config_save**](SessionsApi.md#start_session_config_save) | **POST** /api/v2/sessions/{sessionId}/config/operations/save | [**start_session_load_config**](SessionsApi.md#start_session_load_config) | **POST** /api/v2/sessions/{sessionId}/operations/loadConfig | -[**start_session_prepare_test**](SessionsApi.md#start_session_prepare_test) | **POST** /api/v2/sessions/{sessionId}/operations/prepareTest | [**start_session_test_end**](SessionsApi.md#start_session_test_end) | **POST** /api/v2/sessions/{sessionId}/operations/testEnd | [**start_session_test_init**](SessionsApi.md#start_session_test_init) | **POST** /api/v2/sessions/{sessionId}/operations/testInit | [**start_session_touch**](SessionsApi.md#start_session_touch) | **POST** /api/v2/sessions/{sessionId}/operations/touch | @@ -1625,86 +1624,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **start_session_prepare_test** -> AsyncContext start_session_prepare_test(session_id, prepare_test_operation=prepare_test_operation) - - - -This operation returns the config processed as agent messages and any data necessary for UI and REST stats - -### Example - -* OAuth Authentication (OAuth2): -* OAuth Authentication (OAuth2): - -```python -import cyperf -from cyperf.models.async_context import AsyncContext -from cyperf.models.prepare_test_operation import PrepareTestOperation -from cyperf.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = cyperf.Configuration( - host = "http://localhost" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] - -# Enter a context with an instance of the API client -with cyperf.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = cyperf.SessionsApi(api_client) - session_id = 'session_id_example' # str | The ID of the session. - prepare_test_operation = [cyperf.PrepareTestOperation()] # List[PrepareTestOperation] | (optional) - - try: - api_response = api_instance.start_session_prepare_test(session_id, prepare_test_operation=prepare_test_operation) - print("The response of SessionsApi->start_session_prepare_test:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SessionsApi->start_session_prepare_test: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **session_id** | **str**| The ID of the session. | - **prepare_test_operation** | [**List[PrepareTestOperation]**](PrepareTestOperation.md)| | [optional] - -### Return type - -[**AsyncContext**](AsyncContext.md) - -### Authorization - -[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**202** | Details about the operation that just started | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **start_session_test_end** > AsyncContext start_session_test_end(session_id, test_state_changed_operation=test_state_changed_operation) diff --git a/docs/SetAppOperation.md b/docs/SetAppOperation.md deleted file mode 100644 index 52fd548..0000000 --- a/docs/SetAppOperation.md +++ /dev/null @@ -1,31 +0,0 @@ -# SetAppOperation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**app_id** | **str** | The id of the app to activate on the controllers. | [optional] -**controllers** | **List[str]** | The controller ids for which to activate the app. | [optional] -**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] - -## Example - -```python -from cyperf.models.set_app_operation import SetAppOperation - -# TODO update the JSON string below -json = "{}" -# create an instance of SetAppOperation from a JSON string -set_app_operation_instance = SetAppOperation.from_json(json) -# print the JSON string representation of the object -print(SetAppOperation.to_json()) - -# convert the object into a dict -set_app_operation_dict = set_app_operation_instance.to_dict() -# create an instance of SetAppOperation from a dict -set_app_operation_from_dict = SetAppOperation.from_dict(set_app_operation_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/StartBatchDeleteRequestInner.md b/docs/StartBatchDeleteRequestInner.md deleted file mode 100644 index 4d74fef..0000000 --- a/docs/StartBatchDeleteRequestInner.md +++ /dev/null @@ -1,29 +0,0 @@ -# StartBatchDeleteRequestInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | | [optional] - -## Example - -```python -from cyperf.models.start_batch_delete_request_inner import StartBatchDeleteRequestInner - -# TODO update the JSON string below -json = "{}" -# create an instance of StartBatchDeleteRequestInner from a JSON string -start_batch_delete_request_inner_instance = StartBatchDeleteRequestInner.from_json(json) -# print the JSON string representation of the object -print(StartBatchDeleteRequestInner.to_json()) - -# convert the object into a dict -start_batch_delete_request_inner_dict = start_batch_delete_request_inner_instance.to_dict() -# create an instance of StartBatchDeleteRequestInner from a dict -start_batch_delete_request_inner_from_dict = StartBatchDeleteRequestInner.from_dict(start_batch_delete_request_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/StartRootBatchDeleteRequestInner.md b/docs/StartRootBatchDeleteRequestInner.md deleted file mode 100644 index b0f6a5e..0000000 --- a/docs/StartRootBatchDeleteRequestInner.md +++ /dev/null @@ -1,29 +0,0 @@ -# StartRootBatchDeleteRequestInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | | [optional] - -## Example - -```python -from cyperf.models.start_root_batch_delete_request_inner import StartRootBatchDeleteRequestInner - -# TODO update the JSON string below -json = "{}" -# create an instance of StartRootBatchDeleteRequestInner from a JSON string -start_root_batch_delete_request_inner_instance = StartRootBatchDeleteRequestInner.from_json(json) -# print the JSON string representation of the object -print(StartRootBatchDeleteRequestInner.to_json()) - -# convert the object into a dict -start_root_batch_delete_request_inner_dict = start_root_batch_delete_request_inner_instance.to_dict() -# create an instance of StartRootBatchDeleteRequestInner from a dict -start_root_batch_delete_request_inner_from_dict = StartRootBatchDeleteRequestInner.from_dict(start_root_batch_delete_request_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SwitchAppOperation.md b/docs/SwitchAppOperation.md deleted file mode 100644 index a87d2fd..0000000 --- a/docs/SwitchAppOperation.md +++ /dev/null @@ -1,29 +0,0 @@ -# SwitchAppOperation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**app_id** | **str** | The id of the app to activate on the controller. | [optional] - -## Example - -```python -from cyperf.models.switch_app_operation import SwitchAppOperation - -# TODO update the JSON string below -json = "{}" -# create an instance of SwitchAppOperation from a JSON string -switch_app_operation_instance = SwitchAppOperation.from_json(json) -# print the JSON string representation of the object -print(SwitchAppOperation.to_json()) - -# convert the object into a dict -switch_app_operation_dict = switch_app_operation_instance.to_dict() -# create an instance of SwitchAppOperation from a dict -switch_app_operation_from_dict = SwitchAppOperation.from_dict(switch_app_operation_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TLSProfile.md b/docs/TLSProfile.md index 10f7701..2241ee4 100644 --- a/docs/TLSProfile.md +++ b/docs/TLSProfile.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **cipher13** | [**CipherTLS13**](CipherTLS13.md) | | [optional] **ciphers12** | [**List[CipherTLS12]**](CipherTLS12.md) | | [optional] **ciphers13** | [**List[CipherTLS13]**](CipherTLS13.md) | | [optional] +**classical_signature_algorithms13** | [**List[ClassicalSignatureAlgorithmTLS13]**](ClassicalSignatureAlgorithmTLS13.md) | | [optional] +**composite_pqc_signature_algorithms13** | [**List[CompositePqcSignatureAlgorithmTLS13]**](CompositePqcSignatureAlgorithmTLS13.md) | | [optional] **dh_file** | [**Params**](Params.md) | | [optional] +**early_data_enabled** | **bool** | If true, TLS 1.3 early data will be enabled. | [optional] **get_tls_conflicts** | **List[bytearray]** | | [optional] **groups13** | [**List[GroupTLS13]**](GroupTLS13.md) | | [optional] **immediate_close** | **bool** | The immediate FIN after close notify | [optional] @@ -19,10 +22,13 @@ Name | Type | Description | Notes **key_file_password** | **str** | The key file password of the TLS profile. | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **middle_box_enabled** | **bool** | If true, the middle box compatibility will be enabled | [optional] +**pqc_signature_algorithms13** | [**List[PqcSignatureAlgorithmTLS13]**](PqcSignatureAlgorithmTLS13.md) | | [optional] **profile_id** | **str** | The ID of the TLS profile (default: TLSProfile). | **resolve_tls_conflicts** | [**List[Conflict]**](Conflict.md) | | [optional] **send_close_notify** | **bool** | If true, a TLS close-notify alert will be sent while closing the TLS session | [optional] -**session_reuse_count** | **int** | | [optional] +**session_reuse_count** | **int** | Deprecated: retained for backward compatibility. Represents the TLS 1.2 session reuse count - the number of times a TLS 1.2 client can reuse a previously established session before performing a full handshake (a value of 0 disables session reuse). Use sessionReuseCount12 instead. | [optional] +**session_reuse_count12** | **int** | The number of times a TLS 1.2 client can reuse a previously established session before performing a full handshake ( a value of 0 disables session reuse). | [optional] +**session_reuse_count13** | **int** | The number of times a TLS 1.3 client can reuse a previously established session before performing a full handshake ( a value of 0 disables session reuse). | [optional] **session_reuse_method** | [**SessionReuseMethodTLS12**](SessionReuseMethodTLS12.md) | | [optional] **session_reuse_method12** | [**SessionReuseMethodTLS12**](SessionReuseMethodTLS12.md) | | [optional] **session_reuse_method13** | [**SessionReuseMethodTLS13**](SessionReuseMethodTLS13.md) | | [optional] @@ -31,6 +37,7 @@ Name | Type | Description | Notes **supported_groups13** | [**List[SupportedGroupTLS13]**](SupportedGroupTLS13.md) | | [optional] **tls12_enabled** | **bool** | | **tls13_enabled** | **bool** | | [optional] +**use_default_signature_algorithms** | **bool** | If true, default signature algorithms will be used. | [optional] **use_tls_profile** | **bool** | When disabled, the connection is not TLS secured (default: true). | [optional] **version** | **str** | The version of the TLS profile (default: NONE). Must be one of: NONE or TLSv1.2 or TLSv1.3. | diff --git a/docs/TestInfo.md b/docs/TestInfo.md index 55b5c0e..36082a8 100644 --- a/docs/TestInfo.md +++ b/docs/TestInfo.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **test_initialized** | **int** | A Unix timestamp that indicates when the last test was initialized | [optional] **test_started** | **int** | A Unix timestamp that indicates when the test was started | [optional] **test_stopped** | **int** | A Unix timestamp that indicates when the test was stopped. May be null if the test is still running. | [optional] -**test_usage** | [**TestUsage**](TestUsage.md) | | [optional] +**used_licenses** | **Dict[str, int]** | Feature types used by the current test and their respective counts | [optional] ## Example diff --git a/docs/TestUsage.md b/docs/TestUsage.md deleted file mode 100644 index 332271a..0000000 --- a/docs/TestUsage.md +++ /dev/null @@ -1,30 +0,0 @@ -# TestUsage - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**used_agents** | **List[str]** | The agents used by the current test | [optional] -**used_licenses** | **Dict[str, int]** | Feature types used by the current test and their respective counts | [optional] - -## Example - -```python -from cyperf.models.test_usage import TestUsage - -# TODO update the JSON string below -json = "{}" -# create an instance of TestUsage from a JSON string -test_usage_instance = TestUsage.from_json(json) -# print the JSON string representation of the object -print(TestUsage.to_json()) - -# convert the object into a dict -test_usage_dict = test_usage_instance.to_dict() -# create an instance of TestUsage from a dict -test_usage_from_dict = TestUsage.from_dict(test_usage_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/TextSegment.md b/docs/TextSegment.md new file mode 100644 index 0000000..d04b042 --- /dev/null +++ b/docs/TextSegment.md @@ -0,0 +1,33 @@ +# TextSegment + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bold** | **bool** | Whether the text is bold. | [optional] +**color** | **str** | The color of the text. | [optional] +**css_class** | **str** | A CSS class to apply to the text segment. | [optional] +**italic** | **bool** | Whether the text is italic. | [optional] +**text** | **str** | The text content of the segment. | [optional] + +## Example + +```python +from cyperf.models.text_segment import TextSegment + +# TODO update the JSON string below +json = "{}" +# create an instance of TextSegment from a JSON string +text_segment_instance = TextSegment.from_json(json) +# print the JSON string representation of the object +print(TextSegment.to_json()) + +# convert the object into a dict +text_segment_dict = text_segment_instance.to_dict() +# create an instance of TextSegment from a dict +text_segment_from_dict = TextSegment.from_dict(text_segment_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UtilsApi.md b/docs/UtilsApi.md index 22033a9..5aa4f88 100644 --- a/docs/UtilsApi.md +++ b/docs/UtilsApi.md @@ -12,11 +12,11 @@ Method | HTTP request | Description [**get_docs**](UtilsApi.md#get_docs) | **GET** /api/v2/docs | [**get_docs_json**](UtilsApi.md#get_docs_json) | **GET** /api/v2/docs.json | [**get_docs_yaml**](UtilsApi.md#get_docs_yaml) | **GET** /api/v2/docs.yaml | -[**get_eula**](UtilsApi.md#get_eula) | **GET** /eula/v1/eula/CyPerf | Retrieve EULA detail +[**get_eula**](UtilsApi.md#get_eula) | **GET** /eula/v1/eula/{id} | Retrieve EULA detail [**get_log_config**](UtilsApi.md#get_log_config) | **GET** /api/v2/log-config | [**get_time**](UtilsApi.md#get_time) | **GET** /api/v2/time | [**list_eulas**](UtilsApi.md#list_eulas) | **GET** /eula/v1/eula | list of EULAs -[**post_eula**](UtilsApi.md#post_eula) | **POST** /eula/v1/eula/CyPerf | Update properties an EULA +[**post_eula**](UtilsApi.md#post_eula) | **POST** /eula/v1/eula/{id} | Update properties an EULA [**start_cert_manager_generate**](UtilsApi.md#start_cert_manager_generate) | **POST** /api/v2/cert-manager/operations/generate | [**start_cert_manager_upload**](UtilsApi.md#start_cert_manager_upload) | **POST** /api/v2/cert-manager/operations/upload | [**start_disk_usage_cleanup_diagnostics**](UtilsApi.md#start_disk_usage_cleanup_diagnostics) | **POST** /api/v2/disk-usage/operations/cleanup-diagnostics | @@ -624,7 +624,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_eula** -> EulaDetails get_eula() +> EulaDetails get_eula(id) Retrieve EULA detail @@ -658,10 +658,11 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.UtilsApi(api_client) + id = 'id_example' # str | The ID of the EULA. try: # Retrieve EULA detail - api_response = api_instance.get_eula() + api_response = api_instance.get_eula(id) print("The response of UtilsApi->get_eula:\n") pprint(api_response) except Exception as e: @@ -672,7 +673,10 @@ with cyperf.ApiClient(configuration) as api_client: ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the EULA. | ### Return type @@ -916,7 +920,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **post_eula** -> str post_eula(eula_summary=eula_summary) +> str post_eula(id, eula_summary=eula_summary) Update properties an EULA @@ -950,11 +954,12 @@ configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] with cyperf.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = cyperf.UtilsApi(api_client) + id = 'id_example' # str | The ID of the EULA. eula_summary = cyperf.EulaSummary() # EulaSummary | (optional) try: # Update properties an EULA - api_response = api_instance.post_eula(eula_summary=eula_summary) + api_response = api_instance.post_eula(id, eula_summary=eula_summary) print("The response of UtilsApi->post_eula:\n") pprint(api_response) except Exception as e: @@ -968,6 +973,7 @@ with cyperf.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **id** | **str**| The ID of the EULA. | **eula_summary** | [**EulaSummary**](EulaSummary.md)| | [optional] ### Return type From 835526c0a3b91caefdc7833e34c5823acdd2eb54 Mon Sep 17 00:00:00 2001 From: Anuvab Chakravarty Date: Wed, 29 Jul 2026 04:02:54 -0600 Subject: [PATCH 42/53] Pull request #80: ISGAPPSEC2-38154: Existing Guardrail related utilities updated to accommodate unified strike format Merge in ISGAPPSEC/cyperf-api-wrapper from anuvab/guardrail-utils to main Squashed commit of the following: commit 26659d7cde9511b820a1cce5deeec4aeb10edb1f Author: anuvchak Date: Mon Jul 27 08:07:26 2026 +0000 Introduces error-free skipping in case we run into applications with No Connections Also removes the redundant alias 'label' commit a114dce54948865cf171e128bbbc22c0ecc1ae03 Author: anuvchak Date: Fri Jul 24 14:57:14 2026 +0000 Creates a separate function keeping the common portions for guardrail utils inside. Also handles absent profiles better. Enough to abort in one specific case (neither strike or app profile found). commit 71a2e79b38b10b4f29e357ff9138959c9f53ee7a Author: anuvchak Date: Thu Jul 23 07:40:10 2026 +0000 Working changes to Guardrail Utilities to accomodate unified strike format ISGAPPSEC2-38154: Supports the Google Model Armor and Prisma AIRS Guardrails only for now --- cyperf/utils.py | 209 +++++++++++++++++++++--------------------------- 1 file changed, 92 insertions(+), 117 deletions(-) diff --git a/cyperf/utils.py b/cyperf/utils.py index 9b00ec9..e519642 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -354,134 +354,109 @@ def format_stats_dict_as_table(self, stats_dict={}): lines = ['|'.join([f'{val:^{col_width}}' for val, col_width in zip(item, col_widths)]) for item in zip(*stats_dict.values())] return [line_delim, header, line_delim] + lines + [line_delim] - def set_prisma_airs_params(self, session, pan_auth_token, airs_profile_name = None, airs_profile_id = None): - # Update Attacks - prisma_airs_attacks_found = False - try: - attack_profiles = session.config.config.attack_profiles - if not attack_profiles: - raise ValueError("No attack profiles found in the session configuration.") - for attack in attack_profiles[0].attacks: - if "Prisma AIRS" not in attack.name: - continue - for track in attack.tracks: - for action in track.actions: - for param in action.params: - if param.name == "PAN auth token": - prisma_airs_attacks_found = True - param.value = pan_auth_token - print(f"Updated PAN auth token for attack: {attack.name}") - elif param.name == "AIRS Profile Name" and airs_profile_name: - param.value = airs_profile_name - print(f"Updated AIRS Profile Name for attack: {attack.name}") - elif param.name == "AIRS Profile ID" and airs_profile_id: - param.value = airs_profile_id - print(f"Updated AIRS Profile ID for attack: {attack.name}") - param.update() - except AttributeError as e: - print(f"Error while setting Prisma AIRS params: {e}") - except Exception as e: - print(f"Unexpected error while setting Prisma AIRS params: {e}") - if not prisma_airs_attacks_found: - print("No Prisma AIRS Attacks found in the provided session.") + def _set_llm_api_profile_params(self, session, profile_model_name, hostname, params, app_protocol_id): + strike_found = False + app_found = False - # Update Applications - prisma_airs_applications_found = False - try: - traffic_profiles = session.config.config.traffic_profiles - if not traffic_profiles: - raise ValueError("No application profiles found in the session configuration.") - for application in traffic_profiles[0].applications: - if "Prisma AIRS" not in application.name: - continue - for track in application.tracks: - for action in track.actions: - for param in action.params: - if param.name == "PAN Auth Token": - prisma_airs_applications_found = True - param.value = pan_auth_token - print(f"Updated PAN auth token for Application: {application.name}") - elif param.name == "AIRS Profile Name" and airs_profile_name: - param.value = airs_profile_name - print(f"Updated AIRS Profile Name for Application: {application.name}") - elif param.name == "AIRS Profile ID" and airs_profile_id: - param.value = airs_profile_id - print(f"Updated AIRS Profile ID for Application: {application.name}") - param.update() - except AttributeError as e: - print(f"Error while setting Prisma AIRS params: {e}") - except Exception as e: - print(f"Unexpected error while setting Prisma AIRS params: {e}") - if not prisma_airs_applications_found: - print("No Prisma AIRS Applications found in the provided session.") + # DUT Hostname + if hostname: + try: + dut = session.config.config.network_profiles[0].dut_network_segment[0] + dut.server_dut_host = hostname + dut.server_dut_active = True + dut.active = True + dut.update() + print(f"Server DUT hostname updated to {hostname}") + except Exception as e: + print(f"Warning: Could not set Server DUT host: {e}") - def set_model_armor_params(self, session, template_id, location, project_id, access_token): - # Update Attacks - model_armor_attacks_found = False try: - attack_profiles = session.config.config.attack_profiles - if not attack_profiles: - raise ValueError("No attack profiles found in the session configuration.") - for attack in attack_profiles[0].attacks: - if "Model Armor" not in attack.name: - continue - for track in attack.tracks: - for action in track.actions: - params = action.params - for param in params: - if param.name == "Template ID": - model_armor_attacks_found = True - param.value = template_id - print(f"Updated Template ID for attack: {attack.name}") - elif param.name == "Project ID": - param.value = project_id - print(f"Updated Project ID for attack: {attack.name}") - elif param.name == "Location": - param.value = location - print(f"Updated Location for attack: {attack.name}") - elif param.name == "Access Token": - param.value = access_token - print(f"Updated Access Token for attack: {attack.name}") - param.update() + # For Strikes: populate intended LLM API profile and disable other LLM API profiles. + profiles = session.config.config.attack_profiles[0].traffic_settings.default_transport_profile.llmapi_profiles + target = None + for p in profiles: + if p.model_name == profile_model_name: + target = p + break + + if target is None: + print(f"No {profile_model_name} API Profile found in the provided session.") + else: + strike_found = True + for p in profiles: + if p is not target and p.is_enabled: + p.is_enabled = False + p.update() + target.is_enabled = True + target.update() + print(f"Enabled {profile_model_name} and disabled other LLM API profiles") + + if hostname and target.connections and target.connections[0].hostname_param: + target.connections[0].hostname_param.value = hostname + target.connections[0].hostname_param.update() + + for param in target.params: + if param.param_id in params: + param.value = params[param.param_id] + param.update() except AttributeError as e: - print(f"Error while setting Model Armor params: {e}") + print(f"Error while setting {profile_model_name} strike params: {e}") except Exception as e: - print(f"Unexpected error while setting Model Armor params: {e}") - if not model_armor_attacks_found: - print("No Model Armor Attacks found in the provided session.") + print(f"Unexpected error while setting {profile_model_name} strike params: {e}") - # Update Applications - model_armor_applications_found = False + # For Applications: loop per app and set parameters one-by-one. try: traffic_profiles = session.config.config.traffic_profiles if not traffic_profiles: - raise ValueError("No application profiles found in the session configuration.") - for application in traffic_profiles[0].applications: - if "Model Armor" not in application.name: - continue - for track in application.tracks: - for action in track.actions: - for param in action.params: - if param.name == "Template ID": - model_armor_applications_found = True - param.value = template_id - print(f"Updated Template ID for Application: {application.name}") - elif param.name == "Project ID": - param.value = project_id - print(f"Updated Project ID for Application: {application.name}") - elif param.name == "Location": - param.value = location - print(f"Updated Location for Application: {application.name}") - elif param.name == "Access Token": - param.value = access_token - print(f"Updated Access Token for Application: {application.name}") - param.update() + print("No application profiles found in the session configuration.") + else: + for application in traffic_profiles[0].applications: + if app_protocol_id not in application.protocol_id: + continue + app_found = True + if hostname: + connections = getattr(application, 'connections', None) + # Skipping in case we run into applications with No Connections + if not connections: + print(f"Skipping connection-level hostname update for Application {application.name}: No connections found") + else: + connections[0].hostname_param.value = hostname + connections[0].hostname_param.update() + for track in application.tracks: + for action in track.actions: + for param in action.params: + if param.param_id in params: + param.value = params[param.param_id] + param.update() + print(f"Updated params for Application: {application.name}") except AttributeError as e: - print(f"Error while setting Model Armor params: {e}") + print(f"Error while setting {profile_model_name} application params: {e}") except Exception as e: - print(f"Unexpected error while setting Model Armor params: {e}") - if not model_armor_applications_found: - print("No Model Armor Applications found in the provided session.") + print(f"Unexpected error while setting {profile_model_name} application params: {e}") + + if not strike_found and not app_found: + raise ValueError(f"No matching {profile_model_name} API Profile strike or application found in the provided session.") + + if not app_found: + print(f"No {app_protocol_id} Applications found in the provided session.") + + def set_prisma_airs_params(self, session, pan_auth_token, airs_profile_name=None, airs_profile_id=None, hostname=None): + params = {"pan_auth_token": pan_auth_token} + if airs_profile_name: + params["airs_profile_name"] = airs_profile_name + if airs_profile_id: + params["airs_profile_id"] = airs_profile_id + self._set_llm_api_profile_params(session, "Prisma AIRS API Interceptor", hostname, params, "Prisma AIRS") + + def set_model_armor_params(self, session, template_id, location, project_id, access_token, hostname=None): + resolved_hostname = hostname or f"modelarmor.{location}.rep.googleapis.com" + params = { + "template_id": template_id, + "project_id": project_id, + "location": location, + "access_token": access_token, + } + self._set_llm_api_profile_params(session, "Model Armor API Interceptor", resolved_hostname, params, "Model Armor") def get_agent_ips(self): """Return the management IPs of all available agents.""" From f02bc2f32fb0ad6dbcabe99b5f6276a5628778d7 Mon Sep 17 00:00:00 2001 From: Angela Grigoroaia Date: Thu, 9 Jul 2026 17:33:10 +0300 Subject: [PATCH 43/53] Add generated knowledge base (v3.5.0 sections layout) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Knowledge base was generated in an isolated worktree; relocating it into the main checkout's .claude/knowledge-base so it's available from main. Also migrates the KB from the legacy monolithic-README layout to the v3.5.0 index + sections layout: the slim README.md now holds only the Product Profile and a Sections index table, while each of the 10 canonical KB sections (architecture, file-index, surface-inventory, project-standards, internal-quality, external-quality, technical-debt, feature-registry, development-guide, tooling-requirements) lives in its own file under knowledge-base/sections/. This was a pure content carve of the existing monolith (which already used the exact canonical H2 section names) via the assembler — no discovery/IQ/EQ re-run, no new facts. The manifest is updated accordingly and gets a new Incremental Update Log entry describing the carve. Co-Authored-By: Claude Sonnet 5 --- .claude/knowledge-base/.generated-manifest.md | 88 ++++++++++++++++++ .claude/knowledge-base/README.md | 24 +++++ .claude/knowledge-base/USAGE.md | 92 +++++++++++++++++++ .../knowledge-base/sections/architecture.md | 17 ++++ .../sections/development-guide.md | 17 ++++ .../sections/external-quality.md | 4 + .../sections/feature-registry.md | 12 +++ .claude/knowledge-base/sections/file-index.md | 57 ++++++++++++ .../sections/internal-quality.md | 4 + .../sections/project-standards.md | 28 ++++++ .../sections/surface-inventory.md | 65 +++++++++++++ .../knowledge-base/sections/technical-debt.md | 4 + .../sections/tooling-requirements.md | 14 +++ 13 files changed, 426 insertions(+) create mode 100644 .claude/knowledge-base/.generated-manifest.md create mode 100644 .claude/knowledge-base/README.md create mode 100644 .claude/knowledge-base/USAGE.md create mode 100644 .claude/knowledge-base/sections/architecture.md create mode 100644 .claude/knowledge-base/sections/development-guide.md create mode 100644 .claude/knowledge-base/sections/external-quality.md create mode 100644 .claude/knowledge-base/sections/feature-registry.md create mode 100644 .claude/knowledge-base/sections/file-index.md create mode 100644 .claude/knowledge-base/sections/internal-quality.md create mode 100644 .claude/knowledge-base/sections/project-standards.md create mode 100644 .claude/knowledge-base/sections/surface-inventory.md create mode 100644 .claude/knowledge-base/sections/technical-debt.md create mode 100644 .claude/knowledge-base/sections/tooling-requirements.md diff --git a/.claude/knowledge-base/.generated-manifest.md b/.claude/knowledge-base/.generated-manifest.md new file mode 100644 index 0000000..e62869f --- /dev/null +++ b/.claude/knowledge-base/.generated-manifest.md @@ -0,0 +1,88 @@ +# Generated Artifacts Manifest +Plugin: knowledge-base v3.5.0 +Generated: 2026-07-09 + +| Path | Type | Name | Category | Version | +|------|------|------|----------|---------| +| .claude/knowledge-base/README.md | readme | knowledge-base | — | 3.5.0 | +| .claude/knowledge-base/sections/architecture.md | kb-section | architecture | — | 3.5.0 | +| .claude/knowledge-base/sections/file-index.md | kb-section | file-index | — | 3.5.0 | +| .claude/knowledge-base/sections/surface-inventory.md | kb-section | surface-inventory | — | 3.5.0 | +| .claude/knowledge-base/sections/project-standards.md | kb-section | project-standards | — | 3.5.0 | +| .claude/knowledge-base/sections/internal-quality.md | kb-section | internal-quality | — | 3.5.0 | +| .claude/knowledge-base/sections/external-quality.md | kb-section | external-quality | — | 3.5.0 | +| .claude/knowledge-base/sections/technical-debt.md | kb-section | technical-debt | — | 3.5.0 | +| .claude/knowledge-base/sections/feature-registry.md | kb-section | feature-registry | — | 3.5.0 | +| .claude/knowledge-base/sections/development-guide.md | kb-section | development-guide | — | 3.5.0 | +| .claude/knowledge-base/sections/tooling-requirements.md | kb-section | tooling-requirements | — | 3.5.0 | +| .claude/skills/explain/SKILL.md | skill | explain | understand | 3.4.0 | +| .claude/skills/document/SKILL.md | skill | document | understand | 3.4.0 | +| .claude/skills/review/SKILL.md | skill | review | operate | 3.4.0 | +| .claude/skills/exec-plan/SKILL.md | skill | exec-plan | operate | 3.4.0 | +| .claude/skills/deploy/SKILL.md | skill | deploy | operate | 3.4.0 | +| .claude/agents/scanner.md | agent | scanner | — | 3.4.0 | +| .claude/agents/analyzer.md | agent | analyzer | — | 3.4.0 | +| .claude/agents/reasoner.md | agent | reasoner | — | 3.4.0 | +| .claude/agents/reviewer.md | agent | reviewer | — | 3.4.0 | +| .claude/agents/exec-plan-author.md | agent | exec-plan-author | — | 3.4.0 | +| .claude/agents/exec-plan-implementer.md | agent | exec-plan-implementer | — | 3.4.0 | +| .claude/agents/exec-plan-discusser.md | agent | exec-plan-discusser | — | 3.4.0 | +| .claude/agents/exec-plan-researcher.md | agent | exec-plan-researcher | — | 3.4.0 | +| .claude/commands/explain.md | command | explain | — | 3.4.0 | +| .claude/commands/review.md | command | review | — | 3.4.0 | +| .claude/commands/exec-plan.md | command | exec-plan | — | 3.4.0 | +| .claude/commands/deploy.md | command | deploy | — | 3.4.0 | +| .claude/commands/incremental-discover.md | command | incremental-discover | — | 3.4.0 | +| .claude/settings.json | hook | block-sensitive, lint-on-save | — | 3.4.0 | +| .claude/hooks/block_sensitive.py | hook | block-sensitive (helper script) | — | 3.4.0 | +| .claude/hooks/lint_on_save.py | hook | lint-on-save (helper script) | — | 3.4.0 | +| CLAUDE.md | readme | claude-md | — | 3.4.0 | +| .claude/knowledge-base/USAGE.md | readme | usage | — | 3.4.0 | + +## Artifacts intentionally not generated + +| Artifact | Reason | +|----------|--------| +| MCP server configs (`.mcp.json`) | No qualifying stack signal: remote is internal Bitbucket (not GitHub), no database, no UI, no Slack/Stripe/Supabase integration. The project's `docker/Dockerfile` only packages the wheel for PyPI publish — not a local dev container workflow — so it doesn't justify a Docker MCP server either. | +| Improve skills (Tier A/B) | No IQ/EQ evaluation has run yet (this was a `discover`-only / base-mode run, not `discover-all`). Zero Improve skills is the correct base-mode outcome, not a gap. | +| `run-tests` hook | The project has no real test suite (`pytest --cov=cyperf` collects 0 tests) — wiring a hook to run non-existent tests on every save would be misleading. | +| `format-on-save` hook | No formatter is configured for this project (no black/ruff/autopep8) — only the `flake8` linter, which is covered by `lint-on-save`. | + +Validation: passed — all 16 mandatory artifacts + 1 conditional (`deploy`, justified by existing `docker/Dockerfile` + `jenkins/JenkinsFile` build/publish pipeline) verified present via Glob; frontmatter sanity (no `tools:` field, `name`/`description` present) and generation-marker presence verified across all skills/agents/commands/readmes; `.claude/settings.json` validated as parseable JSON; both hook helper scripts (`block_sensitive.py`, `lint_on_save.py`) validated via `py_compile` and exercised against representative stdin payloads (block / allow / skip-generated / skip-non-python cases all produced the expected exit codes). + +## Incremental Update Log + +### 2026-07-17 — Incremental content patch for 2 landed commits (no re-discovery/IQ/EQ) +Two commits landed on `main` since the 2026-07-09 generation baseline (`0affc87`), both after the KB commit was authored: `d8f08be` ("Regenerate Python API Wrapper", PR #78, 2026-07-10) and `d56047c` ("ISGAPPSEC2-38156 sample script for appbuilder", PR #77, 2026-07-14). This patch updates only the counts/facts touched by those two commits — no fresh discovery pass, no IQ/EQ re-run (both remain "not yet evaluated"). + +- **`d8f08be` (API regen)**: `cyperf/models/*.py` 443 → 454 (+11 new: `agent_assignment_by_front_panel_port`, `clear_compute_resources_ownership_operation`, `clear_front_panel_ports_ownership_operation`, `compute_resource`, `compute_resources_by_controller`, `compute_resources_by_node`, `front_panel`, `front_panel_ports_by_controller`, `ports_by_panel`, `reboot_compute_resources_operation`, `set_front_panel_ports_link_state_operation`; 1 renamed: `set_link_state_operation.py` → `set_ports_link_state_operation.py`, not a net add). `docs/*.md` 458 → 469 (+11, 1:1 with the new models). `AgentsApi` operations grew from 27 to an estimated ~37 (verified by diffing unique method-base-names in `agents_api.py` before/after — a proxy count, not a line-by-line spec re-read); total operations therefore restated as "~322 (was 312)" everywhere it appears, flagged as approximate since only `AgentsApi` was re-counted precisely, not all 16 classes. The tracked `.openapi-generator/` directory was removed (now gitignored) — no KB fact referenced it, no change needed there. Total Python files 476 → 488. +- **`d56047c` (sample script)**: `samples/*.py` 6 → 7. Added `samples/appbuilder/sample_appbuilder_examples.py` (uploads an encrypted pcap via `ApplicationResourcesApi.start_resources_captures_encrypted_upload_file`, then builds AppBuilder apps/actions from the parsed capture flows/exchanges) plus `samples/appbuilder/claude.pcap` and `samples/appbuilder/tls_key.log` fixtures. Uses only the existing `ApplicationResourcesApi` surface (no new API class), so no surface-inventory API table change beyond the file-index row for the new sample. + +**Files patched**: `README.md` (Product Profile Scale/Architecture bullets), `sections/architecture.md` (layer 2/3 counts), `sections/file-index.md` (File Inventory table: api/models/docs/samples rows + new `samples/appbuilder/*` row), `sections/surface-inventory.md` (APIs intro total, `AgentsApi` row, auth-pattern enrichment row). + +**Not touched / not needed**: `sections/internal-quality.md`, `sections/external-quality.md`, `sections/technical-debt.md` (still gated on a real IQ/EQ run — this patch is facts-only), `sections/project-standards.md`, `sections/feature-registry.md`, `sections/development-guide.md`, `sections/tooling-requirements.md` (nothing in either commit touched standards, requirements, or tooling), Interaction Chains in `file-index.md` (the new appbuilder sample is a genuinely new workflow shape — capture-upload → AppBuilder app/action creation — that doesn't fit Chain A/B; documenting it properly would need a real interaction trace, which is out of scope for this lightweight patch and is called out here as a **fuller-analysis flag** for a future `discover`/`index-files` pass). + +**Git**: will be amended onto the existing unpushed local KB commit (currently `ea3e856` after rebasing twice across intervening `git pull`s), per this repo's explicit git-workflow instructions (never push this commit; `pull.rebase=true` keeps it replaying cleanly on top of new origin commits). Only `.claude/knowledge-base/**` is staged for the amend; the unrelated unstaged `.gitignore` working-tree change (adding `.claude/settings.local.json`) is left untouched. + +### 2026-07-09 — Migrate KB to v3.5.0 index + sections layout +Structural migration only — no discovery/IQ/EQ re-run, no new facts. The monolithic `.claude/knowledge-base/README.md` already used the exact 10 canonical v3.5.0 H2 section names, so this was a clean 1:1 carve with no renaming/remapping judgment required: + +- `## Product Profile` stayed in the new slim `README.md` (plus the new `## Sections` index table). +- `## External Quality Summary` → `sections/external-quality.md` (verbatim — still "not yet performed"). +- `## Internal Quality Summary` → `sections/internal-quality.md` (verbatim — still "not yet performed"). +- `## Project Standards` → `sections/project-standards.md` (verbatim, including its `### Coding & Quality Gates` / `### Testing` / `### Architectural Rules` subheadings, unchanged since they were already H3). +- `## Architecture Overview` → `sections/architecture.md` (verbatim). +- `## File Index` → `sections/file-index.md` (verbatim, including `### File Inventory` / `### Key File Details` / `### Interaction Chains` / `### Hub Files & Side Effect Map`). +- `## Surface Inventory` → `sections/surface-inventory.md` (verbatim, including `### APIs` / `### UIs` / `### CLIs` / `### Services` / `### Libraries` / `### AI Metadata`). +- `## Technical Debt Registry` → `sections/technical-debt.md` (verbatim — still "Requires IQ evaluation"). +- `## Feature Registry` → `sections/feature-registry.md` (verbatim, empty FR/NFR tables preserved as-is, not fabricated). +- `## Development Guide` → `sections/development-guide.md` (verbatim, `### For AI Agents` / `### For Human Developers`). +- `## Tooling Requirements` → `sections/tooling-requirements.md` (verbatim, `### Understand Skills` / `### Operate Skills` / `### Improve Skills`). + +No canonical section was missing content, so no `_Not yet populated..._` placeholder was needed anywhere. No heading-level bumping was needed either — every carved section's own subheadings were already H3, nesting correctly under the new top-level H2 in each section file. No content-drift fix was identified or applied for this repo (per repo-specific instructions, none was expected). + +**Tooling-file grep (step 3)**: `.claude/agents`, `.claude/skills`, `.claude/commands`, and `CLAUDE.md` do **not exist** in this checkout (they were generated in the isolated worktree `.claude/worktrees/elegant-wishing-tide/` during the original discover run and were never relocated into `main` — see `f59b111`'s commit message, "Knowledge base was generated in an isolated worktree; relocating it into the main checkout's .claude/knowledge-base..."). This manifest still lists them (unchanged, v3.4.0) because they are real generated artifacts that exist in that worktree / were intended to be relocated — they are simply outside the scope of this structural KB migration. No stale KB references were found or fixed because there was nothing on disk to grep in the main checkout. `.claude/knowledge-base/USAGE.md` mentions the KB generically (e.g. "run `/knowledge-base:incremental-discover`") but contains no reference to a specific `## Section Heading` that moved, so it required no edit and its marker was left at v3.4.0. + +**Legacy `.claude/kb/` directory**: none existed; nothing to remove. + +**Git**: amended onto the existing unpushed commit `f59b111` ("Add generated knowledge base") per this repo's explicit git-workflow instructions, since that commit had never been pushed to `origin/main`. Only `.claude/knowledge-base/**` was staged; the untracked `.claude/worktrees/elegant-wishing-tide/` and `pr-78.diff` were left untouched. diff --git a/.claude/knowledge-base/README.md b/.claude/knowledge-base/README.md new file mode 100644 index 0000000..fe06713 --- /dev/null +++ b/.claude/knowledge-base/README.md @@ -0,0 +1,24 @@ +# Knowledge Base: cyperf-api-wrapper +Generated: 2026-07-09 | Plugin: knowledge-base v3.5.0 + +## Product Profile +- **Purpose**: Python client SDK for the Keysight CyPerf network/security performance-test controller — a mostly OpenAPI-generated REST client (`pip install cyperf`) topped with a hand-written `TestRunner`/CLI helper layer and a HATEOAS "dynamic model" layer for writing test-automation scripts. +- **Stack**: Python 3.8–3.12, pydantic ≥2, urllib3 ≥2.2, python-dateutil, typing-extensions; generated by [OpenAPI Generator](https://openapi-generator.tech) (Python/pydantic template). No web framework — this is an SDK/library, not a service. +- **Scale**: 488 Python files / ~145k LOC total (as of the Jul-10/14 2026 regen + sample-script commits), but the overwhelming majority is generator output: 454 model files (`cyperf/models/`), 16 API classes / ~322 operations (`cyperf/api/`; grew from 312 when `AgentsApi` gained ~10 new compute-resource/front-panel-port ownership operations), 469 generated doc pages (`docs/`). Hand-written surface is small and concentrated: `cyperf/utils.py` (636 lines), `cyperf/dynamic_model_meta.py` (584 lines), plus targeted edits inside `api_client.py` / `configuration.py`, and 7 sample scripts (~60k combined incl. one config zip and one pcap fixture). +- **Architecture**: Generated OpenAPI SDK, layered: `Configuration`/`ApiClient`/`RESTClientObject` (HTTP+OAuth2) → 16 generated `*Api` classes (~322 operations) → 454 generated pydantic models → a hand-written `DynamicModel` metaclass that wraps every model with lazy HATEOAS link-following, `.update()`/`.delete()`/`.refresh()`, and async-operation polling → `utils.TestRunner` + CLI helpers for scripting on top. Distributed as a PyPI package (internal Keysight/Bitbucket, `bitbucket.it.keysight.com/scm/isgappsec/cyperf-api-wrapper`), consumed by internal regression suites (e.g. the "appsec-automation" repo, per commit history). + +## Sections +| File | Description | +|------|-------------| +| [sections/architecture.md](sections/architecture.md) | Layered architecture, auth flow, async operations, dependency graph, data architecture | +| [sections/file-index.md](sections/file-index.md) | File inventory, key file details, interaction chains, hub files & side effects | +| [sections/surface-inventory.md](sections/surface-inventory.md) | APIs, UIs, CLIs, Services, Libraries, and AI metadata surfaces | +| [sections/project-standards.md](sections/project-standards.md) | Coding & quality gates, testing conventions, architectural rules | +| [sections/internal-quality.md](sections/internal-quality.md) | Internal Quality (IQ) summary — not yet evaluated | +| [sections/external-quality.md](sections/external-quality.md) | External Quality (EQ) summary — not yet evaluated | +| [sections/technical-debt.md](sections/technical-debt.md) | Technical debt registry — requires IQ evaluation | +| [sections/feature-registry.md](sections/feature-registry.md) | Functional and non-functional requirements tracked from plans | +| [sections/development-guide.md](sections/development-guide.md) | Guidance for AI agents and human developers working in this repo | +| [sections/tooling-requirements.md](sections/tooling-requirements.md) | Understand/Operate/Improve skill tooling requirements | + +Load only the section(s) relevant to your task rather than all of them at once. diff --git a/.claude/knowledge-base/USAGE.md b/.claude/knowledge-base/USAGE.md new file mode 100644 index 0000000..3892e52 --- /dev/null +++ b/.claude/knowledge-base/USAGE.md @@ -0,0 +1,92 @@ + +# Usage Guide for cyperf-api-wrapper + +Generated: 2026-07-09 | Plugin: knowledge-base v3.4.0 + +--- + +## Quick Start + +| Command | What It Does | +|---------|-------------| +| `/explain {component}` | Explain any part of the `cyperf` SDK — a generated `*Api` operation (e.g. `SessionsApi.create_sessions`), a generated model, or one of the hand-written layers (`cyperf/utils.py` TestRunner, `cyperf/dynamic_model_meta.py` DynamicModel) — tracing what it actually does against the CyPerf controller | +| `/review` | Review staged changes against the project's conventions, scoped to the small hand-written surface (`cyperf/utils.py`, `cyperf/dynamic_model_meta.py`, targeted patches in `api_client.py`/`configuration.py`/`exceptions.py`, `samples/*.py`); generated files under `cyperf/api/`, `cyperf/models/`, and `docs/` are excluded by default | +| `/exec-plan {task}` | Create a step-by-step execution plan for changes such as adding a new sample script or extending `TestRunner`, flagging the scenario-zero test-framework gap (pytest collects 0 tests) along the way | + +--- + +## Scenario Examples + +### Understand a Component + +**Task**: You need to understand how an end-to-end test run is actually driven through the SDK, e.g. before adding a new convenience method to `TestRunner`. + +**Run**: `/explain TestRunner.wait_for_test_end` + +**What happens**: The explain skill locates `wait_for_test_end` in `cyperf/utils.py`, traces its 0.5s poll loop calling `SessionsApi.get_session_test(session_id=...)` (`GET /api/v2/sessions/{id}/test`) until `status=='STOPPED'`, and surfaces the wider chain it belongs to — `parse_cli_options()` → `TestRunner(...)` → `create_session_by_config_name()` → `start_test()` → `wait_for_test_end()` — as demonstrated end-to-end in `samples/sample_udp_streaming_run.py`. + +--- + +### Review Changes + +**Task**: You've modified `cyperf/utils.py` (e.g. touched `set_prisma_airs_params` or added a new `TestRunner` method) and want to catch issues before committing. + +**Run**: `/review` + +**What happens**: The review skill checks your staged diff against the project's actual conventions — the typed `ApiException` hierarchy in `cyperf/exceptions.py` as the dominant error-handling pattern (flagging any new broad `except Exception` swallows like the existing ones in `set_prisma_airs_params`/`set_model_armor_params`), the `flake8` lint rules (`--max-complexity=10 --max-line-length=127` in CI, `--max-line-length=150` locally per `setup.cfg`), and confirms you haven't hand-edited any file carrying the `"Generated by OpenAPI Generator... Do not edit the class manually"` header. + +--- + +### Plan a Feature + +**Task**: You need to add a new sample script demonstrating a raw-API-style attack test run against a precanned configuration. + +**Run**: `/exec-plan add a new sample script for attack test runs using the raw API style` + +**What happens**: The exec-plan skill creates a fully-scoped execution plan in `.claude/plans/`, modeled on the existing raw-API interaction chain used by `samples/sample_load_and_run_precanned_config.py` and `samples/sample_attack_based_script.py` (`create_api_client_cli()` → `ConfigurationsApi.get_configs` → `SessionsApi.create_sessions` → per-model `.update()` → `TestOperationsApi.start_test_run_start` + `.await_completion()`), and explicitly calls out that there is no automated test suite to validate against — `pytest --cov=cyperf` collects 0 tests today, so verification has to be manual/functional. You review and approve the plan before any code changes happen. After completion, run `/knowledge-base:incremental-discover` to update the KB. + +--- + +### Generate Documentation + +**Task**: You need an accurate, human-facing description of how the `TestRunner`-based workflow differs from the raw-API workflow, since the generated `README.md`/`docs/*.md` don't cover this. + +**Run**: `/document samples/` + +**What happens**: The document skill reads `samples/*.py` (the only hand-written usage examples in the repo — `sample_udp_streaming_run.py`, `sample_attacks_load_and_run.py`, `sample_load_and_run_precanned_config.py`, `sample_create_save_and_export_config.py`, `sample_attack_based_script.py`), infers the two idiomatic call styles already used, and writes/updates guidance rather than touching the generator-owned `README.md`/`docs/*.md` (443 model docs + per-API-class docs), which would simply be clobbered on the next OpenAPI regeneration. + +--- + +### Deploy (Package & Publish) + +**Task**: Build the `cyperf` package and publish a new version to the internal PyPI index after re-syncing the wrapper against a newer CyPerf controller OpenAPI spec. + +**Run**: `/deploy pypi` + +**What happens**: The deploy skill runs the same flow as `jenkins/JenkinsFile`: build inside `docker/Dockerfile`, bump `VERSION` via `sed` (keeping `setup.py`/`pyproject.toml`'s hardcoded `1.0.0` base in sync with the Jenkins-assigned build version), and — on a `release/` branch with `publish_pypi=true` — publish via `twine` using the credentials in `.pypirc`. `publish.sh`/`git_push.sh` are the local convenience-script equivalents of the same publish flow. This is packaging/publishing only — there is no runtime service to deploy; the "deployment target" is the internal PyPI index, and consumers (e.g. the `appsec-automation` regression repo) pick up the new version via `pip install`. + +--- + +No quality gaps have been identified yet that would warrant dedicated Improve skills — IQ/EQ evaluation simply has not run on this project. Run `/knowledge-base:discover-all` to perform that evaluation and generate any Improve skills the findings justify. + +--- + +## When to Use Commands vs. Agents + +**Use commands** (e.g., `/explain`, `/review`) as your primary interface. They delegate to skills, which launch agents as needed. + +**Agents are internal** — you rarely invoke them directly. The skill decides which agent to use: + +- `scanner` (haiku) for fast file searches +- `analyzer` (sonnet) for deep code analysis +- `reasoner` (opus) for complex architecture decisions + +--- + +## Keeping Your Knowledge Base Current + +After completing a plan: +- Run `/knowledge-base:incremental-discover` to update the KB from the plan's outcomes (~2% cost of full discover) + +After updating the knowledge-base plugin: +- Run `/knowledge-base:upgrade` to regenerate tooling without re-running analysis diff --git a/.claude/knowledge-base/sections/architecture.md b/.claude/knowledge-base/sections/architecture.md new file mode 100644 index 0000000..d8339bf --- /dev/null +++ b/.claude/knowledge-base/sections/architecture.md @@ -0,0 +1,17 @@ + +## Architecture Overview + +**Style**: Generated OpenAPI client SDK ("Library" surface), not a monolith/microservice/UI. Four layers, bottom-up: + +1. **Transport/Auth** — `cyperf/configuration.py` (host, SSL/proxy/retry config, OAuth2 credential storage) + `cyperf/rest.py` (`RESTClientObject`, thin urllib3 wrapper: `PoolManager`/`ProxyManager`/SOCKS, `preload_content=False`) + `cyperf/api_client.py` (`ApiClient`: `param_serialize` → `call_api` → `response_deserialize`, plus a hand-written `__retry` loop layered on top of urllib3's own retries, and CyPerf-specific `accept_eula`/`wait_for_controller_up`/`refresh_authorization`). +2. **Generated REST surface** — `cyperf/api/*.py`, 16 classes / ~322 operations (grew from 312 via the Jul-10 2026 "Regenerate Python API Wrapper" commit, which added ~10 compute-resource/front-panel-port ownership operations to `AgentsApi`), each method built in triplicate (`op`, `op_with_http_info`, `op_without_preload_content`), all declaring `_auth_settings = ['OAuth2', 'OAuth2']`. +3. **Generated data models** — `cyperf/models/*.py`, 454 pydantic v2 models (was 443; +11 new models for the same regen, incl. `ComputeResource`, `FrontPanel`, `RebootComputeResourcesOperation`, `SetFrontPanelPortsLinkStateOperation`), one per OpenAPI schema, re-exported flat from `cyperf/__init__.py`. +4. **Dynamic/HATEOAS overlay + scripting helpers** — `cyperf/dynamic_model_meta.py` (`DynamicModel` metaclass attaches `.update()/.delete()/.refresh()/.get_link()/.poll()` and lazy link-following properties to every generated model) and `cyperf/utils.py` (`TestRunner` class + `parse_cli_options`/`create_api_client_cli`) for end-to-end test-automation scripting. `samples/*.py` demonstrate both the raw-API style and the `TestRunner`-based style. + +**Auth flow**: `Configuration._get_access_token()` calls `AuthorizationApi.authenticate(client_id='clt-wap', grant_type='refresh_token'|'password', ...)` against the controller's Keycloak-style endpoint (`/auth/realms/keysight/protocol/openid-connect/token`), then every subsequent call attaches `Authorization: Bearer {access_token}` via `Configuration.auth_settings()`. + +**Async operations**: CyPerf operations that take time (start test, generate report, license activation) return an `AsyncContext`-like resource; `DynamicModel.poll()`/`.await_completion()` polls it via GET until `state != "IN_PROGRESS"`, raising `ApiException` on `state == "ERROR"`. + +**Dependency graph / hub files**: `api_client.py` ← used by all 16 `*Api` classes and by `dynamic_model_meta.py`. `dynamic_model_meta.py` ← used by `cyperf/__init__.py`, every `*_api.py`, and `cyperf/dynamic_models/__init__.py` (which mechanically instantiates one `DynamicModel`-built class per model name). `configuration.py` ← used by `ApiClient` and every sample script. `exceptions.py` ← imported everywhere `ApiException` handling occurs. No circular imports detected beyond the documented `dynamic_model_meta` ↔ `cyperf/__init__` load-order coupling noted above. + +**Data architecture**: No database — the controller (external system) is the data store; this package is purely a typed HTTP client. "Caching" is limited to in-memory model state kept in sync by `DynamicList`/`DynamicDict` wrappers between local mutation and server refresh. diff --git a/.claude/knowledge-base/sections/development-guide.md b/.claude/knowledge-base/sections/development-guide.md new file mode 100644 index 0000000..0e0324d --- /dev/null +++ b/.claude/knowledge-base/sections/development-guide.md @@ -0,0 +1,17 @@ + +## Development Guide + +### For AI Agents +- **Never hand-edit** files carrying the `"Generated by OpenAPI Generator... Do not edit"` header (all of `cyperf/api/`, `cyperf/models/`, `docs/`, and most of `cyperf/api_client.py`/`configuration.py`/`rest.py`/`exceptions.py`). The only files meant for direct edits are `cyperf/utils.py`, `cyperf/dynamic_model_meta.py`, targeted patches inside the "generated" core files (search for CyPerf-specific methods like `accept_eula`, `wait_for_controller_up`, `_get_access_token` to see the pattern), `samples/*.py`, `docker/Dockerfile`, `jenkins/JenkinsFile`. +- **There is no test suite to run.** `pytest --cov=cyperf` is wired into every CI config but collects zero tests — don't assume `pytest` output means anything passed/failed today. If asked to "run the tests," flag this gap rather than reporting a false green. +- Files named `test_*.py` under `cyperf/api/` and `cyperf/models/` are **not tests** — they're generated models/API classes for CyPerf domain objects literally named "Test..." (TestInfo, TestOperationsApi, TestUsage, etc.). +- Entry points for understanding real usage: read `samples/*.py` before `cyperf/api/*.py` — the samples show the two idiomatic call styles (raw `*Api` classes vs. `utils.TestRunner`). `cyperf/utils.py` and `cyperf/dynamic_model_meta.py` are the only two files with actual business logic to reason about; everything else is either generated plumbing or generated boilerplate. +- The `DynamicModel` layer is the trap most likely to confuse: a plain-looking attribute access on a model (e.g. `session.config`) can trigger a lazy **HTTP GET** under the hood if the field is link-backed and not yet loaded. `.update()` similarly can issue network calls. Don't assume model attribute access is side-effect-free. + +### For Human Developers +- **Setup**: `pip install -r requirements.txt` (runtime) + `pip install -r test-requirements.txt` (dev tools); Python ≥3.8 (setup.py says `>=3.11`, pyproject.toml says `^3.8` — inconsistent, prefer 3.11+ to match CI's newer matrix legs). +- **Build**: `python setup.py install` or via Poetry (`pyproject.toml` present, but `setup.py` is what CI/Jenkins actually use). +- **Test**: `pytest --cov=cyperf` runs but exercises nothing (no test files exist yet). +- **Lint**: `flake8 . --max-complexity=10 --max-line-length=127` (CI, advisory) or `--max-line-length=150` (local `setup.cfg`); `mypy` configured but not enforced in CI. +- **Publish**: `jenkins/JenkinsFile` builds inside `docker/Dockerfile`, bumps `VERSION` via `sed`, and (if `publish_pypi=true` on a `release/` branch) publishes via `twine` using `.pypirc`. `publish.sh`/`git_push.sh` are local convenience scripts for the same flow. +- **Regenerating the client**: this repo is periodically re-synced against a newer CyPerf controller OpenAPI spec ("Re-generate wrapper" commits). After regenerating, re-apply the hand patches called out above (auth flow, EULA/controller-readiness helpers, `LinkNameException`, retry loop) since the generator will overwrite them. diff --git a/.claude/knowledge-base/sections/external-quality.md b/.claude/knowledge-base/sections/external-quality.md new file mode 100644 index 0000000..fd1bc72 --- /dev/null +++ b/.claude/knowledge-base/sections/external-quality.md @@ -0,0 +1,4 @@ + +## External Quality Summary + +EQ evaluation not yet performed. Run `/knowledge-base:discover-all` for full evaluation. diff --git a/.claude/knowledge-base/sections/feature-registry.md b/.claude/knowledge-base/sections/feature-registry.md new file mode 100644 index 0000000..7ca3322 --- /dev/null +++ b/.claude/knowledge-base/sections/feature-registry.md @@ -0,0 +1,12 @@ + +## Feature Registry + +### Functional Requirements +| ID | Requirement | Source plan | Scenarios | +|----|-------------|-------------|-----------| +*(Empty at initial discover; grows as plans complete.)* + +### Non-Functional Requirements +| ID | Requirement | Source plan | Scenarios | +|----|-------------|-------------|-----------| +*(Empty at initial discover; grows as plans complete.)* diff --git a/.claude/knowledge-base/sections/file-index.md b/.claude/knowledge-base/sections/file-index.md new file mode 100644 index 0000000..d0ce584 --- /dev/null +++ b/.claude/knowledge-base/sections/file-index.md @@ -0,0 +1,57 @@ + +## File Index + +### File Inventory +| Path / Group | Count | Role | Generated? | +|---|---|---|---| +| `cyperf/api_client.py` | 1 | HTTP request/response pipeline, retry, dynamic-model wrapping | Generated + hand patches (`accept_eula`, `wait_for_controller_up`, `refresh_authorization`, `__retry`) | +| `cyperf/configuration.py` | 1 | Auth/host/SSL/proxy config, OAuth2 token fetch | Generated + hand patch (`_get_access_token`, `eula_accept_interactive`) | +| `cyperf/rest.py` | 1 | urllib3-based low-level HTTP client | Generated (standard) | +| `cyperf/exceptions.py` | 1 | Exception hierarchy, status→exception mapping | Generated + 1 hand addition (`LinkNameException`) | +| `cyperf/api_response.py` | 1 | Generic `ApiResponse[T]` pydantic wrapper | Generated (standard) | +| `cyperf/__init__.py` | 1 | Public namespace (re-exports ~460 names) | Generated (standard) | +| `cyperf/dynamic_model_meta.py` | 1 | `DynamicModel` metaclass — HATEOAS link-following, update/delete/refresh/poll | **Hand-written**, no generator header | +| `cyperf/dynamic_models/__init__.py` | 1 | Mechanically builds one `DynamicModel`-wrapped class per model name | Generated (custom template, not standard openapi-generator) | +| `cyperf/utils.py` | 1 | `TestRunner` convenience class + CLI arg parsing (`parse_cli_options`, `create_api_client_cli`) | **Hand-written**, no generator header | +| `cyperf/api/*.py` | 16 (+`__init__.py`) | Generated REST operation classes, ~322 operations total (was 312; `AgentsApi` gained ~10 compute-resource/front-panel-port ownership ops in the Jul-10 2026 regen) | Generated (standard) | +| `cyperf/models/*.py` | 454 | Generated pydantic model per OpenAPI schema (was 443; +11 new models for front-panel-port/compute-resource ownership, 1 renamed: `set_link_state_operation.py` → `set_ports_link_state_operation.py`) | Generated (standard) | +| `docs/*.md` | 469 | Generated per-model/per-API-class reference docs (was 458; +11 for the same regen) | Generated (standard) | +| `samples/*.py` | 7 | End-to-end usage examples (attack tests, config CRUD, UDP streaming, sequences, appbuilder capture-to-app workflow) | Hand-written | +| `samples/appbuilder/*` | 3 | `sample_appbuilder_examples.py` (uploads an encrypted pcap capture via `ApplicationResourcesApi`, then builds AppBuilder apps/actions from the parsed flows) + `claude.pcap`/`tls_key.log` fixtures (added 2026-07-14, PR #77) | Hand-written script + data fixtures | +| `samples/cyperf-configurations/*.zip` | 1 | Sample pre-canned CyPerf config bundle | Data fixture | +| `docker/Dockerfile` | 1 | Builds/installs the package for publishing | Hand-written | +| `jenkins/JenkinsFile` | 1 | Internal Keysight build/publish pipeline (PyPI release) | Hand-written | +| `.github/workflows/python.yml`, `.gitlab-ci.yml`, `.travis.yml` | 3 | Lint/test CI (all generator-produced, unmodified) | Generated (standard) | + +### Key File Details + +- **`cyperf/api_client.py`** — `ApiClient.__init__(configuration, header_name, header_value, cookie)`. `param_serialize()` builds method/url/headers/body via `update_params_for_auth`/`_apply_auth_params`. `call_api()` is the public sync entry point, wrapping private `__call_api` in a hand-written `__retry(request_func, retries=3→5)` loop (catches `ServiceException`/`urllib3.exceptions.RequestError`, `time.sleep(5)` between attempts) — independent of urllib3's own retry config. `__call_api` calls `rest_client.request(...)` then wraps the result via `DynamicModel.dynamic_wrapper(...)` (lazy import from `dynamic_model_meta`). `response_deserialize()` maps status→declared type, raises `ApiException.from_response(...)` on non-2xx. CyPerf-specific: `accept_eula(eula_text)` (env var `CYPERF_EULA_ACCEPTED` or interactive prompt), `wait_for_controller_up(timeout_seconds=600)` (polls `UtilsApi.check_eulas`, `ApplicationResourcesApi`, `SessionsApi`, `ConfigurationsApi`, `AgentsApi`, `TestResultsApi`), `refresh_authorization()` (clears `configuration.access_token` to force re-auth). + +- **`cyperf/configuration.py`** — Supports API-key, HTTP basic (`username`/`password`), and OAuth2 (`access_token`/`refresh_token`). `_get_access_token()` (hand-written) calls `AuthorizationApi.authenticate(client_id='clt-wap', grant_type='refresh_token'|'password', ...)`. `auth_settings()` lazily fetches the token and builds `auth['OAuth2'] = {'type':'oauth2','in':'header','key':'Authorization','value':'Bearer '+access_token}`; contains a verbatim duplicated credential-check block (~lines 417–436), a manual-edit artifact, functionally harmless. Host/SSL/proxy fields: `host`, `verify_ssl`, `ssl_ca_cert`, `cert_file`/`key_file`, `proxy`, `retries`, `connection_pool_maxsize` (`cpu_count()*5`); CyPerf-specific `eula_accept_interactive`, `temp_folder_path`. + +- **`cyperf/rest.py`** — `RESTClientObject` built on raw `urllib3` (`PoolManager`/`ProxyManager`/SOCKS via `is_socks_proxy_url`), `preload_content=False` always, retries passed straight to urllib3 (`pool_args['retries']`), TLS via `ssl.CERT_REQUIRED`/`CERT_NONE`. Body building supports JSON/form/multipart/raw depending on `Content-Type`. + +- **`cyperf/exceptions.py`** — `OpenApiException` → `ApiTypeError`/`ApiValueError`/`ApiAttributeError`/`ApiKeyError`/`ApiException`. `ApiException.from_response()` maps 400→`BadRequestException`, 401→`UnauthorizedException`, 403→`ForbiddenException`, 404→`NotFoundException`, 5xx→`ServiceException`. Hand addition: `LinkNameException(Exception)` — raised by `DynamicModel.get_link()` when a HATEOAS link name isn't found. + +- **`cyperf/dynamic_model_meta.py`** — `DynamicList(UserList)`/`DynamicDict(UserDict)` keep raw vs. link-wrapped collection data in sync, diffing local vs. server state to POST new items / batch-DELETE (`operations/batch-delete`) removed ones on `.update()`. `DynamicModel(type)` metaclass inspects each model's pydantic fields (via `x-operation` schema extras) to attach either a bound "operation" method (e.g. a synthetic `start_test_run_start`-style method returning an `AsyncContext`) or a lazy link-following property. Key instance methods added to every model: `update()` (PATCH only-changed fields; falls back to full GET+PUT on HTTP 405), `delete()`, `refresh()`, `get_link()`/`get_self_link()`, `link_based_request()` (the actual `api_client.param_serialize`+`call_api` call), `poll()`/`await_completion()` (polls async ops, `time.sleep(poll_time)`, raises on `state=="ERROR"`). Known latent bug: `DynamicDict.__init__` iterates `for key,i in dct` over what is normally a plain dict — likely never exercised in practice, worth a defensive look before relying on dict-typed link fields. + +- **`cyperf/utils.py`** — `TestRunner.__init__(controller, username, password, refresh_token, license_server, license_user, license_password, verify_ssl)`: reads env var **`CYPERF_OFFLINE_TOKEN`** when no explicit credentials are given, builds `Configuration`+`ApiClient`, calls `update_license_server()`, fetches online agents. ~35 methods wrap the generated `*Api` classes for common workflows: `load_configuration_file(s)`, `create_session(_by_config_name)`, `delete_session`, `assign_agents` (raises `ValueError("Insufficient agents found on setup.")`), `wait_until_agents_released` (raises `TimeoutError` after 180s), `start_test`/`stop_test`/`wait_for_test_end(session, test_monitor)` (0.5s poll loop with optional callback), `collect_stats`, `get_csvs_for_result` (file I/O: `os.makedirs` + `ZipFile(...).extractall(...)`), `set_prisma_airs_params`/`set_model_armor_params` (broad except-and-print, no re-raise — the one clear error-swallowing spot in the codebase). Module functions: `parse_cli_options(extra_options=[])` (argparse: `--controller` required, `--user`/`--password`/`--license-server`/`--license-user`/`--license-password`, plus caller-supplied extra flags; falls back to `CYPERF_OFFLINE_TOKEN` env var), `create_api_client_cli(verify_ssl=True)`. `is_valid_ipv4`/`is_valid_ipv6` are defined without a `self` parameter — a bug if ever invoked as bound instance methods. + +- **`cyperf/__init__.py`** — Pure generated flat namespace: all 16 `*Api` classes, `ApiClient`, `ApiResponse`, `Configuration`, `DynamicModel`, all exception classes (incl. `LinkNameException`), and ~440 model classes. Notably **`utils` and `dynamic_model_meta` are not re-exported here** — accessed as `cyperf.utils`/`cyperf.dynamic_model_meta` submodules. + +### Interaction Chains + +**Chain A — `TestRunner`-based end-to-end test run** (used by `sample_udp_streaming_run.py`, `sample_attacks_load_and_run.py`): +1. `utils.parse_cli_options()` → parses `--controller/--user/--password/--refresh-token`. +2. `utils.TestRunner(...)` constructor → builds `Configuration` + `ApiClient` (no HTTP yet unless `license_server` given). +3. `TestRunner.create_session_by_config_name(name)` → `ConfigurationsApi.get_configs(...)` (**GET** `/api/v2/configurations`) → `TestRunner.create_session(config_url)` → `SessionsApi.create_sessions([Session(config_url=...)])` (**POST** `/api/v2/sessions`). +4. `TestRunner.add_app/disable_automatic_network/assign_agents/set_objective_and_timeline(...)` → mutate in-memory config models → `.update()` (via `DynamicModel`) → **PATCH/PUT** to session config sub-resources. +5. `TestRunner.start_test(session)` → `TestOperationsApi.start_test_run_start(session_id=...)` (**POST** `/api/v2/sessions/{id}/test-operations/start`) → `.await_completion()` polls the async op (**GET**) until done. +6. `TestRunner.wait_for_test_end(session, test_monitor)` → loop calling `SessionsApi.get_session_test(session_id=...)` (**GET** `/api/v2/sessions/{id}/test`) every 0.5s until `status=='STOPPED'`; each tick optionally calls `TestRunner.collect_stats(...)` → `StatisticsApi.get_result_stats`/`get_result_stat_by_id` (**GET**). +7. Cleanup: `TestRunner.delete_session(session)` → `SessionsApi.delete_session(...)` (**DELETE** `/api/v2/sessions/{id}`). + +**Chain B — raw-API end-to-end run** (used by `sample_load_and_run_precanned_config.py`, `sample_create_save_and_export_config.py`, `sample_attack_based_script.py`): same shape but inlined without `TestRunner` — `create_api_client_cli()` → `ConfigurationsApi.get_configs` → `SessionsApi.create_sessions` → per-model `.update()` calls → `TestOperationsApi.start_test_run_start` + `.await_completion()` → hand-rolled `while session.test.status != 'STOPPED': sleep(5); session.refresh()` (bypasses `wait_for_test_end`) → `TestResultsApi.start_result_generate_all`/`ReportsApi.start_result_generate_csv` + `.await_completion()`. These three scripts never call `delete_session` — no cleanup. + +### Hub Files & Side Effect Map +- **Hub files** (imported by many): `cyperf/api_client.py` (all 16 `*Api` classes + `dynamic_model_meta.py`), `cyperf/dynamic_model_meta.py` (`__init__.py`, all `*_api.py`, `dynamic_models/__init__.py`), `cyperf/configuration.py` (`ApiClient` + every sample), `cyperf/exceptions.py` (used wherever `ApiException` is caught). +- **Side effects**: `api_client.py`/`rest.py` — all outbound HTTPS to the CyPerf controller. `utils.py` — file I/O (`get_csvs_for_result`: `os.makedirs`, `ZipFile.extractall`), env var reads (`CYPERF_OFFLINE_TOKEN`, license/EULA flows), `time.sleep` polling, `print`/`pprint` to stdout. `dynamic_model_meta.py` — HTTP via `api_client.call_api`/`param_serialize`, `time.sleep` in `poll()`. No database, no message queues, no background workers. diff --git a/.claude/knowledge-base/sections/internal-quality.md b/.claude/knowledge-base/sections/internal-quality.md new file mode 100644 index 0000000..a11e4b9 --- /dev/null +++ b/.claude/knowledge-base/sections/internal-quality.md @@ -0,0 +1,4 @@ + +## Internal Quality Summary + +IQ evaluation not yet performed. Run `/knowledge-base:discover-all` for full evaluation. diff --git a/.claude/knowledge-base/sections/project-standards.md b/.claude/knowledge-base/sections/project-standards.md new file mode 100644 index 0000000..786e514 --- /dev/null +++ b/.claude/knowledge-base/sections/project-standards.md @@ -0,0 +1,28 @@ + +## Project Standards + +Populated from discover Phase 2 (automated config search). No ADRs, design docs, SECURITY.md, or CONTRIBUTING.md were found — these categories are absent, not just undocumented; treat their absence as expected for a generated-SDK repo rather than a gap to fill blindly. + +### Coding & Quality Gates +| Standard | Value | Source | +|----------|-------|--------| +| Coverage threshold | None declared (pytest-cov run but no `--cov-fail-under` or codecov config) | `tox.ini`, `.gitlab-ci.yml`, `.travis.yml` (all: `pytest --cov=cyperf`) | +| Complexity limit | `max-complexity=10` (warning only, `--exit-zero`), `max-line-length=127` in CI; `max-line-length=150` locally | `.github/workflows/python.yml` vs `setup.cfg` `[flake8]` (inconsistent between the two) | +| Required CI checks | flake8 syntax-error gate (`E9,F63,F7,F82`) blocks; complexity/line-length lint is advisory only | `.github/workflows/python.yml` | +| Security requirements | None found (no SECURITY.md, no scanning config) | — | +| Coding standards | flake8 only; no `.editorconfig`, no black/ruff/isort config; `mypy` configured in `pyproject.toml` but explicitly **not** strict yet (`# TODO: enable "strict" once all these individual checks are passing`) | `setup.cfg`, `pyproject.toml [tool.mypy]` | +| Error patterns | Exceptions (typed `ApiException` hierarchy keyed by HTTP status) is the dominant pattern; hand-written `utils.py` mixes proper re-raise with a few broad `except Exception`/`except AttributeError: print(...)` swallows in `set_prisma_airs_params`/`set_model_armor_params` | `cyperf/exceptions.py`, `cyperf/utils.py` | + +### Testing +| Field | Value | Notes | +|-------|-------|-------| +| Test methodology | *(empty → TDD default; not actually applicable, see framework note)* | No evidence of a test-writing process either way. | +| Test framework | **Configured (`pytest`) but no test files exist.** `tox.ini`, `test-requirements.txt`, `test.sh`, `.gitlab-ci.yml`, `.travis.yml` all run `pytest --cov=cyperf`, yet there is not a single real test module in the repo. Files that *look* like tests by name — `cyperf/api/test_operations_api.py`, `cyperf/api/test_results_api.py`, `cyperf/models/test_info.py`, `cyperf/models/test_state_changed_operation.py`, `cyperf/models/test_usage.py` — are generated model/API classes named after CyPerf domain entities ("TestOperationsApi", "TestInfo", "TestUsage"), not unit tests. | **Scenario-zero candidate**: this project cannot do TDD or run automated tests today; CI's `pytest --cov=cyperf` step passes trivially (0 tests collected) rather than verifying anything. | +| Test runner command | `pytest --cov=cyperf` (declared, but collects 0 tests) | From CI configs. | +| Test file pattern | None established | No `tests/` directory exists. | +| Coverage command | `pytest --cov=cyperf` | Same caveat as above — no real coverage is being measured. | + +### Architectural Rules +- Every generated file carries a `"Generated by OpenAPI Generator... Do not edit the class manually"` header — the implicit rule is: **hand edits are confined to `cyperf/utils.py`, `cyperf/dynamic_model_meta.py`, targeted patches inside `api_client.py`/`configuration.py`/`exceptions.py`, and `samples/`.** Regenerating the client (`.openapi-generator/FILES`, `.openapi-generator-ignore`) risks clobbering those hand patches unless they're re-applied or the generator is configured to skip them. +- All HTTP traffic funnels through one hub, `ApiClient.call_api` (via `RESTClientObject`) — no `*Api` class or model talks to `urllib3`/sockets directly. +- The `DynamicModel` metaclass layer depends on `cyperf/__init__.py` already having model classes bound (`get_inner_model` does `getattr(cyperf, name)`), and `cyperf/dynamic_models/__init__.py` depends on `DynamicModel` — a load-order coupling: `dynamic_model_meta` → `cyperf/__init__` (models) → `dynamic_models`. diff --git a/.claude/knowledge-base/sections/surface-inventory.md b/.claude/knowledge-base/sections/surface-inventory.md new file mode 100644 index 0000000..5ceddfc --- /dev/null +++ b/.claude/knowledge-base/sections/surface-inventory.md @@ -0,0 +1,65 @@ + +## Surface Inventory + +### APIs +16 generated `*Api` classes / ~322 total operations against the CyPerf controller's REST API (was 312 as of 2026-07-09; the 2026-07-10 "Regenerate Python API Wrapper" commit added ~10 new `AgentsApi` operations for front-panel-port/compute-resource ownership — exact per-class count below is not re-verified for every class, only `AgentsApi`, so treat the total as approximate pending a fuller surface re-scan): + +| Class (file) | Ops | Purpose | +|---|---|---| +| `AuthorizationApi` | 1 | OAuth2/Keycloak login (password or refresh_token grant) | +| `SessionsApi` | 29 | Test-session lifecycle, session config, test init/prepare/end | +| `TestOperationsApi` | 5 | Start/stop/abort a test or calibration run | +| `TestResultsApi` | 15 | Result retrieval/export/delete, batch delete | +| `StatisticsApi` | 6 | Runtime/result statistics | +| `ReportsApi` | 4 | PDF/CSV report generation & download | +| `ConfigurationsApi` | 14 | Config CRUD, categories, import/export | +| `ApplicationResourcesApi` | 146 | Reusable resources: captures, certs, payloads, playlists, media, apps/attacks/strikes, fuzzing | +| `AgentsApi` | ~37 (was 27) | Test agents & compute nodes (reboot, reserve, tag, ports), now incl. front-panel-port and compute-resource ownership CRUD (`ClearFrontPanelPortsOwnershipOperation`, `ClearComputeResourcesOwnershipOperation`, `RebootComputeResourcesOperation`, `SetFrontPanelPortsLinkStateOperation`, etc., added 2026-07-10 PR #78) | +| `BrokersApi` | 5 | Broker instance CRUD | +| `LicenseServersApi` | 5 | License server config CRUD | +| `LicensingApi` | 19 | License activation/entitlement/host-ID, async ops | +| `NotificationsApi` | 6 | System notifications | +| `DiagnosticsApi` | 7 | Diagnostic bundle export/status | +| `DataMigrationApi` | 2 | Controller data export/import for migration | +| `UtilsApi` | 21 | EULAs, disk usage, cert manager, server time, log config | + +**Enrichment**: +| Field | Value | +|-------|-------| +| Error envelope shape | HTTP status code → typed Python exception (`ApiException.from_response`: 400→`BadRequestException`, 401→`UnauthorizedException`, 403→`ForbiddenException`, 404→`NotFoundException`, 5xx→`ServiceException`); response body is the controller's raw JSON, deserialized per `response_types_map`, not a fixed `{code, message}` envelope. | +| Versioning strategy | Path-based, mostly `/api/v2/...`; two legacy outliers: `/auth/realms/keysight/protocol/openid-connect/token` (Keycloak) and `/eula/v1/check`. No `Accept-Version` header. | +| Auth pattern | OAuth2 bearer token (`Authorization: Bearer {access_token}`), obtained via password or refresh_token grant against the controller's Keycloak endpoint (`client_id='clt-wap'`). Every operation (~322, was 312) declares `_auth_settings = ['OAuth2', 'OAuth2']`. | +| Rate-limit strategy | None detected in generated code or docs. | +| Pagination style | Offset-style (`take`/`skip` query params) on list endpoints (e.g. `AgentsApi.get_agents`), plus `search_col`/`search_val`/`filter_mode`/`sort` query params for filtering/sorting. | + +### UIs +N/A — pure SDK/library, no UI code. + +### CLIs +No standalone CLI product; `cyperf/utils.py` exposes a minimal argparse-based helper (`parse_cli_options`) that sample scripts use for their own `--controller/--user/--password/...` flags — not a packaged/installed CLI entry point. + +**Enrichment**: +| Field | Value | +|-------|-------| +| Argument parser | `argparse` (`utils.parse_cli_options`) | +| Exit-code convention | `parser.error(...)` (argparse default: exits 2 on usage error); no other exit-code convention established | +| Config file format | None — credentials via CLI flags or `CYPERF_OFFLINE_TOKEN` env var | +| Stdout/stderr discipline | Mixed — `print`/`pprint` used for status/results in `TestRunner`; warnings routed through a custom `format_warning_cli_issues` formatter | + +### Services +N/A — this package is a client library, not a deployed service. (The Jenkins pipeline publishes the built package to PyPI; it does not deploy a running service.) + +### Libraries +| Name | Purpose | Distribution | Known consumers | +|---|---|---|---| +| `cyperf` | Typed Python client for the Keysight CyPerf REST API | Internal PyPI (`.pypirc`), built via `jenkins/JenkinsFile` (Docker + `setup.py`/`build`/`twine`) | Internal test-automation scripts (`samples/`); the "appsec-automation" regression repo (per commit `ce85bc3`) | + +**Enrichment**: +| Field | Value | +|-------|-------| +| API contract stability | Unversioned in the semver sense — version tracks the CyPerf controller's own API version; `setup.py`/`pyproject.toml` both hardcode `1.0.0`, bumped at build time by Jenkins (`sed -i 's/VERSION = "1.0.0"/.../ '`). Contract itself is regenerated from the controller's OpenAPI spec each time the wrapper is refreshed ("Re-generate wrapper" commits appear in history). | +| Error semantics | Exceptions — typed `ApiException` hierarchy keyed by HTTP status. | +| Doc convention | OpenAPI-Generator-produced `docs/*.md` (one file per model/API class) plus a large generated `README.md`; no docstring convention (PEP 257) is consistently applied in hand-written code. | + +### AI Metadata +None found — no `.mcp.json`, no pre-existing `.claude/` directory, no `SKILL.md`, no structured tool schemas prior to this discovery run. diff --git a/.claude/knowledge-base/sections/technical-debt.md b/.claude/knowledge-base/sections/technical-debt.md new file mode 100644 index 0000000..8b0a95d --- /dev/null +++ b/.claude/knowledge-base/sections/technical-debt.md @@ -0,0 +1,4 @@ + +## Technical Debt Registry + +Requires IQ evaluation. diff --git a/.claude/knowledge-base/sections/tooling-requirements.md b/.claude/knowledge-base/sections/tooling-requirements.md new file mode 100644 index 0000000..7a46888 --- /dev/null +++ b/.claude/knowledge-base/sections/tooling-requirements.md @@ -0,0 +1,14 @@ + +## Tooling Requirements + +### Understand Skills (always generated) +- `explain` — navigate the generated-vs-hand-written split; explain what a given `*Api` operation or model actually does against the CyPerf controller. +- `document` — keep `README.md`/`docs/*.md` in sync is generator-owned; human-facing docs work should target `samples/*.py` and this KB instead. + +### Operate Skills (always generated) +- `review` — code review, scoped to the small hand-written surface (`utils.py`, `dynamic_model_meta.py`, `samples/`, CI/build files); generated files should be excluded from review by default. +- `exec-plan` — flag the test-framework gap (scenario-zero) on first use per the Testing table above. +- No `deploy` skill — this project has no deployment target beyond a PyPI publish, already automated by Jenkins. + +### Improve Skills (gap-driven) +Requires IQ/EQ evaluation to identify gaps. From 638ebc7cbade03fc2e472925282fe3ae2db4cd19 Mon Sep 17 00:00:00 2001 From: Angela Grigoroaia Date: Fri, 31 Jul 2026 19:53:11 +0300 Subject: [PATCH 44/53] ISGAPPSEC2-38741: WAP Newsletter What: Update knowledge base Include Clause local settings in .gitignore Why: Keep AI instrumentation up to date --- .claude/knowledge-base/README.md | 2 +- .claude/knowledge-base/sections/architecture.md | 4 ++-- .claude/knowledge-base/sections/external-quality.md | 6 ++++++ .claude/knowledge-base/sections/file-index.md | 10 +++++----- .claude/knowledge-base/sections/internal-quality.md | 4 ++++ .claude/knowledge-base/sections/technical-debt.md | 8 +++++++- .gitignore | 3 +++ 7 files changed, 28 insertions(+), 9 deletions(-) diff --git a/.claude/knowledge-base/README.md b/.claude/knowledge-base/README.md index fe06713..f224b01 100644 --- a/.claude/knowledge-base/README.md +++ b/.claude/knowledge-base/README.md @@ -1,5 +1,5 @@ # Knowledge Base: cyperf-api-wrapper -Generated: 2026-07-09 | Plugin: knowledge-base v3.5.0 +Generated: 2026-07-09 | Plugin: knowledge-base v3.5.0 | Last incremental refresh: 2026-07-31 (git-history patch covering commits through `835526c`, no re-discovery/IQ/EQ) ## Product Profile - **Purpose**: Python client SDK for the Keysight CyPerf network/security performance-test controller — a mostly OpenAPI-generated REST client (`pip install cyperf`) topped with a hand-written `TestRunner`/CLI helper layer and a HATEOAS "dynamic model" layer for writing test-automation scripts. diff --git a/.claude/knowledge-base/sections/architecture.md b/.claude/knowledge-base/sections/architecture.md index d8339bf..17d61ca 100644 --- a/.claude/knowledge-base/sections/architecture.md +++ b/.claude/knowledge-base/sections/architecture.md @@ -4,8 +4,8 @@ **Style**: Generated OpenAPI client SDK ("Library" surface), not a monolith/microservice/UI. Four layers, bottom-up: 1. **Transport/Auth** — `cyperf/configuration.py` (host, SSL/proxy/retry config, OAuth2 credential storage) + `cyperf/rest.py` (`RESTClientObject`, thin urllib3 wrapper: `PoolManager`/`ProxyManager`/SOCKS, `preload_content=False`) + `cyperf/api_client.py` (`ApiClient`: `param_serialize` → `call_api` → `response_deserialize`, plus a hand-written `__retry` loop layered on top of urllib3's own retries, and CyPerf-specific `accept_eula`/`wait_for_controller_up`/`refresh_authorization`). -2. **Generated REST surface** — `cyperf/api/*.py`, 16 classes / ~322 operations (grew from 312 via the Jul-10 2026 "Regenerate Python API Wrapper" commit, which added ~10 compute-resource/front-panel-port ownership operations to `AgentsApi`), each method built in triplicate (`op`, `op_with_http_info`, `op_without_preload_content`), all declaring `_auth_settings = ['OAuth2', 'OAuth2']`. -3. **Generated data models** — `cyperf/models/*.py`, 454 pydantic v2 models (was 443; +11 new models for the same regen, incl. `ComputeResource`, `FrontPanel`, `RebootComputeResourcesOperation`, `SetFrontPanelPortsLinkStateOperation`), one per OpenAPI schema, re-exported flat from `cyperf/__init__.py`. +2. **Generated REST surface** — `cyperf/api/*.py`, 16 classes / 321 operations (grew from 312 to 322 via the Jul-10 2026 "Regenerate Python API Wrapper" commit, which added ~10 compute-resource/front-panel-port ownership operations to `AgentsApi`; PR #81's Jul-27 2026 "Regenerate Cyperf Python Wrapper" then removed `SessionsApi.start_session_prepare_test`, net 321 — a precise full-class recount), each method built in triplicate (`op`, `op_with_http_info`, `op_without_preload_content`), all declaring `_auth_settings = ['OAuth2', 'OAuth2']`. +3. **Generated data models** — `cyperf/models/*.py`, 422 pydantic v2 models (was 443; +11 new models for the Jul-10 2026 regen, incl. `ComputeResource`, `FrontPanel`, `RebootComputeResourcesOperation`, `SetFrontPanelPortsLinkStateOperation` → 454; PR #81's Jul-27 2026 regen then removed ~34 legacy per-endpoint response-wrapper/prepare-test models, added 3 TLS-1.3 signature-algorithm models, and renamed 9 more into generic shared schema types — `ContentBlock`, `FormattedDescription`, `TextSegment`, `Section`, `Keyword`, `Profile`, `LayoutConfig`, `BasicAuthProfile`, `GetScenariosOperation` — net -31 → 422), one per OpenAPI schema, re-exported flat from `cyperf/__init__.py`. 4. **Dynamic/HATEOAS overlay + scripting helpers** — `cyperf/dynamic_model_meta.py` (`DynamicModel` metaclass attaches `.update()/.delete()/.refresh()/.get_link()/.poll()` and lazy link-following properties to every generated model) and `cyperf/utils.py` (`TestRunner` class + `parse_cli_options`/`create_api_client_cli`) for end-to-end test-automation scripting. `samples/*.py` demonstrate both the raw-API style and the `TestRunner`-based style. **Auth flow**: `Configuration._get_access_token()` calls `AuthorizationApi.authenticate(client_id='clt-wap', grant_type='refresh_token'|'password', ...)` against the controller's Keycloak-style endpoint (`/auth/realms/keysight/protocol/openid-connect/token`), then every subsequent call attaches `Authorization: Bearer {access_token}` via `Configuration.auth_settings()`. diff --git a/.claude/knowledge-base/sections/external-quality.md b/.claude/knowledge-base/sections/external-quality.md index fd1bc72..311f70d 100644 --- a/.claude/knowledge-base/sections/external-quality.md +++ b/.claude/knowledge-base/sections/external-quality.md @@ -2,3 +2,9 @@ ## External Quality Summary EQ evaluation not yet performed. Run `/knowledge-base:discover-all` for full evaluation. + +### Surface changes observed since last KB refresh (pre-EQ, from git history 2026-07-14 → 2026-07-29) +- **Breaking**: `SessionsApi.start_session_prepare_test` (plus its `_with_http_info`/`_without_preload_content` variants) and the `PrepareTestOperation`/`PreparedTestOptions` models it used were removed entirely (PR #81, Jul 27 2026 regen). +- **Breaking**: `UtilsApi.get_eula`/`post_eula` gained a new required positional `id` parameter; the resource path changed from the hardcoded `/eula/v1/eula/CyPerf` to `/eula/v1/eula/{id}` (PR #81). The wrapper's own `wait_for_controller_up()` was not updated to match, so this is also an internal reliability bug — see `sections/technical-debt.md` (TD-1). +- **Non-breaking / additive**: `DataMigrationApi.start_controller_migration_import` gained an optional `file` upload parameter (multipart form); `ApplicationResourcesApi.delete_resources_capture` now documents `401`/`403`/`404` `ErrorResponse` returns in addition to `500`; several `ApplicationResourcesApi` docstrings had the word "CyPerf" genericized (e.g. "Get a particular CyPerf application" → "Get a particular application") — cosmetic only. +- **Behavioral change (hand-written helper API, not generated)**: `utils.TestRunner.set_prisma_airs_params`/`set_model_armor_params` both gained an optional `hostname=` keyword argument and now raise `ValueError` when no matching guardrail strike or application is found at all (previously only printed and returned) — PR #80, Jul 29 2026, ISGAPPSEC2-38154. diff --git a/.claude/knowledge-base/sections/file-index.md b/.claude/knowledge-base/sections/file-index.md index d0ce584..2fc1d27 100644 --- a/.claude/knowledge-base/sections/file-index.md +++ b/.claude/knowledge-base/sections/file-index.md @@ -13,9 +13,9 @@ | `cyperf/dynamic_model_meta.py` | 1 | `DynamicModel` metaclass — HATEOAS link-following, update/delete/refresh/poll | **Hand-written**, no generator header | | `cyperf/dynamic_models/__init__.py` | 1 | Mechanically builds one `DynamicModel`-wrapped class per model name | Generated (custom template, not standard openapi-generator) | | `cyperf/utils.py` | 1 | `TestRunner` convenience class + CLI arg parsing (`parse_cli_options`, `create_api_client_cli`) | **Hand-written**, no generator header | -| `cyperf/api/*.py` | 16 (+`__init__.py`) | Generated REST operation classes, ~322 operations total (was 312; `AgentsApi` gained ~10 compute-resource/front-panel-port ownership ops in the Jul-10 2026 regen) | Generated (standard) | -| `cyperf/models/*.py` | 454 | Generated pydantic model per OpenAPI schema (was 443; +11 new models for front-panel-port/compute-resource ownership, 1 renamed: `set_link_state_operation.py` → `set_ports_link_state_operation.py`) | Generated (standard) | -| `docs/*.md` | 469 | Generated per-model/per-API-class reference docs (was 458; +11 for the same regen) | Generated (standard) | +| `cyperf/api/*.py` | 16 (+`__init__.py`) | Generated REST operation classes, 321 operations total (was 312; `AgentsApi` gained ~10 compute-resource/front-panel-port ownership ops in the Jul-10 2026 regen → 322; PR #81's Jul-27 2026 "Regenerate Cyperf Python Wrapper" then removed `SessionsApi.start_session_prepare_test`, net 321 — precise full-class recount, superseding the earlier "~322, approximate" caveat) | Generated (standard) | +| `cyperf/models/*.py` | 422 | Generated pydantic model per OpenAPI schema (was 443; +11 new models for front-panel-port/compute-resource ownership in the Jul-10 2026 regen, 1 renamed: `set_link_state_operation.py` → `set_ports_link_state_operation.py` → 454; PR #81's Jul-27 2026 regen then removed ~34 legacy per-endpoint response-wrapper/prepare-test models, added 3 TLS-1.3 signature-algorithm models, and renamed 9 more into generic shared schema types — `ContentBlock`, `FormattedDescription`, `TextSegment`, `Section`, `Keyword`, `Profile`, `LayoutConfig`, `BasicAuthProfile`, `GetScenariosOperation` — net -31 → 422) | Generated (standard) | +| `docs/*.md` | 438 | Generated per-model/per-API-class reference docs (was 458; +11 for the Jul-10 2026 regen → 469; PR #81's Jul-27 2026 regen removed/renamed the same set of models, net -31 → 438) | Generated (standard) | | `samples/*.py` | 7 | End-to-end usage examples (attack tests, config CRUD, UDP streaming, sequences, appbuilder capture-to-app workflow) | Hand-written | | `samples/appbuilder/*` | 3 | `sample_appbuilder_examples.py` (uploads an encrypted pcap capture via `ApplicationResourcesApi`, then builds AppBuilder apps/actions from the parsed flows) + `claude.pcap`/`tls_key.log` fixtures (added 2026-07-14, PR #77) | Hand-written script + data fixtures | | `samples/cyperf-configurations/*.zip` | 1 | Sample pre-canned CyPerf config bundle | Data fixture | @@ -25,7 +25,7 @@ ### Key File Details -- **`cyperf/api_client.py`** — `ApiClient.__init__(configuration, header_name, header_value, cookie)`. `param_serialize()` builds method/url/headers/body via `update_params_for_auth`/`_apply_auth_params`. `call_api()` is the public sync entry point, wrapping private `__call_api` in a hand-written `__retry(request_func, retries=3→5)` loop (catches `ServiceException`/`urllib3.exceptions.RequestError`, `time.sleep(5)` between attempts) — independent of urllib3's own retry config. `__call_api` calls `rest_client.request(...)` then wraps the result via `DynamicModel.dynamic_wrapper(...)` (lazy import from `dynamic_model_meta`). `response_deserialize()` maps status→declared type, raises `ApiException.from_response(...)` on non-2xx. CyPerf-specific: `accept_eula(eula_text)` (env var `CYPERF_EULA_ACCEPTED` or interactive prompt), `wait_for_controller_up(timeout_seconds=600)` (polls `UtilsApi.check_eulas`, `ApplicationResourcesApi`, `SessionsApi`, `ConfigurationsApi`, `AgentsApi`, `TestResultsApi`), `refresh_authorization()` (clears `configuration.access_token` to force re-auth). +- **`cyperf/api_client.py`** — `ApiClient.__init__(configuration, header_name, header_value, cookie)`. `param_serialize()` builds method/url/headers/body via `update_params_for_auth`/`_apply_auth_params`. `call_api()` is the public sync entry point, wrapping private `__call_api` in a hand-written `__retry(request_func, retries=3→5)` loop (catches `ServiceException`/`urllib3.exceptions.RequestError`, `time.sleep(5)` between attempts) — independent of urllib3's own retry config. `__call_api` calls `rest_client.request(...)` then wraps the result via `DynamicModel.dynamic_wrapper(...)` (lazy import from `dynamic_model_meta`). `response_deserialize()` maps status→declared type, raises `ApiException.from_response(...)` on non-2xx. CyPerf-specific: `accept_eula(eula_text)` (env var `CYPERF_EULA_ACCEPTED` or interactive prompt), `wait_for_controller_up(timeout_seconds=600)` (polls `UtilsApi.check_eulas`, `ApplicationResourcesApi`, `SessionsApi`, `ConfigurationsApi`, `AgentsApi`, `TestResultsApi`), `refresh_authorization()` (clears `configuration.access_token` to force re-auth). **Flagged for human review (new, evidenced by PR #81, Jul 27 2026 regen)**: `UtilsApi.get_eula`/`post_eula` were regenerated to require a new positional `id` parameter (resource path changed from the hardcoded `/eula/v1/eula/CyPerf` to `/eula/v1/eula/{id}`), but `wait_for_controller_up()`'s EULA-accept branch (lines ~166/172) still calls `eula_checker.get_eula()` and `eula_checker.post_eula(EulaSummary(accepted=True))` with no `id` — this now raises a pydantic `validate_call` error instead of completing EULA acceptance the first time a controller requires it. It isn't clear from the diff what `id` value is now expected (a literal `"CyPerf"`? one obtained from `list_eulas`?), so this needs a human fix, not a guess — see `sections/technical-debt.md`. - **`cyperf/configuration.py`** — Supports API-key, HTTP basic (`username`/`password`), and OAuth2 (`access_token`/`refresh_token`). `_get_access_token()` (hand-written) calls `AuthorizationApi.authenticate(client_id='clt-wap', grant_type='refresh_token'|'password', ...)`. `auth_settings()` lazily fetches the token and builds `auth['OAuth2'] = {'type':'oauth2','in':'header','key':'Authorization','value':'Bearer '+access_token}`; contains a verbatim duplicated credential-check block (~lines 417–436), a manual-edit artifact, functionally harmless. Host/SSL/proxy fields: `host`, `verify_ssl`, `ssl_ca_cert`, `cert_file`/`key_file`, `proxy`, `retries`, `connection_pool_maxsize` (`cpu_count()*5`); CyPerf-specific `eula_accept_interactive`, `temp_folder_path`. @@ -35,7 +35,7 @@ - **`cyperf/dynamic_model_meta.py`** — `DynamicList(UserList)`/`DynamicDict(UserDict)` keep raw vs. link-wrapped collection data in sync, diffing local vs. server state to POST new items / batch-DELETE (`operations/batch-delete`) removed ones on `.update()`. `DynamicModel(type)` metaclass inspects each model's pydantic fields (via `x-operation` schema extras) to attach either a bound "operation" method (e.g. a synthetic `start_test_run_start`-style method returning an `AsyncContext`) or a lazy link-following property. Key instance methods added to every model: `update()` (PATCH only-changed fields; falls back to full GET+PUT on HTTP 405), `delete()`, `refresh()`, `get_link()`/`get_self_link()`, `link_based_request()` (the actual `api_client.param_serialize`+`call_api` call), `poll()`/`await_completion()` (polls async ops, `time.sleep(poll_time)`, raises on `state=="ERROR"`). Known latent bug: `DynamicDict.__init__` iterates `for key,i in dct` over what is normally a plain dict — likely never exercised in practice, worth a defensive look before relying on dict-typed link fields. -- **`cyperf/utils.py`** — `TestRunner.__init__(controller, username, password, refresh_token, license_server, license_user, license_password, verify_ssl)`: reads env var **`CYPERF_OFFLINE_TOKEN`** when no explicit credentials are given, builds `Configuration`+`ApiClient`, calls `update_license_server()`, fetches online agents. ~35 methods wrap the generated `*Api` classes for common workflows: `load_configuration_file(s)`, `create_session(_by_config_name)`, `delete_session`, `assign_agents` (raises `ValueError("Insufficient agents found on setup.")`), `wait_until_agents_released` (raises `TimeoutError` after 180s), `start_test`/`stop_test`/`wait_for_test_end(session, test_monitor)` (0.5s poll loop with optional callback), `collect_stats`, `get_csvs_for_result` (file I/O: `os.makedirs` + `ZipFile(...).extractall(...)`), `set_prisma_airs_params`/`set_model_armor_params` (broad except-and-print, no re-raise — the one clear error-swallowing spot in the codebase). Module functions: `parse_cli_options(extra_options=[])` (argparse: `--controller` required, `--user`/`--password`/`--license-server`/`--license-user`/`--license-password`, plus caller-supplied extra flags; falls back to `CYPERF_OFFLINE_TOKEN` env var), `create_api_client_cli(verify_ssl=True)`. `is_valid_ipv4`/`is_valid_ipv6` are defined without a `self` parameter — a bug if ever invoked as bound instance methods. +- **`cyperf/utils.py`** — `TestRunner.__init__(controller, username, password, refresh_token, license_server, license_user, license_password, verify_ssl)`: reads env var **`CYPERF_OFFLINE_TOKEN`** when no explicit credentials are given, builds `Configuration`+`ApiClient`, calls `update_license_server()`, fetches online agents. ~35 methods wrap the generated `*Api` classes for common workflows: `load_configuration_file(s)`, `create_session(_by_config_name)`, `delete_session`, `assign_agents` (raises `ValueError("Insufficient agents found on setup.")`), `wait_until_agents_released` (raises `TimeoutError` after 180s), `start_test`/`stop_test`/`wait_for_test_end(session, test_monitor)` (0.5s poll loop with optional callback), `collect_stats`, `get_csvs_for_result` (file I/O: `os.makedirs` + `ZipFile(...).extractall(...)`), `set_prisma_airs_params`/`set_model_armor_params` — as of PR #80 (2026-07-29, ISGAPPSEC2-38154, "unified strike format" support) both now delegate to a new shared `_set_llm_api_profile_params(session, profile_model_name, hostname, params, app_protocol_id)` helper: matching is by `param_id`/`protocol_id` instead of by param/attack-name string, both gained an optional `hostname=` kwarg (`set_model_armor_params` defaults it to `modelarmor.{location}.rep.googleapis.com` when omitted), a per-application hostname update is now skipped gracefully (with a print) when an application has no `connections` instead of risking an index/attribute error, and a `ValueError` is now raised when neither a matching LLM-API-profile strike nor application is found at all (previously only printed and returned). Still broad except-and-print, no re-raise, on the per-branch `AttributeError`/`Exception` paths — the error-swallowing pattern is now consolidated into one function instead of four near-duplicate copies, but not resolved. Module functions: `parse_cli_options(extra_options=[])` (argparse: `--controller` required, `--user`/`--password`/`--license-server`/`--license-user`/`--license-password`, plus caller-supplied extra flags; falls back to `CYPERF_OFFLINE_TOKEN` env var), `create_api_client_cli(verify_ssl=True)`. `is_valid_ipv4`/`is_valid_ipv6` are defined without a `self` parameter — a bug if ever invoked as bound instance methods. - **`cyperf/__init__.py`** — Pure generated flat namespace: all 16 `*Api` classes, `ApiClient`, `ApiResponse`, `Configuration`, `DynamicModel`, all exception classes (incl. `LinkNameException`), and ~440 model classes. Notably **`utils` and `dynamic_model_meta` are not re-exported here** — accessed as `cyperf.utils`/`cyperf.dynamic_model_meta` submodules. diff --git a/.claude/knowledge-base/sections/internal-quality.md b/.claude/knowledge-base/sections/internal-quality.md index a11e4b9..b03e65c 100644 --- a/.claude/knowledge-base/sections/internal-quality.md +++ b/.claude/knowledge-base/sections/internal-quality.md @@ -2,3 +2,7 @@ ## Internal Quality Summary IQ evaluation not yet performed. Run `/knowledge-base:discover-all` for full evaluation. + +### Findings surfaced during incremental git-history review (pre-IQ, not a formal pass) +- **Reliability bug, newly introduced (PR #81, Jul 27 2026 "Regenerate Cyperf Python Wrapper")**: the regen changed `UtilsApi.get_eula`/`post_eula` to require a new positional `id` parameter (path `/eula/v1/eula/CyPerf` → `/eula/v1/eula/{id}`), but the hand-written `cyperf/api_client.py::wait_for_controller_up()` EULA-accept branch was not updated to pass `id` — it now raises a pydantic `validate_call` error instead of completing EULA acceptance. See `sections/file-index.md` (`cyperf/api_client.py`) and `sections/technical-debt.md`. Flagged for human review: the correct `id` value isn't evident from the diff alone. +- **Refactor, not a quality regression (PR #80, Jul 29 2026, ISGAPPSEC2-38154)**: `cyperf/utils.py`'s `set_prisma_airs_params`/`set_model_armor_params` were deduplicated into a shared `_set_llm_api_profile_params` helper, and a total-miss case (`ValueError`) is now raised instead of silently printing. The pre-existing broad except-and-print pattern (no re-raise) is preserved, just consolidated from four copies into one — not resolved. diff --git a/.claude/knowledge-base/sections/technical-debt.md b/.claude/knowledge-base/sections/technical-debt.md index 8b0a95d..3345eb9 100644 --- a/.claude/knowledge-base/sections/technical-debt.md +++ b/.claude/knowledge-base/sections/technical-debt.md @@ -1,4 +1,10 @@ ## Technical Debt Registry -Requires IQ evaluation. +Full registry requires IQ evaluation. One item below was surfaced during an incremental git-history review (not from a formal IQ pass) and is tracked here because it is a confirmed, evidenced bug. + +| ID | Title | Severity | Evidence | Status | +|----|-------|----------|----------|--------| +| TD-1 | `wait_for_controller_up()` EULA-accept path breaks after the PR #81 `UtilsApi` regen | Blocking (confirmed library bug) | `cyperf/api_client.py` lines ~166/172 call `eula_checker.get_eula()` / `eula_checker.post_eula(EulaSummary(accepted=True))` with no `id` argument; PR #81 (Jul 27 2026 "Regenerate Cyperf Python Wrapper") changed `UtilsApi.get_eula`/`post_eula` to require a positional `id` (path changed from the hardcoded `/eula/v1/eula/CyPerf` to `/eula/v1/eula/{id}`) | Open — introduced 2026-07-27, not yet fixed as of 2026-07-31 | + +Open question for a human: what `id` should the wrapper now pass here (a literal `"CyPerf"`? one obtained from `list_eulas`?) — not inferable from the diff alone, so no fix was guessed. diff --git a/.gitignore b/.gitignore index 3edc819..322da87 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,6 @@ target/ # OpenAPI Generator metadata .openapi-generator/ + +# Claude Code local settings +.claude/settings.local.json From 883273bc049686c558a0e642cb9f1ad714d56512 Mon Sep 17 00:00:00 2001 From: Indradeep Moitra Date: Tue, 4 Aug 2026 03:08:36 -0600 Subject: [PATCH 45/53] Pull request #84: Regenerate openapi wrapper with PQC KEM changes for IPSec Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-38803/expose-ipsec-pqc-configuration to main Squashed commit of the following: commit 9f7818232632d07c4f429a89540592ec7726d44b Author: inmoitra Date: Mon Aug 3 14:27:51 2026 +0000 Regenerated wrapper with PQC KEM changes in IPSec --- README.md | 3 +- cyperf/__init__.py | 5 +- cyperf/api/agents_api.py | 4 +- cyperf/api/application_resources_api.py | 4 +- cyperf/api/authorization_api.py | 4 +- cyperf/api/brokers_api.py | 4 +- cyperf/api/configurations_api.py | 4 +- cyperf/api/data_migration_api.py | 4 +- cyperf/api/diagnostics_api.py | 4 +- cyperf/api/license_servers_api.py | 4 +- cyperf/api/licensing_api.py | 4 +- cyperf/api/notifications_api.py | 4 +- cyperf/api/reports_api.py | 4 +- cyperf/api/sessions_api.py | 4 +- cyperf/api/statistics_api.py | 4 +- cyperf/api/test_operations_api.py | 4 +- cyperf/api/test_results_api.py | 4 +- cyperf/api/utils_api.py | 4 +- cyperf/api_client.py | 4 +- cyperf/configuration.py | 4 +- cyperf/dynamic_models/__init__.py | 5 +- cyperf/exceptions.py | 4 +- cyperf/models/__init__.py | 5 +- cyperf/models/action.py | 4 +- cyperf/models/action_base.py | 4 +- cyperf/models/action_input.py | 4 +- cyperf/models/action_input_find_param.py | 4 +- cyperf/models/action_metadata.py | 4 +- cyperf/models/activation_code_info.py | 4 +- cyperf/models/activation_code_list_request.py | 4 +- cyperf/models/activation_code_request.py | 4 +- cyperf/models/add_action_info.py | 4 +- cyperf/models/add_input.py | 4 +- cyperf/models/address.py | 4 +- cyperf/models/advanced_settings.py | 4 +- cyperf/models/agent.py | 4 +- .../agent_assignment_by_front_panel_port.py | 4 +- cyperf/models/agent_assignment_by_port.py | 4 +- cyperf/models/agent_assignment_details.py | 4 +- cyperf/models/agent_assignments.py | 4 +- cyperf/models/agent_cpu_info.py | 4 +- cyperf/models/agent_features.py | 4 +- cyperf/models/agent_optimization_mode.py | 4 +- cyperf/models/agent_release.py | 4 +- cyperf/models/agent_reservation.py | 4 +- cyperf/models/agent_to_be_rebooted.py | 4 +- cyperf/models/agents_group.py | 4 +- cyperf/models/api_link.py | 4 +- cyperf/models/api_relationship.py | 4 +- cyperf/models/app_exchange.py | 4 +- cyperf/models/app_flow.py | 4 +- cyperf/models/app_flow_desc.py | 4 +- cyperf/models/app_flow_input.py | 4 +- cyperf/models/app_flow_input_find_param.py | 4 +- cyperf/models/app_id.py | 4 +- cyperf/models/app_mode.py | 4 +- cyperf/models/application.py | 4 +- cyperf/models/application_profile.py | 4 +- cyperf/models/application_type.py | 4 +- cyperf/models/appsec_app.py | 4 +- cyperf/models/appsec_app_metadata.py | 4 +- .../appsec_app_metadata_keywords_inner.py | 4 +- cyperf/models/appsec_attack.py | 4 +- cyperf/models/appsec_config.py | 4 +- cyperf/models/archive_info.py | 4 +- cyperf/models/array_v2_element_metadata.py | 4 +- cyperf/models/async_context.py | 4 +- cyperf/models/attack.py | 4 +- cyperf/models/attack_action.py | 4 +- cyperf/models/attack_metadata.py | 4 +- .../models/attack_objectives_and_timeline.py | 4 +- cyperf/models/attack_profile.py | 4 +- cyperf/models/attack_timeline_segment.py | 4 +- cyperf/models/attack_track.py | 4 +- cyperf/models/auth_method_type.py | 4 +- cyperf/models/auth_profile.py | 4 +- cyperf/models/auth_profile_metadata.py | 4 +- cyperf/models/auth_settings.py | 4 +- cyperf/models/authenticate200_response.py | 4 +- cyperf/models/authentication_settings.py | 4 +- cyperf/models/automatic_ip_type.py | 4 +- cyperf/models/basic_auth_profile.py | 4 +- cyperf/models/broker.py | 4 +- cyperf/models/capture_input.py | 4 +- cyperf/models/capture_input_find_param.py | 4 +- cyperf/models/capture_settings.py | 4 +- cyperf/models/category.py | 4 +- cyperf/models/category_filter.py | 4 +- cyperf/models/category_value.py | 4 +- cyperf/models/cert_config.py | 4 +- cyperf/models/certificate.py | 4 +- cyperf/models/chassis_info.py | 4 +- cyperf/models/choice.py | 4 +- cyperf/models/cipher_tls12.py | 4 +- cyperf/models/cipher_tls13.py | 4 +- cyperf/models/cisco_any_connect_settings.py | 4 +- cyperf/models/cisco_encapsulation.py | 4 +- .../classical_signature_algorithm_tls13.py | 4 +- ...r_compute_resources_ownership_operation.py | 4 +- ...r_front_panel_ports_ownership_operation.py | 4 +- .../models/clear_ports_ownership_operation.py | 4 +- cyperf/models/command.py | 4 +- cyperf/models/command_metadata.py | 4 +- ...composite_pqc_signature_algorithm_tls13.py | 4 +- cyperf/models/compute_node.py | 4 +- cyperf/models/compute_resource.py | 4 +- .../models/compute_resources_by_controller.py | 4 +- cyperf/models/compute_resources_by_node.py | 4 +- cyperf/models/config.py | 4 +- cyperf/models/config_category.py | 4 +- cyperf/models/config_id.py | 4 +- cyperf/models/config_metadata.py | 4 +- cyperf/models/config_sub_category.py | 4 +- cyperf/models/config_validation.py | 4 +- cyperf/models/conflict.py | 4 +- cyperf/models/connection.py | 4 +- cyperf/models/connection_persistence.py | 4 +- cyperf/models/consumer.py | 4 +- cyperf/models/content_block.py | 4 +- cyperf/models/controller.py | 4 +- cyperf/models/counted_feature_consumer.py | 4 +- cyperf/models/counted_feature_stats.py | 4 +- cyperf/models/create_app_operation.py | 4 +- .../create_app_or_attack_operation_input.py | 4 +- cyperf/models/custom_dashboards.py | 4 +- cyperf/models/custom_import_handler.py | 4 +- cyperf/models/custom_sequence.py | 4 +- cyperf/models/custom_stat.py | 4 +- cyperf/models/dashboard.py | 4 +- cyperf/models/data_type.py | 4 +- cyperf/models/data_type_values_inner.py | 4 +- cyperf/models/definition.py | 4 +- cyperf/models/delete_input.py | 4 +- cyperf/models/dh_p1_group.py | 4 +- cyperf/models/diagnostic_component.py | 4 +- cyperf/models/diagnostic_component_context.py | 4 +- cyperf/models/diagnostic_options.py | 4 +- cyperf/models/disk_usage.py | 4 +- cyperf/models/dismiss_operation.py | 4 +- cyperf/models/dns_resolver.py | 4 +- cyperf/models/dns_server.py | 4 +- cyperf/models/dtls_settings.py | 4 +- cyperf/models/dut_network.py | 4 +- cyperf/models/dut_range.py | 4 +- cyperf/models/edit_action_input.py | 4 +- cyperf/models/edit_app_operation.py | 4 +- cyperf/models/effective_ports.py | 4 +- cyperf/models/emulated_router.py | 4 +- cyperf/models/emulated_router_range.py | 4 +- cyperf/models/emulated_subnet_config.py | 4 +- cyperf/models/enc_p1_algorithm.py | 4 +- cyperf/models/enc_p2_algorithm.py | 4 +- cyperf/models/endpoint.py | 4 +- cyperf/models/entitlement_code_info.py | 4 +- cyperf/models/entitlement_code_request.py | 4 +- cyperf/models/enum.py | 4 +- cyperf/models/error_description.py | 4 +- cyperf/models/error_response.py | 4 +- cyperf/models/esp_over_udp_settings.py | 4 +- cyperf/models/eth_range.py | 4 +- cyperf/models/eula_details.py | 4 +- cyperf/models/eula_summary.py | 4 +- cyperf/models/exchange.py | 4 +- cyperf/models/exchange_order.py | 4 +- cyperf/models/exchange_payload.py | 4 +- cyperf/models/expected_disk_space.py | 4 +- cyperf/models/expected_disk_space_message.py | 4 +- .../models/expected_disk_space_pretty_size.py | 4 +- cyperf/models/expected_disk_space_size.py | 4 +- cyperf/models/export_all_operation.py | 4 +- cyperf/models/export_apps_operation_input.py | 4 +- cyperf/models/export_files_operation_input.py | 4 +- cyperf/models/export_files_request.py | 4 +- cyperf/models/export_package_operation.py | 4 +- cyperf/models/external_resource_info.py | 4 +- cyperf/models/f5_encapsulation.py | 4 +- cyperf/models/f5_settings.py | 4 +- cyperf/models/feature.py | 4 +- cyperf/models/feature_reservation.py | 4 +- cyperf/models/feature_reservation_reserve.py | 4 +- cyperf/models/file_metadata.py | 4 +- cyperf/models/file_value.py | 4 +- cyperf/models/filter.py | 4 +- cyperf/models/filtered_stat.py | 4 +- cyperf/models/find_param_matches_operation.py | 4 +- cyperf/models/formatted_description.py | 4 +- cyperf/models/fortinet_encapsulation.py | 4 +- cyperf/models/fortinet_settings.py | 4 +- cyperf/models/front_panel.py | 4 +- .../models/front_panel_ports_by_controller.py | 4 +- cyperf/models/fulfillment_request.py | 4 +- cyperf/models/generate_all_operation.py | 4 +- .../models/generate_csv_reports_operation.py | 4 +- .../models/generate_pdf_report_operation.py | 4 +- cyperf/models/generic_file.py | 4 +- cyperf/models/get_agents200_response.py | 4 +- .../models/get_agents200_response_one_of.py | 4 +- cyperf/models/get_agents_tags200_response.py | 4 +- .../get_agents_tags200_response_one_of.py | 4 +- .../get_async_operation_result200_response.py | 4 +- cyperf/models/get_brokers200_response.py | 4 +- .../models/get_brokers200_response_one_of.py | 4 +- cyperf/models/get_categories_operation.py | 4 +- ...fig_categorie_subcategories200_response.py | 4 +- ...egorie_subcategories200_response_one_of.py | 4 +- .../get_config_categories200_response.py | 4 +- ...et_config_categories200_response_one_of.py | 4 +- cyperf/models/get_configs200_response.py | 4 +- .../models/get_configs200_response_one_of.py | 4 +- cyperf/models/get_controllers200_response.py | 4 +- .../get_controllers200_response_one_of.py | 4 +- .../get_disk_usage_consumers200_response.py | 4 +- ...disk_usage_consumers200_response_one_of.py | 4 +- ...ense_async_operation_result200_response.py | 4 +- .../models/get_license_servers200_response.py | 4 +- .../get_license_servers200_response_one_of.py | 4 +- .../models/get_notifications200_response.py | 4 +- .../get_notifications200_response_one_of.py | 4 +- ...resources_application_types200_response.py | 4 +- ...es_application_types200_response_one_of.py | 4 +- .../models/get_resources_apps200_response.py | 4 +- .../get_resources_apps200_response_one_of.py | 4 +- .../get_resources_attacks200_response.py | 4 +- ...et_resources_attacks200_response_one_of.py | 4 +- ...get_resources_auth_profiles200_response.py | 4 +- ...ources_auth_profiles200_response_one_of.py | 4 +- .../get_resources_certificates200_response.py | 4 +- ...sources_certificates200_response_one_of.py | 4 +- ...es_custom_import_operations200_response.py | 4 +- ...om_import_operations200_response_one_of.py | 4 +- ...get_resources_http_profiles200_response.py | 4 +- ...ources_http_profiles200_response_one_of.py | 4 +- ..._resources_llm_api_profiles200_response.py | 4 +- ...ces_llm_api_profiles200_response_one_of.py | 4 +- cyperf/models/get_result_files200_response.py | 4 +- .../get_result_files200_response_one_of.py | 4 +- cyperf/models/get_result_stats200_response.py | 4 +- .../get_result_stats200_response_one_of.py | 4 +- cyperf/models/get_results200_response.py | 4 +- .../models/get_results200_response_one_of.py | 4 +- cyperf/models/get_results_tags200_response.py | 4 +- .../get_results_tags200_response_one_of.py | 4 +- cyperf/models/get_scenarios_operation.py | 4 +- cyperf/models/get_session_meta200_response.py | 4 +- .../get_session_meta200_response_one_of.py | 4 +- cyperf/models/get_sessions200_response.py | 4 +- .../models/get_sessions200_response_one_of.py | 4 +- .../models/get_stats_plugins200_response.py | 4 +- .../get_stats_plugins200_response_one_of.py | 4 +- cyperf/models/get_strikes_operation.py | 4 +- cyperf/models/group_tls13.py | 4 +- cyperf/models/hash_p1_algorithm.py | 4 +- cyperf/models/hash_p2_algorithm.py | 4 +- cyperf/models/health_check_config.py | 4 +- cyperf/models/health_issue.py | 4 +- cyperf/models/host_id.py | 4 +- cyperf/models/http_profile.py | 4 +- cyperf/models/http_req_meta.py | 4 +- cyperf/models/http_res_meta.py | 4 +- cyperf/models/http_version.py | 4 +- cyperf/models/id_p_signature_algo.py | 4 +- cyperf/models/identification_config.py | 4 +- cyperf/models/import_all_operation.py | 4 +- .../models/import_offline_license_result.py | 4 +- cyperf/models/ingest_operation.py | 4 +- cyperf/models/inner_ip_range.py | 4 +- cyperf/models/inner_ip_sec_range.py | 8 ++- cyperf/models/interface.py | 4 +- cyperf/models/ip_mask.py | 4 +- cyperf/models/ip_network.py | 4 +- cyperf/models/ip_preference.py | 4 +- cyperf/models/ip_range.py | 4 +- cyperf/models/ip_sec_range.py | 8 ++- cyperf/models/ip_sec_stack.py | 4 +- cyperf/models/ip_ver.py | 4 +- cyperf/models/keyword.py | 4 +- cyperf/models/layout_config.py | 4 +- cyperf/models/license.py | 4 +- cyperf/models/license_receipt.py | 4 +- cyperf/models/license_server_metadata.py | 4 +- cyperf/models/link.py | 4 +- cyperf/models/llmapi_profile.py | 4 +- cyperf/models/load_config_operation.py | 4 +- cyperf/models/local_subnet_config.py | 4 +- cyperf/models/log_config.py | 4 +- cyperf/models/log_level.py | 4 +- cyperf/models/mac_dtls_stack.py | 4 +- cyperf/models/mapping_type.py | 4 +- cyperf/models/marked_as_deleted.py | 4 +- cyperf/models/md2_tlv.py | 4 +- cyperf/models/media_file.py | 4 +- cyperf/models/media_track.py | 4 +- cyperf/models/metadata.py | 4 +- cyperf/models/mos_mode.py | 4 +- cyperf/models/name_id_format.py | 4 +- cyperf/models/name_server.py | 4 +- cyperf/models/network_mapping.py | 4 +- cyperf/models/network_meshing.py | 4 +- cyperf/models/network_profile.py | 4 +- cyperf/models/network_segment_base.py | 4 +- cyperf/models/nodes_by_controller.py | 4 +- cyperf/models/nodes_power_cycle_operation.py | 4 +- cyperf/models/notification.py | 4 +- cyperf/models/notification_counts.py | 4 +- cyperf/models/ntp_info.py | 4 +- cyperf/models/objective_type.py | 4 +- cyperf/models/objective_unit.py | 4 +- cyperf/models/objective_value_entry.py | 4 +- cyperf/models/objectives_and_timeline.py | 4 +- cyperf/models/open_api_definitions.py | 4 +- cyperf/models/p1_config.py | 9 ++- cyperf/models/p2_config.py | 4 +- cyperf/models/pair.py | 4 +- cyperf/models/pangp_encapsulation.py | 4 +- cyperf/models/pangp_settings.py | 4 +- cyperf/models/param_metadata.py | 4 +- cyperf/models/param_metadata_type_info.py | 4 +- .../param_metadata_type_info_array_v2.py | 4 +- ...adata_type_info_array_v2_elements_inner.py | 4 +- cyperf/models/param_metadata_type_info_int.py | 4 +- .../models/param_metadata_type_info_media.py | 4 +- .../models/param_metadata_type_info_string.py | 4 +- cyperf/models/param_source_type.py | 4 +- cyperf/models/param_type.py | 4 +- cyperf/models/parameter.py | 4 +- cyperf/models/parameter_match.py | 4 +- cyperf/models/parameter_meta.py | 4 +- cyperf/models/parameter_metadata.py | 4 +- cyperf/models/params.py | 4 +- cyperf/models/params_enum.py | 4 +- cyperf/models/payload_meta.py | 4 +- cyperf/models/payload_metadata.py | 4 +- cyperf/models/pep_dut.py | 4 +- cyperf/models/pfs_p2_group.py | 4 +- cyperf/models/playlist_metadata.py | 4 +- cyperf/models/playlist_sequencing_method.py | 4 +- cyperf/models/plugin.py | 4 +- cyperf/models/plugin_stats.py | 4 +- cyperf/models/port.py | 4 +- cyperf/models/port_settings.py | 4 +- cyperf/models/ports_by_controller.py | 4 +- cyperf/models/ports_by_node.py | 4 +- cyperf/models/ports_by_panel.py | 4 +- cyperf/models/ppk_pair.py | 4 +- cyperf/models/pqc_kem_group.py | 60 +++++++++++++++++++ .../models/pqc_signature_algorithm_tls13.py | 4 +- cyperf/models/prf_p1_algorithm.py | 4 +- cyperf/models/profile.py | 4 +- cyperf/models/protected_subnet_config.py | 4 +- cyperf/models/psp_range.py | 4 +- cyperf/models/psp_stack.py | 4 +- cyperf/models/quic_profile.py | 4 +- cyperf/models/quic_version.py | 4 +- .../reboot_compute_resources_operation.py | 4 +- cyperf/models/reboot_operation_input.py | 4 +- cyperf/models/reboot_ports_operation.py | 4 +- cyperf/models/reference.py | 4 +- cyperf/models/regex_match.py | 4 +- cyperf/models/release_operation_input.py | 4 +- cyperf/models/remote_access.py | 4 +- cyperf/models/remote_subnet_config.py | 4 +- cyperf/models/rename_input.py | 4 +- cyperf/models/reorder_action_input.py | 4 +- cyperf/models/reorder_exchanges_input.py | 4 +- cyperf/models/replay_capture.py | 4 +- cyperf/models/required_file_types.py | 4 +- cyperf/models/reserve_operation_input.py | 4 +- cyperf/models/result_file_metadata.py | 4 +- cyperf/models/result_metadata.py | 4 +- cyperf/models/results_group.py | 4 +- cyperf/models/rtp_encryption_mode.py | 4 +- cyperf/models/rtp_profile.py | 4 +- cyperf/models/rtp_profile_meta.py | 4 +- cyperf/models/save_config_operation.py | 4 +- cyperf/models/scenario.py | 4 +- cyperf/models/secondary_objective.py | 4 +- cyperf/models/section.py | 4 +- cyperf/models/segment_type.py | 4 +- cyperf/models/selected_env.py | 4 +- cyperf/models/sequence_data_types.py | 4 +- cyperf/models/sequence_value.py | 4 +- cyperf/models/sequence_value_types.py | 4 +- cyperf/models/session.py | 4 +- cyperf/models/session_reuse_method_tls12.py | 4 +- cyperf/models/session_reuse_method_tls13.py | 4 +- .../models/set_aggregation_mode_operation.py | 4 +- cyperf/models/set_controller_app_operation.py | 4 +- .../models/set_dpdk_mode_operation_input.py | 4 +- ..._front_panel_ports_link_state_operation.py | 4 +- cyperf/models/set_nodes_app_operation.py | 4 +- cyperf/models/set_ntp_operation_input.py | 4 +- .../models/set_ports_link_state_operation.py | 4 +- cyperf/models/simple_sequence_value.py | 4 +- cyperf/models/simulated_id_p.py | 4 +- cyperf/models/single_value.py | 4 +- cyperf/models/snapshot.py | 4 +- cyperf/models/snowflake_exporter.py | 4 +- cyperf/models/sort_body_field.py | 4 +- cyperf/models/specific_objective.py | 4 +- ...start_agents_batch_delete_request_inner.py | 4 +- cyperf/models/stateless_stream.py | 4 +- cyperf/models/static_arp_entry.py | 4 +- cyperf/models/stats_result.py | 4 +- cyperf/models/steady_segment.py | 4 +- cyperf/models/step_segment.py | 4 +- cyperf/models/stream_direction.py | 4 +- cyperf/models/stream_payload_type.py | 4 +- cyperf/models/stream_profile.py | 4 +- cyperf/models/sub_step.py | 4 +- cyperf/models/supported_group_tls13.py | 4 +- cyperf/models/system_info.py | 4 +- cyperf/models/tcp_profile.py | 4 +- cyperf/models/test_info.py | 4 +- cyperf/models/test_state_changed_operation.py | 4 +- cyperf/models/text_segment.py | 4 +- cyperf/models/time_value.py | 4 +- cyperf/models/timeline_segment.py | 4 +- cyperf/models/timeline_segment_base.py | 4 +- cyperf/models/timeline_segment_union.py | 4 +- cyperf/models/timers.py | 4 +- cyperf/models/tls_profile.py | 4 +- cyperf/models/track.py | 4 +- cyperf/models/track_type.py | 4 +- cyperf/models/traffic_agent_info.py | 4 +- cyperf/models/traffic_profile_base.py | 4 +- cyperf/models/traffic_settings.py | 4 +- cyperf/models/transport_profile.py | 4 +- cyperf/models/transport_profile_base.py | 4 +- cyperf/models/tunnel_range.py | 4 +- cyperf/models/tunnel_settings.py | 4 +- cyperf/models/tunnel_stack.py | 4 +- cyperf/models/type_array_v2_metadata.py | 4 +- cyperf/models/type_info_metadata.py | 4 +- cyperf/models/type_int_metadata.py | 4 +- cyperf/models/type_media_metadata.py | 4 +- cyperf/models/type_string_metadata.py | 4 +- cyperf/models/udp_profile.py | 4 +- cyperf/models/update_network_mapping.py | 4 +- cyperf/models/update_port_tags_operation.py | 4 +- cyperf/models/validation_message.py | 4 +- cyperf/models/version.py | 4 +- cyperf/models/vlan_range.py | 4 +- cyperf/models/vlan_type.py | 4 +- cyperf/models/vx_lan_range.py | 4 +- cyperf/models/vx_lan_stack.py | 4 +- cyperf/models/vx_lanid.py | 4 +- cyperf/rest.py | 4 +- docs/IPSecRange.md | 1 + docs/InnerIPSecRange.md | 1 + docs/P1Config.md | 1 + docs/PqcKemGroup.md | 56 +++++++++++++++++ pyproject.toml | 4 +- setup.py | 4 +- 453 files changed, 1028 insertions(+), 898 deletions(-) create mode 100644 cyperf/models/pqc_kem_group.py create mode 100644 docs/PqcKemGroup.md diff --git a/README.md b/README.md index b38644b..e9834c4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # cyperf -CyPerf REST API +Keysight CyPerf REST API This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: @@ -719,6 +719,7 @@ Class | Method | HTTP request | Description - [PortsByController](docs/PortsByController.md) - [PortsByNode](docs/PortsByNode.md) - [PortsByPanel](docs/PortsByPanel.md) + - [PqcKemGroup](docs/PqcKemGroup.md) - [PqcSignatureAlgorithmTLS13](docs/PqcSignatureAlgorithmTLS13.md) - [PrfP1Algorithm](docs/PrfP1Algorithm.md) - [Profile](docs/Profile.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index d848912..81eb30a 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -3,9 +3,9 @@ # flake8: noqa """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com @@ -375,6 +375,7 @@ from cyperf.models.ports_by_controller import PortsByController from cyperf.models.ports_by_node import PortsByNode from cyperf.models.ports_by_panel import PortsByPanel +from cyperf.models.pqc_kem_group import PqcKemGroup from cyperf.models.pqc_signature_algorithm_tls13 import PqcSignatureAlgorithmTLS13 from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from cyperf.models.profile import Profile diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index e805f8c..8a91fef 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/application_resources_api.py b/cyperf/api/application_resources_api.py index 1755616..59fb934 100644 --- a/cyperf/api/application_resources_api.py +++ b/cyperf/api/application_resources_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/authorization_api.py b/cyperf/api/authorization_api.py index 37b7b39..a218b54 100644 --- a/cyperf/api/authorization_api.py +++ b/cyperf/api/authorization_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/brokers_api.py b/cyperf/api/brokers_api.py index 2c39111..f88ba43 100644 --- a/cyperf/api/brokers_api.py +++ b/cyperf/api/brokers_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/configurations_api.py b/cyperf/api/configurations_api.py index 62830e7..63b9afe 100644 --- a/cyperf/api/configurations_api.py +++ b/cyperf/api/configurations_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/data_migration_api.py b/cyperf/api/data_migration_api.py index 0a62312..e22dd09 100644 --- a/cyperf/api/data_migration_api.py +++ b/cyperf/api/data_migration_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/diagnostics_api.py b/cyperf/api/diagnostics_api.py index 5a59367..309dd92 100644 --- a/cyperf/api/diagnostics_api.py +++ b/cyperf/api/diagnostics_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/license_servers_api.py b/cyperf/api/license_servers_api.py index a45eb7a..d309cd0 100644 --- a/cyperf/api/license_servers_api.py +++ b/cyperf/api/license_servers_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/licensing_api.py b/cyperf/api/licensing_api.py index ba1a2c5..65ec6af 100644 --- a/cyperf/api/licensing_api.py +++ b/cyperf/api/licensing_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/notifications_api.py b/cyperf/api/notifications_api.py index 8331050..efd9d02 100644 --- a/cyperf/api/notifications_api.py +++ b/cyperf/api/notifications_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/reports_api.py b/cyperf/api/reports_api.py index 83ca1ef..3aeafce 100644 --- a/cyperf/api/reports_api.py +++ b/cyperf/api/reports_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/sessions_api.py b/cyperf/api/sessions_api.py index 6cd1e66..1a243b0 100644 --- a/cyperf/api/sessions_api.py +++ b/cyperf/api/sessions_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/statistics_api.py b/cyperf/api/statistics_api.py index 0a818ba..85282f4 100644 --- a/cyperf/api/statistics_api.py +++ b/cyperf/api/statistics_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/test_operations_api.py b/cyperf/api/test_operations_api.py index 1051319..7fb2628 100644 --- a/cyperf/api/test_operations_api.py +++ b/cyperf/api/test_operations_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/test_results_api.py b/cyperf/api/test_results_api.py index aed223e..1ca8cc9 100644 --- a/cyperf/api/test_results_api.py +++ b/cyperf/api/test_results_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api/utils_api.py b/cyperf/api/utils_api.py index 0fa71ae..76271b8 100644 --- a/cyperf/api/utils_api.py +++ b/cyperf/api/utils_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/api_client.py b/cyperf/api_client.py index efe6a3d..3dfe850 100644 --- a/cyperf/api_client.py +++ b/cyperf/api_client.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/configuration.py b/cyperf/configuration.py index 4579df0..57a6121 100644 --- a/cyperf/configuration.py +++ b/cyperf/configuration.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 08c3cbf..40a2728 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -2,9 +2,9 @@ # flake8: noqa """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com @@ -341,6 +341,7 @@ PortsByController = DynamicModel('PortsByController', (), {} ) PortsByNode = DynamicModel('PortsByNode', (), {} ) PortsByPanel = DynamicModel('PortsByPanel', (), {} ) +PqcKemGroup = DynamicModel('PqcKemGroup', (), {} ) PqcSignatureAlgorithmTLS13 = DynamicModel('PqcSignatureAlgorithmTLS13', (), {} ) PrfP1Algorithm = DynamicModel('PrfP1Algorithm', (), {} ) Profile = DynamicModel('Profile', (), {} ) diff --git a/cyperf/exceptions.py b/cyperf/exceptions.py index cfb9e65..674969b 100644 --- a/cyperf/exceptions.py +++ b/cyperf/exceptions.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 24b5a3f..cfc93c2 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -2,9 +2,9 @@ # flake8: noqa """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com @@ -341,6 +341,7 @@ class LinkNameException(Exception): from cyperf.models.ports_by_controller import PortsByController from cyperf.models.ports_by_node import PortsByNode from cyperf.models.ports_by_panel import PortsByPanel +from cyperf.models.pqc_kem_group import PqcKemGroup from cyperf.models.pqc_signature_algorithm_tls13 import PqcSignatureAlgorithmTLS13 from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from cyperf.models.profile import Profile diff --git a/cyperf/models/action.py b/cyperf/models/action.py index 6e029e0..a67c324 100644 --- a/cyperf/models/action.py +++ b/cyperf/models/action.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/action_base.py b/cyperf/models/action_base.py index 2465540..193de1e 100644 --- a/cyperf/models/action_base.py +++ b/cyperf/models/action_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/action_input.py b/cyperf/models/action_input.py index 20d1342..93c25f3 100644 --- a/cyperf/models/action_input.py +++ b/cyperf/models/action_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/action_input_find_param.py b/cyperf/models/action_input_find_param.py index b62a8c1..1f0d95c 100644 --- a/cyperf/models/action_input_find_param.py +++ b/cyperf/models/action_input_find_param.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/action_metadata.py b/cyperf/models/action_metadata.py index a1bcfe1..bb46292 100644 --- a/cyperf/models/action_metadata.py +++ b/cyperf/models/action_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/activation_code_info.py b/cyperf/models/activation_code_info.py index 9cc170b..1f1c41f 100644 --- a/cyperf/models/activation_code_info.py +++ b/cyperf/models/activation_code_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/activation_code_list_request.py b/cyperf/models/activation_code_list_request.py index ee7c0f7..def228f 100644 --- a/cyperf/models/activation_code_list_request.py +++ b/cyperf/models/activation_code_list_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/activation_code_request.py b/cyperf/models/activation_code_request.py index b0cc4da..e24d877 100644 --- a/cyperf/models/activation_code_request.py +++ b/cyperf/models/activation_code_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/add_action_info.py b/cyperf/models/add_action_info.py index a3b41d1..e063115 100644 --- a/cyperf/models/add_action_info.py +++ b/cyperf/models/add_action_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/add_input.py b/cyperf/models/add_input.py index 32916fa..2bb8cd7 100644 --- a/cyperf/models/add_input.py +++ b/cyperf/models/add_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/address.py b/cyperf/models/address.py index d6d4ee6..8b31ea3 100644 --- a/cyperf/models/address.py +++ b/cyperf/models/address.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/advanced_settings.py b/cyperf/models/advanced_settings.py index 2e4b124..126cce0 100644 --- a/cyperf/models/advanced_settings.py +++ b/cyperf/models/advanced_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index e88d757..319e667 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_assignment_by_front_panel_port.py b/cyperf/models/agent_assignment_by_front_panel_port.py index 9f4dc70..4ed8dc3 100644 --- a/cyperf/models/agent_assignment_by_front_panel_port.py +++ b/cyperf/models/agent_assignment_by_front_panel_port.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_assignment_by_port.py b/cyperf/models/agent_assignment_by_port.py index 3142e3b..8986db2 100644 --- a/cyperf/models/agent_assignment_by_port.py +++ b/cyperf/models/agent_assignment_by_port.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_assignment_details.py b/cyperf/models/agent_assignment_details.py index fd2fccc..677fe54 100644 --- a/cyperf/models/agent_assignment_details.py +++ b/cyperf/models/agent_assignment_details.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_assignments.py b/cyperf/models/agent_assignments.py index ea9c9bf..7522e4f 100644 --- a/cyperf/models/agent_assignments.py +++ b/cyperf/models/agent_assignments.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_cpu_info.py b/cyperf/models/agent_cpu_info.py index ff56423..53c0680 100644 --- a/cyperf/models/agent_cpu_info.py +++ b/cyperf/models/agent_cpu_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_features.py b/cyperf/models/agent_features.py index 4631d9d..02e89b0 100644 --- a/cyperf/models/agent_features.py +++ b/cyperf/models/agent_features.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_optimization_mode.py b/cyperf/models/agent_optimization_mode.py index 26183c2..a30a1fe 100644 --- a/cyperf/models/agent_optimization_mode.py +++ b/cyperf/models/agent_optimization_mode.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_release.py b/cyperf/models/agent_release.py index 02852a3..3b209b6 100644 --- a/cyperf/models/agent_release.py +++ b/cyperf/models/agent_release.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_reservation.py b/cyperf/models/agent_reservation.py index 4cf6977..4a75a50 100644 --- a/cyperf/models/agent_reservation.py +++ b/cyperf/models/agent_reservation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agent_to_be_rebooted.py b/cyperf/models/agent_to_be_rebooted.py index 8d8fcf5..11c2361 100644 --- a/cyperf/models/agent_to_be_rebooted.py +++ b/cyperf/models/agent_to_be_rebooted.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/agents_group.py b/cyperf/models/agents_group.py index cce0959..b1d9e57 100644 --- a/cyperf/models/agents_group.py +++ b/cyperf/models/agents_group.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/api_link.py b/cyperf/models/api_link.py index ddf20df..dbebaac 100644 --- a/cyperf/models/api_link.py +++ b/cyperf/models/api_link.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/api_relationship.py b/cyperf/models/api_relationship.py index 8cc294f..7d967a5 100644 --- a/cyperf/models/api_relationship.py +++ b/cyperf/models/api_relationship.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/app_exchange.py b/cyperf/models/app_exchange.py index 79fb1fc..5c9b55d 100644 --- a/cyperf/models/app_exchange.py +++ b/cyperf/models/app_exchange.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/app_flow.py b/cyperf/models/app_flow.py index e0346b7..3f57168 100644 --- a/cyperf/models/app_flow.py +++ b/cyperf/models/app_flow.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/app_flow_desc.py b/cyperf/models/app_flow_desc.py index 42cf3cd..0f4f46a 100644 --- a/cyperf/models/app_flow_desc.py +++ b/cyperf/models/app_flow_desc.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/app_flow_input.py b/cyperf/models/app_flow_input.py index 01af86c..9ab63d3 100644 --- a/cyperf/models/app_flow_input.py +++ b/cyperf/models/app_flow_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/app_flow_input_find_param.py b/cyperf/models/app_flow_input_find_param.py index 13bd6f2..89348d4 100644 --- a/cyperf/models/app_flow_input_find_param.py +++ b/cyperf/models/app_flow_input_find_param.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/app_id.py b/cyperf/models/app_id.py index b40ddf7..ab46745 100644 --- a/cyperf/models/app_id.py +++ b/cyperf/models/app_id.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/app_mode.py b/cyperf/models/app_mode.py index 4dca4fc..07ab234 100644 --- a/cyperf/models/app_mode.py +++ b/cyperf/models/app_mode.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/application.py b/cyperf/models/application.py index 6779287..3891e24 100644 --- a/cyperf/models/application.py +++ b/cyperf/models/application.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/application_profile.py b/cyperf/models/application_profile.py index 2b90483..229efa0 100644 --- a/cyperf/models/application_profile.py +++ b/cyperf/models/application_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/application_type.py b/cyperf/models/application_type.py index b05b4e4..38e0565 100644 --- a/cyperf/models/application_type.py +++ b/cyperf/models/application_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/appsec_app.py b/cyperf/models/appsec_app.py index 48fa646..1d0f31a 100644 --- a/cyperf/models/appsec_app.py +++ b/cyperf/models/appsec_app.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/appsec_app_metadata.py b/cyperf/models/appsec_app_metadata.py index 907a4ae..a07e24a 100644 --- a/cyperf/models/appsec_app_metadata.py +++ b/cyperf/models/appsec_app_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/appsec_app_metadata_keywords_inner.py b/cyperf/models/appsec_app_metadata_keywords_inner.py index c8f39ce..eeeee36 100644 --- a/cyperf/models/appsec_app_metadata_keywords_inner.py +++ b/cyperf/models/appsec_app_metadata_keywords_inner.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/appsec_attack.py b/cyperf/models/appsec_attack.py index cbbd65a..e059cb2 100644 --- a/cyperf/models/appsec_attack.py +++ b/cyperf/models/appsec_attack.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/appsec_config.py b/cyperf/models/appsec_config.py index f861a8a..53dcf64 100644 --- a/cyperf/models/appsec_config.py +++ b/cyperf/models/appsec_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/archive_info.py b/cyperf/models/archive_info.py index a8ebe18..4bfeba1 100644 --- a/cyperf/models/archive_info.py +++ b/cyperf/models/archive_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/array_v2_element_metadata.py b/cyperf/models/array_v2_element_metadata.py index b10aac2..07fdfef 100644 --- a/cyperf/models/array_v2_element_metadata.py +++ b/cyperf/models/array_v2_element_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/async_context.py b/cyperf/models/async_context.py index bd6749b..2c563b0 100644 --- a/cyperf/models/async_context.py +++ b/cyperf/models/async_context.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/attack.py b/cyperf/models/attack.py index 370b372..0438bf4 100644 --- a/cyperf/models/attack.py +++ b/cyperf/models/attack.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/attack_action.py b/cyperf/models/attack_action.py index f261776..0670016 100644 --- a/cyperf/models/attack_action.py +++ b/cyperf/models/attack_action.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/attack_metadata.py b/cyperf/models/attack_metadata.py index d0306f8..6908e5e 100644 --- a/cyperf/models/attack_metadata.py +++ b/cyperf/models/attack_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/attack_objectives_and_timeline.py b/cyperf/models/attack_objectives_and_timeline.py index 21bd090..e070c86 100644 --- a/cyperf/models/attack_objectives_and_timeline.py +++ b/cyperf/models/attack_objectives_and_timeline.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/attack_profile.py b/cyperf/models/attack_profile.py index 7ac4116..b520747 100644 --- a/cyperf/models/attack_profile.py +++ b/cyperf/models/attack_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/attack_timeline_segment.py b/cyperf/models/attack_timeline_segment.py index 1d83e28..2fce395 100644 --- a/cyperf/models/attack_timeline_segment.py +++ b/cyperf/models/attack_timeline_segment.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/attack_track.py b/cyperf/models/attack_track.py index 8a266c3..2e80c34 100644 --- a/cyperf/models/attack_track.py +++ b/cyperf/models/attack_track.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/auth_method_type.py b/cyperf/models/auth_method_type.py index a3ec0a0..a06cb7e 100644 --- a/cyperf/models/auth_method_type.py +++ b/cyperf/models/auth_method_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/auth_profile.py b/cyperf/models/auth_profile.py index 51584a5..1d549cb 100644 --- a/cyperf/models/auth_profile.py +++ b/cyperf/models/auth_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/auth_profile_metadata.py b/cyperf/models/auth_profile_metadata.py index 213454f..fe2fd75 100644 --- a/cyperf/models/auth_profile_metadata.py +++ b/cyperf/models/auth_profile_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/auth_settings.py b/cyperf/models/auth_settings.py index ccab464..4ee91c0 100644 --- a/cyperf/models/auth_settings.py +++ b/cyperf/models/auth_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/authenticate200_response.py b/cyperf/models/authenticate200_response.py index 14d2a9a..fc836e9 100644 --- a/cyperf/models/authenticate200_response.py +++ b/cyperf/models/authenticate200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/authentication_settings.py b/cyperf/models/authentication_settings.py index e7db0d2..05afd53 100644 --- a/cyperf/models/authentication_settings.py +++ b/cyperf/models/authentication_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/automatic_ip_type.py b/cyperf/models/automatic_ip_type.py index 763accd..6848eed 100644 --- a/cyperf/models/automatic_ip_type.py +++ b/cyperf/models/automatic_ip_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/basic_auth_profile.py b/cyperf/models/basic_auth_profile.py index 311e829..0c8d08d 100644 --- a/cyperf/models/basic_auth_profile.py +++ b/cyperf/models/basic_auth_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/broker.py b/cyperf/models/broker.py index 8c84a17..d42b9c1 100644 --- a/cyperf/models/broker.py +++ b/cyperf/models/broker.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/capture_input.py b/cyperf/models/capture_input.py index 4c3fd3e..34ec906 100644 --- a/cyperf/models/capture_input.py +++ b/cyperf/models/capture_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/capture_input_find_param.py b/cyperf/models/capture_input_find_param.py index e57949b..bb1c6b0 100644 --- a/cyperf/models/capture_input_find_param.py +++ b/cyperf/models/capture_input_find_param.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/capture_settings.py b/cyperf/models/capture_settings.py index 889a638..3890818 100644 --- a/cyperf/models/capture_settings.py +++ b/cyperf/models/capture_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/category.py b/cyperf/models/category.py index 6c7c153..f9c32c4 100644 --- a/cyperf/models/category.py +++ b/cyperf/models/category.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/category_filter.py b/cyperf/models/category_filter.py index 4a6025b..3ab5854 100644 --- a/cyperf/models/category_filter.py +++ b/cyperf/models/category_filter.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/category_value.py b/cyperf/models/category_value.py index ec9486b..45ec445 100644 --- a/cyperf/models/category_value.py +++ b/cyperf/models/category_value.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/cert_config.py b/cyperf/models/cert_config.py index b103db8..0472eeb 100644 --- a/cyperf/models/cert_config.py +++ b/cyperf/models/cert_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/certificate.py b/cyperf/models/certificate.py index e8a6868..4c04d06 100644 --- a/cyperf/models/certificate.py +++ b/cyperf/models/certificate.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index 330ab40..3a022b0 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/choice.py b/cyperf/models/choice.py index 83aa523..f4eebfe 100644 --- a/cyperf/models/choice.py +++ b/cyperf/models/choice.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/cipher_tls12.py b/cyperf/models/cipher_tls12.py index 37a85c1..9a0d727 100644 --- a/cyperf/models/cipher_tls12.py +++ b/cyperf/models/cipher_tls12.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/cipher_tls13.py b/cyperf/models/cipher_tls13.py index 3327e12..c2a30c1 100644 --- a/cyperf/models/cipher_tls13.py +++ b/cyperf/models/cipher_tls13.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/cisco_any_connect_settings.py b/cyperf/models/cisco_any_connect_settings.py index 5808990..6584b92 100644 --- a/cyperf/models/cisco_any_connect_settings.py +++ b/cyperf/models/cisco_any_connect_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/cisco_encapsulation.py b/cyperf/models/cisco_encapsulation.py index 8917377..b6b6db5 100644 --- a/cyperf/models/cisco_encapsulation.py +++ b/cyperf/models/cisco_encapsulation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/classical_signature_algorithm_tls13.py b/cyperf/models/classical_signature_algorithm_tls13.py index 9ebe192..cb8ce0f 100644 --- a/cyperf/models/classical_signature_algorithm_tls13.py +++ b/cyperf/models/classical_signature_algorithm_tls13.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/clear_compute_resources_ownership_operation.py b/cyperf/models/clear_compute_resources_ownership_operation.py index 8523d78..73cce25 100644 --- a/cyperf/models/clear_compute_resources_ownership_operation.py +++ b/cyperf/models/clear_compute_resources_ownership_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/clear_front_panel_ports_ownership_operation.py b/cyperf/models/clear_front_panel_ports_ownership_operation.py index 4f4129f..247e3a5 100644 --- a/cyperf/models/clear_front_panel_ports_ownership_operation.py +++ b/cyperf/models/clear_front_panel_ports_ownership_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/clear_ports_ownership_operation.py b/cyperf/models/clear_ports_ownership_operation.py index 4083b60..44a20c9 100644 --- a/cyperf/models/clear_ports_ownership_operation.py +++ b/cyperf/models/clear_ports_ownership_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/command.py b/cyperf/models/command.py index a79cd07..02be5e4 100644 --- a/cyperf/models/command.py +++ b/cyperf/models/command.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/command_metadata.py b/cyperf/models/command_metadata.py index d8158ee..26b55f3 100644 --- a/cyperf/models/command_metadata.py +++ b/cyperf/models/command_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/composite_pqc_signature_algorithm_tls13.py b/cyperf/models/composite_pqc_signature_algorithm_tls13.py index c69163f..dd08f02 100644 --- a/cyperf/models/composite_pqc_signature_algorithm_tls13.py +++ b/cyperf/models/composite_pqc_signature_algorithm_tls13.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/compute_node.py b/cyperf/models/compute_node.py index ca2bd1d..0d0e4b9 100644 --- a/cyperf/models/compute_node.py +++ b/cyperf/models/compute_node.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/compute_resource.py b/cyperf/models/compute_resource.py index 8e5d924..0bf0f74 100644 --- a/cyperf/models/compute_resource.py +++ b/cyperf/models/compute_resource.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/compute_resources_by_controller.py b/cyperf/models/compute_resources_by_controller.py index 88408a5..1cc7701 100644 --- a/cyperf/models/compute_resources_by_controller.py +++ b/cyperf/models/compute_resources_by_controller.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/compute_resources_by_node.py b/cyperf/models/compute_resources_by_node.py index 7340aa4..b160839 100644 --- a/cyperf/models/compute_resources_by_node.py +++ b/cyperf/models/compute_resources_by_node.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/config.py b/cyperf/models/config.py index 6cd7440..883177c 100644 --- a/cyperf/models/config.py +++ b/cyperf/models/config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/config_category.py b/cyperf/models/config_category.py index f525067..350f0b4 100644 --- a/cyperf/models/config_category.py +++ b/cyperf/models/config_category.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/config_id.py b/cyperf/models/config_id.py index e9143c0..b92dd20 100644 --- a/cyperf/models/config_id.py +++ b/cyperf/models/config_id.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/config_metadata.py b/cyperf/models/config_metadata.py index eda89e7..0133f37 100644 --- a/cyperf/models/config_metadata.py +++ b/cyperf/models/config_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/config_sub_category.py b/cyperf/models/config_sub_category.py index 1609ea0..3d06f37 100644 --- a/cyperf/models/config_sub_category.py +++ b/cyperf/models/config_sub_category.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/config_validation.py b/cyperf/models/config_validation.py index 37015e7..8313837 100644 --- a/cyperf/models/config_validation.py +++ b/cyperf/models/config_validation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/conflict.py b/cyperf/models/conflict.py index b63963d..ef196bb 100644 --- a/cyperf/models/conflict.py +++ b/cyperf/models/conflict.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/connection.py b/cyperf/models/connection.py index 02a48b7..75356ad 100644 --- a/cyperf/models/connection.py +++ b/cyperf/models/connection.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/connection_persistence.py b/cyperf/models/connection_persistence.py index b742035..7e2e08f 100644 --- a/cyperf/models/connection_persistence.py +++ b/cyperf/models/connection_persistence.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/consumer.py b/cyperf/models/consumer.py index 2e621e6..429849c 100644 --- a/cyperf/models/consumer.py +++ b/cyperf/models/consumer.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/content_block.py b/cyperf/models/content_block.py index 3831fde..f9306ca 100644 --- a/cyperf/models/content_block.py +++ b/cyperf/models/content_block.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/controller.py b/cyperf/models/controller.py index 0acffc6..c025ca3 100644 --- a/cyperf/models/controller.py +++ b/cyperf/models/controller.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/counted_feature_consumer.py b/cyperf/models/counted_feature_consumer.py index 9e406ba..3dda652 100644 --- a/cyperf/models/counted_feature_consumer.py +++ b/cyperf/models/counted_feature_consumer.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/counted_feature_stats.py b/cyperf/models/counted_feature_stats.py index ac2906f..20c4773 100644 --- a/cyperf/models/counted_feature_stats.py +++ b/cyperf/models/counted_feature_stats.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/create_app_operation.py b/cyperf/models/create_app_operation.py index bb516ef..27b947e 100644 --- a/cyperf/models/create_app_operation.py +++ b/cyperf/models/create_app_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/create_app_or_attack_operation_input.py b/cyperf/models/create_app_or_attack_operation_input.py index 6028d4d..04ab7e7 100644 --- a/cyperf/models/create_app_or_attack_operation_input.py +++ b/cyperf/models/create_app_or_attack_operation_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/custom_dashboards.py b/cyperf/models/custom_dashboards.py index 080b20c..08f74d7 100644 --- a/cyperf/models/custom_dashboards.py +++ b/cyperf/models/custom_dashboards.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/custom_import_handler.py b/cyperf/models/custom_import_handler.py index 8f35a0f..5eff3cc 100644 --- a/cyperf/models/custom_import_handler.py +++ b/cyperf/models/custom_import_handler.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/custom_sequence.py b/cyperf/models/custom_sequence.py index ccbf7ed..36321e9 100644 --- a/cyperf/models/custom_sequence.py +++ b/cyperf/models/custom_sequence.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/custom_stat.py b/cyperf/models/custom_stat.py index eaa3bdf..3be11bc 100644 --- a/cyperf/models/custom_stat.py +++ b/cyperf/models/custom_stat.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/dashboard.py b/cyperf/models/dashboard.py index f62c7b9..5ad2d6e 100644 --- a/cyperf/models/dashboard.py +++ b/cyperf/models/dashboard.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/data_type.py b/cyperf/models/data_type.py index ec5c84a..0c08e10 100644 --- a/cyperf/models/data_type.py +++ b/cyperf/models/data_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/data_type_values_inner.py b/cyperf/models/data_type_values_inner.py index 6e5a6da..c6dac24 100644 --- a/cyperf/models/data_type_values_inner.py +++ b/cyperf/models/data_type_values_inner.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/definition.py b/cyperf/models/definition.py index 0629239..92ca0fa 100644 --- a/cyperf/models/definition.py +++ b/cyperf/models/definition.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/delete_input.py b/cyperf/models/delete_input.py index 490d940..f0a6bb7 100644 --- a/cyperf/models/delete_input.py +++ b/cyperf/models/delete_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/dh_p1_group.py b/cyperf/models/dh_p1_group.py index 3b7ff11..13ec1eb 100644 --- a/cyperf/models/dh_p1_group.py +++ b/cyperf/models/dh_p1_group.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/diagnostic_component.py b/cyperf/models/diagnostic_component.py index 5630071..508ff89 100644 --- a/cyperf/models/diagnostic_component.py +++ b/cyperf/models/diagnostic_component.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/diagnostic_component_context.py b/cyperf/models/diagnostic_component_context.py index 0079a66..db38707 100644 --- a/cyperf/models/diagnostic_component_context.py +++ b/cyperf/models/diagnostic_component_context.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/diagnostic_options.py b/cyperf/models/diagnostic_options.py index 739aa53..50d68ab 100644 --- a/cyperf/models/diagnostic_options.py +++ b/cyperf/models/diagnostic_options.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/disk_usage.py b/cyperf/models/disk_usage.py index 10b4637..87652d6 100644 --- a/cyperf/models/disk_usage.py +++ b/cyperf/models/disk_usage.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/dismiss_operation.py b/cyperf/models/dismiss_operation.py index ccfeb99..7b53847 100644 --- a/cyperf/models/dismiss_operation.py +++ b/cyperf/models/dismiss_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/dns_resolver.py b/cyperf/models/dns_resolver.py index c6969f9..56efa09 100644 --- a/cyperf/models/dns_resolver.py +++ b/cyperf/models/dns_resolver.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/dns_server.py b/cyperf/models/dns_server.py index dfb5eaf..d130fba 100644 --- a/cyperf/models/dns_server.py +++ b/cyperf/models/dns_server.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/dtls_settings.py b/cyperf/models/dtls_settings.py index 4ea3888..4ce0859 100644 --- a/cyperf/models/dtls_settings.py +++ b/cyperf/models/dtls_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/dut_network.py b/cyperf/models/dut_network.py index 3e5ff3f..62b72d9 100644 --- a/cyperf/models/dut_network.py +++ b/cyperf/models/dut_network.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/dut_range.py b/cyperf/models/dut_range.py index fa81786..cde08e5 100644 --- a/cyperf/models/dut_range.py +++ b/cyperf/models/dut_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/edit_action_input.py b/cyperf/models/edit_action_input.py index 660ad15..8f413ba 100644 --- a/cyperf/models/edit_action_input.py +++ b/cyperf/models/edit_action_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/edit_app_operation.py b/cyperf/models/edit_app_operation.py index 33e5063..06de76a 100644 --- a/cyperf/models/edit_app_operation.py +++ b/cyperf/models/edit_app_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/effective_ports.py b/cyperf/models/effective_ports.py index 3659bee..6127123 100644 --- a/cyperf/models/effective_ports.py +++ b/cyperf/models/effective_ports.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/emulated_router.py b/cyperf/models/emulated_router.py index 4d93cec..66c1df2 100644 --- a/cyperf/models/emulated_router.py +++ b/cyperf/models/emulated_router.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/emulated_router_range.py b/cyperf/models/emulated_router_range.py index 1fe348d..327b5cf 100644 --- a/cyperf/models/emulated_router_range.py +++ b/cyperf/models/emulated_router_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/emulated_subnet_config.py b/cyperf/models/emulated_subnet_config.py index cb47de6..e517128 100644 --- a/cyperf/models/emulated_subnet_config.py +++ b/cyperf/models/emulated_subnet_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/enc_p1_algorithm.py b/cyperf/models/enc_p1_algorithm.py index 9517bb7..fbd07a0 100644 --- a/cyperf/models/enc_p1_algorithm.py +++ b/cyperf/models/enc_p1_algorithm.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/enc_p2_algorithm.py b/cyperf/models/enc_p2_algorithm.py index 31674bd..668b7b2 100644 --- a/cyperf/models/enc_p2_algorithm.py +++ b/cyperf/models/enc_p2_algorithm.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/endpoint.py b/cyperf/models/endpoint.py index f067242..20db042 100644 --- a/cyperf/models/endpoint.py +++ b/cyperf/models/endpoint.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/entitlement_code_info.py b/cyperf/models/entitlement_code_info.py index a56490d..86755cc 100644 --- a/cyperf/models/entitlement_code_info.py +++ b/cyperf/models/entitlement_code_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/entitlement_code_request.py b/cyperf/models/entitlement_code_request.py index 0c98cba..4db354c 100644 --- a/cyperf/models/entitlement_code_request.py +++ b/cyperf/models/entitlement_code_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/enum.py b/cyperf/models/enum.py index b5435d5..780b1bc 100644 --- a/cyperf/models/enum.py +++ b/cyperf/models/enum.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/error_description.py b/cyperf/models/error_description.py index 9cb79f2..567f892 100644 --- a/cyperf/models/error_description.py +++ b/cyperf/models/error_description.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/error_response.py b/cyperf/models/error_response.py index f18fe1b..b2ca93f 100644 --- a/cyperf/models/error_response.py +++ b/cyperf/models/error_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/esp_over_udp_settings.py b/cyperf/models/esp_over_udp_settings.py index 11ba156..45fb8be 100644 --- a/cyperf/models/esp_over_udp_settings.py +++ b/cyperf/models/esp_over_udp_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/eth_range.py b/cyperf/models/eth_range.py index 8939eb3..8f9b3ca 100644 --- a/cyperf/models/eth_range.py +++ b/cyperf/models/eth_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/eula_details.py b/cyperf/models/eula_details.py index 6f3f952..5a26c2e 100644 --- a/cyperf/models/eula_details.py +++ b/cyperf/models/eula_details.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/eula_summary.py b/cyperf/models/eula_summary.py index 4342389..b0f801c 100644 --- a/cyperf/models/eula_summary.py +++ b/cyperf/models/eula_summary.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/exchange.py b/cyperf/models/exchange.py index c6914fd..0101e44 100644 --- a/cyperf/models/exchange.py +++ b/cyperf/models/exchange.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/exchange_order.py b/cyperf/models/exchange_order.py index 6ee8c5e..6393d37 100644 --- a/cyperf/models/exchange_order.py +++ b/cyperf/models/exchange_order.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/exchange_payload.py b/cyperf/models/exchange_payload.py index 6d98999..eaab1c6 100644 --- a/cyperf/models/exchange_payload.py +++ b/cyperf/models/exchange_payload.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/expected_disk_space.py b/cyperf/models/expected_disk_space.py index 10fe944..f33ff82 100644 --- a/cyperf/models/expected_disk_space.py +++ b/cyperf/models/expected_disk_space.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/expected_disk_space_message.py b/cyperf/models/expected_disk_space_message.py index c68c435..2f8e6f0 100644 --- a/cyperf/models/expected_disk_space_message.py +++ b/cyperf/models/expected_disk_space_message.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/expected_disk_space_pretty_size.py b/cyperf/models/expected_disk_space_pretty_size.py index f616efb..71b2466 100644 --- a/cyperf/models/expected_disk_space_pretty_size.py +++ b/cyperf/models/expected_disk_space_pretty_size.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/expected_disk_space_size.py b/cyperf/models/expected_disk_space_size.py index 4cbadb4..79d6035 100644 --- a/cyperf/models/expected_disk_space_size.py +++ b/cyperf/models/expected_disk_space_size.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/export_all_operation.py b/cyperf/models/export_all_operation.py index 369929b..8176036 100644 --- a/cyperf/models/export_all_operation.py +++ b/cyperf/models/export_all_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/export_apps_operation_input.py b/cyperf/models/export_apps_operation_input.py index fd49745..ac0ee53 100644 --- a/cyperf/models/export_apps_operation_input.py +++ b/cyperf/models/export_apps_operation_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/export_files_operation_input.py b/cyperf/models/export_files_operation_input.py index 31aeba9..d0a2977 100644 --- a/cyperf/models/export_files_operation_input.py +++ b/cyperf/models/export_files_operation_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/export_files_request.py b/cyperf/models/export_files_request.py index 03dacf9..32f1d41 100644 --- a/cyperf/models/export_files_request.py +++ b/cyperf/models/export_files_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/export_package_operation.py b/cyperf/models/export_package_operation.py index c3f2bd9..dd47de7 100644 --- a/cyperf/models/export_package_operation.py +++ b/cyperf/models/export_package_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/external_resource_info.py b/cyperf/models/external_resource_info.py index 3fdb497..7eddfcd 100644 --- a/cyperf/models/external_resource_info.py +++ b/cyperf/models/external_resource_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/f5_encapsulation.py b/cyperf/models/f5_encapsulation.py index ed73979..533079f 100644 --- a/cyperf/models/f5_encapsulation.py +++ b/cyperf/models/f5_encapsulation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/f5_settings.py b/cyperf/models/f5_settings.py index d437ade..2a72e41 100644 --- a/cyperf/models/f5_settings.py +++ b/cyperf/models/f5_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/feature.py b/cyperf/models/feature.py index 5698b78..c190523 100644 --- a/cyperf/models/feature.py +++ b/cyperf/models/feature.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/feature_reservation.py b/cyperf/models/feature_reservation.py index 916ae58..ea123de 100644 --- a/cyperf/models/feature_reservation.py +++ b/cyperf/models/feature_reservation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/feature_reservation_reserve.py b/cyperf/models/feature_reservation_reserve.py index 4c93cec..bf3b057 100644 --- a/cyperf/models/feature_reservation_reserve.py +++ b/cyperf/models/feature_reservation_reserve.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/file_metadata.py b/cyperf/models/file_metadata.py index d68e1bd..8a02b18 100644 --- a/cyperf/models/file_metadata.py +++ b/cyperf/models/file_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/file_value.py b/cyperf/models/file_value.py index 8ce2752..1a92c96 100644 --- a/cyperf/models/file_value.py +++ b/cyperf/models/file_value.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/filter.py b/cyperf/models/filter.py index 8a40b69..c5c8b34 100644 --- a/cyperf/models/filter.py +++ b/cyperf/models/filter.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/filtered_stat.py b/cyperf/models/filtered_stat.py index dfacd06..0856fc3 100644 --- a/cyperf/models/filtered_stat.py +++ b/cyperf/models/filtered_stat.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/find_param_matches_operation.py b/cyperf/models/find_param_matches_operation.py index 92eee16..9fc2e4a 100644 --- a/cyperf/models/find_param_matches_operation.py +++ b/cyperf/models/find_param_matches_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/formatted_description.py b/cyperf/models/formatted_description.py index d6a7531..f9dab7d 100644 --- a/cyperf/models/formatted_description.py +++ b/cyperf/models/formatted_description.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/fortinet_encapsulation.py b/cyperf/models/fortinet_encapsulation.py index 860b9c5..a8ec577 100644 --- a/cyperf/models/fortinet_encapsulation.py +++ b/cyperf/models/fortinet_encapsulation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/fortinet_settings.py b/cyperf/models/fortinet_settings.py index b5a6676..816ede3 100644 --- a/cyperf/models/fortinet_settings.py +++ b/cyperf/models/fortinet_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/front_panel.py b/cyperf/models/front_panel.py index 67c2c9e..87943b4 100644 --- a/cyperf/models/front_panel.py +++ b/cyperf/models/front_panel.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/front_panel_ports_by_controller.py b/cyperf/models/front_panel_ports_by_controller.py index ec9f631..5ddb56e 100644 --- a/cyperf/models/front_panel_ports_by_controller.py +++ b/cyperf/models/front_panel_ports_by_controller.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/fulfillment_request.py b/cyperf/models/fulfillment_request.py index 572bbe3..ea4a210 100644 --- a/cyperf/models/fulfillment_request.py +++ b/cyperf/models/fulfillment_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/generate_all_operation.py b/cyperf/models/generate_all_operation.py index e358dfa..12c210f 100644 --- a/cyperf/models/generate_all_operation.py +++ b/cyperf/models/generate_all_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/generate_csv_reports_operation.py b/cyperf/models/generate_csv_reports_operation.py index 0b3a613..f11a283 100644 --- a/cyperf/models/generate_csv_reports_operation.py +++ b/cyperf/models/generate_csv_reports_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/generate_pdf_report_operation.py b/cyperf/models/generate_pdf_report_operation.py index 24a453a..7cf9d5b 100644 --- a/cyperf/models/generate_pdf_report_operation.py +++ b/cyperf/models/generate_pdf_report_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/generic_file.py b/cyperf/models/generic_file.py index dec088b..db4a10d 100644 --- a/cyperf/models/generic_file.py +++ b/cyperf/models/generic_file.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_agents200_response.py b/cyperf/models/get_agents200_response.py index 9f2e109..16535f2 100644 --- a/cyperf/models/get_agents200_response.py +++ b/cyperf/models/get_agents200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_agents200_response_one_of.py b/cyperf/models/get_agents200_response_one_of.py index ac0fbb5..5be31a2 100644 --- a/cyperf/models/get_agents200_response_one_of.py +++ b/cyperf/models/get_agents200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_agents_tags200_response.py b/cyperf/models/get_agents_tags200_response.py index b75c755..49d4244 100644 --- a/cyperf/models/get_agents_tags200_response.py +++ b/cyperf/models/get_agents_tags200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_agents_tags200_response_one_of.py b/cyperf/models/get_agents_tags200_response_one_of.py index 52df7eb..a43111b 100644 --- a/cyperf/models/get_agents_tags200_response_one_of.py +++ b/cyperf/models/get_agents_tags200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_async_operation_result200_response.py b/cyperf/models/get_async_operation_result200_response.py index d4473b8..a524cd7 100644 --- a/cyperf/models/get_async_operation_result200_response.py +++ b/cyperf/models/get_async_operation_result200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_brokers200_response.py b/cyperf/models/get_brokers200_response.py index af1490a..0a8e4f2 100644 --- a/cyperf/models/get_brokers200_response.py +++ b/cyperf/models/get_brokers200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_brokers200_response_one_of.py b/cyperf/models/get_brokers200_response_one_of.py index 109a749..c414c0a 100644 --- a/cyperf/models/get_brokers200_response_one_of.py +++ b/cyperf/models/get_brokers200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_categories_operation.py b/cyperf/models/get_categories_operation.py index 14a6b40..af5e9b2 100644 --- a/cyperf/models/get_categories_operation.py +++ b/cyperf/models/get_categories_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_config_categorie_subcategories200_response.py b/cyperf/models/get_config_categorie_subcategories200_response.py index 09ccfda..ae4bc67 100644 --- a/cyperf/models/get_config_categorie_subcategories200_response.py +++ b/cyperf/models/get_config_categorie_subcategories200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py index 4538f05..a974ac3 100644 --- a/cyperf/models/get_config_categorie_subcategories200_response_one_of.py +++ b/cyperf/models/get_config_categorie_subcategories200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_config_categories200_response.py b/cyperf/models/get_config_categories200_response.py index 44e9a1b..3e084ac 100644 --- a/cyperf/models/get_config_categories200_response.py +++ b/cyperf/models/get_config_categories200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_config_categories200_response_one_of.py b/cyperf/models/get_config_categories200_response_one_of.py index 9cc0398..85a547b 100644 --- a/cyperf/models/get_config_categories200_response_one_of.py +++ b/cyperf/models/get_config_categories200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_configs200_response.py b/cyperf/models/get_configs200_response.py index 45826c3..279e726 100644 --- a/cyperf/models/get_configs200_response.py +++ b/cyperf/models/get_configs200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_configs200_response_one_of.py b/cyperf/models/get_configs200_response_one_of.py index 9732c55..6912994 100644 --- a/cyperf/models/get_configs200_response_one_of.py +++ b/cyperf/models/get_configs200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_controllers200_response.py b/cyperf/models/get_controllers200_response.py index 2e68d81..4e8495b 100644 --- a/cyperf/models/get_controllers200_response.py +++ b/cyperf/models/get_controllers200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_controllers200_response_one_of.py b/cyperf/models/get_controllers200_response_one_of.py index 07aae2d..068ae93 100644 --- a/cyperf/models/get_controllers200_response_one_of.py +++ b/cyperf/models/get_controllers200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_disk_usage_consumers200_response.py b/cyperf/models/get_disk_usage_consumers200_response.py index 2a8ee57..b05a761 100644 --- a/cyperf/models/get_disk_usage_consumers200_response.py +++ b/cyperf/models/get_disk_usage_consumers200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_disk_usage_consumers200_response_one_of.py b/cyperf/models/get_disk_usage_consumers200_response_one_of.py index b102098..8330331 100644 --- a/cyperf/models/get_disk_usage_consumers200_response_one_of.py +++ b/cyperf/models/get_disk_usage_consumers200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_license_async_operation_result200_response.py b/cyperf/models/get_license_async_operation_result200_response.py index 1dc2334..06bfa6c 100644 --- a/cyperf/models/get_license_async_operation_result200_response.py +++ b/cyperf/models/get_license_async_operation_result200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_license_servers200_response.py b/cyperf/models/get_license_servers200_response.py index d1d2606..64e1abb 100644 --- a/cyperf/models/get_license_servers200_response.py +++ b/cyperf/models/get_license_servers200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_license_servers200_response_one_of.py b/cyperf/models/get_license_servers200_response_one_of.py index 75dfe59..6e6ad75 100644 --- a/cyperf/models/get_license_servers200_response_one_of.py +++ b/cyperf/models/get_license_servers200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_notifications200_response.py b/cyperf/models/get_notifications200_response.py index 847fdac..3aae1e8 100644 --- a/cyperf/models/get_notifications200_response.py +++ b/cyperf/models/get_notifications200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_notifications200_response_one_of.py b/cyperf/models/get_notifications200_response_one_of.py index 6e61e3e..b91918c 100644 --- a/cyperf/models/get_notifications200_response_one_of.py +++ b/cyperf/models/get_notifications200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_application_types200_response.py b/cyperf/models/get_resources_application_types200_response.py index 92d9d1a..3f078d8 100644 --- a/cyperf/models/get_resources_application_types200_response.py +++ b/cyperf/models/get_resources_application_types200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_application_types200_response_one_of.py b/cyperf/models/get_resources_application_types200_response_one_of.py index a4778c2..b3bc263 100644 --- a/cyperf/models/get_resources_application_types200_response_one_of.py +++ b/cyperf/models/get_resources_application_types200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_apps200_response.py b/cyperf/models/get_resources_apps200_response.py index 0b9557c..4060018 100644 --- a/cyperf/models/get_resources_apps200_response.py +++ b/cyperf/models/get_resources_apps200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_apps200_response_one_of.py b/cyperf/models/get_resources_apps200_response_one_of.py index e36deea..f72c7c0 100644 --- a/cyperf/models/get_resources_apps200_response_one_of.py +++ b/cyperf/models/get_resources_apps200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_attacks200_response.py b/cyperf/models/get_resources_attacks200_response.py index 4227e3d..6cc4c19 100644 --- a/cyperf/models/get_resources_attacks200_response.py +++ b/cyperf/models/get_resources_attacks200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_attacks200_response_one_of.py b/cyperf/models/get_resources_attacks200_response_one_of.py index 520f321..40e1477 100644 --- a/cyperf/models/get_resources_attacks200_response_one_of.py +++ b/cyperf/models/get_resources_attacks200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_auth_profiles200_response.py b/cyperf/models/get_resources_auth_profiles200_response.py index e14d010..ffa4b9d 100644 --- a/cyperf/models/get_resources_auth_profiles200_response.py +++ b/cyperf/models/get_resources_auth_profiles200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_auth_profiles200_response_one_of.py b/cyperf/models/get_resources_auth_profiles200_response_one_of.py index a9d5db7..d5affe6 100644 --- a/cyperf/models/get_resources_auth_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_auth_profiles200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_certificates200_response.py b/cyperf/models/get_resources_certificates200_response.py index 3847182..95293d1 100644 --- a/cyperf/models/get_resources_certificates200_response.py +++ b/cyperf/models/get_resources_certificates200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_certificates200_response_one_of.py b/cyperf/models/get_resources_certificates200_response_one_of.py index e89b61a..ed39350 100644 --- a/cyperf/models/get_resources_certificates200_response_one_of.py +++ b/cyperf/models/get_resources_certificates200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_custom_import_operations200_response.py b/cyperf/models/get_resources_custom_import_operations200_response.py index 2cc4b11..fcce716 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response.py +++ b/cyperf/models/get_resources_custom_import_operations200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py index 5c4ad31..56e9e45 100644 --- a/cyperf/models/get_resources_custom_import_operations200_response_one_of.py +++ b/cyperf/models/get_resources_custom_import_operations200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_http_profiles200_response.py b/cyperf/models/get_resources_http_profiles200_response.py index a5ca4c2..6a4c2a3 100644 --- a/cyperf/models/get_resources_http_profiles200_response.py +++ b/cyperf/models/get_resources_http_profiles200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_http_profiles200_response_one_of.py b/cyperf/models/get_resources_http_profiles200_response_one_of.py index 85dda5f..7a92a32 100644 --- a/cyperf/models/get_resources_http_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_http_profiles200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_llm_api_profiles200_response.py b/cyperf/models/get_resources_llm_api_profiles200_response.py index eb1e813..abbfa48 100644 --- a/cyperf/models/get_resources_llm_api_profiles200_response.py +++ b/cyperf/models/get_resources_llm_api_profiles200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_resources_llm_api_profiles200_response_one_of.py b/cyperf/models/get_resources_llm_api_profiles200_response_one_of.py index d295f3a..ec3b250 100644 --- a/cyperf/models/get_resources_llm_api_profiles200_response_one_of.py +++ b/cyperf/models/get_resources_llm_api_profiles200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_result_files200_response.py b/cyperf/models/get_result_files200_response.py index 8107fb7..a12dcaa 100644 --- a/cyperf/models/get_result_files200_response.py +++ b/cyperf/models/get_result_files200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_result_files200_response_one_of.py b/cyperf/models/get_result_files200_response_one_of.py index 4c8f718..aea7e64 100644 --- a/cyperf/models/get_result_files200_response_one_of.py +++ b/cyperf/models/get_result_files200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_result_stats200_response.py b/cyperf/models/get_result_stats200_response.py index e13e44f..b02a1e5 100644 --- a/cyperf/models/get_result_stats200_response.py +++ b/cyperf/models/get_result_stats200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_result_stats200_response_one_of.py b/cyperf/models/get_result_stats200_response_one_of.py index fadc58e..069cdec 100644 --- a/cyperf/models/get_result_stats200_response_one_of.py +++ b/cyperf/models/get_result_stats200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_results200_response.py b/cyperf/models/get_results200_response.py index f30f6a4..1057524 100644 --- a/cyperf/models/get_results200_response.py +++ b/cyperf/models/get_results200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_results200_response_one_of.py b/cyperf/models/get_results200_response_one_of.py index 660a86f..e583090 100644 --- a/cyperf/models/get_results200_response_one_of.py +++ b/cyperf/models/get_results200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_results_tags200_response.py b/cyperf/models/get_results_tags200_response.py index d07c8f6..8a41145 100644 --- a/cyperf/models/get_results_tags200_response.py +++ b/cyperf/models/get_results_tags200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_results_tags200_response_one_of.py b/cyperf/models/get_results_tags200_response_one_of.py index 6770a33..3f0c74e 100644 --- a/cyperf/models/get_results_tags200_response_one_of.py +++ b/cyperf/models/get_results_tags200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_scenarios_operation.py b/cyperf/models/get_scenarios_operation.py index b849232..38cff20 100644 --- a/cyperf/models/get_scenarios_operation.py +++ b/cyperf/models/get_scenarios_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_session_meta200_response.py b/cyperf/models/get_session_meta200_response.py index dcdb316..3f6765d 100644 --- a/cyperf/models/get_session_meta200_response.py +++ b/cyperf/models/get_session_meta200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_session_meta200_response_one_of.py b/cyperf/models/get_session_meta200_response_one_of.py index c0f3aff..ec4d798 100644 --- a/cyperf/models/get_session_meta200_response_one_of.py +++ b/cyperf/models/get_session_meta200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_sessions200_response.py b/cyperf/models/get_sessions200_response.py index 092e45f..0523e12 100644 --- a/cyperf/models/get_sessions200_response.py +++ b/cyperf/models/get_sessions200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_sessions200_response_one_of.py b/cyperf/models/get_sessions200_response_one_of.py index bb10f2e..61cdc59 100644 --- a/cyperf/models/get_sessions200_response_one_of.py +++ b/cyperf/models/get_sessions200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_stats_plugins200_response.py b/cyperf/models/get_stats_plugins200_response.py index a8058b3..dbacd57 100644 --- a/cyperf/models/get_stats_plugins200_response.py +++ b/cyperf/models/get_stats_plugins200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_stats_plugins200_response_one_of.py b/cyperf/models/get_stats_plugins200_response_one_of.py index 657bce2..7ec49b7 100644 --- a/cyperf/models/get_stats_plugins200_response_one_of.py +++ b/cyperf/models/get_stats_plugins200_response_one_of.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/get_strikes_operation.py b/cyperf/models/get_strikes_operation.py index e390792..7323750 100644 --- a/cyperf/models/get_strikes_operation.py +++ b/cyperf/models/get_strikes_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/group_tls13.py b/cyperf/models/group_tls13.py index b248820..9f6b7ec 100644 --- a/cyperf/models/group_tls13.py +++ b/cyperf/models/group_tls13.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/hash_p1_algorithm.py b/cyperf/models/hash_p1_algorithm.py index 2231026..dae3e40 100644 --- a/cyperf/models/hash_p1_algorithm.py +++ b/cyperf/models/hash_p1_algorithm.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/hash_p2_algorithm.py b/cyperf/models/hash_p2_algorithm.py index 202a6ac..3b67114 100644 --- a/cyperf/models/hash_p2_algorithm.py +++ b/cyperf/models/hash_p2_algorithm.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/health_check_config.py b/cyperf/models/health_check_config.py index 7d4cfd9..c427412 100644 --- a/cyperf/models/health_check_config.py +++ b/cyperf/models/health_check_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/health_issue.py b/cyperf/models/health_issue.py index 2f11b87..b7a590f 100644 --- a/cyperf/models/health_issue.py +++ b/cyperf/models/health_issue.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/host_id.py b/cyperf/models/host_id.py index 0cecfab..07c4421 100644 --- a/cyperf/models/host_id.py +++ b/cyperf/models/host_id.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/http_profile.py b/cyperf/models/http_profile.py index 2294599..36f7ed5 100644 --- a/cyperf/models/http_profile.py +++ b/cyperf/models/http_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/http_req_meta.py b/cyperf/models/http_req_meta.py index 4a3e5f6..25adbd0 100644 --- a/cyperf/models/http_req_meta.py +++ b/cyperf/models/http_req_meta.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/http_res_meta.py b/cyperf/models/http_res_meta.py index 8f5fa3f..8cc46f8 100644 --- a/cyperf/models/http_res_meta.py +++ b/cyperf/models/http_res_meta.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/http_version.py b/cyperf/models/http_version.py index 86e1c21..90e153e 100644 --- a/cyperf/models/http_version.py +++ b/cyperf/models/http_version.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/id_p_signature_algo.py b/cyperf/models/id_p_signature_algo.py index befb973..8a33028 100644 --- a/cyperf/models/id_p_signature_algo.py +++ b/cyperf/models/id_p_signature_algo.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/identification_config.py b/cyperf/models/identification_config.py index 4269215..fd37ed5 100644 --- a/cyperf/models/identification_config.py +++ b/cyperf/models/identification_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/import_all_operation.py b/cyperf/models/import_all_operation.py index 489b76b..18ba6ee 100644 --- a/cyperf/models/import_all_operation.py +++ b/cyperf/models/import_all_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/import_offline_license_result.py b/cyperf/models/import_offline_license_result.py index 3939594..44aab95 100644 --- a/cyperf/models/import_offline_license_result.py +++ b/cyperf/models/import_offline_license_result.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ingest_operation.py b/cyperf/models/ingest_operation.py index 34468b9..68c2a32 100644 --- a/cyperf/models/ingest_operation.py +++ b/cyperf/models/ingest_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/inner_ip_range.py b/cyperf/models/inner_ip_range.py index ad7a6ec..93905f3 100644 --- a/cyperf/models/inner_ip_range.py +++ b/cyperf/models/inner_ip_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/inner_ip_sec_range.py b/cyperf/models/inner_ip_sec_range.py index c072c58..a2b1216 100644 --- a/cyperf/models/inner_ip_sec_range.py +++ b/cyperf/models/inner_ip_sec_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com @@ -45,6 +45,7 @@ class InnerIPSecRange(BaseModel): identification_config: Optional[IdentificationConfig] = Field(default=None, alias="IdentificationConfig") local_sub_config: Optional[LocalSubnetConfig] = Field(default=None, alias="LocalSubConfig") multi_p2_over_p1: StrictBool = Field(alias="MultiP2OverP1") + pqckem_enabled: StrictBool = Field(alias="PQCKEMEnabled") public_peer: Annotated[str, Field(strict=True)] = Field(alias="PublicPeer") public_peer_increment: Annotated[str, Field(strict=True)] = Field(alias="PublicPeerIncrement") remote_access: Optional[RemoteAccess] = Field(default=None, alias="RemoteAccess") @@ -54,7 +55,7 @@ class InnerIPSecRange(BaseModel): tunnel_count_per_outer_ip: StrictInt = Field(alias="TunnelCountPerOuterIP") id: StrictStr links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "IdentificationConfig", "LocalSubConfig", "MultiP2OverP1", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] + __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "IdentificationConfig", "LocalSubConfig", "MultiP2OverP1", "PQCKEMEnabled", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] @field_validator('ip_sec_range_name') def ip_sec_range_name_validate_regular_expression(cls, value): @@ -175,6 +176,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "IdentificationConfig": IdentificationConfig.from_dict(obj["IdentificationConfig"]) if obj.get("IdentificationConfig") is not None else None, "LocalSubConfig": LocalSubnetConfig.from_dict(obj["LocalSubConfig"]) if obj.get("LocalSubConfig") is not None else None, "MultiP2OverP1": obj.get("MultiP2OverP1"), + "PQCKEMEnabled": obj.get("PQCKEMEnabled"), "PublicPeer": obj.get("PublicPeer"), "PublicPeerIncrement": obj.get("PublicPeerIncrement"), "RemoteAccess": RemoteAccess.from_dict(obj["RemoteAccess"]) if obj.get("RemoteAccess") is not None else None, diff --git a/cyperf/models/interface.py b/cyperf/models/interface.py index 5a354b6..e47779d 100644 --- a/cyperf/models/interface.py +++ b/cyperf/models/interface.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ip_mask.py b/cyperf/models/ip_mask.py index 4ec3078..b49e5c1 100644 --- a/cyperf/models/ip_mask.py +++ b/cyperf/models/ip_mask.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ip_network.py b/cyperf/models/ip_network.py index 60dd149..212b89c 100644 --- a/cyperf/models/ip_network.py +++ b/cyperf/models/ip_network.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ip_preference.py b/cyperf/models/ip_preference.py index 1104b13..a5f64cf 100644 --- a/cyperf/models/ip_preference.py +++ b/cyperf/models/ip_preference.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ip_range.py b/cyperf/models/ip_range.py index d29d5f0..c8b0d23 100644 --- a/cyperf/models/ip_range.py +++ b/cyperf/models/ip_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ip_sec_range.py b/cyperf/models/ip_sec_range.py index 77fd056..9c211a9 100644 --- a/cyperf/models/ip_sec_range.py +++ b/cyperf/models/ip_sec_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com @@ -49,6 +49,7 @@ class IPSecRange(BaseModel): inner_ip_sec_range: Optional[InnerIPSecRange] = Field(default=None, alias="InnerIPSecRange") local_sub_config: Optional[LocalSubnetConfig] = Field(default=None, alias="LocalSubConfig") multi_p2_over_p1: Optional[StrictBool] = Field(default=None, alias="MultiP2OverP1") + pqckem_enabled: Optional[StrictBool] = Field(default=None, alias="PQCKEMEnabled") protected_sub_config: Optional[ProtectedSubnetConfig] = Field(default=None, description="Deeprecated. Use RemoteSubConfig instead.", alias="ProtectedSubConfig") public_peer: Annotated[str, Field(strict=True)] = Field(alias="PublicPeer") public_peer_increment: Annotated[str, Field(strict=True)] = Field(alias="PublicPeerIncrement") @@ -59,7 +60,7 @@ class IPSecRange(BaseModel): tunnel_count_per_outer_ip: StrictInt = Field(alias="TunnelCountPerOuterIP") id: StrictStr links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "IdentificationConfig", "InnerIPSec", "InnerIPSecRange", "LocalSubConfig", "MultiP2OverP1", "ProtectedSubConfig", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] + __properties: ClassVar[List[str]] = ["AuthSettings", "IKEPhase1Config", "IKEPhase2Config", "IPSecRangeName", "IdentificationConfig", "InnerIPSec", "InnerIPSecRange", "LocalSubConfig", "MultiP2OverP1", "PQCKEMEnabled", "ProtectedSubConfig", "PublicPeer", "PublicPeerIncrement", "RemoteAccess", "RemoteSubConfig", "TestScenario", "Timers", "TunnelCountPerOuterIP", "id", "links"] @field_validator('ip_sec_range_name') def ip_sec_range_name_validate_regular_expression(cls, value): @@ -188,6 +189,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "InnerIPSecRange": InnerIPSecRange.from_dict(obj["InnerIPSecRange"]) if obj.get("InnerIPSecRange") is not None else None, "LocalSubConfig": LocalSubnetConfig.from_dict(obj["LocalSubConfig"]) if obj.get("LocalSubConfig") is not None else None, "MultiP2OverP1": obj.get("MultiP2OverP1"), + "PQCKEMEnabled": obj.get("PQCKEMEnabled"), "ProtectedSubConfig": ProtectedSubnetConfig.from_dict(obj["ProtectedSubConfig"]) if obj.get("ProtectedSubConfig") is not None else None, "PublicPeer": obj.get("PublicPeer"), "PublicPeerIncrement": obj.get("PublicPeerIncrement"), diff --git a/cyperf/models/ip_sec_stack.py b/cyperf/models/ip_sec_stack.py index f9a7014..2b4d194 100644 --- a/cyperf/models/ip_sec_stack.py +++ b/cyperf/models/ip_sec_stack.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ip_ver.py b/cyperf/models/ip_ver.py index 3cdb157..b4bbe66 100644 --- a/cyperf/models/ip_ver.py +++ b/cyperf/models/ip_ver.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/keyword.py b/cyperf/models/keyword.py index e4999eb..7c37df2 100644 --- a/cyperf/models/keyword.py +++ b/cyperf/models/keyword.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/layout_config.py b/cyperf/models/layout_config.py index 9820871..1a1cb27 100644 --- a/cyperf/models/layout_config.py +++ b/cyperf/models/layout_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/license.py b/cyperf/models/license.py index 89d97cd..ac917f7 100644 --- a/cyperf/models/license.py +++ b/cyperf/models/license.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/license_receipt.py b/cyperf/models/license_receipt.py index 578088c..d08bb1a 100644 --- a/cyperf/models/license_receipt.py +++ b/cyperf/models/license_receipt.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/license_server_metadata.py b/cyperf/models/license_server_metadata.py index 9f78ef9..ce3108d 100644 --- a/cyperf/models/license_server_metadata.py +++ b/cyperf/models/license_server_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/link.py b/cyperf/models/link.py index a49376f..a876ede 100644 --- a/cyperf/models/link.py +++ b/cyperf/models/link.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/llmapi_profile.py b/cyperf/models/llmapi_profile.py index 3b5fe79..98abdd7 100644 --- a/cyperf/models/llmapi_profile.py +++ b/cyperf/models/llmapi_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/load_config_operation.py b/cyperf/models/load_config_operation.py index b98e5f9..3413a39 100644 --- a/cyperf/models/load_config_operation.py +++ b/cyperf/models/load_config_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/local_subnet_config.py b/cyperf/models/local_subnet_config.py index 303751c..22910a9 100644 --- a/cyperf/models/local_subnet_config.py +++ b/cyperf/models/local_subnet_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/log_config.py b/cyperf/models/log_config.py index 3a96bf6..5385eb2 100644 --- a/cyperf/models/log_config.py +++ b/cyperf/models/log_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/log_level.py b/cyperf/models/log_level.py index 3678313..00cd916 100644 --- a/cyperf/models/log_level.py +++ b/cyperf/models/log_level.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/mac_dtls_stack.py b/cyperf/models/mac_dtls_stack.py index df6a7fa..7b5ff4d 100644 --- a/cyperf/models/mac_dtls_stack.py +++ b/cyperf/models/mac_dtls_stack.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/mapping_type.py b/cyperf/models/mapping_type.py index 5a000a4..0fc55cb 100644 --- a/cyperf/models/mapping_type.py +++ b/cyperf/models/mapping_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/marked_as_deleted.py b/cyperf/models/marked_as_deleted.py index 4578132..559ea13 100644 --- a/cyperf/models/marked_as_deleted.py +++ b/cyperf/models/marked_as_deleted.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/md2_tlv.py b/cyperf/models/md2_tlv.py index 9b87749..3990ed7 100644 --- a/cyperf/models/md2_tlv.py +++ b/cyperf/models/md2_tlv.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/media_file.py b/cyperf/models/media_file.py index 991c068..4b96519 100644 --- a/cyperf/models/media_file.py +++ b/cyperf/models/media_file.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/media_track.py b/cyperf/models/media_track.py index 1173235..979fc38 100644 --- a/cyperf/models/media_track.py +++ b/cyperf/models/media_track.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/metadata.py b/cyperf/models/metadata.py index 137c4e2..2647711 100644 --- a/cyperf/models/metadata.py +++ b/cyperf/models/metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/mos_mode.py b/cyperf/models/mos_mode.py index 368ebdb..558565f 100644 --- a/cyperf/models/mos_mode.py +++ b/cyperf/models/mos_mode.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/name_id_format.py b/cyperf/models/name_id_format.py index 61c071f..385fbe9 100644 --- a/cyperf/models/name_id_format.py +++ b/cyperf/models/name_id_format.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/name_server.py b/cyperf/models/name_server.py index a3c9a58..196f9f1 100644 --- a/cyperf/models/name_server.py +++ b/cyperf/models/name_server.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/network_mapping.py b/cyperf/models/network_mapping.py index 12c8201..7f43853 100644 --- a/cyperf/models/network_mapping.py +++ b/cyperf/models/network_mapping.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/network_meshing.py b/cyperf/models/network_meshing.py index e9ebd0a..19a2ad0 100644 --- a/cyperf/models/network_meshing.py +++ b/cyperf/models/network_meshing.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/network_profile.py b/cyperf/models/network_profile.py index b47054f..3cfb319 100644 --- a/cyperf/models/network_profile.py +++ b/cyperf/models/network_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/network_segment_base.py b/cyperf/models/network_segment_base.py index 5580ce5..0102a18 100644 --- a/cyperf/models/network_segment_base.py +++ b/cyperf/models/network_segment_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/nodes_by_controller.py b/cyperf/models/nodes_by_controller.py index 66b39f0..3508f0e 100644 --- a/cyperf/models/nodes_by_controller.py +++ b/cyperf/models/nodes_by_controller.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/nodes_power_cycle_operation.py b/cyperf/models/nodes_power_cycle_operation.py index 5c8903f..ecf18de 100644 --- a/cyperf/models/nodes_power_cycle_operation.py +++ b/cyperf/models/nodes_power_cycle_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/notification.py b/cyperf/models/notification.py index 5ad191c..ff91159 100644 --- a/cyperf/models/notification.py +++ b/cyperf/models/notification.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/notification_counts.py b/cyperf/models/notification_counts.py index d08e265..f2366cd 100644 --- a/cyperf/models/notification_counts.py +++ b/cyperf/models/notification_counts.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ntp_info.py b/cyperf/models/ntp_info.py index e105116..2520e63 100644 --- a/cyperf/models/ntp_info.py +++ b/cyperf/models/ntp_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/objective_type.py b/cyperf/models/objective_type.py index 8d74656..ef9d128 100644 --- a/cyperf/models/objective_type.py +++ b/cyperf/models/objective_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/objective_unit.py b/cyperf/models/objective_unit.py index 8b99d95..1bc71b4 100644 --- a/cyperf/models/objective_unit.py +++ b/cyperf/models/objective_unit.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/objective_value_entry.py b/cyperf/models/objective_value_entry.py index 7fb847a..24cd3eb 100644 --- a/cyperf/models/objective_value_entry.py +++ b/cyperf/models/objective_value_entry.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/objectives_and_timeline.py b/cyperf/models/objectives_and_timeline.py index f5bd81b..ab6e39b 100644 --- a/cyperf/models/objectives_and_timeline.py +++ b/cyperf/models/objectives_and_timeline.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/open_api_definitions.py b/cyperf/models/open_api_definitions.py index 4f9f5f9..9dd1deb 100644 --- a/cyperf/models/open_api_definitions.py +++ b/cyperf/models/open_api_definitions.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/p1_config.py b/cyperf/models/p1_config.py index 4c88af0..2b21dd2 100644 --- a/cyperf/models/p1_config.py +++ b/cyperf/models/p1_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com @@ -23,6 +23,7 @@ from cyperf.models.dh_p1_group import DhP1Group from cyperf.models.enc_p1_algorithm import EncP1Algorithm from cyperf.models.hash_p1_algorithm import HashP1Algorithm +from cyperf.models.pqc_kem_group import PqcKemGroup from cyperf.models.prf_p1_algorithm import PrfP1Algorithm from typing import Optional, Set, Union from typing_extensions import Self @@ -40,8 +41,9 @@ class P1Config(BaseModel): ppk_enabled: StrictBool = Field(alias="PPKEnabled") ppkid: StrictStr = Field(alias="PPKId") ppk_mandatory: StrictStr = Field(alias="PPKMandatory") + pqckem_round: List[PqcKemGroup] = Field(alias="PQCKEMRound") prf_algorithm: PrfP1Algorithm = Field(alias="PrfAlgorithm") - __properties: ClassVar[List[str]] = ["DHGroup", "EncAlgorithm", "HashAlgorithm", "InitialContact", "Lifetime", "PPKEnabled", "PPKId", "PPKMandatory", "PrfAlgorithm"] + __properties: ClassVar[List[str]] = ["DHGroup", "EncAlgorithm", "HashAlgorithm", "InitialContact", "Lifetime", "PPKEnabled", "PPKId", "PPKMandatory", "PQCKEMRound", "PrfAlgorithm"] @field_validator('ppk_mandatory') def ppk_mandatory_validate_enum(cls, value): @@ -111,6 +113,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "PPKEnabled": obj.get("PPKEnabled"), "PPKId": obj.get("PPKId"), "PPKMandatory": obj.get("PPKMandatory"), + "PQCKEMRound": obj.get("PQCKEMRound"), "PrfAlgorithm": obj.get("PrfAlgorithm") , "links": obj.get("links") diff --git a/cyperf/models/p2_config.py b/cyperf/models/p2_config.py index 8340f0b..6c9b9b2 100644 --- a/cyperf/models/p2_config.py +++ b/cyperf/models/p2_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/pair.py b/cyperf/models/pair.py index c15ebc0..7a97c59 100644 --- a/cyperf/models/pair.py +++ b/cyperf/models/pair.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/pangp_encapsulation.py b/cyperf/models/pangp_encapsulation.py index 88a533c..31966c9 100644 --- a/cyperf/models/pangp_encapsulation.py +++ b/cyperf/models/pangp_encapsulation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/pangp_settings.py b/cyperf/models/pangp_settings.py index 591a3ef..9b52c5f 100644 --- a/cyperf/models/pangp_settings.py +++ b/cyperf/models/pangp_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_metadata.py b/cyperf/models/param_metadata.py index c40caf4..d47b025 100644 --- a/cyperf/models/param_metadata.py +++ b/cyperf/models/param_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_metadata_type_info.py b/cyperf/models/param_metadata_type_info.py index 904eb3e..b5a3a8f 100644 --- a/cyperf/models/param_metadata_type_info.py +++ b/cyperf/models/param_metadata_type_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_metadata_type_info_array_v2.py b/cyperf/models/param_metadata_type_info_array_v2.py index 91df78c..1eb0450 100644 --- a/cyperf/models/param_metadata_type_info_array_v2.py +++ b/cyperf/models/param_metadata_type_info_array_v2.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py index 5192ef2..0090b8e 100644 --- a/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py +++ b/cyperf/models/param_metadata_type_info_array_v2_elements_inner.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_metadata_type_info_int.py b/cyperf/models/param_metadata_type_info_int.py index 36141a0..68586f1 100644 --- a/cyperf/models/param_metadata_type_info_int.py +++ b/cyperf/models/param_metadata_type_info_int.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_metadata_type_info_media.py b/cyperf/models/param_metadata_type_info_media.py index c318bcd..cad43d6 100644 --- a/cyperf/models/param_metadata_type_info_media.py +++ b/cyperf/models/param_metadata_type_info_media.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_metadata_type_info_string.py b/cyperf/models/param_metadata_type_info_string.py index f0e606a..b0d0682 100644 --- a/cyperf/models/param_metadata_type_info_string.py +++ b/cyperf/models/param_metadata_type_info_string.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_source_type.py b/cyperf/models/param_source_type.py index e05bf8d..1127822 100644 --- a/cyperf/models/param_source_type.py +++ b/cyperf/models/param_source_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/param_type.py b/cyperf/models/param_type.py index 0932def..2a5f4e0 100644 --- a/cyperf/models/param_type.py +++ b/cyperf/models/param_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/parameter.py b/cyperf/models/parameter.py index 2ff1f01..7fd3f88 100644 --- a/cyperf/models/parameter.py +++ b/cyperf/models/parameter.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/parameter_match.py b/cyperf/models/parameter_match.py index 5d419bf..a921047 100644 --- a/cyperf/models/parameter_match.py +++ b/cyperf/models/parameter_match.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/parameter_meta.py b/cyperf/models/parameter_meta.py index 7219a69..fcb91d8 100644 --- a/cyperf/models/parameter_meta.py +++ b/cyperf/models/parameter_meta.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/parameter_metadata.py b/cyperf/models/parameter_metadata.py index 8dabe11..c0992d0 100644 --- a/cyperf/models/parameter_metadata.py +++ b/cyperf/models/parameter_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/params.py b/cyperf/models/params.py index 8c5c131..265f946 100644 --- a/cyperf/models/params.py +++ b/cyperf/models/params.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/params_enum.py b/cyperf/models/params_enum.py index 8f409e5..6ab88fd 100644 --- a/cyperf/models/params_enum.py +++ b/cyperf/models/params_enum.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/payload_meta.py b/cyperf/models/payload_meta.py index 62ad58a..c46b047 100644 --- a/cyperf/models/payload_meta.py +++ b/cyperf/models/payload_meta.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/payload_metadata.py b/cyperf/models/payload_metadata.py index ff6c423..37b6e57 100644 --- a/cyperf/models/payload_metadata.py +++ b/cyperf/models/payload_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/pep_dut.py b/cyperf/models/pep_dut.py index d5b69c0..d40fd27 100644 --- a/cyperf/models/pep_dut.py +++ b/cyperf/models/pep_dut.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/pfs_p2_group.py b/cyperf/models/pfs_p2_group.py index 5876abc..02714e3 100644 --- a/cyperf/models/pfs_p2_group.py +++ b/cyperf/models/pfs_p2_group.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/playlist_metadata.py b/cyperf/models/playlist_metadata.py index 13effc1..30af428 100644 --- a/cyperf/models/playlist_metadata.py +++ b/cyperf/models/playlist_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/playlist_sequencing_method.py b/cyperf/models/playlist_sequencing_method.py index f19e02b..025a068 100644 --- a/cyperf/models/playlist_sequencing_method.py +++ b/cyperf/models/playlist_sequencing_method.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/plugin.py b/cyperf/models/plugin.py index 8720947..7e6160a 100644 --- a/cyperf/models/plugin.py +++ b/cyperf/models/plugin.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/plugin_stats.py b/cyperf/models/plugin_stats.py index 7cb0ed8..b8e7312 100644 --- a/cyperf/models/plugin_stats.py +++ b/cyperf/models/plugin_stats.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/port.py b/cyperf/models/port.py index 477f923..25bc43a 100644 --- a/cyperf/models/port.py +++ b/cyperf/models/port.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/port_settings.py b/cyperf/models/port_settings.py index 9893c6c..2f9ed6c 100644 --- a/cyperf/models/port_settings.py +++ b/cyperf/models/port_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ports_by_controller.py b/cyperf/models/ports_by_controller.py index f6c398c..2240676 100644 --- a/cyperf/models/ports_by_controller.py +++ b/cyperf/models/ports_by_controller.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ports_by_node.py b/cyperf/models/ports_by_node.py index a67dbb8..7ad6b87 100644 --- a/cyperf/models/ports_by_node.py +++ b/cyperf/models/ports_by_node.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ports_by_panel.py b/cyperf/models/ports_by_panel.py index a5bf3c1..fba09d2 100644 --- a/cyperf/models/ports_by_panel.py +++ b/cyperf/models/ports_by_panel.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/ppk_pair.py b/cyperf/models/ppk_pair.py index 06205df..64091f4 100644 --- a/cyperf/models/ppk_pair.py +++ b/cyperf/models/ppk_pair.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/pqc_kem_group.py b/cyperf/models/pqc_kem_group.py new file mode 100644 index 0000000..0b69d82 --- /dev/null +++ b/cyperf/models/pqc_kem_group.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PqcKemGroup(str, Enum): + """ + PqcKemGroup + """ + + """ + allowed enum values + """ + NONE = 'NONE' + MODP_768 = 'MODP 768' + MODP_1024 = 'MODP 1024' + MODP_1536 = 'MODP 1536' + MODP_2048 = 'MODP 2048' + MODP_3072 = 'MODP 3072' + MODP_4096 = 'MODP 4096' + MODP_6144 = 'MODP 6144' + MODP_8192 = 'MODP 8192' + MODP_1024_S160 = 'MODP 1024 S160' + MODP_2048_S224 = 'MODP 2048 S224' + MODP_2048_S256 = 'MODP 2048 S256' + ECP_192 = 'ECP 192' + ECP_224 = 'ECP 224' + ECP_256 = 'ECP 256' + ECP_384 = 'ECP 384' + ECP_521 = 'ECP 521' + ECP_224_BP = 'ECP 224 BP' + ECP_256_BP = 'ECP 256 BP' + ECP_384_BP = 'ECP 384 BP' + ECP_512_BP = 'ECP 512 BP' + MLKEM512 = 'MLKEM512' + MLKEM768 = 'MLKEM768' + MLKEM1024 = 'MLKEM1024' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PqcKemGroup from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/cyperf/models/pqc_signature_algorithm_tls13.py b/cyperf/models/pqc_signature_algorithm_tls13.py index 34d6b8a..afb8620 100644 --- a/cyperf/models/pqc_signature_algorithm_tls13.py +++ b/cyperf/models/pqc_signature_algorithm_tls13.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/prf_p1_algorithm.py b/cyperf/models/prf_p1_algorithm.py index 98aae30..2bf7685 100644 --- a/cyperf/models/prf_p1_algorithm.py +++ b/cyperf/models/prf_p1_algorithm.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/profile.py b/cyperf/models/profile.py index 814b593..a2e4f9e 100644 --- a/cyperf/models/profile.py +++ b/cyperf/models/profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/protected_subnet_config.py b/cyperf/models/protected_subnet_config.py index d15bc22..6336893 100644 --- a/cyperf/models/protected_subnet_config.py +++ b/cyperf/models/protected_subnet_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/psp_range.py b/cyperf/models/psp_range.py index a9a94f5..6b06776 100644 --- a/cyperf/models/psp_range.py +++ b/cyperf/models/psp_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/psp_stack.py b/cyperf/models/psp_stack.py index 0f80787..ce5a225 100644 --- a/cyperf/models/psp_stack.py +++ b/cyperf/models/psp_stack.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/quic_profile.py b/cyperf/models/quic_profile.py index 4aaf820..4e4e1f3 100644 --- a/cyperf/models/quic_profile.py +++ b/cyperf/models/quic_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/quic_version.py b/cyperf/models/quic_version.py index 6ae4dbb..8f1e895 100644 --- a/cyperf/models/quic_version.py +++ b/cyperf/models/quic_version.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/reboot_compute_resources_operation.py b/cyperf/models/reboot_compute_resources_operation.py index fdfcd2a..738b5a1 100644 --- a/cyperf/models/reboot_compute_resources_operation.py +++ b/cyperf/models/reboot_compute_resources_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/reboot_operation_input.py b/cyperf/models/reboot_operation_input.py index 82a8e65..7db264c 100644 --- a/cyperf/models/reboot_operation_input.py +++ b/cyperf/models/reboot_operation_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/reboot_ports_operation.py b/cyperf/models/reboot_ports_operation.py index d6d49a2..a149a50 100644 --- a/cyperf/models/reboot_ports_operation.py +++ b/cyperf/models/reboot_ports_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/reference.py b/cyperf/models/reference.py index bb39ae6..16ccee9 100644 --- a/cyperf/models/reference.py +++ b/cyperf/models/reference.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/regex_match.py b/cyperf/models/regex_match.py index 4e01819..891aa97 100644 --- a/cyperf/models/regex_match.py +++ b/cyperf/models/regex_match.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/release_operation_input.py b/cyperf/models/release_operation_input.py index 934b5ad..605a95d 100644 --- a/cyperf/models/release_operation_input.py +++ b/cyperf/models/release_operation_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/remote_access.py b/cyperf/models/remote_access.py index 13de408..8442163 100644 --- a/cyperf/models/remote_access.py +++ b/cyperf/models/remote_access.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/remote_subnet_config.py b/cyperf/models/remote_subnet_config.py index a4b6e66..6ad3651 100644 --- a/cyperf/models/remote_subnet_config.py +++ b/cyperf/models/remote_subnet_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/rename_input.py b/cyperf/models/rename_input.py index 639a343..d5dd4d4 100644 --- a/cyperf/models/rename_input.py +++ b/cyperf/models/rename_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/reorder_action_input.py b/cyperf/models/reorder_action_input.py index fdae1f1..39c7184 100644 --- a/cyperf/models/reorder_action_input.py +++ b/cyperf/models/reorder_action_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/reorder_exchanges_input.py b/cyperf/models/reorder_exchanges_input.py index 70b8c41..259feb2 100644 --- a/cyperf/models/reorder_exchanges_input.py +++ b/cyperf/models/reorder_exchanges_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/replay_capture.py b/cyperf/models/replay_capture.py index 3af9a03..3e91dc3 100644 --- a/cyperf/models/replay_capture.py +++ b/cyperf/models/replay_capture.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/required_file_types.py b/cyperf/models/required_file_types.py index 14be112..d829284 100644 --- a/cyperf/models/required_file_types.py +++ b/cyperf/models/required_file_types.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/reserve_operation_input.py b/cyperf/models/reserve_operation_input.py index 0364b1b..b4a1048 100644 --- a/cyperf/models/reserve_operation_input.py +++ b/cyperf/models/reserve_operation_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/result_file_metadata.py b/cyperf/models/result_file_metadata.py index 1a8ea37..75bebaf 100644 --- a/cyperf/models/result_file_metadata.py +++ b/cyperf/models/result_file_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/result_metadata.py b/cyperf/models/result_metadata.py index 294b5c2..07addaa 100644 --- a/cyperf/models/result_metadata.py +++ b/cyperf/models/result_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/results_group.py b/cyperf/models/results_group.py index a128e00..e40f924 100644 --- a/cyperf/models/results_group.py +++ b/cyperf/models/results_group.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/rtp_encryption_mode.py b/cyperf/models/rtp_encryption_mode.py index 07b395f..5d5e0b4 100644 --- a/cyperf/models/rtp_encryption_mode.py +++ b/cyperf/models/rtp_encryption_mode.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/rtp_profile.py b/cyperf/models/rtp_profile.py index 994ab59..9943355 100644 --- a/cyperf/models/rtp_profile.py +++ b/cyperf/models/rtp_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/rtp_profile_meta.py b/cyperf/models/rtp_profile_meta.py index f476a13..d3f0cf5 100644 --- a/cyperf/models/rtp_profile_meta.py +++ b/cyperf/models/rtp_profile_meta.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/save_config_operation.py b/cyperf/models/save_config_operation.py index 8f94e01..d8161dd 100644 --- a/cyperf/models/save_config_operation.py +++ b/cyperf/models/save_config_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/scenario.py b/cyperf/models/scenario.py index 3ecf696..bc5033e 100644 --- a/cyperf/models/scenario.py +++ b/cyperf/models/scenario.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/secondary_objective.py b/cyperf/models/secondary_objective.py index f6eddc0..f61cab3 100644 --- a/cyperf/models/secondary_objective.py +++ b/cyperf/models/secondary_objective.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/section.py b/cyperf/models/section.py index 3e4fc2c..a905262 100644 --- a/cyperf/models/section.py +++ b/cyperf/models/section.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/segment_type.py b/cyperf/models/segment_type.py index c74ddf6..5f12f0c 100644 --- a/cyperf/models/segment_type.py +++ b/cyperf/models/segment_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/selected_env.py b/cyperf/models/selected_env.py index 5ef9db3..91f6565 100644 --- a/cyperf/models/selected_env.py +++ b/cyperf/models/selected_env.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/sequence_data_types.py b/cyperf/models/sequence_data_types.py index 899a421..a4a7a80 100644 --- a/cyperf/models/sequence_data_types.py +++ b/cyperf/models/sequence_data_types.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/sequence_value.py b/cyperf/models/sequence_value.py index b65f5ee..c54d903 100644 --- a/cyperf/models/sequence_value.py +++ b/cyperf/models/sequence_value.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/sequence_value_types.py b/cyperf/models/sequence_value_types.py index 9e32def..35d11f7 100644 --- a/cyperf/models/sequence_value_types.py +++ b/cyperf/models/sequence_value_types.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/session.py b/cyperf/models/session.py index 6632afc..f31fadb 100644 --- a/cyperf/models/session.py +++ b/cyperf/models/session.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/session_reuse_method_tls12.py b/cyperf/models/session_reuse_method_tls12.py index 0ad5c51..c6cdebf 100644 --- a/cyperf/models/session_reuse_method_tls12.py +++ b/cyperf/models/session_reuse_method_tls12.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/session_reuse_method_tls13.py b/cyperf/models/session_reuse_method_tls13.py index 350a7c5..4b220f4 100644 --- a/cyperf/models/session_reuse_method_tls13.py +++ b/cyperf/models/session_reuse_method_tls13.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/set_aggregation_mode_operation.py b/cyperf/models/set_aggregation_mode_operation.py index ddf817a..17e262c 100644 --- a/cyperf/models/set_aggregation_mode_operation.py +++ b/cyperf/models/set_aggregation_mode_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/set_controller_app_operation.py b/cyperf/models/set_controller_app_operation.py index c98904d..650c01a 100644 --- a/cyperf/models/set_controller_app_operation.py +++ b/cyperf/models/set_controller_app_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/set_dpdk_mode_operation_input.py b/cyperf/models/set_dpdk_mode_operation_input.py index f823c87..26d1617 100644 --- a/cyperf/models/set_dpdk_mode_operation_input.py +++ b/cyperf/models/set_dpdk_mode_operation_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/set_front_panel_ports_link_state_operation.py b/cyperf/models/set_front_panel_ports_link_state_operation.py index d4a92b9..70649b3 100644 --- a/cyperf/models/set_front_panel_ports_link_state_operation.py +++ b/cyperf/models/set_front_panel_ports_link_state_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/set_nodes_app_operation.py b/cyperf/models/set_nodes_app_operation.py index 7975d63..2c2022e 100644 --- a/cyperf/models/set_nodes_app_operation.py +++ b/cyperf/models/set_nodes_app_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/set_ntp_operation_input.py b/cyperf/models/set_ntp_operation_input.py index 093bd3e..a3f9597 100644 --- a/cyperf/models/set_ntp_operation_input.py +++ b/cyperf/models/set_ntp_operation_input.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/set_ports_link_state_operation.py b/cyperf/models/set_ports_link_state_operation.py index 035fe02..369f250 100644 --- a/cyperf/models/set_ports_link_state_operation.py +++ b/cyperf/models/set_ports_link_state_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/simple_sequence_value.py b/cyperf/models/simple_sequence_value.py index 5ca3ae0..4c7e8ba 100644 --- a/cyperf/models/simple_sequence_value.py +++ b/cyperf/models/simple_sequence_value.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/simulated_id_p.py b/cyperf/models/simulated_id_p.py index 52f7ddf..4fd2dda 100644 --- a/cyperf/models/simulated_id_p.py +++ b/cyperf/models/simulated_id_p.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/single_value.py b/cyperf/models/single_value.py index c8e7345..3694232 100644 --- a/cyperf/models/single_value.py +++ b/cyperf/models/single_value.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/snapshot.py b/cyperf/models/snapshot.py index 7dfd64c..e53793f 100644 --- a/cyperf/models/snapshot.py +++ b/cyperf/models/snapshot.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/snowflake_exporter.py b/cyperf/models/snowflake_exporter.py index f4b9cd8..8cd21da 100644 --- a/cyperf/models/snowflake_exporter.py +++ b/cyperf/models/snowflake_exporter.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/sort_body_field.py b/cyperf/models/sort_body_field.py index 95918cd..5557c86 100644 --- a/cyperf/models/sort_body_field.py +++ b/cyperf/models/sort_body_field.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/specific_objective.py b/cyperf/models/specific_objective.py index f4fcf17..acc5936 100644 --- a/cyperf/models/specific_objective.py +++ b/cyperf/models/specific_objective.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/start_agents_batch_delete_request_inner.py b/cyperf/models/start_agents_batch_delete_request_inner.py index 08bc785..7b29fe5 100644 --- a/cyperf/models/start_agents_batch_delete_request_inner.py +++ b/cyperf/models/start_agents_batch_delete_request_inner.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/stateless_stream.py b/cyperf/models/stateless_stream.py index c95337b..08ef40f 100644 --- a/cyperf/models/stateless_stream.py +++ b/cyperf/models/stateless_stream.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/static_arp_entry.py b/cyperf/models/static_arp_entry.py index eb05a13..5efbd45 100644 --- a/cyperf/models/static_arp_entry.py +++ b/cyperf/models/static_arp_entry.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/stats_result.py b/cyperf/models/stats_result.py index 28ceddf..dad7c15 100644 --- a/cyperf/models/stats_result.py +++ b/cyperf/models/stats_result.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/steady_segment.py b/cyperf/models/steady_segment.py index eefb510..f4513ad 100644 --- a/cyperf/models/steady_segment.py +++ b/cyperf/models/steady_segment.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/step_segment.py b/cyperf/models/step_segment.py index dc5203b..d3c2939 100644 --- a/cyperf/models/step_segment.py +++ b/cyperf/models/step_segment.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/stream_direction.py b/cyperf/models/stream_direction.py index 7ac22b4..1b88986 100644 --- a/cyperf/models/stream_direction.py +++ b/cyperf/models/stream_direction.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/stream_payload_type.py b/cyperf/models/stream_payload_type.py index a25e924..4f4cab6 100644 --- a/cyperf/models/stream_payload_type.py +++ b/cyperf/models/stream_payload_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/stream_profile.py b/cyperf/models/stream_profile.py index a7d3737..0d9339a 100644 --- a/cyperf/models/stream_profile.py +++ b/cyperf/models/stream_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/sub_step.py b/cyperf/models/sub_step.py index efb6d78..88f47b2 100644 --- a/cyperf/models/sub_step.py +++ b/cyperf/models/sub_step.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/supported_group_tls13.py b/cyperf/models/supported_group_tls13.py index 6988337..3a42478 100644 --- a/cyperf/models/supported_group_tls13.py +++ b/cyperf/models/supported_group_tls13.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/system_info.py b/cyperf/models/system_info.py index fa85792..b80fc15 100644 --- a/cyperf/models/system_info.py +++ b/cyperf/models/system_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/tcp_profile.py b/cyperf/models/tcp_profile.py index b25d683..7304a0f 100644 --- a/cyperf/models/tcp_profile.py +++ b/cyperf/models/tcp_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/test_info.py b/cyperf/models/test_info.py index 5a2ddf6..2cb00e5 100644 --- a/cyperf/models/test_info.py +++ b/cyperf/models/test_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/test_state_changed_operation.py b/cyperf/models/test_state_changed_operation.py index a8a3cb6..4317b5a 100644 --- a/cyperf/models/test_state_changed_operation.py +++ b/cyperf/models/test_state_changed_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/text_segment.py b/cyperf/models/text_segment.py index 5f1c8d9..eaf0cce 100644 --- a/cyperf/models/text_segment.py +++ b/cyperf/models/text_segment.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/time_value.py b/cyperf/models/time_value.py index a9ce3ed..83f6f8e 100644 --- a/cyperf/models/time_value.py +++ b/cyperf/models/time_value.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/timeline_segment.py b/cyperf/models/timeline_segment.py index 5fec8ef..f9e7332 100644 --- a/cyperf/models/timeline_segment.py +++ b/cyperf/models/timeline_segment.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/timeline_segment_base.py b/cyperf/models/timeline_segment_base.py index 5ab29b1..fbf7bfb 100644 --- a/cyperf/models/timeline_segment_base.py +++ b/cyperf/models/timeline_segment_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/timeline_segment_union.py b/cyperf/models/timeline_segment_union.py index 9783cd2..5b2d323 100644 --- a/cyperf/models/timeline_segment_union.py +++ b/cyperf/models/timeline_segment_union.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/timers.py b/cyperf/models/timers.py index 39f8da6..ef1a481 100644 --- a/cyperf/models/timers.py +++ b/cyperf/models/timers.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/tls_profile.py b/cyperf/models/tls_profile.py index cfe841f..d1a0099 100644 --- a/cyperf/models/tls_profile.py +++ b/cyperf/models/tls_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/track.py b/cyperf/models/track.py index e5d9573..7709357 100644 --- a/cyperf/models/track.py +++ b/cyperf/models/track.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/track_type.py b/cyperf/models/track_type.py index 055596f..8387595 100644 --- a/cyperf/models/track_type.py +++ b/cyperf/models/track_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/traffic_agent_info.py b/cyperf/models/traffic_agent_info.py index 3f192dc..77581a1 100644 --- a/cyperf/models/traffic_agent_info.py +++ b/cyperf/models/traffic_agent_info.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/traffic_profile_base.py b/cyperf/models/traffic_profile_base.py index 6e10b0d..dba157c 100644 --- a/cyperf/models/traffic_profile_base.py +++ b/cyperf/models/traffic_profile_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/traffic_settings.py b/cyperf/models/traffic_settings.py index 20f6d66..7db077c 100644 --- a/cyperf/models/traffic_settings.py +++ b/cyperf/models/traffic_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/transport_profile.py b/cyperf/models/transport_profile.py index dc7a1c6..ccbca5a 100644 --- a/cyperf/models/transport_profile.py +++ b/cyperf/models/transport_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/transport_profile_base.py b/cyperf/models/transport_profile_base.py index d060bad..c1916bd 100644 --- a/cyperf/models/transport_profile_base.py +++ b/cyperf/models/transport_profile_base.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/tunnel_range.py b/cyperf/models/tunnel_range.py index 91b6787..ea062ae 100644 --- a/cyperf/models/tunnel_range.py +++ b/cyperf/models/tunnel_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/tunnel_settings.py b/cyperf/models/tunnel_settings.py index 2a57e35..c62bda0 100644 --- a/cyperf/models/tunnel_settings.py +++ b/cyperf/models/tunnel_settings.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/tunnel_stack.py b/cyperf/models/tunnel_stack.py index b6bd1fd..eadf8a4 100644 --- a/cyperf/models/tunnel_stack.py +++ b/cyperf/models/tunnel_stack.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/type_array_v2_metadata.py b/cyperf/models/type_array_v2_metadata.py index 0260633..96d2729 100644 --- a/cyperf/models/type_array_v2_metadata.py +++ b/cyperf/models/type_array_v2_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/type_info_metadata.py b/cyperf/models/type_info_metadata.py index 9b1c6d1..d3f98bf 100644 --- a/cyperf/models/type_info_metadata.py +++ b/cyperf/models/type_info_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/type_int_metadata.py b/cyperf/models/type_int_metadata.py index aa003c9..415960c 100644 --- a/cyperf/models/type_int_metadata.py +++ b/cyperf/models/type_int_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/type_media_metadata.py b/cyperf/models/type_media_metadata.py index dd7bbf2..67cc543 100644 --- a/cyperf/models/type_media_metadata.py +++ b/cyperf/models/type_media_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/type_string_metadata.py b/cyperf/models/type_string_metadata.py index 962d68b..7ce70fe 100644 --- a/cyperf/models/type_string_metadata.py +++ b/cyperf/models/type_string_metadata.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/udp_profile.py b/cyperf/models/udp_profile.py index 206fef3..bd0675b 100644 --- a/cyperf/models/udp_profile.py +++ b/cyperf/models/udp_profile.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/update_network_mapping.py b/cyperf/models/update_network_mapping.py index 12a8468..5f61116 100644 --- a/cyperf/models/update_network_mapping.py +++ b/cyperf/models/update_network_mapping.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/update_port_tags_operation.py b/cyperf/models/update_port_tags_operation.py index 6151cd5..0b4907f 100644 --- a/cyperf/models/update_port_tags_operation.py +++ b/cyperf/models/update_port_tags_operation.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/validation_message.py b/cyperf/models/validation_message.py index a5475b5..bf4d485 100644 --- a/cyperf/models/validation_message.py +++ b/cyperf/models/validation_message.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/version.py b/cyperf/models/version.py index 975d2a1..d4ba8cc 100644 --- a/cyperf/models/version.py +++ b/cyperf/models/version.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/vlan_range.py b/cyperf/models/vlan_range.py index aa98489..51cb16c 100644 --- a/cyperf/models/vlan_range.py +++ b/cyperf/models/vlan_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/vlan_type.py b/cyperf/models/vlan_type.py index 77cd7e5..4c56ee1 100644 --- a/cyperf/models/vlan_type.py +++ b/cyperf/models/vlan_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/vx_lan_range.py b/cyperf/models/vx_lan_range.py index 4273611..b28585f 100644 --- a/cyperf/models/vx_lan_range.py +++ b/cyperf/models/vx_lan_range.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/vx_lan_stack.py b/cyperf/models/vx_lan_stack.py index d2b3676..5988dcb 100644 --- a/cyperf/models/vx_lan_stack.py +++ b/cyperf/models/vx_lan_stack.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/models/vx_lanid.py b/cyperf/models/vx_lanid.py index 950fc07..fbf87b1 100644 --- a/cyperf/models/vx_lanid.py +++ b/cyperf/models/vx_lanid.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/cyperf/rest.py b/cyperf/rest.py index 1fc2a19..1e40193 100644 --- a/cyperf/rest.py +++ b/cyperf/rest.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com diff --git a/docs/IPSecRange.md b/docs/IPSecRange.md index 54bcd91..326c29c 100644 --- a/docs/IPSecRange.md +++ b/docs/IPSecRange.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **inner_ip_sec_range** | [**InnerIPSecRange**](InnerIPSecRange.md) | | [optional] **local_sub_config** | [**LocalSubnetConfig**](LocalSubnetConfig.md) | | [optional] **multi_p2_over_p1** | **bool** | | [optional] +**pqckem_enabled** | **bool** | | [optional] **protected_sub_config** | [**ProtectedSubnetConfig**](ProtectedSubnetConfig.md) | Deeprecated. Use RemoteSubConfig instead. | [optional] **public_peer** | **str** | | **public_peer_increment** | **str** | | diff --git a/docs/InnerIPSecRange.md b/docs/InnerIPSecRange.md index f53c101..46364aa 100644 --- a/docs/InnerIPSecRange.md +++ b/docs/InnerIPSecRange.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **identification_config** | [**IdentificationConfig**](IdentificationConfig.md) | | [optional] **local_sub_config** | [**LocalSubnetConfig**](LocalSubnetConfig.md) | | [optional] **multi_p2_over_p1** | **bool** | | +**pqckem_enabled** | **bool** | | **public_peer** | **str** | | **public_peer_increment** | **str** | | **remote_access** | [**RemoteAccess**](RemoteAccess.md) | | [optional] diff --git a/docs/P1Config.md b/docs/P1Config.md index 8a55a7d..0eb663a 100644 --- a/docs/P1Config.md +++ b/docs/P1Config.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **ppk_enabled** | **bool** | | **ppkid** | **str** | | **ppk_mandatory** | **str** | | +**pqckem_round** | [**List[PqcKemGroup]**](PqcKemGroup.md) | | **prf_algorithm** | [**PrfP1Algorithm**](PrfP1Algorithm.md) | | ## Example diff --git a/docs/PqcKemGroup.md b/docs/PqcKemGroup.md new file mode 100644 index 0000000..9ba75e3 --- /dev/null +++ b/docs/PqcKemGroup.md @@ -0,0 +1,56 @@ +# PqcKemGroup + + +## Enum + +* `NONE` (value: `'NONE'`) + +* `MODP_768` (value: `'MODP 768'`) + +* `MODP_1024` (value: `'MODP 1024'`) + +* `MODP_1536` (value: `'MODP 1536'`) + +* `MODP_2048` (value: `'MODP 2048'`) + +* `MODP_3072` (value: `'MODP 3072'`) + +* `MODP_4096` (value: `'MODP 4096'`) + +* `MODP_6144` (value: `'MODP 6144'`) + +* `MODP_8192` (value: `'MODP 8192'`) + +* `MODP_1024_S160` (value: `'MODP 1024 S160'`) + +* `MODP_2048_S224` (value: `'MODP 2048 S224'`) + +* `MODP_2048_S256` (value: `'MODP 2048 S256'`) + +* `ECP_192` (value: `'ECP 192'`) + +* `ECP_224` (value: `'ECP 224'`) + +* `ECP_256` (value: `'ECP 256'`) + +* `ECP_384` (value: `'ECP 384'`) + +* `ECP_521` (value: `'ECP 521'`) + +* `ECP_224_BP` (value: `'ECP 224 BP'`) + +* `ECP_256_BP` (value: `'ECP 256 BP'`) + +* `ECP_384_BP` (value: `'ECP 384 BP'`) + +* `ECP_512_BP` (value: `'ECP 512 BP'`) + +* `MLKEM512` (value: `'MLKEM512'`) + +* `MLKEM768` (value: `'MLKEM768'`) + +* `MLKEM1024` (value: `'MLKEM1024'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/pyproject.toml b/pyproject.toml index c498ef5..dcedd56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [tool.poetry] name = "cyperf" version = "1.0.0" -description = "CyPerf Application API" +description = "Keysight CyPerf Application API" authors = ["Keysight CyPerf "] license = "NoLicense" readme = "README.md" repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" -keywords = ["OpenAPI", "OpenAPI-Generator", "CyPerf Application API"] +keywords = ["OpenAPI", "OpenAPI-Generator", "Keysight CyPerf Application API"] include = ["cyperf/py.typed"] [tool.poetry.dependencies] diff --git a/setup.py b/setup.py index 175cb33..f2b0684 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - CyPerf Application API + Keysight CyPerf Application API - CyPerf REST API + Keysight CyPerf REST API The version of the OpenAPI document: 1.0.0 Contact: support@keysight.com From 07c4adac287ed6767ba9dd81153c11b7d9932140 Mon Sep 17 00:00:00 2001 From: Stingescu Andrei Petrut Date: Wed, 5 Aug 2026 08:21:10 -0600 Subject: [PATCH 46/53] Pull request #82: Regenerate the python wrapper Merge in ISGAPPSEC/cyperf-api-wrapper from regenerate-wrapper-fanout to main Squashed commit of the following: commit 08c1423d2a780a10c5050b98906ec7074594d588 Author: stinandr Date: Wed Aug 5 10:41:22 2026 +0300 Add back Keysight prefix commit 1a5a03387e144f5f6a23f89009b9cc533346c2c7 Author: stinandr Date: Fri Jul 31 15:23:54 2026 +0300 Regenerate the python wrapper --- README.md | 24 + cyperf/__init__.py | 15 + cyperf/api/__init__.py | 1 + cyperf/api/agents_api.py | 276 ++ cyperf/api/dashboards_api.py | 2501 +++++++++++++++++ cyperf/dynamic_models/__init__.py | 14 + cyperf/models/__init__.py | 14 + cyperf/models/advanced_metric.py | 97 + cyperf/models/change_event.py | 97 + cyperf/models/convert_dashboards_operation.py | 97 + cyperf/models/data_source_details.py | 97 + cyperf/models/front_panel.py | 6 +- cyperf/models/front_panels_by_controller.py | 95 + ...get_stats_dashboard_changes200_response.py | 147 + ...ts_dashboard_changes200_response_one_of.py | 103 + .../get_stats_dashboards200_response.py | 147 + ...get_stats_dashboards200_response_one_of.py | 103 + cyperf/models/grid_position.py | 99 + cyperf/models/metrics_list.py | 103 + cyperf/models/panel.py | 140 + cyperf/models/set_controller_app_operation.py | 6 +- cyperf/models/set_fan_out_mode_operation.py | 105 + cyperf/models/set_nodes_app_operation.py | 6 +- cyperf/models/stats_dashboard.py | 145 + docs/AdvancedMetric.md | 31 + docs/AgentsApi.md | 79 + docs/ChangeEvent.md | 31 + docs/ConvertDashboardsOperation.md | 31 + docs/DashboardsApi.md | 731 +++++ docs/DataSourceDetails.md | 31 + docs/FrontPanel.md | 1 + docs/FrontPanelsByController.md | 30 + docs/GetStatsDashboardChanges200Response.md | 30 + ...etStatsDashboardChanges200ResponseOneOf.md | 30 + docs/GetStatsDashboards200Response.md | 30 + docs/GetStatsDashboards200ResponseOneOf.md | 30 + docs/GridPosition.md | 32 + docs/MetricsList.md | 30 + docs/Panel.md | 37 + docs/SetControllerAppOperation.md | 2 +- docs/SetFanOutModeOperation.md | 31 + docs/SetNodesAppOperation.md | 2 +- docs/StatsDashboard.md | 39 + 43 files changed, 5686 insertions(+), 10 deletions(-) create mode 100644 cyperf/api/dashboards_api.py create mode 100644 cyperf/models/advanced_metric.py create mode 100644 cyperf/models/change_event.py create mode 100644 cyperf/models/convert_dashboards_operation.py create mode 100644 cyperf/models/data_source_details.py create mode 100644 cyperf/models/front_panels_by_controller.py create mode 100644 cyperf/models/get_stats_dashboard_changes200_response.py create mode 100644 cyperf/models/get_stats_dashboard_changes200_response_one_of.py create mode 100644 cyperf/models/get_stats_dashboards200_response.py create mode 100644 cyperf/models/get_stats_dashboards200_response_one_of.py create mode 100644 cyperf/models/grid_position.py create mode 100644 cyperf/models/metrics_list.py create mode 100644 cyperf/models/panel.py create mode 100644 cyperf/models/set_fan_out_mode_operation.py create mode 100644 cyperf/models/stats_dashboard.py create mode 100644 docs/AdvancedMetric.md create mode 100644 docs/ChangeEvent.md create mode 100644 docs/ConvertDashboardsOperation.md create mode 100644 docs/DashboardsApi.md create mode 100644 docs/DataSourceDetails.md create mode 100644 docs/FrontPanelsByController.md create mode 100644 docs/GetStatsDashboardChanges200Response.md create mode 100644 docs/GetStatsDashboardChanges200ResponseOneOf.md create mode 100644 docs/GetStatsDashboards200Response.md create mode 100644 docs/GetStatsDashboards200ResponseOneOf.md create mode 100644 docs/GridPosition.md create mode 100644 docs/MetricsList.md create mode 100644 docs/Panel.md create mode 100644 docs/SetFanOutModeOperation.md create mode 100644 docs/StatsDashboard.md diff --git a/README.md b/README.md index e9834c4..d7772cc 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ Class | Method | HTTP request | Description *AgentsApi* | [**start_controllers_reboot_compute_resource**](docs/AgentsApi.md#start_controllers_reboot_compute_resource) | **POST** /api/v2/controllers/operations/reboot-compute-resource | *AgentsApi* | [**start_controllers_reboot_port**](docs/AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | *AgentsApi* | [**start_controllers_set_app**](docs/AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | +*AgentsApi* | [**start_controllers_set_front_panel_fanout**](docs/AgentsApi.md#start_controllers_set_front_panel_fanout) | **POST** /api/v2/controllers/operations/set-front-panel-fanout | *AgentsApi* | [**start_controllers_set_front_panel_port_link_state**](docs/AgentsApi.md#start_controllers_set_front_panel_port_link_state) | **POST** /api/v2/controllers/operations/set-front-panel-port-link-state | *AgentsApi* | [**start_controllers_set_node_aggregation**](docs/AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | *AgentsApi* | [**start_controllers_set_node_app**](docs/AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | @@ -274,6 +275,15 @@ Class | Method | HTTP request | Description *ConfigurationsApi* | [**start_configs_import**](docs/ConfigurationsApi.md#start_configs_import) | **POST** /api/v2/configs/operations/import | *ConfigurationsApi* | [**start_configs_import_all**](docs/ConfigurationsApi.md#start_configs_import_all) | **POST** /api/v2/configs/operations/importAll | *ConfigurationsApi* | [**update_config**](docs/ConfigurationsApi.md#update_config) | **PUT** /api/v2/configs/{configId} | +*DashboardsApi* | [**create_stats_dashboard_changes**](docs/DashboardsApi.md#create_stats_dashboard_changes) | **POST** /api/v2/stats-dashboards/{statsDashboardId}/changes | +*DashboardsApi* | [**create_stats_dashboards**](docs/DashboardsApi.md#create_stats_dashboards) | **POST** /api/v2/stats-dashboards | +*DashboardsApi* | [**delete_stats_dashboard**](docs/DashboardsApi.md#delete_stats_dashboard) | **DELETE** /api/v2/stats-dashboards/{statsDashboardId} | +*DashboardsApi* | [**get_stats_dashboard_by_id**](docs/DashboardsApi.md#get_stats_dashboard_by_id) | **GET** /api/v2/stats-dashboards/{statsDashboardId} | +*DashboardsApi* | [**get_stats_dashboard_changes**](docs/DashboardsApi.md#get_stats_dashboard_changes) | **GET** /api/v2/stats-dashboards/{statsDashboardId}/changes | +*DashboardsApi* | [**get_stats_dashboard_metrics**](docs/DashboardsApi.md#get_stats_dashboard_metrics) | **GET** /api/v2/stats-dashboards/{statsDashboardId}/metrics | +*DashboardsApi* | [**get_stats_dashboards**](docs/DashboardsApi.md#get_stats_dashboards) | **GET** /api/v2/stats-dashboards | +*DashboardsApi* | [**start_stats_dashboards_convert**](docs/DashboardsApi.md#start_stats_dashboards_convert) | **POST** /api/v2/stats-dashboards/operations/convert | +*DashboardsApi* | [**update_stats_dashboard**](docs/DashboardsApi.md#update_stats_dashboard) | **PUT** /api/v2/stats-dashboards/{statsDashboardId} | *DataMigrationApi* | [**start_controller_migration_export**](docs/DataMigrationApi.md#start_controller_migration_export) | **POST** /api/v2/controller-migration/operations/export | *DataMigrationApi* | [**start_controller_migration_import**](docs/DataMigrationApi.md#start_controller_migration_import) | **POST** /api/v2/controller-migration/operations/import | *DiagnosticsApi* | [**api_v2_diagnostics_components_get**](docs/DiagnosticsApi.md#api_v2_diagnostics_components_get) | **GET** /api/v2/diagnostics/components | @@ -409,6 +419,7 @@ Class | Method | HTTP request | Description - [AddActionInfo](docs/AddActionInfo.md) - [AddInput](docs/AddInput.md) - [Address](docs/Address.md) + - [AdvancedMetric](docs/AdvancedMetric.md) - [AdvancedSettings](docs/AdvancedSettings.md) - [Agent](docs/Agent.md) - [AgentAssignmentByFrontPanelPort](docs/AgentAssignmentByFrontPanelPort.md) @@ -464,6 +475,7 @@ Class | Method | HTTP request | Description - [CategoryValue](docs/CategoryValue.md) - [CertConfig](docs/CertConfig.md) - [Certificate](docs/Certificate.md) + - [ChangeEvent](docs/ChangeEvent.md) - [ChassisInfo](docs/ChassisInfo.md) - [Choice](docs/Choice.md) - [CipherTLS12](docs/CipherTLS12.md) @@ -493,6 +505,7 @@ Class | Method | HTTP request | Description - [Consumer](docs/Consumer.md) - [ContentBlock](docs/ContentBlock.md) - [Controller](docs/Controller.md) + - [ConvertDashboardsOperation](docs/ConvertDashboardsOperation.md) - [CountedFeatureConsumer](docs/CountedFeatureConsumer.md) - [CountedFeatureStats](docs/CountedFeatureStats.md) - [CreateAppOperation](docs/CreateAppOperation.md) @@ -507,6 +520,7 @@ Class | Method | HTTP request | Description - [DUTNetwork](docs/DUTNetwork.md) - [DUTRange](docs/DUTRange.md) - [Dashboard](docs/Dashboard.md) + - [DataSourceDetails](docs/DataSourceDetails.md) - [DataType](docs/DataType.md) - [DataTypeValuesInner](docs/DataTypeValuesInner.md) - [Definition](docs/Definition.md) @@ -563,6 +577,7 @@ Class | Method | HTTP request | Description - [FortinetSettings](docs/FortinetSettings.md) - [FrontPanel](docs/FrontPanel.md) - [FrontPanelPortsByController](docs/FrontPanelPortsByController.md) + - [FrontPanelsByController](docs/FrontPanelsByController.md) - [FulfillmentRequest](docs/FulfillmentRequest.md) - [GenerateAllOperation](docs/GenerateAllOperation.md) - [GenerateCSVReportsOperation](docs/GenerateCSVReportsOperation.md) @@ -620,9 +635,14 @@ Class | Method | HTTP request | Description - [GetSessionMeta200ResponseOneOf](docs/GetSessionMeta200ResponseOneOf.md) - [GetSessions200Response](docs/GetSessions200Response.md) - [GetSessions200ResponseOneOf](docs/GetSessions200ResponseOneOf.md) + - [GetStatsDashboardChanges200Response](docs/GetStatsDashboardChanges200Response.md) + - [GetStatsDashboardChanges200ResponseOneOf](docs/GetStatsDashboardChanges200ResponseOneOf.md) + - [GetStatsDashboards200Response](docs/GetStatsDashboards200Response.md) + - [GetStatsDashboards200ResponseOneOf](docs/GetStatsDashboards200ResponseOneOf.md) - [GetStatsPlugins200Response](docs/GetStatsPlugins200Response.md) - [GetStatsPlugins200ResponseOneOf](docs/GetStatsPlugins200ResponseOneOf.md) - [GetStrikesOperation](docs/GetStrikesOperation.md) + - [GridPosition](docs/GridPosition.md) - [GroupTLS13](docs/GroupTLS13.md) - [HTTPProfile](docs/HTTPProfile.md) - [HTTPReqMeta](docs/HTTPReqMeta.md) @@ -666,6 +686,7 @@ Class | Method | HTTP request | Description - [MediaFile](docs/MediaFile.md) - [MediaTrack](docs/MediaTrack.md) - [Metadata](docs/Metadata.md) + - [MetricsList](docs/MetricsList.md) - [MosMode](docs/MosMode.md) - [NameIdFormat](docs/NameIdFormat.md) - [NameServer](docs/NameServer.md) @@ -691,6 +712,7 @@ Class | Method | HTTP request | Description - [PSPRange](docs/PSPRange.md) - [PSPStack](docs/PSPStack.md) - [Pair](docs/Pair.md) + - [Panel](docs/Panel.md) - [ParamMetadata](docs/ParamMetadata.md) - [ParamMetadataTypeInfo](docs/ParamMetadataTypeInfo.md) - [ParamMetadataTypeInfoArrayV2](docs/ParamMetadataTypeInfoArrayV2.md) @@ -761,6 +783,7 @@ Class | Method | HTTP request | Description - [SetAggregationModeOperation](docs/SetAggregationModeOperation.md) - [SetControllerAppOperation](docs/SetControllerAppOperation.md) - [SetDpdkModeOperationInput](docs/SetDpdkModeOperationInput.md) + - [SetFanOutModeOperation](docs/SetFanOutModeOperation.md) - [SetFrontPanelPortsLinkStateOperation](docs/SetFrontPanelPortsLinkStateOperation.md) - [SetNodesAppOperation](docs/SetNodesAppOperation.md) - [SetNtpOperationInput](docs/SetNtpOperationInput.md) @@ -775,6 +798,7 @@ Class | Method | HTTP request | Description - [StartAgentsBatchDeleteRequestInner](docs/StartAgentsBatchDeleteRequestInner.md) - [StatelessStream](docs/StatelessStream.md) - [StaticARPEntry](docs/StaticARPEntry.md) + - [StatsDashboard](docs/StatsDashboard.md) - [StatsResult](docs/StatsResult.md) - [SteadySegment](docs/SteadySegment.md) - [StepSegment](docs/StepSegment.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index 81eb30a..b0f6420 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -34,6 +34,7 @@ from cyperf.api.authorization_api import AuthorizationApi from cyperf.api.brokers_api import BrokersApi from cyperf.api.configurations_api import ConfigurationsApi +from cyperf.api.dashboards_api import DashboardsApi from cyperf.api.data_migration_api import DataMigrationApi from cyperf.api.diagnostics_api import DiagnosticsApi from cyperf.api.license_servers_api import LicenseServersApi @@ -65,6 +66,7 @@ from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput from cyperf.models.address import Address +from cyperf.models.advanced_metric import AdvancedMetric from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent from cyperf.models.agent_assignment_by_front_panel_port import AgentAssignmentByFrontPanelPort @@ -120,6 +122,7 @@ from cyperf.models.category_value import CategoryValue from cyperf.models.cert_config import CertConfig from cyperf.models.certificate import Certificate +from cyperf.models.change_event import ChangeEvent from cyperf.models.chassis_info import ChassisInfo from cyperf.models.choice import Choice from cyperf.models.cipher_tls12 import CipherTLS12 @@ -149,6 +152,7 @@ from cyperf.models.consumer import Consumer from cyperf.models.content_block import ContentBlock from cyperf.models.controller import Controller +from cyperf.models.convert_dashboards_operation import ConvertDashboardsOperation from cyperf.models.counted_feature_consumer import CountedFeatureConsumer from cyperf.models.counted_feature_stats import CountedFeatureStats from cyperf.models.create_app_operation import CreateAppOperation @@ -163,6 +167,7 @@ from cyperf.models.dut_network import DUTNetwork from cyperf.models.dut_range import DUTRange from cyperf.models.dashboard import Dashboard +from cyperf.models.data_source_details import DataSourceDetails from cyperf.models.data_type import DataType from cyperf.models.data_type_values_inner import DataTypeValuesInner from cyperf.models.definition import Definition @@ -219,6 +224,7 @@ from cyperf.models.fortinet_settings import FortinetSettings from cyperf.models.front_panel import FrontPanel from cyperf.models.front_panel_ports_by_controller import FrontPanelPortsByController +from cyperf.models.front_panels_by_controller import FrontPanelsByController from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.models.generate_all_operation import GenerateAllOperation from cyperf.models.generate_csv_reports_operation import GenerateCSVReportsOperation @@ -276,9 +282,14 @@ from cyperf.models.get_session_meta200_response_one_of import GetSessionMeta200ResponseOneOf from cyperf.models.get_sessions200_response import GetSessions200Response from cyperf.models.get_sessions200_response_one_of import GetSessions200ResponseOneOf +from cyperf.models.get_stats_dashboard_changes200_response import GetStatsDashboardChanges200Response +from cyperf.models.get_stats_dashboard_changes200_response_one_of import GetStatsDashboardChanges200ResponseOneOf +from cyperf.models.get_stats_dashboards200_response import GetStatsDashboards200Response +from cyperf.models.get_stats_dashboards200_response_one_of import GetStatsDashboards200ResponseOneOf from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf from cyperf.models.get_strikes_operation import GetStrikesOperation +from cyperf.models.grid_position import GridPosition from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.http_profile import HTTPProfile from cyperf.models.http_req_meta import HTTPReqMeta @@ -322,6 +333,7 @@ from cyperf.models.media_file import MediaFile from cyperf.models.media_track import MediaTrack from cyperf.models.metadata import Metadata +from cyperf.models.metrics_list import MetricsList from cyperf.models.mos_mode import MosMode from cyperf.models.name_id_format import NameIdFormat from cyperf.models.name_server import NameServer @@ -347,6 +359,7 @@ from cyperf.models.psp_range import PSPRange from cyperf.models.psp_stack import PSPStack from cyperf.models.pair import Pair +from cyperf.models.panel import Panel from cyperf.models.param_metadata import ParamMetadata from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo from cyperf.models.param_metadata_type_info_array_v2 import ParamMetadataTypeInfoArrayV2 @@ -417,6 +430,7 @@ from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput +from cyperf.models.set_fan_out_mode_operation import SetFanOutModeOperation from cyperf.models.set_front_panel_ports_link_state_operation import SetFrontPanelPortsLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput @@ -431,6 +445,7 @@ from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner from cyperf.models.stateless_stream import StatelessStream from cyperf.models.static_arp_entry import StaticARPEntry +from cyperf.models.stats_dashboard import StatsDashboard from cyperf.models.stats_result import StatsResult from cyperf.models.steady_segment import SteadySegment from cyperf.models.step_segment import StepSegment diff --git a/cyperf/api/__init__.py b/cyperf/api/__init__.py index ac2cdcc..0e934f8 100644 --- a/cyperf/api/__init__.py +++ b/cyperf/api/__init__.py @@ -6,6 +6,7 @@ from cyperf.api.authorization_api import AuthorizationApi from cyperf.api.brokers_api import BrokersApi from cyperf.api.configurations_api import ConfigurationsApi +from cyperf.api.dashboards_api import DashboardsApi from cyperf.api.data_migration_api import DataMigrationApi from cyperf.api.diagnostics_api import DiagnosticsApi from cyperf.api.license_servers_api import LicenseServersApi diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 8a91fef..66bef7b 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -43,6 +43,7 @@ from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput +from cyperf.models.set_fan_out_mode_operation import SetFanOutModeOperation from cyperf.models.set_front_panel_ports_link_state_operation import SetFrontPanelPortsLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput @@ -5109,6 +5110,16 @@ def _patch_agent_serialize( + + + + + + + + + + @@ -9068,6 +9079,271 @@ def _start_controllers_set_app_serialize( + @validate_call + def start_controllers_set_front_panel_fanout( + self, + set_fan_out_mode_operation: Optional[SetFanOutModeOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_controllers_set_front_panel_fanout + + Set the fanOut mode of the front panels. + + :param set_fan_out_mode_operation: + :type set_fan_out_mode_operation: SetFanOutModeOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_front_panel_fanout_serialize( + set_fan_out_mode_operation=set_fan_out_mode_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_set_front_panel_fanout_with_http_info( + self, + set_fan_out_mode_operation: Optional[SetFanOutModeOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_controllers_set_front_panel_fanout + + Set the fanOut mode of the front panels. + + :param set_fan_out_mode_operation: + :type set_fan_out_mode_operation: SetFanOutModeOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_front_panel_fanout_serialize( + set_fan_out_mode_operation=set_fan_out_mode_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_controllers_set_front_panel_fanout_without_preload_content( + self, + set_fan_out_mode_operation: Optional[SetFanOutModeOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_controllers_set_front_panel_fanout + + Set the fanOut mode of the front panels. + + :param set_fan_out_mode_operation: + :type set_fan_out_mode_operation: SetFanOutModeOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_controllers_set_front_panel_fanout_serialize( + set_fan_out_mode_operation=set_fan_out_mode_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_controllers_set_front_panel_fanout_serialize( + self, + set_fan_out_mode_operation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if set_fan_out_mode_operation is not None: + _body_params = set_fan_out_mode_operation + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/controllers/operations/set-front-panel-fanout', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def start_controllers_set_front_panel_port_link_state( self, diff --git a/cyperf/api/dashboards_api.py b/cyperf/api/dashboards_api.py new file mode 100644 index 0000000..6d7df3c --- /dev/null +++ b/cyperf/api/dashboards_api.py @@ -0,0 +1,2501 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictInt, StrictStr +from typing import List, Optional +from typing_extensions import Annotated +from cyperf.models.async_context import AsyncContext +from cyperf.models.change_event import ChangeEvent +from cyperf.models.convert_dashboards_operation import ConvertDashboardsOperation +from cyperf.models.get_stats_dashboard_changes200_response import GetStatsDashboardChanges200Response +from cyperf.models.get_stats_dashboards200_response import GetStatsDashboards200Response +from cyperf.models.metrics_list import MetricsList +from cyperf.models.stats_dashboard import StatsDashboard + +from cyperf import DynamicModel +from cyperf.api_client import ApiClient, RequestSerialized +from cyperf.api_response import ApiResponse +from cyperf.rest import RESTResponseType + + +class DashboardsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_stats_dashboard_changes( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + stats_dashboard_changes: Optional[List[ChangeEvent]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[ChangeEvent]: + """create_stats_dashboard_changes + + Register a change event. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param stats_dashboard_changes: + :type stats_dashboard_changes: List[ChangeEvent] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_stats_dashboard_changes_serialize( + stats_dashboard_id=stats_dashboard_id, + stats_dashboard_changes=stats_dashboard_changes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "List[ChangeEvent]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def create_stats_dashboard_changes_with_http_info( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + stats_dashboard_changes: Optional[List[ChangeEvent]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[ChangeEvent]]: + """create_stats_dashboard_changes + + Register a change event. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param stats_dashboard_changes: + :type stats_dashboard_changes: List[ChangeEvent] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_stats_dashboard_changes_serialize( + stats_dashboard_id=stats_dashboard_id, + stats_dashboard_changes=stats_dashboard_changes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "List[ChangeEvent]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def create_stats_dashboard_changes_without_preload_content( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + stats_dashboard_changes: Optional[List[ChangeEvent]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create_stats_dashboard_changes + + Register a change event. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param stats_dashboard_changes: + :type stats_dashboard_changes: List[ChangeEvent] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_stats_dashboard_changes_serialize( + stats_dashboard_id=stats_dashboard_id, + stats_dashboard_changes=stats_dashboard_changes, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "List[ChangeEvent]", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _create_stats_dashboard_changes_serialize( + self, + stats_dashboard_id, + stats_dashboard_changes, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'statsDashboardChanges': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stats_dashboard_id is not None: + _path_params['statsDashboardId'] = stats_dashboard_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if stats_dashboard_changes is not None: + _body_params = stats_dashboard_changes + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/stats-dashboards/{statsDashboardId}/changes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def create_stats_dashboards( + self, + stats_dashboards: Optional[List[StatsDashboard]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[StatsDashboard]: + """create_stats_dashboards + + Add a new dashboard. + + :param stats_dashboards: + :type stats_dashboards: List[StatsDashboard] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_stats_dashboards_serialize( + stats_dashboards=stats_dashboards, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "List[StatsDashboard]", + '409': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def create_stats_dashboards_with_http_info( + self, + stats_dashboards: Optional[List[StatsDashboard]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[StatsDashboard]]: + """create_stats_dashboards + + Add a new dashboard. + + :param stats_dashboards: + :type stats_dashboards: List[StatsDashboard] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_stats_dashboards_serialize( + stats_dashboards=stats_dashboards, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "List[StatsDashboard]", + '409': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def create_stats_dashboards_without_preload_content( + self, + stats_dashboards: Optional[List[StatsDashboard]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """create_stats_dashboards + + Add a new dashboard. + + :param stats_dashboards: + :type stats_dashboards: List[StatsDashboard] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_stats_dashboards_serialize( + stats_dashboards=stats_dashboards, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "List[StatsDashboard]", + '409': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _create_stats_dashboards_serialize( + self, + stats_dashboards, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'statsDashboards': '', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if stats_dashboards is not None: + _body_params = stats_dashboards + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/stats-dashboards', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_stats_dashboard( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """delete_stats_dashboard + + Delete a particular dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_stats_dashboard_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def delete_stats_dashboard_with_http_info( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """delete_stats_dashboard + + Delete a particular dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_stats_dashboard_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def delete_stats_dashboard_without_preload_content( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_stats_dashboard + + Delete a particular dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_stats_dashboard_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _delete_stats_dashboard_serialize( + self, + stats_dashboard_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stats_dashboard_id is not None: + _path_params['statsDashboardId'] = stats_dashboard_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/api/v2/stats-dashboards/{statsDashboardId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_stats_dashboard_by_id( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> StatsDashboard: + """get_stats_dashboard_by_id + + Get a particular dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_by_id_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "StatsDashboard", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_stats_dashboard_by_id_with_http_info( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[StatsDashboard]: + """get_stats_dashboard_by_id + + Get a particular dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_by_id_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "StatsDashboard", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_stats_dashboard_by_id_without_preload_content( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_stats_dashboard_by_id + + Get a particular dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_by_id_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "StatsDashboard", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_stats_dashboard_by_id_serialize( + self, + stats_dashboard_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stats_dashboard_id is not None: + _path_params['statsDashboardId'] = stats_dashboard_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/stats-dashboards/{statsDashboardId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_stats_dashboard_changes( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetStatsDashboardChanges200Response: + """get_stats_dashboard_changes + + Get the list of change events. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_changes_serialize( + stats_dashboard_id=stats_dashboard_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetStatsDashboardChanges200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_stats_dashboard_changes_with_http_info( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetStatsDashboardChanges200Response]: + """get_stats_dashboard_changes + + Get the list of change events. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_changes_serialize( + stats_dashboard_id=stats_dashboard_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetStatsDashboardChanges200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_stats_dashboard_changes_without_preload_content( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_stats_dashboard_changes + + Get the list of change events. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_changes_serialize( + stats_dashboard_id=stats_dashboard_id, + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetStatsDashboardChanges200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_stats_dashboard_changes_serialize( + self, + stats_dashboard_id, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stats_dashboard_id is not None: + _path_params['statsDashboardId'] = stats_dashboard_id + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/stats-dashboards/{statsDashboardId}/changes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_stats_dashboard_metrics( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> MetricsList: + """get_stats_dashboard_metrics + + Get the list of metrics. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_metrics_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "MetricsList", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_stats_dashboard_metrics_with_http_info( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[MetricsList]: + """get_stats_dashboard_metrics + + Get the list of metrics. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_metrics_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "MetricsList", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_stats_dashboard_metrics_without_preload_content( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_stats_dashboard_metrics + + Get the list of metrics. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboard_metrics_serialize( + stats_dashboard_id=stats_dashboard_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "MetricsList", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_stats_dashboard_metrics_serialize( + self, + stats_dashboard_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stats_dashboard_id is not None: + _path_params['statsDashboardId'] = stats_dashboard_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/stats-dashboards/{statsDashboardId}/metrics', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_stats_dashboards( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetStatsDashboards200Response: + """get_stats_dashboards + + Get all the dashboards. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboards_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetStatsDashboards200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_stats_dashboards_with_http_info( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetStatsDashboards200Response]: + """get_stats_dashboards + + Get all the dashboards. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboards_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetStatsDashboards200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def get_stats_dashboards_without_preload_content( + self, + take: Annotated[Optional[StrictInt], Field(description="The number of search results to return")] = None, + skip: Annotated[Optional[StrictInt], Field(description="The number of search results to skip")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_stats_dashboards + + Get all the dashboards. + + :param take: The number of search results to return + :type take: int + :param skip: The number of search results to skip + :type skip: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_stats_dashboards_serialize( + take=take, + skip=skip, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetStatsDashboards200Response", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _get_stats_dashboards_serialize( + self, + take, + skip, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if take is not None: + + _query_params.append(('take', take)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/api/v2/stats-dashboards', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + + + + + + + + + + + @validate_call + def start_stats_dashboards_convert( + self, + convert_dashboards_operation: Optional[ConvertDashboardsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AsyncContext: + """start_stats_dashboards_convert + + Converts dashboards to specified types of results. + + :param convert_dashboards_operation: + :type convert_dashboards_operation: ConvertDashboardsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_stats_dashboards_convert_serialize( + convert_dashboards_operation=convert_dashboards_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_stats_dashboards_convert_with_http_info( + self, + convert_dashboards_operation: Optional[ConvertDashboardsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AsyncContext]: + """start_stats_dashboards_convert + + Converts dashboards to specified types of results. + + :param convert_dashboards_operation: + :type convert_dashboards_operation: ConvertDashboardsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_stats_dashboards_convert_serialize( + convert_dashboards_operation=convert_dashboards_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def start_stats_dashboards_convert_without_preload_content( + self, + convert_dashboards_operation: Optional[ConvertDashboardsOperation] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """start_stats_dashboards_convert + + Converts dashboards to specified types of results. + + :param convert_dashboards_operation: + :type convert_dashboards_operation: ConvertDashboardsOperation + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._start_stats_dashboards_convert_serialize( + convert_dashboards_operation=convert_dashboards_operation, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "AsyncContext", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _start_stats_dashboards_convert_serialize( + self, + convert_dashboards_operation, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if convert_dashboards_operation is not None: + _body_params = convert_dashboards_operation + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/api/v2/stats-dashboards/operations/convert', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_stats_dashboard( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + stats_dashboard: Optional[StatsDashboard] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> StatsDashboard: + """update_stats_dashboard + + Update a dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param stats_dashboard: + :type stats_dashboard: StatsDashboard + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_stats_dashboard_serialize( + stats_dashboard_id=stats_dashboard_id, + stats_dashboard=stats_dashboard, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "StatsDashboard", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def update_stats_dashboard_with_http_info( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + stats_dashboard: Optional[StatsDashboard] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[StatsDashboard]: + """update_stats_dashboard + + Update a dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param stats_dashboard: + :type stats_dashboard: StatsDashboard + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_stats_dashboard_serialize( + stats_dashboard_id=stats_dashboard_id, + stats_dashboard=stats_dashboard, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "StatsDashboard", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=_response_types_map, + _request_timeout=_request_timeout + ) + + + @validate_call + def update_stats_dashboard_without_preload_content( + self, + stats_dashboard_id: Annotated[StrictStr, Field(description="The ID of the stats dashboard.")], + stats_dashboard: Optional[StatsDashboard] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update_stats_dashboard + + Update a dashboard. + + :param stats_dashboard_id: The ID of the stats dashboard. (required) + :type stats_dashboard_id: str + :param stats_dashboard: + :type stats_dashboard: StatsDashboard + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_stats_dashboard_serialize( + stats_dashboard_id=stats_dashboard_id, + stats_dashboard=stats_dashboard, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "StatsDashboard", + '403': "ErrorResponse", + '500': "ErrorResponse", + } + return self.api_client.call_api( + *_param, + _response_types_map=None, + _request_timeout=_request_timeout + ) + + + def _update_stats_dashboard_serialize( + self, + stats_dashboard_id, + stats_dashboard, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stats_dashboard_id is not None: + _path_params['statsDashboardId'] = stats_dashboard_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if stats_dashboard is not None: + _body_params = stats_dashboard + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'OAuth2', + 'OAuth2' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/api/v2/stats-dashboards/{statsDashboardId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 40a2728..536bfb0 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -31,6 +31,7 @@ AddActionInfo = DynamicModel('AddActionInfo', (), {} ) AddInput = DynamicModel('AddInput', (), {} ) Address = DynamicModel('Address', (), {} ) +AdvancedMetric = DynamicModel('AdvancedMetric', (), {} ) AdvancedSettings = DynamicModel('AdvancedSettings', (), {} ) Agent = DynamicModel('Agent', (), {} ) AgentAssignmentByFrontPanelPort = DynamicModel('AgentAssignmentByFrontPanelPort', (), {} ) @@ -86,6 +87,7 @@ CategoryValue = DynamicModel('CategoryValue', (), {} ) CertConfig = DynamicModel('CertConfig', (), {} ) Certificate = DynamicModel('Certificate', (), {} ) +ChangeEvent = DynamicModel('ChangeEvent', (), {} ) ChassisInfo = DynamicModel('ChassisInfo', (), {} ) Choice = DynamicModel('Choice', (), {} ) CipherTLS12 = DynamicModel('CipherTLS12', (), {} ) @@ -115,6 +117,7 @@ Consumer = DynamicModel('Consumer', (), {} ) ContentBlock = DynamicModel('ContentBlock', (), {} ) Controller = DynamicModel('Controller', (), {} ) +ConvertDashboardsOperation = DynamicModel('ConvertDashboardsOperation', (), {} ) CountedFeatureConsumer = DynamicModel('CountedFeatureConsumer', (), {} ) CountedFeatureStats = DynamicModel('CountedFeatureStats', (), {} ) CreateAppOperation = DynamicModel('CreateAppOperation', (), {} ) @@ -129,6 +132,7 @@ DUTNetwork = DynamicModel('DUTNetwork', (), {} ) DUTRange = DynamicModel('DUTRange', (), {} ) Dashboard = DynamicModel('Dashboard', (), {} ) +DataSourceDetails = DynamicModel('DataSourceDetails', (), {} ) DataType = DynamicModel('DataType', (), {} ) DataTypeValuesInner = DynamicModel('DataTypeValuesInner', (), {} ) Definition = DynamicModel('Definition', (), {} ) @@ -185,6 +189,7 @@ FortinetSettings = DynamicModel('FortinetSettings', (), {} ) FrontPanel = DynamicModel('FrontPanel', (), {} ) FrontPanelPortsByController = DynamicModel('FrontPanelPortsByController', (), {} ) +FrontPanelsByController = DynamicModel('FrontPanelsByController', (), {} ) FulfillmentRequest = DynamicModel('FulfillmentRequest', (), {} ) GenerateAllOperation = DynamicModel('GenerateAllOperation', (), {} ) GenerateCSVReportsOperation = DynamicModel('GenerateCSVReportsOperation', (), {} ) @@ -242,9 +247,14 @@ GetSessionMeta200ResponseOneOf = DynamicModel('GetSessionMeta200ResponseOneOf', (), {} ) GetSessions200Response = DynamicModel('GetSessions200Response', (), {} ) GetSessions200ResponseOneOf = DynamicModel('GetSessions200ResponseOneOf', (), {} ) +GetStatsDashboardChanges200Response = DynamicModel('GetStatsDashboardChanges200Response', (), {} ) +GetStatsDashboardChanges200ResponseOneOf = DynamicModel('GetStatsDashboardChanges200ResponseOneOf', (), {} ) +GetStatsDashboards200Response = DynamicModel('GetStatsDashboards200Response', (), {} ) +GetStatsDashboards200ResponseOneOf = DynamicModel('GetStatsDashboards200ResponseOneOf', (), {} ) GetStatsPlugins200Response = DynamicModel('GetStatsPlugins200Response', (), {} ) GetStatsPlugins200ResponseOneOf = DynamicModel('GetStatsPlugins200ResponseOneOf', (), {} ) GetStrikesOperation = DynamicModel('GetStrikesOperation', (), {} ) +GridPosition = DynamicModel('GridPosition', (), {} ) GroupTLS13 = DynamicModel('GroupTLS13', (), {} ) HTTPProfile = DynamicModel('HTTPProfile', (), {} ) HTTPReqMeta = DynamicModel('HTTPReqMeta', (), {} ) @@ -288,6 +298,7 @@ MediaFile = DynamicModel('MediaFile', (), {} ) MediaTrack = DynamicModel('MediaTrack', (), {} ) Metadata = DynamicModel('Metadata', (), {} ) +MetricsList = DynamicModel('MetricsList', (), {} ) MosMode = DynamicModel('MosMode', (), {} ) NameIdFormat = DynamicModel('NameIdFormat', (), {} ) NameServer = DynamicModel('NameServer', (), {} ) @@ -313,6 +324,7 @@ PSPRange = DynamicModel('PSPRange', (), {} ) PSPStack = DynamicModel('PSPStack', (), {} ) Pair = DynamicModel('Pair', (), {} ) +Panel = DynamicModel('Panel', (), {} ) ParamMetadata = DynamicModel('ParamMetadata', (), {} ) ParamMetadataTypeInfo = DynamicModel('ParamMetadataTypeInfo', (), {} ) ParamMetadataTypeInfoArrayV2 = DynamicModel('ParamMetadataTypeInfoArrayV2', (), {} ) @@ -383,6 +395,7 @@ SetAggregationModeOperation = DynamicModel('SetAggregationModeOperation', (), {} ) SetControllerAppOperation = DynamicModel('SetControllerAppOperation', (), {} ) SetDpdkModeOperationInput = DynamicModel('SetDpdkModeOperationInput', (), {} ) +SetFanOutModeOperation = DynamicModel('SetFanOutModeOperation', (), {} ) SetFrontPanelPortsLinkStateOperation = DynamicModel('SetFrontPanelPortsLinkStateOperation', (), {} ) SetNodesAppOperation = DynamicModel('SetNodesAppOperation', (), {} ) SetNtpOperationInput = DynamicModel('SetNtpOperationInput', (), {} ) @@ -397,6 +410,7 @@ StartAgentsBatchDeleteRequestInner = DynamicModel('StartAgentsBatchDeleteRequestInner', (), {} ) StatelessStream = DynamicModel('StatelessStream', (), {} ) StaticARPEntry = DynamicModel('StaticARPEntry', (), {} ) +StatsDashboard = DynamicModel('StatsDashboard', (), {} ) StatsResult = DynamicModel('StatsResult', (), {} ) SteadySegment = DynamicModel('SteadySegment', (), {} ) StepSegment = DynamicModel('StepSegment', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index cfc93c2..5225f22 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -31,6 +31,7 @@ class LinkNameException(Exception): from cyperf.models.add_action_info import AddActionInfo from cyperf.models.add_input import AddInput from cyperf.models.address import Address +from cyperf.models.advanced_metric import AdvancedMetric from cyperf.models.advanced_settings import AdvancedSettings from cyperf.models.agent import Agent from cyperf.models.agent_assignment_by_front_panel_port import AgentAssignmentByFrontPanelPort @@ -86,6 +87,7 @@ class LinkNameException(Exception): from cyperf.models.category_value import CategoryValue from cyperf.models.cert_config import CertConfig from cyperf.models.certificate import Certificate +from cyperf.models.change_event import ChangeEvent from cyperf.models.chassis_info import ChassisInfo from cyperf.models.choice import Choice from cyperf.models.cipher_tls12 import CipherTLS12 @@ -115,6 +117,7 @@ class LinkNameException(Exception): from cyperf.models.consumer import Consumer from cyperf.models.content_block import ContentBlock from cyperf.models.controller import Controller +from cyperf.models.convert_dashboards_operation import ConvertDashboardsOperation from cyperf.models.counted_feature_consumer import CountedFeatureConsumer from cyperf.models.counted_feature_stats import CountedFeatureStats from cyperf.models.create_app_operation import CreateAppOperation @@ -129,6 +132,7 @@ class LinkNameException(Exception): from cyperf.models.dut_network import DUTNetwork from cyperf.models.dut_range import DUTRange from cyperf.models.dashboard import Dashboard +from cyperf.models.data_source_details import DataSourceDetails from cyperf.models.data_type import DataType from cyperf.models.data_type_values_inner import DataTypeValuesInner from cyperf.models.definition import Definition @@ -185,6 +189,7 @@ class LinkNameException(Exception): from cyperf.models.fortinet_settings import FortinetSettings from cyperf.models.front_panel import FrontPanel from cyperf.models.front_panel_ports_by_controller import FrontPanelPortsByController +from cyperf.models.front_panels_by_controller import FrontPanelsByController from cyperf.models.fulfillment_request import FulfillmentRequest from cyperf.models.generate_all_operation import GenerateAllOperation from cyperf.models.generate_csv_reports_operation import GenerateCSVReportsOperation @@ -242,9 +247,14 @@ class LinkNameException(Exception): from cyperf.models.get_session_meta200_response_one_of import GetSessionMeta200ResponseOneOf from cyperf.models.get_sessions200_response import GetSessions200Response from cyperf.models.get_sessions200_response_one_of import GetSessions200ResponseOneOf +from cyperf.models.get_stats_dashboard_changes200_response import GetStatsDashboardChanges200Response +from cyperf.models.get_stats_dashboard_changes200_response_one_of import GetStatsDashboardChanges200ResponseOneOf +from cyperf.models.get_stats_dashboards200_response import GetStatsDashboards200Response +from cyperf.models.get_stats_dashboards200_response_one_of import GetStatsDashboards200ResponseOneOf from cyperf.models.get_stats_plugins200_response import GetStatsPlugins200Response from cyperf.models.get_stats_plugins200_response_one_of import GetStatsPlugins200ResponseOneOf from cyperf.models.get_strikes_operation import GetStrikesOperation +from cyperf.models.grid_position import GridPosition from cyperf.models.group_tls13 import GroupTLS13 from cyperf.models.http_profile import HTTPProfile from cyperf.models.http_req_meta import HTTPReqMeta @@ -288,6 +298,7 @@ class LinkNameException(Exception): from cyperf.models.media_file import MediaFile from cyperf.models.media_track import MediaTrack from cyperf.models.metadata import Metadata +from cyperf.models.metrics_list import MetricsList from cyperf.models.mos_mode import MosMode from cyperf.models.name_id_format import NameIdFormat from cyperf.models.name_server import NameServer @@ -313,6 +324,7 @@ class LinkNameException(Exception): from cyperf.models.psp_range import PSPRange from cyperf.models.psp_stack import PSPStack from cyperf.models.pair import Pair +from cyperf.models.panel import Panel from cyperf.models.param_metadata import ParamMetadata from cyperf.models.param_metadata_type_info import ParamMetadataTypeInfo from cyperf.models.param_metadata_type_info_array_v2 import ParamMetadataTypeInfoArrayV2 @@ -383,6 +395,7 @@ class LinkNameException(Exception): from cyperf.models.set_aggregation_mode_operation import SetAggregationModeOperation from cyperf.models.set_controller_app_operation import SetControllerAppOperation from cyperf.models.set_dpdk_mode_operation_input import SetDpdkModeOperationInput +from cyperf.models.set_fan_out_mode_operation import SetFanOutModeOperation from cyperf.models.set_front_panel_ports_link_state_operation import SetFrontPanelPortsLinkStateOperation from cyperf.models.set_nodes_app_operation import SetNodesAppOperation from cyperf.models.set_ntp_operation_input import SetNtpOperationInput @@ -397,6 +410,7 @@ class LinkNameException(Exception): from cyperf.models.start_agents_batch_delete_request_inner import StartAgentsBatchDeleteRequestInner from cyperf.models.stateless_stream import StatelessStream from cyperf.models.static_arp_entry import StaticARPEntry +from cyperf.models.stats_dashboard import StatsDashboard from cyperf.models.stats_result import StatsResult from cyperf.models.steady_segment import SteadySegment from cyperf.models.step_segment import StepSegment diff --git a/cyperf/models/advanced_metric.py b/cyperf/models/advanced_metric.py new file mode 100644 index 0000000..e6c2991 --- /dev/null +++ b/cyperf/models/advanced_metric.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class AdvancedMetric(BaseModel): + """ + AdvancedMetric + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="The name of the metric") + sort_type: Optional[StrictStr] = Field(default=None, description="The sorting type of the metric", alias="sortType") + value: Optional[StrictStr] = Field(default=None, description="The value of the metric") + __properties: ClassVar[List[str]] = ["name", "sortType", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdvancedMetric from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdvancedMetric from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "name": obj.get("name"), + "sortType": obj.get("sortType"), + "value": obj.get("value") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/change_event.py b/cyperf/models/change_event.py new file mode 100644 index 0000000..cccc9cc --- /dev/null +++ b/cyperf/models/change_event.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ChangeEvent(BaseModel): + """ + ChangeEvent + """ # noqa: E501 + dashboard_id: Optional[StrictStr] = Field(default=None, description="The id of the changed dashboard", alias="dashboardId") + session_id: Optional[StrictStr] = Field(default=None, description="The id of the session where the change happened", alias="sessionId") + test_id: Optional[StrictStr] = Field(default=None, description="The id of the test where the change happened", alias="testId") + __properties: ClassVar[List[str]] = ["dashboardId", "sessionId", "testId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ChangeEvent from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ChangeEvent from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "dashboardId": obj.get("dashboardId"), + "sessionId": obj.get("sessionId"), + "testId": obj.get("testId") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/convert_dashboards_operation.py b/cyperf/models/convert_dashboards_operation.py new file mode 100644 index 0000000..40b23dd --- /dev/null +++ b/cyperf/models/convert_dashboards_operation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class ConvertDashboardsOperation(BaseModel): + """ + ConvertDashboardsOperation + """ # noqa: E501 + dashboard_ids: Optional[List[StrictStr]] = Field(default=None, description="The dashboard ids to be converted", alias="dashboardIds") + test_id: Optional[StrictStr] = Field(default=None, description="The test that contains the dashboards", alias="testId") + types: Optional[List[StrictStr]] = Field(default=None, description="The types of queries the dashboards will be converted in") + __properties: ClassVar[List[str]] = ["dashboardIds", "testId", "types"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConvertDashboardsOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ConvertDashboardsOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "dashboardIds": obj.get("dashboardIds") if obj.get("dashboardIds") is not None else [], + "testId": obj.get("testId"), + "types": obj.get("types") if obj.get("types") is not None else [] + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/data_source_details.py b/cyperf/models/data_source_details.py new file mode 100644 index 0000000..50a939d --- /dev/null +++ b/cyperf/models/data_source_details.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class DataSourceDetails(BaseModel): + """ + DataSourceDetails + """ # noqa: E501 + extra_filters: Optional[Dict[str, StrictStr]] = Field(default=None, description="Extra filters to be applied to the data source of the panel", alias="extraFilters") + name: Optional[StrictStr] = Field(default=None, description="The name of the data source of the panel") + timestamp_field: Optional[StrictStr] = Field(default=None, description="The name of the timestamp field of the data source of the panel", alias="timestampField") + __properties: ClassVar[List[str]] = ["extraFilters", "name", "timestampField"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataSourceDetails from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataSourceDetails from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "extraFilters": obj.get("extraFilters"), + "name": obj.get("name"), + "timestampField": obj.get("timestampField") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/front_panel.py b/cyperf/models/front_panel.py index 87943b4..3e5f311 100644 --- a/cyperf/models/front_panel.py +++ b/cyperf/models/front_panel.py @@ -31,6 +31,7 @@ class FrontPanel(BaseModel): """ FrontPanel """ # noqa: E501 + available_fan_out_modes: Optional[List[StrictStr]] = Field(default=None, description="A list with the current fanOut modes available for the front panel", alias="availableFanOutModes") fan_out_mode: Optional[StrictStr] = Field(default=None, description="The current fanOut mode of the front panel", alias="fanOutMode") health_details: Optional[List[HealthIssue]] = Field(default=None, description="A list with more details regarding the health of the front panel", alias="healthDetails") healthy: Optional[StrictBool] = Field(default=None, description="Whether the front panel has any health issue or not") @@ -39,7 +40,7 @@ class FrontPanel(BaseModel): name: Optional[StrictStr] = Field(default=None, description="A user-friendly display name for the front panel") ports: Optional[List[Port]] = Field(default=None, description="The front panel ports of the front panel") status: Optional[StrictStr] = Field(default=None, description="The current status of the front panel: ready or not ready") - __properties: ClassVar[List[str]] = ["fanOutMode", "healthDetails", "healthy", "id", "links", "name", "ports", "status"] + __properties: ClassVar[List[str]] = ["availableFanOutModes", "fanOutMode", "healthDetails", "healthy", "id", "links", "name", "ports", "status"] model_config = ConfigDict( populate_by_name=True, @@ -115,7 +116,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return _obj _obj = cls.model_validate({ - "fanOutMode": obj.get("fanOutMode"), + "availableFanOutModes": obj.get("availableFanOutModes") if obj.get("availableFanOutModes") is not None else [], + "fanOutMode": obj.get("fanOutMode"), "healthDetails": ( [HealthIssue.from_dict(_item) for _item in obj.get("healthDetails", [])] if obj.get("healthDetails") is not None else None), "healthy": obj.get("healthy"), "id": obj.get("id"), diff --git a/cyperf/models/front_panels_by_controller.py b/cyperf/models/front_panels_by_controller.py new file mode 100644 index 0000000..37c4d0a --- /dev/null +++ b/cyperf/models/front_panels_by_controller.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class FrontPanelsByController(BaseModel): + """ + FrontPanelsByController + """ # noqa: E501 + controller_id: Optional[StrictStr] = Field(default=None, description="The id of the controller that the front panels are part of.", alias="controllerId") + front_panels: Optional[List[StrictStr]] = Field(default=None, description="The front panel ids.", alias="frontPanels") + __properties: ClassVar[List[str]] = ["controllerId", "frontPanels"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FrontPanelsByController from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FrontPanelsByController from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllerId": obj.get("controllerId"), + "frontPanels": obj.get("frontPanels") if obj.get("frontPanels") is not None else [] + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_stats_dashboard_changes200_response.py b/cyperf/models/get_stats_dashboard_changes200_response.py new file mode 100644 index 0000000..7256f0b --- /dev/null +++ b/cyperf/models/get_stats_dashboard_changes200_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.change_event import ChangeEvent +from cyperf.models.get_stats_dashboard_changes200_response_one_of import GetStatsDashboardChanges200ResponseOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETSTATSDASHBOARDCHANGES200RESPONSE_ONE_OF_SCHEMAS = ["GetStatsDashboardChanges200ResponseOneOf", "List[ChangeEvent]"] + +class GetStatsDashboardChanges200Response(BaseModel): + """ + GetStatsDashboardChanges200Response + """ + # data type: List[ChangeEvent] + oneof_schema_1_validator: Optional[List[ChangeEvent]] = None + # data type: GetStatsDashboardChanges200ResponseOneOf + oneof_schema_2_validator: Optional[GetStatsDashboardChanges200ResponseOneOf] = None + actual_instance: Optional[Union[GetStatsDashboardChanges200ResponseOneOf, List[ChangeEvent]]] = None + one_of_schemas: Set[str] = { "GetStatsDashboardChanges200ResponseOneOf", "List[ChangeEvent]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetStatsDashboardChanges200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[ChangeEvent] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetStatsDashboardChanges200ResponseOneOf + if not isinstance(v, GetStatsDashboardChanges200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetStatsDashboardChanges200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetStatsDashboardChanges200Response with oneOf schemas: GetStatsDashboardChanges200ResponseOneOf, List[ChangeEvent]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetStatsDashboardChanges200Response with oneOf schemas: GetStatsDashboardChanges200ResponseOneOf, List[ChangeEvent]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[ChangeEvent] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetStatsDashboardChanges200ResponseOneOf + + + + try: + instance.actual_instance = GetStatsDashboardChanges200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetStatsDashboardChanges200Response with oneOf schemas: GetStatsDashboardChanges200ResponseOneOf, List[ChangeEvent]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetStatsDashboardChanges200Response with oneOf schemas: GetStatsDashboardChanges200ResponseOneOf, List[ChangeEvent]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetStatsDashboardChanges200ResponseOneOf, List[ChangeEvent]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_stats_dashboard_changes200_response_one_of.py b/cyperf/models/get_stats_dashboard_changes200_response_one_of.py new file mode 100644 index 0000000..b62528d --- /dev/null +++ b/cyperf/models/get_stats_dashboard_changes200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.change_event import ChangeEvent +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetStatsDashboardChanges200ResponseOneOf(BaseModel): + """ + GetStatsDashboardChanges200ResponseOneOf + """ # noqa: E501 + data: Optional[List[ChangeEvent]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetStatsDashboardChanges200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetStatsDashboardChanges200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": ( [ChangeEvent.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_stats_dashboards200_response.py b/cyperf/models/get_stats_dashboards200_response.py new file mode 100644 index 0000000..00a31c4 --- /dev/null +++ b/cyperf/models/get_stats_dashboards200_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.get_stats_dashboards200_response_one_of import GetStatsDashboards200ResponseOneOf +from cyperf.models.stats_dashboard import StatsDashboard +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETSTATSDASHBOARDS200RESPONSE_ONE_OF_SCHEMAS = ["GetStatsDashboards200ResponseOneOf", "List[StatsDashboard]"] + +class GetStatsDashboards200Response(BaseModel): + """ + GetStatsDashboards200Response + """ + # data type: List[StatsDashboard] + oneof_schema_1_validator: Optional[List[StatsDashboard]] = None + # data type: GetStatsDashboards200ResponseOneOf + oneof_schema_2_validator: Optional[GetStatsDashboards200ResponseOneOf] = None + actual_instance: Optional[Union[GetStatsDashboards200ResponseOneOf, List[StatsDashboard]]] = None + one_of_schemas: Set[str] = { "GetStatsDashboards200ResponseOneOf", "List[StatsDashboard]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetStatsDashboards200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[StatsDashboard] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetStatsDashboards200ResponseOneOf + if not isinstance(v, GetStatsDashboards200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetStatsDashboards200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetStatsDashboards200Response with oneOf schemas: GetStatsDashboards200ResponseOneOf, List[StatsDashboard]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetStatsDashboards200Response with oneOf schemas: GetStatsDashboards200ResponseOneOf, List[StatsDashboard]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[StatsDashboard] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetStatsDashboards200ResponseOneOf + + + + try: + instance.actual_instance = GetStatsDashboards200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetStatsDashboards200Response with oneOf schemas: GetStatsDashboards200ResponseOneOf, List[StatsDashboard]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetStatsDashboards200Response with oneOf schemas: GetStatsDashboards200ResponseOneOf, List[StatsDashboard]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetStatsDashboards200ResponseOneOf, List[StatsDashboard]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_stats_dashboards200_response_one_of.py b/cyperf/models/get_stats_dashboards200_response_one_of.py new file mode 100644 index 0000000..4890ca5 --- /dev/null +++ b/cyperf/models/get_stats_dashboards200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.stats_dashboard import StatsDashboard +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetStatsDashboards200ResponseOneOf(BaseModel): + """ + GetStatsDashboards200ResponseOneOf + """ # noqa: E501 + data: Optional[List[StatsDashboard]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetStatsDashboards200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetStatsDashboards200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": ( [StatsDashboard.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/grid_position.py b/cyperf/models/grid_position.py new file mode 100644 index 0000000..836a4f4 --- /dev/null +++ b/cyperf/models/grid_position.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GridPosition(BaseModel): + """ + GridPosition + """ # noqa: E501 + height: Optional[StrictInt] = Field(default=None, description="The height of the panel. A unit is equal to 30 pixels") + width: Optional[StrictInt] = Field(default=None, description="The width of the panel. A unit is equal to 1/24 of the screen width") + x_pos: Optional[StrictInt] = Field(default=None, description="The x coordinate of the panel. A unit is equal to 1/24 of the screen width", alias="xPos") + y_pos: Optional[StrictInt] = Field(default=None, description="The y coordinate of the panel. A unit is equal to 30 pixels", alias="yPos") + __properties: ClassVar[List[str]] = ["height", "width", "xPos", "yPos"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GridPosition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GridPosition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "height": obj.get("height"), + "width": obj.get("width"), + "xPos": obj.get("xPos"), + "yPos": obj.get("yPos") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/metrics_list.py b/cyperf/models/metrics_list.py new file mode 100644 index 0000000..96f4015 --- /dev/null +++ b/cyperf/models/metrics_list.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.advanced_metric import AdvancedMetric +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class MetricsList(BaseModel): + """ + MetricsList + """ # noqa: E501 + dashboard_id: Optional[StrictStr] = Field(default=None, description="The id of the dashboard with these metrics", alias="dashboardId") + metrics: Optional[List[AdvancedMetric]] = Field(default=None, description="The list of metrics in the specified dashboard") + __properties: ClassVar[List[str]] = ["dashboardId", "metrics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MetricsList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in metrics (list) + _items = [] + if self.metrics: + for _item in self.metrics: + if _item: + _items.append(_item.to_dict()) + _dict['metrics'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MetricsList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "dashboardId": obj.get("dashboardId"), + "metrics": ( [AdvancedMetric.from_dict(_item) for _item in obj.get("metrics", [])] if obj.get("metrics") is not None else None) + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/panel.py b/cyperf/models/panel.py new file mode 100644 index 0000000..f31c256 --- /dev/null +++ b/cyperf/models/panel.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.advanced_metric import AdvancedMetric +from cyperf.models.appsec_app_metadata_keywords_inner import AppsecAppMetadataKeywordsInner +from cyperf.models.data_source_details import DataSourceDetails +from cyperf.models.grid_position import GridPosition +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class Panel(BaseModel): + """ + Panel + """ # noqa: E501 + filters: Optional[List[Dict[str, AppsecAppMetadataKeywordsInner]]] = Field(default=None, description="The filters to be applied to the panel stats") + group_by: Optional[List[AdvancedMetric]] = Field(default=None, description="The stats to be used as group by clauses", alias="groupBy") + limit: Optional[StrictInt] = Field(default=None, description="The maximum number of stats to be generated in a certain interval") + metrics: Optional[List[AdvancedMetric]] = Field(default=None, description="The stats to be displayed in the panel") + panel_data_source: Optional[DataSourceDetails] = Field(default=None, alias="panelDataSource") + panel_type: Optional[StrictStr] = Field(default=None, description="The type of the panel", alias="panelType") + position: Optional[GridPosition] = None + stats_sources: Optional[List[StrictStr]] = Field(default=None, description="The sources of the statistics based on the panel configuration", alias="statsSources") + title: Optional[StrictStr] = Field(default=None, description="The title of the panel") + __properties: ClassVar[List[str]] = ["filters", "groupBy", "limit", "metrics", "panelDataSource", "panelType", "position", "statsSources", "title"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Panel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in filters (list) + _items = [] + if self.filters: + for _item in self.filters: + if _item: + _items.append(_item.to_dict()) + _dict['filters'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in group_by (list) + _items = [] + if self.group_by: + for _item in self.group_by: + if _item: + _items.append(_item.to_dict()) + _dict['groupBy'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in metrics (list) + _items = [] + if self.metrics: + for _item in self.metrics: + if _item: + _items.append(_item.to_dict()) + _dict['metrics'] = _items + # override the default output from pydantic by calling `to_dict()` of panel_data_source + if self.panel_data_source: + _dict['panelDataSource'] = self.panel_data_source.to_dict() + # override the default output from pydantic by calling `to_dict()` of position + if self.position: + _dict['position'] = self.position.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Panel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "filters": ( [Dict.from_dict(_item) for _item in obj.get("filters", [])] if obj.get("filters") is not None else None), + "groupBy": ( [AdvancedMetric.from_dict(_item) for _item in obj.get("groupBy", [])] if obj.get("groupBy") is not None else None), + "limit": obj.get("limit"), + "metrics": ( [AdvancedMetric.from_dict(_item) for _item in obj.get("metrics", [])] if obj.get("metrics") is not None else None), + "panelDataSource": DataSourceDetails.from_dict(obj["panelDataSource"]) if obj.get("panelDataSource") is not None else None, + "panelType": obj.get("panelType"), + "position": GridPosition.from_dict(obj["position"]) if obj.get("position") is not None else None, + "statsSources": obj.get("statsSources") if obj.get("statsSources") is not None else [], + "title": obj.get("title") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/set_controller_app_operation.py b/cyperf/models/set_controller_app_operation.py index 650c01a..bca36c3 100644 --- a/cyperf/models/set_controller_app_operation.py +++ b/cyperf/models/set_controller_app_operation.py @@ -30,8 +30,8 @@ class SetControllerAppOperation(BaseModel): """ # noqa: E501 app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the controllers.", alias="appId") controllers: Optional[List[StrictStr]] = Field(default=None, description="The controller ids for which to activate the app.") - force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") - __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + force_clear_ownership: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.", alias="forceClearOwnership") + __properties: ClassVar[List[str]] = ["appId", "controllers", "forceClearOwnership"] model_config = ConfigDict( populate_by_name=True, @@ -88,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "appId": obj.get("appId"), "controllers": obj.get("controllers") if obj.get("controllers") is not None else [], - "force": obj.get("force") + "forceClearOwnership": obj.get("forceClearOwnership") , "links": obj.get("links") }) diff --git a/cyperf/models/set_fan_out_mode_operation.py b/cyperf/models/set_fan_out_mode_operation.py new file mode 100644 index 0000000..ed01a4e --- /dev/null +++ b/cyperf/models/set_fan_out_mode_operation.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.front_panels_by_controller import FrontPanelsByController +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class SetFanOutModeOperation(BaseModel): + """ + SetFanOutModeOperation + """ # noqa: E501 + controllers: Optional[List[FrontPanelsByController]] = Field(default=None, description="The controllers that the front panels are part of.") + fan_out_mode: Optional[StrictStr] = Field(default=None, description="The desired fanOut mode.", alias="fanOutMode") + force_clear_ownership: Optional[StrictBool] = Field(default=None, description="Whether the ownership information of reserved ports will be cleared before switching the fanOut mode.", alias="forceClearOwnership") + __properties: ClassVar[List[str]] = ["controllers", "fanOutMode", "forceClearOwnership"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetFanOutModeOperation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in controllers (list) + _items = [] + if self.controllers: + for _item in self.controllers: + if _item: + _items.append(_item.to_dict()) + _dict['controllers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetFanOutModeOperation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "controllers": ( [FrontPanelsByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), + "fanOutMode": obj.get("fanOutMode"), + "forceClearOwnership": obj.get("forceClearOwnership") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/set_nodes_app_operation.py b/cyperf/models/set_nodes_app_operation.py index 2c2022e..5712dad 100644 --- a/cyperf/models/set_nodes_app_operation.py +++ b/cyperf/models/set_nodes_app_operation.py @@ -31,8 +31,8 @@ class SetNodesAppOperation(BaseModel): """ # noqa: E501 app_id: Optional[StrictStr] = Field(default=None, description="The id of the app to activate on the compute nodes.", alias="appId") controllers: Optional[List[NodesByController]] = Field(default=None, description="The controllers that the compute nodes are part of.") - force: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.") - __properties: ClassVar[List[str]] = ["appId", "controllers", "force"] + force_clear_ownership: Optional[StrictBool] = Field(default=None, description="Whether the ownership information will be cleared or not.", alias="forceClearOwnership") + __properties: ClassVar[List[str]] = ["appId", "controllers", "forceClearOwnership"] model_config = ConfigDict( populate_by_name=True, @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "appId": obj.get("appId"), "controllers": ( [NodesByController.from_dict(_item) for _item in obj.get("controllers", [])] if obj.get("controllers") is not None else None), - "force": obj.get("force") + "forceClearOwnership": obj.get("forceClearOwnership") , "links": obj.get("links") }) diff --git a/cyperf/models/stats_dashboard.py b/cyperf/models/stats_dashboard.py new file mode 100644 index 0000000..c597570 --- /dev/null +++ b/cyperf/models/stats_dashboard.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.api_link import APILink +from cyperf.models.change_event import ChangeEvent +from cyperf.models.metrics_list import MetricsList +from cyperf.models.panel import Panel +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class StatsDashboard(BaseModel): + """ + StatsDashboard + """ # noqa: E501 + changes: Optional[List[ChangeEvent]] = Field(default=None, description="The changes hook") + group_id: Optional[StrictStr] = Field(default=None, description="The group identifier of the dashboard", alias="groupId") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the dashboard") + links: Optional[List[APILink]] = None + metrics: Optional[MetricsList] = None + name: Optional[StrictStr] = Field(default=None, description="The name of the dashboard") + owner: Optional[StrictStr] = Field(default=None, description="The friendly display name of the entity that created the dashboard") + owner_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the entity that created the dashboard", alias="ownerId") + panels: Optional[List[Panel]] = Field(default=None, description="The list of panels in the dashboard") + read_only: Optional[StrictBool] = Field(default=None, description="Is a read only dashboard", alias="readOnly") + type: Optional[StrictStr] = Field(default=None, description="The application type of the dashboard") + __properties: ClassVar[List[str]] = ["changes", "groupId", "id", "links", "metrics", "name", "owner", "ownerId", "panels", "readOnly", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of StatsDashboard from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "owner", + "owner_id", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in changes (list) + _items = [] + if self.changes: + for _item in self.changes: + if _item: + _items.append(_item.to_dict()) + _dict['changes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in links (list) + _items = [] + if self.links: + for _item in self.links: + if _item: + _items.append(_item.to_dict()) + _dict['links'] = _items + # override the default output from pydantic by calling `to_dict()` of metrics + if self.metrics: + _dict['metrics'] = self.metrics.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in panels (list) + _items = [] + if self.panels: + for _item in self.panels: + if _item: + _items.append(_item.to_dict()) + _dict['panels'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of StatsDashboard from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "changes": ( [ChangeEvent.from_dict(_item) for _item in obj.get("changes", [])] if obj.get("changes") is not None else None), + "groupId": obj.get("groupId"), + "id": obj.get("id"), + "links": ( [APILink.from_dict(_item) for _item in obj.get("links", [])] if obj.get("links") is not None else None), + "metrics": MetricsList.from_dict(obj["metrics"]) if obj.get("metrics") is not None else None, + "name": obj.get("name"), + "owner": obj.get("owner"), + "ownerId": obj.get("ownerId"), + "panels": ( [Panel.from_dict(_item) for _item in obj.get("panels", [])] if obj.get("panels") is not None else None), + "readOnly": obj.get("readOnly"), + "type": obj.get("type") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/docs/AdvancedMetric.md b/docs/AdvancedMetric.md new file mode 100644 index 0000000..3c35275 --- /dev/null +++ b/docs/AdvancedMetric.md @@ -0,0 +1,31 @@ +# AdvancedMetric + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the metric | [optional] +**sort_type** | **str** | The sorting type of the metric | [optional] +**value** | **str** | The value of the metric | [optional] + +## Example + +```python +from cyperf.models.advanced_metric import AdvancedMetric + +# TODO update the JSON string below +json = "{}" +# create an instance of AdvancedMetric from a JSON string +advanced_metric_instance = AdvancedMetric.from_json(json) +# print the JSON string representation of the object +print(AdvancedMetric.to_json()) + +# convert the object into a dict +advanced_metric_dict = advanced_metric_instance.to_dict() +# create an instance of AdvancedMetric from a dict +advanced_metric_from_dict = AdvancedMetric.from_dict(advanced_metric_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index ff8134a..d2c7147 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -36,6 +36,7 @@ Method | HTTP request | Description [**start_controllers_reboot_compute_resource**](AgentsApi.md#start_controllers_reboot_compute_resource) | **POST** /api/v2/controllers/operations/reboot-compute-resource | [**start_controllers_reboot_port**](AgentsApi.md#start_controllers_reboot_port) | **POST** /api/v2/controllers/operations/reboot-port | [**start_controllers_set_app**](AgentsApi.md#start_controllers_set_app) | **POST** /api/v2/controllers/operations/set-app | +[**start_controllers_set_front_panel_fanout**](AgentsApi.md#start_controllers_set_front_panel_fanout) | **POST** /api/v2/controllers/operations/set-front-panel-fanout | [**start_controllers_set_front_panel_port_link_state**](AgentsApi.md#start_controllers_set_front_panel_port_link_state) | **POST** /api/v2/controllers/operations/set-front-panel-port-link-state | [**start_controllers_set_node_aggregation**](AgentsApi.md#start_controllers_set_node_aggregation) | **POST** /api/v2/controllers/operations/set-node-aggregation | [**start_controllers_set_node_app**](AgentsApi.md#start_controllers_set_node_app) | **POST** /api/v2/controllers/operations/set-node-app | @@ -2579,6 +2580,84 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **start_controllers_set_front_panel_fanout** +> AsyncContext start_controllers_set_front_panel_fanout(set_fan_out_mode_operation=set_fan_out_mode_operation) + + + +Set the fanOut mode of the front panels. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.set_fan_out_mode_operation import SetFanOutModeOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.AgentsApi(api_client) + set_fan_out_mode_operation = cyperf.SetFanOutModeOperation() # SetFanOutModeOperation | (optional) + + try: + api_response = api_instance.start_controllers_set_front_panel_fanout(set_fan_out_mode_operation=set_fan_out_mode_operation) + print("The response of AgentsApi->start_controllers_set_front_panel_fanout:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AgentsApi->start_controllers_set_front_panel_fanout: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **set_fan_out_mode_operation** | [**SetFanOutModeOperation**](SetFanOutModeOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **start_controllers_set_front_panel_port_link_state** > AsyncContext start_controllers_set_front_panel_port_link_state(set_front_panel_ports_link_state_operation=set_front_panel_ports_link_state_operation) diff --git a/docs/ChangeEvent.md b/docs/ChangeEvent.md new file mode 100644 index 0000000..cae861f --- /dev/null +++ b/docs/ChangeEvent.md @@ -0,0 +1,31 @@ +# ChangeEvent + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dashboard_id** | **str** | The id of the changed dashboard | [optional] +**session_id** | **str** | The id of the session where the change happened | [optional] +**test_id** | **str** | The id of the test where the change happened | [optional] + +## Example + +```python +from cyperf.models.change_event import ChangeEvent + +# TODO update the JSON string below +json = "{}" +# create an instance of ChangeEvent from a JSON string +change_event_instance = ChangeEvent.from_json(json) +# print the JSON string representation of the object +print(ChangeEvent.to_json()) + +# convert the object into a dict +change_event_dict = change_event_instance.to_dict() +# create an instance of ChangeEvent from a dict +change_event_from_dict = ChangeEvent.from_dict(change_event_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConvertDashboardsOperation.md b/docs/ConvertDashboardsOperation.md new file mode 100644 index 0000000..ec83651 --- /dev/null +++ b/docs/ConvertDashboardsOperation.md @@ -0,0 +1,31 @@ +# ConvertDashboardsOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dashboard_ids** | **List[str]** | The dashboard ids to be converted | [optional] +**test_id** | **str** | The test that contains the dashboards | [optional] +**types** | **List[str]** | The types of queries the dashboards will be converted in | [optional] + +## Example + +```python +from cyperf.models.convert_dashboards_operation import ConvertDashboardsOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of ConvertDashboardsOperation from a JSON string +convert_dashboards_operation_instance = ConvertDashboardsOperation.from_json(json) +# print the JSON string representation of the object +print(ConvertDashboardsOperation.to_json()) + +# convert the object into a dict +convert_dashboards_operation_dict = convert_dashboards_operation_instance.to_dict() +# create an instance of ConvertDashboardsOperation from a dict +convert_dashboards_operation_from_dict = ConvertDashboardsOperation.from_dict(convert_dashboards_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DashboardsApi.md b/docs/DashboardsApi.md new file mode 100644 index 0000000..7b5b267 --- /dev/null +++ b/docs/DashboardsApi.md @@ -0,0 +1,731 @@ +# cyperf.DashboardsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_stats_dashboard_changes**](DashboardsApi.md#create_stats_dashboard_changes) | **POST** /api/v2/stats-dashboards/{statsDashboardId}/changes | +[**create_stats_dashboards**](DashboardsApi.md#create_stats_dashboards) | **POST** /api/v2/stats-dashboards | +[**delete_stats_dashboard**](DashboardsApi.md#delete_stats_dashboard) | **DELETE** /api/v2/stats-dashboards/{statsDashboardId} | +[**get_stats_dashboard_by_id**](DashboardsApi.md#get_stats_dashboard_by_id) | **GET** /api/v2/stats-dashboards/{statsDashboardId} | +[**get_stats_dashboard_changes**](DashboardsApi.md#get_stats_dashboard_changes) | **GET** /api/v2/stats-dashboards/{statsDashboardId}/changes | +[**get_stats_dashboard_metrics**](DashboardsApi.md#get_stats_dashboard_metrics) | **GET** /api/v2/stats-dashboards/{statsDashboardId}/metrics | +[**get_stats_dashboards**](DashboardsApi.md#get_stats_dashboards) | **GET** /api/v2/stats-dashboards | +[**start_stats_dashboards_convert**](DashboardsApi.md#start_stats_dashboards_convert) | **POST** /api/v2/stats-dashboards/operations/convert | +[**update_stats_dashboard**](DashboardsApi.md#update_stats_dashboard) | **PUT** /api/v2/stats-dashboards/{statsDashboardId} | + + +# **create_stats_dashboard_changes** +> List[ChangeEvent] create_stats_dashboard_changes(stats_dashboard_id, stats_dashboard_changes=stats_dashboard_changes) + + + +Register a change event. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.change_event import ChangeEvent +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + stats_dashboard_id = 'stats_dashboard_id_example' # str | The ID of the stats dashboard. + stats_dashboard_changes = [cyperf.ChangeEvent()] # List[ChangeEvent] | (optional) + + try: + api_response = api_instance.create_stats_dashboard_changes(stats_dashboard_id, stats_dashboard_changes=stats_dashboard_changes) + print("The response of DashboardsApi->create_stats_dashboard_changes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardsApi->create_stats_dashboard_changes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stats_dashboard_id** | **str**| The ID of the stats dashboard. | + **stats_dashboard_changes** | [**List[ChangeEvent]**](ChangeEvent.md)| | [optional] + +### Return type + +[**List[ChangeEvent]**](ChangeEvent.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The change event was successfully registered. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_stats_dashboards** +> List[StatsDashboard] create_stats_dashboards(stats_dashboards=stats_dashboards) + + + +Add a new dashboard. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.stats_dashboard import StatsDashboard +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + stats_dashboards = [cyperf.StatsDashboard()] # List[StatsDashboard] | (optional) + + try: + api_response = api_instance.create_stats_dashboards(stats_dashboards=stats_dashboards) + print("The response of DashboardsApi->create_stats_dashboards:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardsApi->create_stats_dashboards: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stats_dashboards** | [**List[StatsDashboard]**](StatsDashboard.md)| | [optional] + +### Return type + +[**List[StatsDashboard]**](StatsDashboard.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The dashboard was successfully added. | - | +**409** | The request could not be completed due to a conflict with the current state of the target resource. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_stats_dashboard** +> delete_stats_dashboard(stats_dashboard_id) + + + +Delete a particular dashboard. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + stats_dashboard_id = 'stats_dashboard_id_example' # str | The ID of the stats dashboard. + + try: + api_instance.delete_stats_dashboard(stats_dashboard_id) + except Exception as e: + print("Exception when calling DashboardsApi->delete_stats_dashboard: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stats_dashboard_id** | **str**| The ID of the stats dashboard. | + +### Return type + +void (empty response body) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The dashboard was successfully deleted. | - | +**403** | The initiator of the request does not have enough privileges to perform the action. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_stats_dashboard_by_id** +> StatsDashboard get_stats_dashboard_by_id(stats_dashboard_id) + + + +Get a particular dashboard. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.stats_dashboard import StatsDashboard +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + stats_dashboard_id = 'stats_dashboard_id_example' # str | The ID of the stats dashboard. + + try: + api_response = api_instance.get_stats_dashboard_by_id(stats_dashboard_id) + print("The response of DashboardsApi->get_stats_dashboard_by_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardsApi->get_stats_dashboard_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stats_dashboard_id** | **str**| The ID of the stats dashboard. | + +### Return type + +[**StatsDashboard**](StatsDashboard.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The requested dashboard | - | +**403** | The initiator of the request does not have enough privileges to perform the action. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_stats_dashboard_changes** +> GetStatsDashboardChanges200Response get_stats_dashboard_changes(stats_dashboard_id, take=take, skip=skip) + + + +Get the list of change events. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_stats_dashboard_changes200_response import GetStatsDashboardChanges200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + stats_dashboard_id = 'stats_dashboard_id_example' # str | The ID of the stats dashboard. + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_stats_dashboard_changes(stats_dashboard_id, take=take, skip=skip) + print("The response of DashboardsApi->get_stats_dashboard_changes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardsApi->get_stats_dashboard_changes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stats_dashboard_id** | **str**| The ID of the stats dashboard. | + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**GetStatsDashboardChanges200Response**](GetStatsDashboardChanges200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of change events. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_stats_dashboard_metrics** +> MetricsList get_stats_dashboard_metrics(stats_dashboard_id) + + + +Get the list of metrics. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.metrics_list import MetricsList +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + stats_dashboard_id = 'stats_dashboard_id_example' # str | The ID of the stats dashboard. + + try: + api_response = api_instance.get_stats_dashboard_metrics(stats_dashboard_id) + print("The response of DashboardsApi->get_stats_dashboard_metrics:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardsApi->get_stats_dashboard_metrics: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stats_dashboard_id** | **str**| The ID of the stats dashboard. | + +### Return type + +[**MetricsList**](MetricsList.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The requested metrics | - | +**403** | The initiator of the request does not have enough privileges to perform the action. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_stats_dashboards** +> GetStatsDashboards200Response get_stats_dashboards(take=take, skip=skip) + + + +Get all the dashboards. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.get_stats_dashboards200_response import GetStatsDashboards200Response +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + take = 56 # int | The number of search results to return (optional) + skip = 56 # int | The number of search results to skip (optional) + + try: + api_response = api_instance.get_stats_dashboards(take=take, skip=skip) + print("The response of DashboardsApi->get_stats_dashboards:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardsApi->get_stats_dashboards: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **take** | **int**| The number of search results to return | [optional] + **skip** | **int**| The number of search results to skip | [optional] + +### Return type + +[**GetStatsDashboards200Response**](GetStatsDashboards200Response.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of available dashboards | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **start_stats_dashboards_convert** +> AsyncContext start_stats_dashboards_convert(convert_dashboards_operation=convert_dashboards_operation) + + + +Converts dashboards to specified types of results. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.async_context import AsyncContext +from cyperf.models.convert_dashboards_operation import ConvertDashboardsOperation +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + convert_dashboards_operation = cyperf.ConvertDashboardsOperation() # ConvertDashboardsOperation | (optional) + + try: + api_response = api_instance.start_stats_dashboards_convert(convert_dashboards_operation=convert_dashboards_operation) + print("The response of DashboardsApi->start_stats_dashboards_convert:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardsApi->start_stats_dashboards_convert: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **convert_dashboards_operation** | [**ConvertDashboardsOperation**](ConvertDashboardsOperation.md)| | [optional] + +### Return type + +[**AsyncContext**](AsyncContext.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**202** | Details about the operation that just started | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_stats_dashboard** +> StatsDashboard update_stats_dashboard(stats_dashboard_id, stats_dashboard=stats_dashboard) + + + +Update a dashboard. + +### Example + +* OAuth Authentication (OAuth2): +* OAuth Authentication (OAuth2): + +```python +import cyperf +from cyperf.models.stats_dashboard import StatsDashboard +from cyperf.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = cyperf.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +configuration.refresh_token = os.environ["OFFLINE_TOKEN_FROM_CYPERF_UI"] + +# Enter a context with an instance of the API client +with cyperf.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = cyperf.DashboardsApi(api_client) + stats_dashboard_id = 'stats_dashboard_id_example' # str | The ID of the stats dashboard. + stats_dashboard = cyperf.StatsDashboard() # StatsDashboard | (optional) + + try: + api_response = api_instance.update_stats_dashboard(stats_dashboard_id, stats_dashboard=stats_dashboard) + print("The response of DashboardsApi->update_stats_dashboard:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DashboardsApi->update_stats_dashboard: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stats_dashboard_id** | **str**| The ID of the stats dashboard. | + **stats_dashboard** | [**StatsDashboard**](StatsDashboard.md)| | [optional] + +### Return type + +[**StatsDashboard**](StatsDashboard.md) + +### Authorization + +[OAuth2](../README.md#OAuth2), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The updated dashboard | - | +**403** | The initiator of the request does not have enough privileges to perform the action. | - | +**500** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DataSourceDetails.md b/docs/DataSourceDetails.md new file mode 100644 index 0000000..07f04a2 --- /dev/null +++ b/docs/DataSourceDetails.md @@ -0,0 +1,31 @@ +# DataSourceDetails + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extra_filters** | **Dict[str, str]** | Extra filters to be applied to the data source of the panel | [optional] +**name** | **str** | The name of the data source of the panel | [optional] +**timestamp_field** | **str** | The name of the timestamp field of the data source of the panel | [optional] + +## Example + +```python +from cyperf.models.data_source_details import DataSourceDetails + +# TODO update the JSON string below +json = "{}" +# create an instance of DataSourceDetails from a JSON string +data_source_details_instance = DataSourceDetails.from_json(json) +# print the JSON string representation of the object +print(DataSourceDetails.to_json()) + +# convert the object into a dict +data_source_details_dict = data_source_details_instance.to_dict() +# create an instance of DataSourceDetails from a dict +data_source_details_from_dict = DataSourceDetails.from_dict(data_source_details_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FrontPanel.md b/docs/FrontPanel.md index 5e275fa..d1f9ac1 100644 --- a/docs/FrontPanel.md +++ b/docs/FrontPanel.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**available_fan_out_modes** | **List[str]** | A list with the current fanOut modes available for the front panel | [optional] **fan_out_mode** | **str** | The current fanOut mode of the front panel | [optional] **health_details** | [**List[HealthIssue]**](HealthIssue.md) | A list with more details regarding the health of the front panel | [optional] **healthy** | **bool** | Whether the front panel has any health issue or not | [optional] diff --git a/docs/FrontPanelsByController.md b/docs/FrontPanelsByController.md new file mode 100644 index 0000000..38d128f --- /dev/null +++ b/docs/FrontPanelsByController.md @@ -0,0 +1,30 @@ +# FrontPanelsByController + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller_id** | **str** | The id of the controller that the front panels are part of. | [optional] +**front_panels** | **List[str]** | The front panel ids. | [optional] + +## Example + +```python +from cyperf.models.front_panels_by_controller import FrontPanelsByController + +# TODO update the JSON string below +json = "{}" +# create an instance of FrontPanelsByController from a JSON string +front_panels_by_controller_instance = FrontPanelsByController.from_json(json) +# print the JSON string representation of the object +print(FrontPanelsByController.to_json()) + +# convert the object into a dict +front_panels_by_controller_dict = front_panels_by_controller_instance.to_dict() +# create an instance of FrontPanelsByController from a dict +front_panels_by_controller_from_dict = FrontPanelsByController.from_dict(front_panels_by_controller_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetStatsDashboardChanges200Response.md b/docs/GetStatsDashboardChanges200Response.md new file mode 100644 index 0000000..dd5d542 --- /dev/null +++ b/docs/GetStatsDashboardChanges200Response.md @@ -0,0 +1,30 @@ +# GetStatsDashboardChanges200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ChangeEvent]**](ChangeEvent.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_stats_dashboard_changes200_response import GetStatsDashboardChanges200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetStatsDashboardChanges200Response from a JSON string +get_stats_dashboard_changes200_response_instance = GetStatsDashboardChanges200Response.from_json(json) +# print the JSON string representation of the object +print(GetStatsDashboardChanges200Response.to_json()) + +# convert the object into a dict +get_stats_dashboard_changes200_response_dict = get_stats_dashboard_changes200_response_instance.to_dict() +# create an instance of GetStatsDashboardChanges200Response from a dict +get_stats_dashboard_changes200_response_from_dict = GetStatsDashboardChanges200Response.from_dict(get_stats_dashboard_changes200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetStatsDashboardChanges200ResponseOneOf.md b/docs/GetStatsDashboardChanges200ResponseOneOf.md new file mode 100644 index 0000000..7183171 --- /dev/null +++ b/docs/GetStatsDashboardChanges200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetStatsDashboardChanges200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ChangeEvent]**](ChangeEvent.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_stats_dashboard_changes200_response_one_of import GetStatsDashboardChanges200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetStatsDashboardChanges200ResponseOneOf from a JSON string +get_stats_dashboard_changes200_response_one_of_instance = GetStatsDashboardChanges200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetStatsDashboardChanges200ResponseOneOf.to_json()) + +# convert the object into a dict +get_stats_dashboard_changes200_response_one_of_dict = get_stats_dashboard_changes200_response_one_of_instance.to_dict() +# create an instance of GetStatsDashboardChanges200ResponseOneOf from a dict +get_stats_dashboard_changes200_response_one_of_from_dict = GetStatsDashboardChanges200ResponseOneOf.from_dict(get_stats_dashboard_changes200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetStatsDashboards200Response.md b/docs/GetStatsDashboards200Response.md new file mode 100644 index 0000000..ea408ff --- /dev/null +++ b/docs/GetStatsDashboards200Response.md @@ -0,0 +1,30 @@ +# GetStatsDashboards200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[StatsDashboard]**](StatsDashboard.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_stats_dashboards200_response import GetStatsDashboards200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetStatsDashboards200Response from a JSON string +get_stats_dashboards200_response_instance = GetStatsDashboards200Response.from_json(json) +# print the JSON string representation of the object +print(GetStatsDashboards200Response.to_json()) + +# convert the object into a dict +get_stats_dashboards200_response_dict = get_stats_dashboards200_response_instance.to_dict() +# create an instance of GetStatsDashboards200Response from a dict +get_stats_dashboards200_response_from_dict = GetStatsDashboards200Response.from_dict(get_stats_dashboards200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetStatsDashboards200ResponseOneOf.md b/docs/GetStatsDashboards200ResponseOneOf.md new file mode 100644 index 0000000..88ad754 --- /dev/null +++ b/docs/GetStatsDashboards200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetStatsDashboards200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[StatsDashboard]**](StatsDashboard.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_stats_dashboards200_response_one_of import GetStatsDashboards200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetStatsDashboards200ResponseOneOf from a JSON string +get_stats_dashboards200_response_one_of_instance = GetStatsDashboards200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetStatsDashboards200ResponseOneOf.to_json()) + +# convert the object into a dict +get_stats_dashboards200_response_one_of_dict = get_stats_dashboards200_response_one_of_instance.to_dict() +# create an instance of GetStatsDashboards200ResponseOneOf from a dict +get_stats_dashboards200_response_one_of_from_dict = GetStatsDashboards200ResponseOneOf.from_dict(get_stats_dashboards200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GridPosition.md b/docs/GridPosition.md new file mode 100644 index 0000000..3d58afa --- /dev/null +++ b/docs/GridPosition.md @@ -0,0 +1,32 @@ +# GridPosition + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**height** | **int** | The height of the panel. A unit is equal to 30 pixels | [optional] +**width** | **int** | The width of the panel. A unit is equal to 1/24 of the screen width | [optional] +**x_pos** | **int** | The x coordinate of the panel. A unit is equal to 1/24 of the screen width | [optional] +**y_pos** | **int** | The y coordinate of the panel. A unit is equal to 30 pixels | [optional] + +## Example + +```python +from cyperf.models.grid_position import GridPosition + +# TODO update the JSON string below +json = "{}" +# create an instance of GridPosition from a JSON string +grid_position_instance = GridPosition.from_json(json) +# print the JSON string representation of the object +print(GridPosition.to_json()) + +# convert the object into a dict +grid_position_dict = grid_position_instance.to_dict() +# create an instance of GridPosition from a dict +grid_position_from_dict = GridPosition.from_dict(grid_position_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MetricsList.md b/docs/MetricsList.md new file mode 100644 index 0000000..daab537 --- /dev/null +++ b/docs/MetricsList.md @@ -0,0 +1,30 @@ +# MetricsList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dashboard_id** | **str** | The id of the dashboard with these metrics | [optional] +**metrics** | [**List[AdvancedMetric]**](AdvancedMetric.md) | The list of metrics in the specified dashboard | [optional] + +## Example + +```python +from cyperf.models.metrics_list import MetricsList + +# TODO update the JSON string below +json = "{}" +# create an instance of MetricsList from a JSON string +metrics_list_instance = MetricsList.from_json(json) +# print the JSON string representation of the object +print(MetricsList.to_json()) + +# convert the object into a dict +metrics_list_dict = metrics_list_instance.to_dict() +# create an instance of MetricsList from a dict +metrics_list_from_dict = MetricsList.from_dict(metrics_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Panel.md b/docs/Panel.md new file mode 100644 index 0000000..463ce3e --- /dev/null +++ b/docs/Panel.md @@ -0,0 +1,37 @@ +# Panel + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filters** | **List[Dict[str, AppsecAppMetadataKeywordsInner]]** | The filters to be applied to the panel stats | [optional] +**group_by** | [**List[AdvancedMetric]**](AdvancedMetric.md) | The stats to be used as group by clauses | [optional] +**limit** | **int** | The maximum number of stats to be generated in a certain interval | [optional] +**metrics** | [**List[AdvancedMetric]**](AdvancedMetric.md) | The stats to be displayed in the panel | [optional] +**panel_data_source** | [**DataSourceDetails**](DataSourceDetails.md) | | [optional] +**panel_type** | **str** | The type of the panel | [optional] +**position** | [**GridPosition**](GridPosition.md) | | [optional] +**stats_sources** | **List[str]** | The sources of the statistics based on the panel configuration | [optional] +**title** | **str** | The title of the panel | [optional] + +## Example + +```python +from cyperf.models.panel import Panel + +# TODO update the JSON string below +json = "{}" +# create an instance of Panel from a JSON string +panel_instance = Panel.from_json(json) +# print the JSON string representation of the object +print(Panel.to_json()) + +# convert the object into a dict +panel_dict = panel_instance.to_dict() +# create an instance of Panel from a dict +panel_from_dict = Panel.from_dict(panel_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetControllerAppOperation.md b/docs/SetControllerAppOperation.md index a30cc4e..e3d90ba 100644 --- a/docs/SetControllerAppOperation.md +++ b/docs/SetControllerAppOperation.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_id** | **str** | The id of the app to activate on the controllers. | [optional] **controllers** | **List[str]** | The controller ids for which to activate the app. | [optional] -**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] +**force_clear_ownership** | **bool** | Whether the ownership information will be cleared or not. | [optional] ## Example diff --git a/docs/SetFanOutModeOperation.md b/docs/SetFanOutModeOperation.md new file mode 100644 index 0000000..d9f8ab3 --- /dev/null +++ b/docs/SetFanOutModeOperation.md @@ -0,0 +1,31 @@ +# SetFanOutModeOperation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controllers** | [**List[FrontPanelsByController]**](FrontPanelsByController.md) | The controllers that the front panels are part of. | [optional] +**fan_out_mode** | **str** | The desired fanOut mode. | [optional] +**force_clear_ownership** | **bool** | Whether the ownership information of reserved ports will be cleared before switching the fanOut mode. | [optional] + +## Example + +```python +from cyperf.models.set_fan_out_mode_operation import SetFanOutModeOperation + +# TODO update the JSON string below +json = "{}" +# create an instance of SetFanOutModeOperation from a JSON string +set_fan_out_mode_operation_instance = SetFanOutModeOperation.from_json(json) +# print the JSON string representation of the object +print(SetFanOutModeOperation.to_json()) + +# convert the object into a dict +set_fan_out_mode_operation_dict = set_fan_out_mode_operation_instance.to_dict() +# create an instance of SetFanOutModeOperation from a dict +set_fan_out_mode_operation_from_dict = SetFanOutModeOperation.from_dict(set_fan_out_mode_operation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetNodesAppOperation.md b/docs/SetNodesAppOperation.md index 21446da..793bfef 100644 --- a/docs/SetNodesAppOperation.md +++ b/docs/SetNodesAppOperation.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_id** | **str** | The id of the app to activate on the compute nodes. | [optional] **controllers** | [**List[NodesByController]**](NodesByController.md) | The controllers that the compute nodes are part of. | [optional] -**force** | **bool** | Whether the ownership information will be cleared or not. | [optional] +**force_clear_ownership** | **bool** | Whether the ownership information will be cleared or not. | [optional] ## Example diff --git a/docs/StatsDashboard.md b/docs/StatsDashboard.md new file mode 100644 index 0000000..cf3d85f --- /dev/null +++ b/docs/StatsDashboard.md @@ -0,0 +1,39 @@ +# StatsDashboard + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changes** | [**List[ChangeEvent]**](ChangeEvent.md) | The changes hook | [optional] +**group_id** | **str** | The group identifier of the dashboard | [optional] +**id** | **str** | The unique identifier of the dashboard | [optional] +**links** | [**List[APILink]**](APILink.md) | | [optional] +**metrics** | [**MetricsList**](MetricsList.md) | | [optional] +**name** | **str** | The name of the dashboard | [optional] +**owner** | **str** | The friendly display name of the entity that created the dashboard | [optional] [readonly] +**owner_id** | **str** | The unique identifier of the entity that created the dashboard | [optional] [readonly] +**panels** | [**List[Panel]**](Panel.md) | The list of panels in the dashboard | [optional] +**read_only** | **bool** | Is a read only dashboard | [optional] +**type** | **str** | The application type of the dashboard | [optional] + +## Example + +```python +from cyperf.models.stats_dashboard import StatsDashboard + +# TODO update the JSON string below +json = "{}" +# create an instance of StatsDashboard from a JSON string +stats_dashboard_instance = StatsDashboard.from_json(json) +# print the JSON string representation of the object +print(StatsDashboard.to_json()) + +# convert the object into a dict +stats_dashboard_dict = stats_dashboard_instance.to_dict() +# create an instance of StatsDashboard from a dict +stats_dashboard_from_dict = StatsDashboard.from_dict(stats_dashboard_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + From 268275b0e1e274983f9e0086c187966eb5657eaf Mon Sep 17 00:00:00 2001 From: Luca Muntean Date: Fri, 21 Aug 2026 06:20:57 -0600 Subject: [PATCH 47/53] Pull request #86: ISGAPPSEC2-39685 Fix integration tests for python 3.9 Merge in ISGAPPSEC/cyperf-api-wrapper from fix-integration-tests-wrapper to main Squashed commit of the following: commit 823389eb9ecba52537b7033f516c61f657d6669f Author: lucamunt Date: Thu Aug 20 16:12:51 2026 +0300 fix integration tests for python 3.9 --- cyperf/dynamic_model_meta.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cyperf/dynamic_model_meta.py b/cyperf/dynamic_model_meta.py index e45cc20..2e55b58 100644 --- a/cyperf/dynamic_model_meta.py +++ b/cyperf/dynamic_model_meta.py @@ -254,9 +254,9 @@ def __new__(cls, name, bases, dct): list_fields = [] if not_method: - list_match = re.search(r"List\[(\w+)\]", field_str) + list_match = re.search(r"List\[([\w.]+)\]", field_str) if list_match: - inner_type = list_match.group(1) + inner_type = list_match.group(1).rsplit(".", 1)[-1] if inner_type not in ignored_types: list_fields.append([inner_type, field.alias]) @@ -265,11 +265,11 @@ def __new__(cls, name, bases, dct): for child_key, _ in child_fields.items(): parts = cls.extract_x_operation(child_key, child_private_attrs) - + if parts: if len(parts) == 1 or (len(parts) == 2 and parts[1].strip() == "-"): child_method_name = child_key + "_" + child_name.lower() - dct[child_method_name] = cls.generate_method(child_key, 'POST', True, child_alias) + dct[child_method_name] = cls.generate_method(child_key, 'POST', True, child_alias) parts = cls.extract_x_operation(key, private_attrs) if parts: @@ -319,7 +319,7 @@ def init(cls, self, base_model): def to_str(cls, self) -> str: """Returns the string representation of the actual instance""" return f"{self.base_model}" - + @classmethod def repr(cls, self) -> str: """Returns the string representation of the actual instance""" @@ -537,7 +537,7 @@ def extract_x_operation(cls, key, private_attrs): private_attr_obj = private_attrs[extra_attr_name] if hasattr(private_attr_obj, 'default'): extra = private_attr_obj.default or {} - + operation_raw = extra.get("x-operation") if operation_raw: parts = operation_raw.split(",") @@ -554,7 +554,7 @@ def operation(self, *args, **kwargs): derived_href = self_link.href.rstrip("/") + f"/{child_inner_model}" f"/operations/{link_name.replace('_', '-')}" else: derived_href = self_link.href.rstrip("/") + f"/operations/{link_name.replace('_', '-')}" - + link_class = type(self.links[0]) if self.links else type(self_link) new_link = link_class( href=derived_href, From 2132b21333b1936bf19071c2bd7f558f6c62e6ec Mon Sep 17 00:00:00 2001 From: Angela Grigoroaia Date: Mon, 24 Aug 2026 17:19:07 +0300 Subject: [PATCH 48/53] ISGAPPSEC2-39664: Update to KB v3.5.0 What: update metadata for KB version & .gitignore --- .claude/knowledge-base/.generated-manifest.md | 14 +++++++++++++- .claude/knowledge-base/USAGE.md | 6 +++--- .gitignore | 1 + 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.claude/knowledge-base/.generated-manifest.md b/.claude/knowledge-base/.generated-manifest.md index e62869f..94c8d51 100644 --- a/.claude/knowledge-base/.generated-manifest.md +++ b/.claude/knowledge-base/.generated-manifest.md @@ -37,7 +37,7 @@ Generated: 2026-07-09 | .claude/hooks/block_sensitive.py | hook | block-sensitive (helper script) | — | 3.4.0 | | .claude/hooks/lint_on_save.py | hook | lint-on-save (helper script) | — | 3.4.0 | | CLAUDE.md | readme | claude-md | — | 3.4.0 | -| .claude/knowledge-base/USAGE.md | readme | usage | — | 3.4.0 | +| .claude/knowledge-base/USAGE.md | readme | usage | — | 3.5.0 | ## Artifacts intentionally not generated @@ -52,6 +52,18 @@ Validation: passed — all 16 mandatory artifacts + 1 conditional (`deploy`, jus ## Incremental Update Log +### 2026-08-24 — Finish v3.5.0 upgrade: bring `USAGE.md` up to the current plugin version +Tooling/template refresh only — no discovery, no IQ/EQ, no re-analysis. The 2026-07-09 layout migration bumped the KB body (index README + all 10 `sections/*.md`) to plugin v3.5.0 but left `USAGE.md` stamped at plugin v3.4.0, leaving the KB in a mixed-version state. This entry closes that gap. + +- **Template check**: `skills/generate-tooling/references/usage-readme.md` is **byte-identical** between plugin v3.4.0 and v3.5.0 (md5 `2540c311d609c692fc36e2bfe2220225`, 5408 bytes both). The v3.5.0 CHANGELOG is entirely about the monolithic→split KB layout migration, which this repo already completed. So there was no template change to apply — the correction is a version stamp plus one KB-consistency fix. +- **`USAGE.md`**: generation marker and the `Generated: … | Plugin: …` line moved from plugin v3.4.0 → v3.5.0. The `Generated: 2026-07-09` date is preserved, matching how `README.md` was handled during the layout migration. +- **`USAGE.md` content refresh**: the `/document samples/` scenario listed only 5 sample scripts; `sections/file-index.md` and the working tree both report 7. Added the two missing entries (`sample_sequences_examples.py`, `samples/appbuilder/sample_appbuilder_examples.py`) so the usage guide agrees with the file index. No other prose changed. +- **Manifest**: the `USAGE.md` row's Version column moved 3.4.0 → 3.5.0. + +**Deliberately not changed**: the rows for `.claude/skills/*`, `.claude/agents/*`, `.claude/commands/*`, `.claude/settings.json`, `.claude/hooks/*`, and `CLAUDE.md` still read 3.4.0. Those artifacts are **absent from disk and from the entire git history** of this repo — the KB commit only ever contained the 13 `.claude/knowledge-base/**` files. Restamping rows for artifacts that were never generated here would be false provenance, so they are left as the historical record. Regenerating those 16 mandatory artifacts is a separate decision, not part of a version-stamp refresh. + +**Known drift (not addressed here, flagged for a future `incremental-discover`)**: `HEAD` has advanced past the 2026-07-31 refresh baseline (`835526c`). Tracked counts are now 438 model files and 454 doc pages, while the KB body still states 454 models / 469 docs. Correcting those figures is content re-analysis and was out of scope for this upgrade. + ### 2026-07-17 — Incremental content patch for 2 landed commits (no re-discovery/IQ/EQ) Two commits landed on `main` since the 2026-07-09 generation baseline (`0affc87`), both after the KB commit was authored: `d8f08be` ("Regenerate Python API Wrapper", PR #78, 2026-07-10) and `d56047c` ("ISGAPPSEC2-38156 sample script for appbuilder", PR #77, 2026-07-14). This patch updates only the counts/facts touched by those two commits — no fresh discovery pass, no IQ/EQ re-run (both remain "not yet evaluated"). diff --git a/.claude/knowledge-base/USAGE.md b/.claude/knowledge-base/USAGE.md index 3892e52..c727d08 100644 --- a/.claude/knowledge-base/USAGE.md +++ b/.claude/knowledge-base/USAGE.md @@ -1,7 +1,7 @@ - + # Usage Guide for cyperf-api-wrapper -Generated: 2026-07-09 | Plugin: knowledge-base v3.4.0 +Generated: 2026-07-09 | Plugin: knowledge-base v3.5.0 --- @@ -53,7 +53,7 @@ Generated: 2026-07-09 | Plugin: knowledge-base v3.4.0 **Run**: `/document samples/` -**What happens**: The document skill reads `samples/*.py` (the only hand-written usage examples in the repo — `sample_udp_streaming_run.py`, `sample_attacks_load_and_run.py`, `sample_load_and_run_precanned_config.py`, `sample_create_save_and_export_config.py`, `sample_attack_based_script.py`), infers the two idiomatic call styles already used, and writes/updates guidance rather than touching the generator-owned `README.md`/`docs/*.md` (443 model docs + per-API-class docs), which would simply be clobbered on the next OpenAPI regeneration. +**What happens**: The document skill reads `samples/*.py` (the only hand-written usage examples in the repo — `sample_udp_streaming_run.py`, `sample_attacks_load_and_run.py`, `sample_load_and_run_precanned_config.py`, `sample_create_save_and_export_config.py`, `sample_attack_based_script.py`, `sample_sequences_examples.py`, plus `samples/appbuilder/sample_appbuilder_examples.py`), infers the two idiomatic call styles already used, and writes/updates guidance rather than touching the generator-owned `README.md`/`docs/*.md` (443 model docs + per-API-class docs), which would simply be clobbered on the next OpenAPI regeneration. --- diff --git a/.gitignore b/.gitignore index 322da87..aae665e 100644 --- a/.gitignore +++ b/.gitignore @@ -70,3 +70,4 @@ target/ # Claude Code local settings .claude/settings.local.json +.claude/settings.json From 216664e3714a95d0255c530cf378900c6ce486ab Mon Sep 17 00:00:00 2001 From: Stingescu Andrei Petrut Date: Thu, 27 Aug 2026 05:00:31 -0600 Subject: [PATCH 49/53] Pull request #88: Regenerate the python wrapper based on openApi release doc Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-39780-regenerate-python-wrapper to main Squashed commit of the following: commit 8b660a6f28e4a36658752562e5b4c101c6e4dc0e Author: stinandr Date: Wed Aug 26 17:02:12 2026 +0300 revert ipsec multi_p2_over_p1 change commit 364121ebc001727b482cad2d2106bdb735afbf66 Author: stinandr Date: Tue Aug 25 16:45:34 2026 +0300 Regenerate the python wrapper based on openApi release doc --- README.md | 8 + cyperf/__init__.py | 8 + cyperf/api/agents_api.py | 69 +++++--- cyperf/dynamic_models/__init__.py | 8 + cyperf/models/__init__.py | 8 + cyperf/models/agent.py | 4 +- .../agent_assignment_by_front_panel_port.py | 2 +- cyperf/models/chassis_info.py | 8 +- cyperf/models/dns_resolver.py | 2 +- ...pute_node_compute_resources200_response.py | 147 ++++++++++++++++++ ...de_compute_resources200_response_one_of.py | 103 ++++++++++++ .../get_compute_node_ports200_response.py | 147 ++++++++++++++++++ ...t_compute_node_ports200_response_one_of.py | 103 ++++++++++++ ...et_controller_compute_nodes200_response.py | 147 ++++++++++++++++++ ...roller_compute_nodes200_response_one_of.py | 103 ++++++++++++ ...get_controller_front_panels200_response.py | 147 ++++++++++++++++++ ...troller_front_panels200_response_one_of.py | 103 ++++++++++++ cyperf/models/load_config_operation.py | 2 +- cyperf/models/profile.py | 2 +- docs/Agent.md | 1 - docs/AgentAssignmentByFrontPanelPort.md | 2 +- docs/AgentsApi.md | 50 +++--- docs/ChassisInfo.md | 1 + docs/DNSResolver.md | 2 +- ...tComputeNodeComputeResources200Response.md | 30 ++++ ...uteNodeComputeResources200ResponseOneOf.md | 30 ++++ docs/GetComputeNodePorts200Response.md | 30 ++++ docs/GetComputeNodePorts200ResponseOneOf.md | 30 ++++ docs/GetControllerComputeNodes200Response.md | 30 ++++ ...tControllerComputeNodes200ResponseOneOf.md | 30 ++++ docs/GetControllerFrontPanels200Response.md | 30 ++++ ...etControllerFrontPanels200ResponseOneOf.md | 30 ++++ docs/LoadConfigOperation.md | 2 +- docs/Profile.md | 2 +- 34 files changed, 1362 insertions(+), 59 deletions(-) create mode 100644 cyperf/models/get_compute_node_compute_resources200_response.py create mode 100644 cyperf/models/get_compute_node_compute_resources200_response_one_of.py create mode 100644 cyperf/models/get_compute_node_ports200_response.py create mode 100644 cyperf/models/get_compute_node_ports200_response_one_of.py create mode 100644 cyperf/models/get_controller_compute_nodes200_response.py create mode 100644 cyperf/models/get_controller_compute_nodes200_response_one_of.py create mode 100644 cyperf/models/get_controller_front_panels200_response.py create mode 100644 cyperf/models/get_controller_front_panels200_response_one_of.py create mode 100644 docs/GetComputeNodeComputeResources200Response.md create mode 100644 docs/GetComputeNodeComputeResources200ResponseOneOf.md create mode 100644 docs/GetComputeNodePorts200Response.md create mode 100644 docs/GetComputeNodePorts200ResponseOneOf.md create mode 100644 docs/GetControllerComputeNodes200Response.md create mode 100644 docs/GetControllerComputeNodes200ResponseOneOf.md create mode 100644 docs/GetControllerFrontPanels200Response.md create mode 100644 docs/GetControllerFrontPanels200ResponseOneOf.md diff --git a/README.md b/README.md index d7772cc..ed9d422 100644 --- a/README.md +++ b/README.md @@ -591,12 +591,20 @@ Class | Method | HTTP request | Description - [GetBrokers200Response](docs/GetBrokers200Response.md) - [GetBrokers200ResponseOneOf](docs/GetBrokers200ResponseOneOf.md) - [GetCategoriesOperation](docs/GetCategoriesOperation.md) + - [GetComputeNodeComputeResources200Response](docs/GetComputeNodeComputeResources200Response.md) + - [GetComputeNodeComputeResources200ResponseOneOf](docs/GetComputeNodeComputeResources200ResponseOneOf.md) + - [GetComputeNodePorts200Response](docs/GetComputeNodePorts200Response.md) + - [GetComputeNodePorts200ResponseOneOf](docs/GetComputeNodePorts200ResponseOneOf.md) - [GetConfigCategorieSubcategories200Response](docs/GetConfigCategorieSubcategories200Response.md) - [GetConfigCategorieSubcategories200ResponseOneOf](docs/GetConfigCategorieSubcategories200ResponseOneOf.md) - [GetConfigCategories200Response](docs/GetConfigCategories200Response.md) - [GetConfigCategories200ResponseOneOf](docs/GetConfigCategories200ResponseOneOf.md) - [GetConfigs200Response](docs/GetConfigs200Response.md) - [GetConfigs200ResponseOneOf](docs/GetConfigs200ResponseOneOf.md) + - [GetControllerComputeNodes200Response](docs/GetControllerComputeNodes200Response.md) + - [GetControllerComputeNodes200ResponseOneOf](docs/GetControllerComputeNodes200ResponseOneOf.md) + - [GetControllerFrontPanels200Response](docs/GetControllerFrontPanels200Response.md) + - [GetControllerFrontPanels200ResponseOneOf](docs/GetControllerFrontPanels200ResponseOneOf.md) - [GetControllers200Response](docs/GetControllers200Response.md) - [GetControllers200ResponseOneOf](docs/GetControllers200ResponseOneOf.md) - [GetDiskUsageConsumers200Response](docs/GetDiskUsageConsumers200Response.md) diff --git a/cyperf/__init__.py b/cyperf/__init__.py index b0f6420..dd96614 100644 --- a/cyperf/__init__.py +++ b/cyperf/__init__.py @@ -238,12 +238,20 @@ from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.models.get_compute_node_compute_resources200_response import GetComputeNodeComputeResources200Response +from cyperf.models.get_compute_node_compute_resources200_response_one_of import GetComputeNodeComputeResources200ResponseOneOf +from cyperf.models.get_compute_node_ports200_response import GetComputeNodePorts200Response +from cyperf.models.get_compute_node_ports200_response_one_of import GetComputeNodePorts200ResponseOneOf from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf from cyperf.models.get_configs200_response import GetConfigs200Response from cyperf.models.get_configs200_response_one_of import GetConfigs200ResponseOneOf +from cyperf.models.get_controller_compute_nodes200_response import GetControllerComputeNodes200Response +from cyperf.models.get_controller_compute_nodes200_response_one_of import GetControllerComputeNodes200ResponseOneOf +from cyperf.models.get_controller_front_panels200_response import GetControllerFrontPanels200Response +from cyperf.models.get_controller_front_panels200_response_one_of import GetControllerFrontPanels200ResponseOneOf from cyperf.models.get_controllers200_response import GetControllers200Response from cyperf.models.get_controllers200_response_one_of import GetControllers200ResponseOneOf from cyperf.models.get_disk_usage_consumers200_response import GetDiskUsageConsumers200Response diff --git a/cyperf/api/agents_api.py b/cyperf/api/agents_api.py index 66bef7b..a848be2 100644 --- a/cyperf/api/agents_api.py +++ b/cyperf/api/agents_api.py @@ -32,6 +32,10 @@ from cyperf.models.front_panel import FrontPanel from cyperf.models.get_agents200_response import GetAgents200Response from cyperf.models.get_agents_tags200_response import GetAgentsTags200Response +from cyperf.models.get_compute_node_compute_resources200_response import GetComputeNodeComputeResources200Response +from cyperf.models.get_compute_node_ports200_response import GetComputeNodePorts200Response +from cyperf.models.get_controller_compute_nodes200_response import GetControllerComputeNodes200Response +from cyperf.models.get_controller_front_panels200_response import GetControllerFrontPanels200Response from cyperf.models.get_controllers200_response import GetControllers200Response from cyperf.models.nodes_power_cycle_operation import NodesPowerCycleOperation from cyperf.models.port import Port @@ -1523,9 +1527,10 @@ def get_compute_node_compute_resources( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ComputeResource]: + ) -> GetComputeNodeComputeResources200Response: """get_compute_node_compute_resources + Get the compute resources of a compute node. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -1569,7 +1574,7 @@ def get_compute_node_compute_resources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeResource]", + '200': "GetComputeNodeComputeResources200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1598,9 +1603,10 @@ def get_compute_node_compute_resources_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ComputeResource]]: + ) -> ApiResponse[GetComputeNodeComputeResources200Response]: """get_compute_node_compute_resources + Get the compute resources of a compute node. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -1644,7 +1650,7 @@ def get_compute_node_compute_resources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeResource]", + '200': "GetComputeNodeComputeResources200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -1676,6 +1682,7 @@ def get_compute_node_compute_resources_without_preload_content( ) -> RESTResponseType: """get_compute_node_compute_resources + Get the compute resources of a compute node. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -1719,7 +1726,7 @@ def get_compute_node_compute_resources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeResource]", + '200': "GetComputeNodeComputeResources200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2109,9 +2116,10 @@ def get_compute_node_ports( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Port]: + ) -> GetComputeNodePorts200Response: """get_compute_node_ports + Get the ports of a compute node. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -2155,7 +2163,7 @@ def get_compute_node_ports( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "GetComputeNodePorts200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2184,9 +2192,10 @@ def get_compute_node_ports_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Port]]: + ) -> ApiResponse[GetComputeNodePorts200Response]: """get_compute_node_ports + Get the ports of a compute node. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -2230,7 +2239,7 @@ def get_compute_node_ports_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "GetComputeNodePorts200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2262,6 +2271,7 @@ def get_compute_node_ports_without_preload_content( ) -> RESTResponseType: """get_compute_node_ports + Get the ports of a compute node. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -2305,7 +2315,7 @@ def get_compute_node_ports_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "GetComputeNodePorts200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -2934,9 +2944,10 @@ def get_controller_compute_nodes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[ComputeNode]: + ) -> GetControllerComputeNodes200Response: """get_controller_compute_nodes + Get the compute nodes chain. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -2977,7 +2988,7 @@ def get_controller_compute_nodes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeNode]", + '200': "GetControllerComputeNodes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -3005,9 +3016,10 @@ def get_controller_compute_nodes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[ComputeNode]]: + ) -> ApiResponse[GetControllerComputeNodes200Response]: """get_controller_compute_nodes + Get the compute nodes chain. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -3048,7 +3060,7 @@ def get_controller_compute_nodes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeNode]", + '200': "GetControllerComputeNodes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -3079,6 +3091,7 @@ def get_controller_compute_nodes_without_preload_content( ) -> RESTResponseType: """get_controller_compute_nodes + Get the compute nodes chain. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -3119,7 +3132,7 @@ def get_controller_compute_nodes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[ComputeNode]", + '200': "GetControllerComputeNodes200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -3490,9 +3503,10 @@ def get_controller_front_panels( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[FrontPanel]: + ) -> GetControllerFrontPanels200Response: """get_controller_front_panels + Get the front panels chain. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -3533,7 +3547,7 @@ def get_controller_front_panels( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[FrontPanel]", + '200': "GetControllerFrontPanels200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -3561,9 +3575,10 @@ def get_controller_front_panels_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[FrontPanel]]: + ) -> ApiResponse[GetControllerFrontPanels200Response]: """get_controller_front_panels + Get the front panels chain. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -3604,7 +3619,7 @@ def get_controller_front_panels_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[FrontPanel]", + '200': "GetControllerFrontPanels200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -3635,6 +3650,7 @@ def get_controller_front_panels_without_preload_content( ) -> RESTResponseType: """get_controller_front_panels + Get the front panels chain. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -3675,7 +3691,7 @@ def get_controller_front_panels_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[FrontPanel]", + '200': "GetControllerFrontPanels200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4353,9 +4369,10 @@ def get_front_panel_ports( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[Port]: + ) -> GetComputeNodePorts200Response: """get_front_panel_ports + Get the ports of a front panel. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -4399,7 +4416,7 @@ def get_front_panel_ports( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "GetComputeNodePorts200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4428,9 +4445,10 @@ def get_front_panel_ports_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[Port]]: + ) -> ApiResponse[GetComputeNodePorts200Response]: """get_front_panel_ports + Get the ports of a front panel. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -4474,7 +4492,7 @@ def get_front_panel_ports_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "GetComputeNodePorts200Response", '500': "ErrorResponse", } return self.api_client.call_api( @@ -4506,6 +4524,7 @@ def get_front_panel_ports_without_preload_content( ) -> RESTResponseType: """get_front_panel_ports + Get the ports of a front panel. :param controller_id: The ID of the controller. (required) :type controller_id: str @@ -4549,7 +4568,7 @@ def get_front_panel_ports_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[Port]", + '200': "GetComputeNodePorts200Response", '500': "ErrorResponse", } return self.api_client.call_api( diff --git a/cyperf/dynamic_models/__init__.py b/cyperf/dynamic_models/__init__.py index 536bfb0..bcea570 100644 --- a/cyperf/dynamic_models/__init__.py +++ b/cyperf/dynamic_models/__init__.py @@ -203,12 +203,20 @@ GetBrokers200Response = DynamicModel('GetBrokers200Response', (), {} ) GetBrokers200ResponseOneOf = DynamicModel('GetBrokers200ResponseOneOf', (), {} ) GetCategoriesOperation = DynamicModel('GetCategoriesOperation', (), {} ) +GetComputeNodeComputeResources200Response = DynamicModel('GetComputeNodeComputeResources200Response', (), {} ) +GetComputeNodeComputeResources200ResponseOneOf = DynamicModel('GetComputeNodeComputeResources200ResponseOneOf', (), {} ) +GetComputeNodePorts200Response = DynamicModel('GetComputeNodePorts200Response', (), {} ) +GetComputeNodePorts200ResponseOneOf = DynamicModel('GetComputeNodePorts200ResponseOneOf', (), {} ) GetConfigCategorieSubcategories200Response = DynamicModel('GetConfigCategorieSubcategories200Response', (), {} ) GetConfigCategorieSubcategories200ResponseOneOf = DynamicModel('GetConfigCategorieSubcategories200ResponseOneOf', (), {} ) GetConfigCategories200Response = DynamicModel('GetConfigCategories200Response', (), {} ) GetConfigCategories200ResponseOneOf = DynamicModel('GetConfigCategories200ResponseOneOf', (), {} ) GetConfigs200Response = DynamicModel('GetConfigs200Response', (), {} ) GetConfigs200ResponseOneOf = DynamicModel('GetConfigs200ResponseOneOf', (), {} ) +GetControllerComputeNodes200Response = DynamicModel('GetControllerComputeNodes200Response', (), {} ) +GetControllerComputeNodes200ResponseOneOf = DynamicModel('GetControllerComputeNodes200ResponseOneOf', (), {} ) +GetControllerFrontPanels200Response = DynamicModel('GetControllerFrontPanels200Response', (), {} ) +GetControllerFrontPanels200ResponseOneOf = DynamicModel('GetControllerFrontPanels200ResponseOneOf', (), {} ) GetControllers200Response = DynamicModel('GetControllers200Response', (), {} ) GetControllers200ResponseOneOf = DynamicModel('GetControllers200ResponseOneOf', (), {} ) GetDiskUsageConsumers200Response = DynamicModel('GetDiskUsageConsumers200Response', (), {} ) diff --git a/cyperf/models/__init__.py b/cyperf/models/__init__.py index 5225f22..a401464 100644 --- a/cyperf/models/__init__.py +++ b/cyperf/models/__init__.py @@ -203,12 +203,20 @@ class LinkNameException(Exception): from cyperf.models.get_brokers200_response import GetBrokers200Response from cyperf.models.get_brokers200_response_one_of import GetBrokers200ResponseOneOf from cyperf.models.get_categories_operation import GetCategoriesOperation +from cyperf.models.get_compute_node_compute_resources200_response import GetComputeNodeComputeResources200Response +from cyperf.models.get_compute_node_compute_resources200_response_one_of import GetComputeNodeComputeResources200ResponseOneOf +from cyperf.models.get_compute_node_ports200_response import GetComputeNodePorts200Response +from cyperf.models.get_compute_node_ports200_response_one_of import GetComputeNodePorts200ResponseOneOf from cyperf.models.get_config_categorie_subcategories200_response import GetConfigCategorieSubcategories200Response from cyperf.models.get_config_categorie_subcategories200_response_one_of import GetConfigCategorieSubcategories200ResponseOneOf from cyperf.models.get_config_categories200_response import GetConfigCategories200Response from cyperf.models.get_config_categories200_response_one_of import GetConfigCategories200ResponseOneOf from cyperf.models.get_configs200_response import GetConfigs200Response from cyperf.models.get_configs200_response_one_of import GetConfigs200ResponseOneOf +from cyperf.models.get_controller_compute_nodes200_response import GetControllerComputeNodes200Response +from cyperf.models.get_controller_compute_nodes200_response_one_of import GetControllerComputeNodes200ResponseOneOf +from cyperf.models.get_controller_front_panels200_response import GetControllerFrontPanels200Response +from cyperf.models.get_controller_front_panels200_response_one_of import GetControllerFrontPanels200ResponseOneOf from cyperf.models.get_controllers200_response import GetControllers200Response from cyperf.models.get_controllers200_response_one_of import GetControllers200ResponseOneOf from cyperf.models.get_disk_usage_consumers200_response import GetDiskUsageConsumers200Response diff --git a/cyperf/models/agent.py b/cyperf/models/agent.py index 319e667..72f8377 100644 --- a/cyperf/models/agent.py +++ b/cyperf/models/agent.py @@ -42,7 +42,6 @@ class Agent(BaseModel): last_update: Optional[StrictInt] = Field(default=None, description="A Unix timestamp that indicates when the agent was last updated", alias="LastUpdate") port_id_format: Optional[StrictStr] = Field(default=None, description="port agent id format", alias="PortIDFormat") reservation_id: Optional[StrictStr] = Field(default=None, description="The ID of the reservation", alias="ReservationID") - resource_name_format: Optional[StrictStr] = Field(default=None, description="display agent resource name format", alias="ResourceNameFormat") selected_env: Optional[SelectedEnv] = Field(default=None, alias="SelectedEnv") selection_status: Optional[StrictStr] = Field(default=None, description="The current status of the selection operation", alias="SelectionStatus") session_name: Optional[StrictStr] = Field(default=None, description="The session's name where the agent is running", alias="SessionName") @@ -63,7 +62,7 @@ class Agent(BaseModel): requires_updating: Optional[StrictBool] = Field(default=None, description="A flag indicating whether the agent is not using the recommended version", alias="requiresUpdating") system_info: Optional[SystemInfo] = Field(default=None, alias="systemInfo") links: Optional[List[APILink]] = None - __properties: ClassVar[List[str]] = ["AgentTags", "DisplayNameFormat", "IP", "Interfaces", "LastUpdate", "PortIDFormat", "ReservationID", "ResourceNameFormat", "SelectedEnv", "SelectionStatus", "SessionName", "Status", "configuredProxy", "cpuInfo", "dpdkEnabled", "features", "hostname", "id", "memoryMB", "mgmtInterface", "ntpInfo", "offline", "owner", "ownerId", "packageVersionStatus", "requiresUpdating", "systemInfo", "links"] + __properties: ClassVar[List[str]] = ["AgentTags", "DisplayNameFormat", "IP", "Interfaces", "LastUpdate", "PortIDFormat", "ReservationID", "SelectedEnv", "SelectionStatus", "SessionName", "Status", "configuredProxy", "cpuInfo", "dpdkEnabled", "features", "hostname", "id", "memoryMB", "mgmtInterface", "ntpInfo", "offline", "owner", "ownerId", "packageVersionStatus", "requiresUpdating", "systemInfo", "links"] model_config = ConfigDict( populate_by_name=True, @@ -191,7 +190,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "LastUpdate": obj.get("LastUpdate"), "PortIDFormat": obj.get("PortIDFormat"), "ReservationID": obj.get("ReservationID"), - "ResourceNameFormat": obj.get("ResourceNameFormat"), "SelectedEnv": SelectedEnv.from_dict(obj["SelectedEnv"]) if obj.get("SelectedEnv") is not None else None, "SelectionStatus": obj.get("SelectionStatus"), "SessionName": obj.get("SessionName"), diff --git a/cyperf/models/agent_assignment_by_front_panel_port.py b/cyperf/models/agent_assignment_by_front_panel_port.py index 4ed8dc3..e1e81b0 100644 --- a/cyperf/models/agent_assignment_by_front_panel_port.py +++ b/cyperf/models/agent_assignment_by_front_panel_port.py @@ -31,7 +31,7 @@ class AgentAssignmentByFrontPanelPort(BaseModel): Details of an agent assignment by front panel port """ # noqa: E501 capture_settings: Optional[CaptureSettings] = Field(default=None, description="The capture settings of the front panel port that is assigned.", alias="captureSettings") - compute_resources_by_type: Optional[Dict[str, StrictInt]] = Field(default=None, description="The number of compute resources to assign per compute node type.", alias="computeResourcesByType") + compute_resources_by_type: Optional[Dict[str, StrictInt]] = Field(default=None, description="The number of compute resources to assign per compute node type name + aggregation mode. Each key must be formatted as ':'.", alias="computeResourcesByType") front_panel_port_id: StrictStr = Field(description="The id of the front panel port that is assigned.", alias="frontPanelPortId") id: StrictStr links: Optional[List[APILink]] = None diff --git a/cyperf/models/chassis_info.py b/cyperf/models/chassis_info.py index 3a022b0..00ea0da 100644 --- a/cyperf/models/chassis_info.py +++ b/cyperf/models/chassis_info.py @@ -35,7 +35,8 @@ class ChassisInfo(BaseModel): hw_platform: Optional[StrictStr] = Field(default=None, description="The hardware platform the corresponding port is running on", alias="hwPlatform") hw_revision: Optional[StrictStr] = Field(default=None, description="The hardware revision of the underlying platform", alias="hwRevision") port_id: Optional[StrictStr] = Field(default=None, description="The id of the corresponding port", alias="portID") - __properties: ClassVar[List[str]] = ["aggregatedMode", "checkoutID", "computeNodeID", "frontPanelPortID", "hwPlatform", "hwRevision", "portID"] + type_display_name: Optional[StrictStr] = Field(default=None, description="The marketing name for the compute node", alias="typeDisplayName") + __properties: ClassVar[List[str]] = ["aggregatedMode", "checkoutID", "computeNodeID", "frontPanelPortID", "hwPlatform", "hwRevision", "portID", "typeDisplayName"] model_config = ConfigDict( populate_by_name=True, @@ -74,6 +75,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "aggregated_mode", @@ -83,6 +85,7 @@ def to_dict(self) -> Dict[str, Any]: "hw_platform", "hw_revision", "port_id", + "type_display_name", ]) _dict = self.model_dump( @@ -110,7 +113,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "frontPanelPortID": obj.get("frontPanelPortID"), "hwPlatform": obj.get("hwPlatform"), "hwRevision": obj.get("hwRevision"), - "portID": obj.get("portID") + "portID": obj.get("portID"), + "typeDisplayName": obj.get("typeDisplayName") , "links": obj.get("links") }) diff --git a/cyperf/models/dns_resolver.py b/cyperf/models/dns_resolver.py index 56efa09..db284a3 100644 --- a/cyperf/models/dns_resolver.py +++ b/cyperf/models/dns_resolver.py @@ -30,7 +30,7 @@ class DNSResolver(BaseModel): """ DNSResolver """ # noqa: E501 - cache_timeout: Optional[StrictInt] = Field(default=None, description="The cached timeout for the DNS Resolver", alias="cacheTimeout") + cache_timeout: Optional[StrictInt] = Field(default=None, description="The timeout in seconds for cached DNS responses.", alias="cacheTimeout") enable_perconnect: Optional[StrictBool] = Field(default=None, description="The enable perconnection value.", alias="enablePerconnect") links: Optional[List[APILink]] = None name_servers: Optional[List[NameServer]] = Field(default=None, description="A list of name servers.", alias="nameServers") diff --git a/cyperf/models/get_compute_node_compute_resources200_response.py b/cyperf/models/get_compute_node_compute_resources200_response.py new file mode 100644 index 0000000..4c02343 --- /dev/null +++ b/cyperf/models/get_compute_node_compute_resources200_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.compute_resource import ComputeResource +from cyperf.models.get_compute_node_compute_resources200_response_one_of import GetComputeNodeComputeResources200ResponseOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETCOMPUTENODECOMPUTERESOURCES200RESPONSE_ONE_OF_SCHEMAS = ["GetComputeNodeComputeResources200ResponseOneOf", "List[ComputeResource]"] + +class GetComputeNodeComputeResources200Response(BaseModel): + """ + GetComputeNodeComputeResources200Response + """ + # data type: List[ComputeResource] + oneof_schema_1_validator: Optional[List[ComputeResource]] = None + # data type: GetComputeNodeComputeResources200ResponseOneOf + oneof_schema_2_validator: Optional[GetComputeNodeComputeResources200ResponseOneOf] = None + actual_instance: Optional[Union[GetComputeNodeComputeResources200ResponseOneOf, List[ComputeResource]]] = None + one_of_schemas: Set[str] = { "GetComputeNodeComputeResources200ResponseOneOf", "List[ComputeResource]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetComputeNodeComputeResources200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[ComputeResource] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetComputeNodeComputeResources200ResponseOneOf + if not isinstance(v, GetComputeNodeComputeResources200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetComputeNodeComputeResources200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetComputeNodeComputeResources200Response with oneOf schemas: GetComputeNodeComputeResources200ResponseOneOf, List[ComputeResource]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetComputeNodeComputeResources200Response with oneOf schemas: GetComputeNodeComputeResources200ResponseOneOf, List[ComputeResource]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[ComputeResource] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetComputeNodeComputeResources200ResponseOneOf + + + + try: + instance.actual_instance = GetComputeNodeComputeResources200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetComputeNodeComputeResources200Response with oneOf schemas: GetComputeNodeComputeResources200ResponseOneOf, List[ComputeResource]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetComputeNodeComputeResources200Response with oneOf schemas: GetComputeNodeComputeResources200ResponseOneOf, List[ComputeResource]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetComputeNodeComputeResources200ResponseOneOf, List[ComputeResource]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_compute_node_compute_resources200_response_one_of.py b/cyperf/models/get_compute_node_compute_resources200_response_one_of.py new file mode 100644 index 0000000..ef4ad5f --- /dev/null +++ b/cyperf/models/get_compute_node_compute_resources200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.compute_resource import ComputeResource +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetComputeNodeComputeResources200ResponseOneOf(BaseModel): + """ + GetComputeNodeComputeResources200ResponseOneOf + """ # noqa: E501 + data: Optional[List[ComputeResource]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetComputeNodeComputeResources200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetComputeNodeComputeResources200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": ( [ComputeResource.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_compute_node_ports200_response.py b/cyperf/models/get_compute_node_ports200_response.py new file mode 100644 index 0000000..b5a50ab --- /dev/null +++ b/cyperf/models/get_compute_node_ports200_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.get_compute_node_ports200_response_one_of import GetComputeNodePorts200ResponseOneOf +from cyperf.models.port import Port +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETCOMPUTENODEPORTS200RESPONSE_ONE_OF_SCHEMAS = ["GetComputeNodePorts200ResponseOneOf", "List[Port]"] + +class GetComputeNodePorts200Response(BaseModel): + """ + GetComputeNodePorts200Response + """ + # data type: List[Port] + oneof_schema_1_validator: Optional[List[Port]] = None + # data type: GetComputeNodePorts200ResponseOneOf + oneof_schema_2_validator: Optional[GetComputeNodePorts200ResponseOneOf] = None + actual_instance: Optional[Union[GetComputeNodePorts200ResponseOneOf, List[Port]]] = None + one_of_schemas: Set[str] = { "GetComputeNodePorts200ResponseOneOf", "List[Port]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetComputeNodePorts200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[Port] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetComputeNodePorts200ResponseOneOf + if not isinstance(v, GetComputeNodePorts200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetComputeNodePorts200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetComputeNodePorts200Response with oneOf schemas: GetComputeNodePorts200ResponseOneOf, List[Port]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetComputeNodePorts200Response with oneOf schemas: GetComputeNodePorts200ResponseOneOf, List[Port]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[Port] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetComputeNodePorts200ResponseOneOf + + + + try: + instance.actual_instance = GetComputeNodePorts200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetComputeNodePorts200Response with oneOf schemas: GetComputeNodePorts200ResponseOneOf, List[Port]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetComputeNodePorts200Response with oneOf schemas: GetComputeNodePorts200ResponseOneOf, List[Port]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetComputeNodePorts200ResponseOneOf, List[Port]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_compute_node_ports200_response_one_of.py b/cyperf/models/get_compute_node_ports200_response_one_of.py new file mode 100644 index 0000000..fde6492 --- /dev/null +++ b/cyperf/models/get_compute_node_ports200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.port import Port +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetComputeNodePorts200ResponseOneOf(BaseModel): + """ + GetComputeNodePorts200ResponseOneOf + """ # noqa: E501 + data: Optional[List[Port]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetComputeNodePorts200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetComputeNodePorts200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": ( [Port.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_controller_compute_nodes200_response.py b/cyperf/models/get_controller_compute_nodes200_response.py new file mode 100644 index 0000000..00b900c --- /dev/null +++ b/cyperf/models/get_controller_compute_nodes200_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.compute_node import ComputeNode +from cyperf.models.get_controller_compute_nodes200_response_one_of import GetControllerComputeNodes200ResponseOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETCONTROLLERCOMPUTENODES200RESPONSE_ONE_OF_SCHEMAS = ["GetControllerComputeNodes200ResponseOneOf", "List[ComputeNode]"] + +class GetControllerComputeNodes200Response(BaseModel): + """ + GetControllerComputeNodes200Response + """ + # data type: List[ComputeNode] + oneof_schema_1_validator: Optional[List[ComputeNode]] = None + # data type: GetControllerComputeNodes200ResponseOneOf + oneof_schema_2_validator: Optional[GetControllerComputeNodes200ResponseOneOf] = None + actual_instance: Optional[Union[GetControllerComputeNodes200ResponseOneOf, List[ComputeNode]]] = None + one_of_schemas: Set[str] = { "GetControllerComputeNodes200ResponseOneOf", "List[ComputeNode]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetControllerComputeNodes200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[ComputeNode] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetControllerComputeNodes200ResponseOneOf + if not isinstance(v, GetControllerComputeNodes200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetControllerComputeNodes200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetControllerComputeNodes200Response with oneOf schemas: GetControllerComputeNodes200ResponseOneOf, List[ComputeNode]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetControllerComputeNodes200Response with oneOf schemas: GetControllerComputeNodes200ResponseOneOf, List[ComputeNode]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[ComputeNode] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetControllerComputeNodes200ResponseOneOf + + + + try: + instance.actual_instance = GetControllerComputeNodes200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetControllerComputeNodes200Response with oneOf schemas: GetControllerComputeNodes200ResponseOneOf, List[ComputeNode]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetControllerComputeNodes200Response with oneOf schemas: GetControllerComputeNodes200ResponseOneOf, List[ComputeNode]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetControllerComputeNodes200ResponseOneOf, List[ComputeNode]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_controller_compute_nodes200_response_one_of.py b/cyperf/models/get_controller_compute_nodes200_response_one_of.py new file mode 100644 index 0000000..fe7fc6a --- /dev/null +++ b/cyperf/models/get_controller_compute_nodes200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.compute_node import ComputeNode +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetControllerComputeNodes200ResponseOneOf(BaseModel): + """ + GetControllerComputeNodes200ResponseOneOf + """ # noqa: E501 + data: Optional[List[ComputeNode]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetControllerComputeNodes200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetControllerComputeNodes200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": ( [ComputeNode.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/get_controller_front_panels200_response.py b/cyperf/models/get_controller_front_panels200_response.py new file mode 100644 index 0000000..73e9877 --- /dev/null +++ b/cyperf/models/get_controller_front_panels200_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from cyperf.models.front_panel import FrontPanel +from cyperf.models.get_controller_front_panels200_response_one_of import GetControllerFrontPanels200ResponseOneOf +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +GETCONTROLLERFRONTPANELS200RESPONSE_ONE_OF_SCHEMAS = ["GetControllerFrontPanels200ResponseOneOf", "List[FrontPanel]"] + +class GetControllerFrontPanels200Response(BaseModel): + """ + GetControllerFrontPanels200Response + """ + # data type: List[FrontPanel] + oneof_schema_1_validator: Optional[List[FrontPanel]] = None + # data type: GetControllerFrontPanels200ResponseOneOf + oneof_schema_2_validator: Optional[GetControllerFrontPanels200ResponseOneOf] = None + actual_instance: Optional[Union[GetControllerFrontPanels200ResponseOneOf, List[FrontPanel]]] = None + one_of_schemas: Set[str] = { "GetControllerFrontPanels200ResponseOneOf", "List[FrontPanel]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = GetControllerFrontPanels200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: List[FrontPanel] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: GetControllerFrontPanels200ResponseOneOf + if not isinstance(v, GetControllerFrontPanels200ResponseOneOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetControllerFrontPanels200ResponseOneOf`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in GetControllerFrontPanels200Response with oneOf schemas: GetControllerFrontPanels200ResponseOneOf, List[FrontPanel]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in GetControllerFrontPanels200Response with oneOf schemas: GetControllerFrontPanels200ResponseOneOf, List[FrontPanel]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() +# instance.api_client = client + error_messages = [] + match = 0 + + # deserialize data into List[FrontPanel] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GetControllerFrontPanels200ResponseOneOf + + + + try: + instance.actual_instance = GetControllerFrontPanels200ResponseOneOf.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into GetControllerFrontPanels200Response with oneOf schemas: GetControllerFrontPanels200ResponseOneOf, List[FrontPanel]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into GetControllerFrontPanels200Response with oneOf schemas: GetControllerFrontPanels200ResponseOneOf, List[FrontPanel]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], GetControllerFrontPanels200ResponseOneOf, List[FrontPanel]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/cyperf/models/get_controller_front_panels200_response_one_of.py b/cyperf/models/get_controller_front_panels200_response_one_of.py new file mode 100644 index 0000000..6fe0be2 --- /dev/null +++ b/cyperf/models/get_controller_front_panels200_response_one_of.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Keysight CyPerf Application API + + Keysight CyPerf REST API + + The version of the OpenAPI document: 1.0.0 + Contact: support@keysight.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from cyperf.models.front_panel import FrontPanel +from typing import Optional, Set, Union +from typing_extensions import Self +from pydantic import Field, PrivateAttr + +class GetControllerFrontPanels200ResponseOneOf(BaseModel): + """ + GetControllerFrontPanels200ResponseOneOf + """ # noqa: E501 + data: Optional[List[FrontPanel]] = None + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") + __properties: ClassVar[List[str]] = ["data", "totalCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetControllerFrontPanels200ResponseOneOf from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in data (list) + _items = [] + if self.data: + for _item in self.data: + if _item: + _items.append(_item.to_dict()) + _dict['data'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetControllerFrontPanels200ResponseOneOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + _obj = cls.model_validate(obj) +# _obj.api_client = client + return _obj + + _obj = cls.model_validate({ + "data": ( [FrontPanel.from_dict(_item) for _item in obj.get("data", [])] if obj.get("data") is not None else None), + "totalCount": obj.get("totalCount") + , + "links": obj.get("links") + }) + return _obj + + diff --git a/cyperf/models/load_config_operation.py b/cyperf/models/load_config_operation.py index 3413a39..17061f7 100644 --- a/cyperf/models/load_config_operation.py +++ b/cyperf/models/load_config_operation.py @@ -28,7 +28,7 @@ class LoadConfigOperation(BaseModel): """ LoadConfigOperation """ # noqa: E501 - config_url: Optional[StrictStr] = Field(default=None, description="The URL of the configuration that should be loaded", alias="configUrl") + config_url: Optional[StrictStr] = Field(default=None, description="The URL of the configuration that will be loaded when creating the session", alias="configUrl") __properties: ClassVar[List[str]] = ["configUrl"] model_config = ConfigDict( diff --git a/cyperf/models/profile.py b/cyperf/models/profile.py index a2e4f9e..927fe10 100644 --- a/cyperf/models/profile.py +++ b/cyperf/models/profile.py @@ -28,7 +28,7 @@ class Profile(BaseModel): """ Profile """ # noqa: E501 - category: Optional[StrictStr] = Field(default=None, description="Category of the profile") + category: Optional[StrictStr] = Field(default=None, description="The category of the profile template.") config_id: Optional[StrictStr] = Field(default=None, description="The config ID associated with this profile", alias="configId") description: Optional[StrictStr] = Field(default=None, description="Description of the profile") display_name: Optional[StrictStr] = Field(default=None, description="Display name of the profile", alias="displayName") diff --git a/docs/Agent.md b/docs/Agent.md index f06fdf5..97c003b 100644 --- a/docs/Agent.md +++ b/docs/Agent.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **last_update** | **int** | A Unix timestamp that indicates when the agent was last updated | [optional] [readonly] **port_id_format** | **str** | port agent id format | [optional] **reservation_id** | **str** | The ID of the reservation | [optional] [readonly] -**resource_name_format** | **str** | display agent resource name format | [optional] **selected_env** | [**SelectedEnv**](SelectedEnv.md) | | [optional] **selection_status** | **str** | The current status of the selection operation | [optional] **session_name** | **str** | The session's name where the agent is running | [optional] [readonly] diff --git a/docs/AgentAssignmentByFrontPanelPort.md b/docs/AgentAssignmentByFrontPanelPort.md index 8a4e9ab..5cce584 100644 --- a/docs/AgentAssignmentByFrontPanelPort.md +++ b/docs/AgentAssignmentByFrontPanelPort.md @@ -7,7 +7,7 @@ Details of an agent assignment by front panel port Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **capture_settings** | [**CaptureSettings**](CaptureSettings.md) | The capture settings of the front panel port that is assigned. | [optional] -**compute_resources_by_type** | **Dict[str, int]** | The number of compute resources to assign per compute node type. | [optional] +**compute_resources_by_type** | **Dict[str, int]** | The number of compute resources to assign per compute node type name + aggregation mode. Each key must be formatted as '<computeNodeTypeName>:<aggregationMode>'. | [optional] **front_panel_port_id** | **str** | The id of the front panel port that is assigned. | **id** | **str** | | **links** | [**List[APILink]**](APILink.md) | | [optional] diff --git a/docs/AgentsApi.md b/docs/AgentsApi.md index d2c7147..6f8c677 100644 --- a/docs/AgentsApi.md +++ b/docs/AgentsApi.md @@ -451,10 +451,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_compute_node_compute_resources** -> List[ComputeResource] get_compute_node_compute_resources(controller_id, compute_node_id, take=take, skip=skip) +> GetComputeNodeComputeResources200Response get_compute_node_compute_resources(controller_id, compute_node_id, take=take, skip=skip) +Get the compute resources of a compute node. + ### Example * OAuth Authentication (OAuth2): @@ -462,7 +464,7 @@ Name | Type | Description | Notes ```python import cyperf -from cyperf.models.compute_resource import ComputeResource +from cyperf.models.get_compute_node_compute_resources200_response import GetComputeNodeComputeResources200Response from cyperf.rest import ApiException from pprint import pprint @@ -512,7 +514,7 @@ Name | Type | Description | Notes ### Return type -[**List[ComputeResource]**](ComputeResource.md) +[**GetComputeNodeComputeResources200Response**](GetComputeNodeComputeResources200Response.md) ### Authorization @@ -527,7 +529,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**200** | The list of compute resources of the compute node. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -614,9 +616,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_compute_node_ports** -> List[Port] get_compute_node_ports(controller_id, compute_node_id, take=take, skip=skip) +> GetComputeNodePorts200Response get_compute_node_ports(controller_id, compute_node_id, take=take, skip=skip) + +Get the ports of a compute node. ### Example @@ -625,7 +629,7 @@ Name | Type | Description | Notes ```python import cyperf -from cyperf.models.port import Port +from cyperf.models.get_compute_node_ports200_response import GetComputeNodePorts200Response from cyperf.rest import ApiException from pprint import pprint @@ -675,7 +679,7 @@ Name | Type | Description | Notes ### Return type -[**List[Port]**](Port.md) +[**GetComputeNodePorts200Response**](GetComputeNodePorts200Response.md) ### Authorization @@ -690,7 +694,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**200** | The list of ports of the compute node. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -853,10 +857,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_controller_compute_nodes** -> List[ComputeNode] get_controller_compute_nodes(controller_id, take=take, skip=skip) +> GetControllerComputeNodes200Response get_controller_compute_nodes(controller_id, take=take, skip=skip) +Get the compute nodes chain. + ### Example * OAuth Authentication (OAuth2): @@ -864,7 +870,7 @@ Name | Type | Description | Notes ```python import cyperf -from cyperf.models.compute_node import ComputeNode +from cyperf.models.get_controller_compute_nodes200_response import GetControllerComputeNodes200Response from cyperf.rest import ApiException from pprint import pprint @@ -912,7 +918,7 @@ Name | Type | Description | Notes ### Return type -[**List[ComputeNode]**](ComputeNode.md) +[**GetControllerComputeNodes200Response**](GetControllerComputeNodes200Response.md) ### Authorization @@ -927,7 +933,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**200** | The list of compute nodes of the controller. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1012,9 +1018,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_controller_front_panels** -> List[FrontPanel] get_controller_front_panels(controller_id, take=take, skip=skip) +> GetControllerFrontPanels200Response get_controller_front_panels(controller_id, take=take, skip=skip) + +Get the front panels chain. ### Example @@ -1023,7 +1031,7 @@ Name | Type | Description | Notes ```python import cyperf -from cyperf.models.front_panel import FrontPanel +from cyperf.models.get_controller_front_panels200_response import GetControllerFrontPanels200Response from cyperf.rest import ApiException from pprint import pprint @@ -1071,7 +1079,7 @@ Name | Type | Description | Notes ### Return type -[**List[FrontPanel]**](FrontPanel.md) +[**GetControllerFrontPanels200Response**](GetControllerFrontPanels200Response.md) ### Authorization @@ -1086,7 +1094,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**200** | The list of front panels of the controller. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1255,10 +1263,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_front_panel_ports** -> List[Port] get_front_panel_ports(controller_id, front_panel_id, take=take, skip=skip) +> GetComputeNodePorts200Response get_front_panel_ports(controller_id, front_panel_id, take=take, skip=skip) +Get the ports of a front panel. + ### Example * OAuth Authentication (OAuth2): @@ -1266,7 +1276,7 @@ Name | Type | Description | Notes ```python import cyperf -from cyperf.models.port import Port +from cyperf.models.get_compute_node_ports200_response import GetComputeNodePorts200Response from cyperf.rest import ApiException from pprint import pprint @@ -1316,7 +1326,7 @@ Name | Type | Description | Notes ### Return type -[**List[Port]**](Port.md) +[**GetComputeNodePorts200Response**](GetComputeNodePorts200Response.md) ### Authorization @@ -1331,7 +1341,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**200** | The list of ports of the front panel. | - | **500** | Unexpected error | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ChassisInfo.md b/docs/ChassisInfo.md index 5655c76..ba2ead8 100644 --- a/docs/ChassisInfo.md +++ b/docs/ChassisInfo.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **hw_platform** | **str** | The hardware platform the corresponding port is running on | [optional] [readonly] **hw_revision** | **str** | The hardware revision of the underlying platform | [optional] [readonly] **port_id** | **str** | The id of the corresponding port | [optional] [readonly] +**type_display_name** | **str** | The marketing name for the compute node | [optional] [readonly] ## Example diff --git a/docs/DNSResolver.md b/docs/DNSResolver.md index 61ec6b0..1fc8507 100644 --- a/docs/DNSResolver.md +++ b/docs/DNSResolver.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cache_timeout** | **int** | The cached timeout for the DNS Resolver | [optional] +**cache_timeout** | **int** | The timeout in seconds for cached DNS responses. | [optional] **enable_perconnect** | **bool** | The enable perconnection value. | [optional] **links** | [**List[APILink]**](APILink.md) | | [optional] **name_servers** | [**List[NameServer]**](NameServer.md) | A list of name servers. | [optional] diff --git a/docs/GetComputeNodeComputeResources200Response.md b/docs/GetComputeNodeComputeResources200Response.md new file mode 100644 index 0000000..7eb416c --- /dev/null +++ b/docs/GetComputeNodeComputeResources200Response.md @@ -0,0 +1,30 @@ +# GetComputeNodeComputeResources200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ComputeResource]**](ComputeResource.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_compute_node_compute_resources200_response import GetComputeNodeComputeResources200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetComputeNodeComputeResources200Response from a JSON string +get_compute_node_compute_resources200_response_instance = GetComputeNodeComputeResources200Response.from_json(json) +# print the JSON string representation of the object +print(GetComputeNodeComputeResources200Response.to_json()) + +# convert the object into a dict +get_compute_node_compute_resources200_response_dict = get_compute_node_compute_resources200_response_instance.to_dict() +# create an instance of GetComputeNodeComputeResources200Response from a dict +get_compute_node_compute_resources200_response_from_dict = GetComputeNodeComputeResources200Response.from_dict(get_compute_node_compute_resources200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetComputeNodeComputeResources200ResponseOneOf.md b/docs/GetComputeNodeComputeResources200ResponseOneOf.md new file mode 100644 index 0000000..86efa0f --- /dev/null +++ b/docs/GetComputeNodeComputeResources200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetComputeNodeComputeResources200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ComputeResource]**](ComputeResource.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_compute_node_compute_resources200_response_one_of import GetComputeNodeComputeResources200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetComputeNodeComputeResources200ResponseOneOf from a JSON string +get_compute_node_compute_resources200_response_one_of_instance = GetComputeNodeComputeResources200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetComputeNodeComputeResources200ResponseOneOf.to_json()) + +# convert the object into a dict +get_compute_node_compute_resources200_response_one_of_dict = get_compute_node_compute_resources200_response_one_of_instance.to_dict() +# create an instance of GetComputeNodeComputeResources200ResponseOneOf from a dict +get_compute_node_compute_resources200_response_one_of_from_dict = GetComputeNodeComputeResources200ResponseOneOf.from_dict(get_compute_node_compute_resources200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetComputeNodePorts200Response.md b/docs/GetComputeNodePorts200Response.md new file mode 100644 index 0000000..ceb6489 --- /dev/null +++ b/docs/GetComputeNodePorts200Response.md @@ -0,0 +1,30 @@ +# GetComputeNodePorts200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[Port]**](Port.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_compute_node_ports200_response import GetComputeNodePorts200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetComputeNodePorts200Response from a JSON string +get_compute_node_ports200_response_instance = GetComputeNodePorts200Response.from_json(json) +# print the JSON string representation of the object +print(GetComputeNodePorts200Response.to_json()) + +# convert the object into a dict +get_compute_node_ports200_response_dict = get_compute_node_ports200_response_instance.to_dict() +# create an instance of GetComputeNodePorts200Response from a dict +get_compute_node_ports200_response_from_dict = GetComputeNodePorts200Response.from_dict(get_compute_node_ports200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetComputeNodePorts200ResponseOneOf.md b/docs/GetComputeNodePorts200ResponseOneOf.md new file mode 100644 index 0000000..37100ad --- /dev/null +++ b/docs/GetComputeNodePorts200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetComputeNodePorts200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[Port]**](Port.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_compute_node_ports200_response_one_of import GetComputeNodePorts200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetComputeNodePorts200ResponseOneOf from a JSON string +get_compute_node_ports200_response_one_of_instance = GetComputeNodePorts200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetComputeNodePorts200ResponseOneOf.to_json()) + +# convert the object into a dict +get_compute_node_ports200_response_one_of_dict = get_compute_node_ports200_response_one_of_instance.to_dict() +# create an instance of GetComputeNodePorts200ResponseOneOf from a dict +get_compute_node_ports200_response_one_of_from_dict = GetComputeNodePorts200ResponseOneOf.from_dict(get_compute_node_ports200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetControllerComputeNodes200Response.md b/docs/GetControllerComputeNodes200Response.md new file mode 100644 index 0000000..c44863a --- /dev/null +++ b/docs/GetControllerComputeNodes200Response.md @@ -0,0 +1,30 @@ +# GetControllerComputeNodes200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ComputeNode]**](ComputeNode.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_controller_compute_nodes200_response import GetControllerComputeNodes200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetControllerComputeNodes200Response from a JSON string +get_controller_compute_nodes200_response_instance = GetControllerComputeNodes200Response.from_json(json) +# print the JSON string representation of the object +print(GetControllerComputeNodes200Response.to_json()) + +# convert the object into a dict +get_controller_compute_nodes200_response_dict = get_controller_compute_nodes200_response_instance.to_dict() +# create an instance of GetControllerComputeNodes200Response from a dict +get_controller_compute_nodes200_response_from_dict = GetControllerComputeNodes200Response.from_dict(get_controller_compute_nodes200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetControllerComputeNodes200ResponseOneOf.md b/docs/GetControllerComputeNodes200ResponseOneOf.md new file mode 100644 index 0000000..3a6a3c1 --- /dev/null +++ b/docs/GetControllerComputeNodes200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetControllerComputeNodes200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[ComputeNode]**](ComputeNode.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_controller_compute_nodes200_response_one_of import GetControllerComputeNodes200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetControllerComputeNodes200ResponseOneOf from a JSON string +get_controller_compute_nodes200_response_one_of_instance = GetControllerComputeNodes200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetControllerComputeNodes200ResponseOneOf.to_json()) + +# convert the object into a dict +get_controller_compute_nodes200_response_one_of_dict = get_controller_compute_nodes200_response_one_of_instance.to_dict() +# create an instance of GetControllerComputeNodes200ResponseOneOf from a dict +get_controller_compute_nodes200_response_one_of_from_dict = GetControllerComputeNodes200ResponseOneOf.from_dict(get_controller_compute_nodes200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetControllerFrontPanels200Response.md b/docs/GetControllerFrontPanels200Response.md new file mode 100644 index 0000000..c61b21d --- /dev/null +++ b/docs/GetControllerFrontPanels200Response.md @@ -0,0 +1,30 @@ +# GetControllerFrontPanels200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[FrontPanel]**](FrontPanel.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_controller_front_panels200_response import GetControllerFrontPanels200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetControllerFrontPanels200Response from a JSON string +get_controller_front_panels200_response_instance = GetControllerFrontPanels200Response.from_json(json) +# print the JSON string representation of the object +print(GetControllerFrontPanels200Response.to_json()) + +# convert the object into a dict +get_controller_front_panels200_response_dict = get_controller_front_panels200_response_instance.to_dict() +# create an instance of GetControllerFrontPanels200Response from a dict +get_controller_front_panels200_response_from_dict = GetControllerFrontPanels200Response.from_dict(get_controller_front_panels200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetControllerFrontPanels200ResponseOneOf.md b/docs/GetControllerFrontPanels200ResponseOneOf.md new file mode 100644 index 0000000..880e03d --- /dev/null +++ b/docs/GetControllerFrontPanels200ResponseOneOf.md @@ -0,0 +1,30 @@ +# GetControllerFrontPanels200ResponseOneOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List[FrontPanel]**](FrontPanel.md) | | [optional] +**total_count** | **int** | | [optional] + +## Example + +```python +from cyperf.models.get_controller_front_panels200_response_one_of import GetControllerFrontPanels200ResponseOneOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetControllerFrontPanels200ResponseOneOf from a JSON string +get_controller_front_panels200_response_one_of_instance = GetControllerFrontPanels200ResponseOneOf.from_json(json) +# print the JSON string representation of the object +print(GetControllerFrontPanels200ResponseOneOf.to_json()) + +# convert the object into a dict +get_controller_front_panels200_response_one_of_dict = get_controller_front_panels200_response_one_of_instance.to_dict() +# create an instance of GetControllerFrontPanels200ResponseOneOf from a dict +get_controller_front_panels200_response_one_of_from_dict = GetControllerFrontPanels200ResponseOneOf.from_dict(get_controller_front_panels200_response_one_of_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoadConfigOperation.md b/docs/LoadConfigOperation.md index 027b006..ba6d27c 100644 --- a/docs/LoadConfigOperation.md +++ b/docs/LoadConfigOperation.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**config_url** | **str** | The URL of the configuration that should be loaded | [optional] +**config_url** | **str** | The URL of the configuration that will be loaded when creating the session | [optional] ## Example diff --git a/docs/Profile.md b/docs/Profile.md index 060f801..0d0b19d 100644 --- a/docs/Profile.md +++ b/docs/Profile.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**category** | **str** | Category of the profile | [optional] +**category** | **str** | The category of the profile template. | [optional] **config_id** | **str** | The config ID associated with this profile | [optional] **description** | **str** | Description of the profile | [optional] **display_name** | **str** | Display name of the profile | [optional] From 6aed707d0f686ad9883f9d3875f29f12be3556bb Mon Sep 17 00:00:00 2001 From: Stingescu Andrei Petrut Date: Fri, 28 Aug 2026 08:48:23 -0600 Subject: [PATCH 50/53] Pull request #85: Add HW sample scripts Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-39412-create-hw-sample-scripts to main Squashed commit of the following: commit e818b10ed80355b7be45d7804623b2705c1f718f Author: stinandr Date: Wed Aug 26 09:45:17 2026 +0300 Refactor port assignment & move hw methods to utils.py commit 020ac806fabca9f3e2ccc03bcb17e4116629aed5 Author: stinandr Date: Tue Aug 25 14:56:58 2026 +0300 Replace all sample hw scripts with single one commit 07313b80892fce1e298437e252ee36a16aaaae93 Author: Angela Grigoroaia Date: Tue Aug 25 03:58:28 2026 -0600 Change error message format for unavailable ports commit e63fe80072f2c50552a82d6b6f3be62408ee78dc Author: stinandr Date: Thu Aug 20 14:26:57 2026 +0300 Add HW sample scripts --- cyperf/utils.py | 29 ++- ...sample_load_and_run_precanned_config_hw.py | 222 ++++++++++++++++++ 2 files changed, 250 insertions(+), 1 deletion(-) create mode 100644 samples/sample_load_and_run_precanned_config_hw.py diff --git a/cyperf/utils.py b/cyperf/utils.py index e519642..e853731 100644 --- a/cyperf/utils.py +++ b/cyperf/utils.py @@ -601,7 +601,7 @@ def create_api_client_cli(verify_ssl=True): """Parse the args passed to the current script and use them to create an API client; optionally disable SSL verification""" cli_args, offline_token = parse_cli_options() host = f'https://{cli_args.controller}' - + configuration = cyperf.Configuration(host=host, refresh_token=offline_token, username=cli_args.user, @@ -609,4 +609,31 @@ def create_api_client_cli(verify_ssl=True): configuration.verify_ssl = verify_ssl return cyperf.ApiClient(configuration) + +def require_ports(entity, min_count=1): + """Validate that entity.ports exists and has at least min_count entries, then return it.""" + if entity.ports is None: + raise ValueError(f"Ports are not defined for '{entity.name}'") + if len(entity.ports) < min_count: + raise ValueError(f"Expected at least {min_count} available port(s) for '{entity.name}'") + return entity.ports + + +def validate_ports(ports): + """Raise a ValueError listing any of the given ports that are down, not ready, or reserved by someone else.""" + invalid = [] + for port in ports or []: + reasons = [] + if port.link != 'UP': + reasons.append(f"link is '{port.link}'") + if port.status != 'READY': + reasons.append(f"status is '{port.status}'") + if port.reserved_by: + reasons.append(f"reserved by '{port.reserved_by}'") + if reasons: + invalid.append(f"{port.id} ({', '.join(reasons)})") + + if invalid: + raise ValueError(f"The following port(s) cannot be used right now: {'; '.join(invalid)}") + utils = TestRunner \ No newline at end of file diff --git a/samples/sample_load_and_run_precanned_config_hw.py b/samples/sample_load_and_run_precanned_config_hw.py new file mode 100644 index 0000000..ffb5821 --- /dev/null +++ b/samples/sample_load_and_run_precanned_config_hw.py @@ -0,0 +1,222 @@ +from time import sleep + +import cyperf +from cyperf.utils import create_api_client_cli, require_ports, validate_ports + + +def assign_M8400_ports(api_client, config, controller_id): + """Assign front panel ports on an M8400 chassis to the session's network segments.""" + api_agents_instance = cyperf.AgentsApi(api_client) + front_panels = api_agents_instance.get_controller_front_panels(controller_id=controller_id) + + if len(front_panels) < 2: + raise ValueError("Expected at least 2 available front panels") + + for front_panel in front_panels[:2]: + require_ports(front_panel, min_count=1) + + validate_ports([front_panels[0].ports[0], front_panels[1].ports[0]]) + + # Create a front panel port map (each network segment can be assigned one or more front panel ports) + port_map = { + 'IP Network 1': [front_panels[0].ports[0].id], + 'IP Network 2': [front_panels[1].ports[0].id] + } + + # Assign the front panel ports + print("Assigning front panel ports ...") + for net_profile in config.config.network_profiles: + for ip_net in net_profile.ip_network_segment: + if ip_net.name in port_map: + front_panel_port_ids = port_map[ip_net.name] + print(f"Front panel port(s) {', '.join(front_panel_port_ids)} assigned to {ip_net.name}.") + capture_settings = None # CaptureSettings | The capture settings of the front panel port that is assigned (optional) + compute_resources_by_type = {"APS-ONE-400:non-aggregated":2} # Dict[str, int] | The number of compute resources to assign per compute node type & aggregation (necessary) + links = None # List[APILink] | (optional) + port_details = [cyperf.AgentAssignmentByFrontPanelPort(capture_settings=capture_settings, + compute_resources_by_type=compute_resources_by_type, + front_panel_port_id=front_panel_port_id, + id=front_panel_port_id, + links=links) + for front_panel_port_id in front_panel_port_ids] + if not ip_net.agent_assignments: + by_front_panel_port = None # List[AgentAssignmentByFrontPanelPort] | The front panel ports assigned to the current test configuration (necessary) + by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) + by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (incompatible with M8400) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned (incompatible with M8400) + ip_net.agent_assignments = cyperf.AgentAssignments(by_front_panel_port=by_front_panel_port, + by_id=by_id, + by_port=by_port, + by_tag=by_tag, + links=links) + ip_net.agent_assignments.by_front_panel_port = port_details + ip_net.update() + print("Assigning front panel ports completed.\n") + + +def _assign_by_port_ids(config, port_map): + """Assign the given port_map (network segment name -> list of port IDs) to the session's network segments.""" + print("Assigning ports ...") + for net_profile in config.config.network_profiles: + for ip_net in net_profile.ip_network_segment: + if ip_net.name in port_map: + port_ids = port_map[ip_net.name] + print(f"Port(s) {', '.join(port_ids)} assigned to {ip_net.name}.") + capture_settings = None # CaptureSettings | The capture settings of the port that is assigned (optional) + links = None # List[APILink] | (optional) + port_details = [cyperf.AgentAssignmentByPort(capture_settings=capture_settings, + port_id=port_id, + id=port_id, + links=links) + for port_id in port_ids] + if not ip_net.agent_assignments: + by_front_panel_port = None # List[AgentAssignmentByFrontPanelPort] | The front panel ports assigned to the current test configuration (compatible with M8400) + by_id = None # List[AgentAssignmentDetails] | The agents statically assigned to the current test configuration (optional) + by_port = None # List[AgentAssignmentByPort] | The ports assigned to the current test configuration (optional) + by_tag = None # List[str] | The tags according to which the agents are dynamically assigned + ip_net.agent_assignments = cyperf.AgentAssignments(by_front_panel_port=by_front_panel_port, + by_id=by_id, + by_port=by_port, + by_tag=by_tag, + links=links) + ip_net.agent_assignments.by_port = port_details + ip_net.update() + print("Assigning ports completed.\n") + + +def assign_M1010_ports(api_client, config, controller_id): + """Assign ports from a single M1010 compute node to the session's network segments.""" + api_agents_instance = cyperf.AgentsApi(api_client) + compute_nodes = api_agents_instance.get_controller_compute_nodes(controller_id=controller_id) + + if len(compute_nodes) == 0: + raise ValueError("Expected at least one available compute node") + + compute_node_ports = require_ports(compute_nodes[0], min_count=4) + + validate_ports(compute_node_ports[:4]) + + # Ports are wired as loopback pairs (0<->2, 1<->3) + port_map = { + 'IP Network 1': [compute_node_ports[0].id, compute_node_ports[1].id], + 'IP Network 2': [compute_node_ports[2].id, compute_node_ports[3].id] + } + + _assign_by_port_ids(config, port_map) + + +def assign_novusminipro_ports(api_client, config, controller_id): + """Assign ports from a NovusMiniPro's 'mgmt' compute node to the session's network segments.""" + api_agents_instance = cyperf.AgentsApi(api_client) + compute_node_mgmt = api_agents_instance.get_controller_compute_node_by_id(controller_id=controller_id, compute_node_id="mgmt") + ports = require_ports(compute_node_mgmt, min_count=4) + + validate_ports(ports[:4]) + + # Ports are assumed to be wired as loopback pairs (0<->1, 2<->3) + port_map = { + 'IP Network 1': [ports[0].id, ports[1].id], + 'IP Network 2': [ports[2].id, ports[3].id] + } + + _assign_by_port_ids(config, port_map) + + +# Maps a platform name to its port assignment function and default controller ID. +# Add a new entry here (and a corresponding assign_*_ports function above) to support another platform. +PLATFORMS = { + 'M8400': (assign_M8400_ports, "chs-001"), + 'M1010': (assign_M1010_ports, "chs-001"), + 'novusminipro': (assign_novusminipro_ports, "nvm1"), +} + + +if __name__ == "__main__": + import urllib3; urllib3.disable_warnings() + + # Select which hardware platform to run against, then replace that platform's + # controller ID in PLATFORMS above with your own (see AgentsApi.get_controllers()) + platform = 'M1010' # one of: 'M8400', 'M1010', 'novusminipro' + if platform not in PLATFORMS: + raise ValueError(f"Unknown platform '{platform}', expected one of {list(PLATFORMS)}") + assign_ports, controller_id = PLATFORMS[platform] + + # Enter a context with an instance of the API client + with create_api_client_cli(verify_ssl=False) as api_client: + # Find the pre-canned config + api_config_instance = cyperf.ConfigurationsApi(api_client) + take = 1 # int | The number of search results to return (optional) + skip = None # int | The number of search results to skip (optional) + search_col = 'displayName' # str | A list of comma-separated columns used to search for the supplied values (optional) + search_val = 'Not Working From Home Traffic Mix' # str | The keywords used to filter the items (optional) + filter_mode = None # str | The operator applied to the supplied values (optional) + sort = None # str | A list of comma-separated field:direction pairs used to sort the items where direction must be asc or dsc (optional) + config = api_config_instance.get_configs(take=1, + skip=skip, + search_col=search_col, + search_val=search_val, + filter_mode=filter_mode, + sort=sort) + + if len(config.data) == 0: + raise ValueError("Couldn't find the specified configuration.") + + # Load a pre-canned config + api_session_instance = cyperf.SessionsApi(api_client) + application = None # str | The user-friendly name for the application that controls this session (optional) + config_name = None # str | The display name of the configuration loaded in the session (optional) + config_url = config.data[0].config_url # str | The external URL of the configuration loaded in the session (optional) + index = None # int | The session's index (optional) (readonly) + name = None # str | The user-visible name of the session (optional) + owner = None # str | The user-visible name of the session's owner (optional) (readonly) + sessions = [cyperf.Session(application=application, + config_name=config_name, + configUrl=config_url, + index=index, + name=name, + owner=owner)] + + # Create a session + session = None + print(f"Creating session from config called {search_val} ...") + api_session_response = api_session_instance.create_sessions(sessions=sessions) + session = api_session_response[0] + print("Session created.\n") + + # Get the configuration of the created session + include = 'Config, TrafficProfiles' # str | Specifies if the sub-fields that are objects should be included (eg. 'Config'). (optional) + config = api_session_instance.get_session_config(session_id=session.id, include=include) + + # Modify test duration + config.config.traffic_profiles[0].objectives_and_timeline.primary_objective.timeline[1].duration = 30 + config.config.traffic_profiles[0].objectives_and_timeline.primary_objective.update() + + # Assign the ports/front panels for the selected platform + assign_ports(api_client, config, controller_id) + + # Start traffic + print("Starting the test ...") + api_test_operation_instance = cyperf.TestOperationsApi(api_client) + api_test_operation_response = api_test_operation_instance.start_test_run_start(session_id=session.id) + api_test_operation_response.await_completion() + + # Wait for the test to be finished + print("Test running ...") + session.refresh() + while session.test.status != 'STOPPED': + sleep(5) + session.refresh() + print("Test finished successfully.\n") + + # Download the test results + print("Downloading test results ...") + api_test_results_instance = cyperf.TestResultsApi(api_client) + generate_all_operation = cyperf.GenerateAllOperation() + api_test_results_response = api_test_results_instance.start_result_generate_all(result_id=session.test.test_id, generate_all_operation=generate_all_operation) + file_path = api_test_results_response.await_completion() + + last_separator_index = file_path.rfind("\\") + directory = file_path[:last_separator_index] + file_name = file_path[last_separator_index + 1:] + + print(f"Saved as: '{file_name}' at {directory}\n") From e37c5dfbacb7f07ffc620355f4a041e40f0f4451 Mon Sep 17 00:00:00 2001 From: Luca Muntean Date: Tue, 1 Sep 2026 05:24:04 -0600 Subject: [PATCH 51/53] Pull request #89: ISGAPPSEC2-38691 Regeneratre cyperf wrapper to include the python 3.14 fix Merge in ISGAPPSEC/cyperf-api-wrapper from regenerate-wrapper to main Squashed commit of the following: commit c4c9954f66e5224225f7654ad71508de902999b2 Author: lucamunt Date: Tue Sep 1 14:17:13 2026 +0300 regeneratre cyperf wrapper to include the python 3.14 fix --- cyperf/api_client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cyperf/api_client.py b/cyperf/api_client.py index 3dfe850..4460377 100644 --- a/cyperf/api_client.py +++ b/cyperf/api_client.py @@ -577,6 +577,12 @@ def __deserialize(self, data, klass): klass = m.group(1) continue + elif '|' in klass: + m = re.match(r'(.*)\|.*', klass) + assert m is not None, "Malformed union type definition" + klass = m.group(1).strip() + continue + else: break From 3cc473952fc8de2cb42afef1b36e0c234b3c86f3 Mon Sep 17 00:00:00 2001 From: Marian-Madalin Stanciu Date: Wed, 16 Sep 2026 07:08:26 -0600 Subject: [PATCH 52/53] Pull request #90: ISGAPPSEC2-40005 regenerate wrapper after updating error handling on operations Merge in ISGAPPSEC/cyperf-api-wrapper from ISGAPPSEC2-40005_update_error_handling_on_operations to main Squashed commit of the following: commit e11e30998c314e170b1d3e65e90954cbf4b895ef Author: Marian-Madalin Stanciu Date: Wed Sep 16 11:49:27 2026 +0300 regenerate wrapper after updating error handling on operations --- cyperf/dynamic_model_meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyperf/dynamic_model_meta.py b/cyperf/dynamic_model_meta.py index 2e55b58..02bc132 100644 --- a/cyperf/dynamic_model_meta.py +++ b/cyperf/dynamic_model_meta.py @@ -420,7 +420,7 @@ def poll(cls, self, get_final_result = True, poll_time = 1): return_type=self.base_model.__class__, href=self.url), api_client=self.api_client) if op.state == "ERROR": - raise ApiException(f"Error running operation {op.id} of type {op.type}: {op.message}") + raise ApiException(f"Error running operation {op.id} of type {op.type}: {op.message if op.message else op.base_model.result}") if op.result_url and get_final_result: return cls.link_based_request(op, None, "GET", return_type=object, href=op.result_url) return op.base_model.result From 49c92050e1cea4057ce25fa4d78352ab85197167 Mon Sep 17 00:00:00 2001 From: Angela Grigoroaia Date: Tue, 22 Sep 2026 18:39:34 +0300 Subject: [PATCH 53/53] Cleanup --- .claude/knowledge-base/.generated-manifest.md | 100 --- .claude/knowledge-base/README.md | 24 - .claude/knowledge-base/USAGE.md | 92 -- .../knowledge-base/sections/architecture.md | 17 - .../sections/development-guide.md | 17 - .../sections/external-quality.md | 10 - .../sections/feature-registry.md | 12 - .claude/knowledge-base/sections/file-index.md | 57 -- .../sections/internal-quality.md | 8 - .../sections/project-standards.md | 28 - .../sections/surface-inventory.md | 65 -- .../knowledge-base/sections/technical-debt.md | 10 - .../sections/tooling-requirements.md | 14 - .pypirc | 3 - API-endpoints-changelog.txt | 817 ------------------ git_push.sh | 57 -- jenkins/JenkinsFile | 117 --- 17 files changed, 1448 deletions(-) delete mode 100644 .claude/knowledge-base/.generated-manifest.md delete mode 100644 .claude/knowledge-base/README.md delete mode 100644 .claude/knowledge-base/USAGE.md delete mode 100644 .claude/knowledge-base/sections/architecture.md delete mode 100644 .claude/knowledge-base/sections/development-guide.md delete mode 100644 .claude/knowledge-base/sections/external-quality.md delete mode 100644 .claude/knowledge-base/sections/feature-registry.md delete mode 100644 .claude/knowledge-base/sections/file-index.md delete mode 100644 .claude/knowledge-base/sections/internal-quality.md delete mode 100644 .claude/knowledge-base/sections/project-standards.md delete mode 100644 .claude/knowledge-base/sections/surface-inventory.md delete mode 100644 .claude/knowledge-base/sections/technical-debt.md delete mode 100644 .claude/knowledge-base/sections/tooling-requirements.md delete mode 100644 API-endpoints-changelog.txt delete mode 100644 git_push.sh delete mode 100644 jenkins/JenkinsFile diff --git a/.claude/knowledge-base/.generated-manifest.md b/.claude/knowledge-base/.generated-manifest.md deleted file mode 100644 index 94c8d51..0000000 --- a/.claude/knowledge-base/.generated-manifest.md +++ /dev/null @@ -1,100 +0,0 @@ -# Generated Artifacts Manifest -Plugin: knowledge-base v3.5.0 -Generated: 2026-07-09 - -| Path | Type | Name | Category | Version | -|------|------|------|----------|---------| -| .claude/knowledge-base/README.md | readme | knowledge-base | — | 3.5.0 | -| .claude/knowledge-base/sections/architecture.md | kb-section | architecture | — | 3.5.0 | -| .claude/knowledge-base/sections/file-index.md | kb-section | file-index | — | 3.5.0 | -| .claude/knowledge-base/sections/surface-inventory.md | kb-section | surface-inventory | — | 3.5.0 | -| .claude/knowledge-base/sections/project-standards.md | kb-section | project-standards | — | 3.5.0 | -| .claude/knowledge-base/sections/internal-quality.md | kb-section | internal-quality | — | 3.5.0 | -| .claude/knowledge-base/sections/external-quality.md | kb-section | external-quality | — | 3.5.0 | -| .claude/knowledge-base/sections/technical-debt.md | kb-section | technical-debt | — | 3.5.0 | -| .claude/knowledge-base/sections/feature-registry.md | kb-section | feature-registry | — | 3.5.0 | -| .claude/knowledge-base/sections/development-guide.md | kb-section | development-guide | — | 3.5.0 | -| .claude/knowledge-base/sections/tooling-requirements.md | kb-section | tooling-requirements | — | 3.5.0 | -| .claude/skills/explain/SKILL.md | skill | explain | understand | 3.4.0 | -| .claude/skills/document/SKILL.md | skill | document | understand | 3.4.0 | -| .claude/skills/review/SKILL.md | skill | review | operate | 3.4.0 | -| .claude/skills/exec-plan/SKILL.md | skill | exec-plan | operate | 3.4.0 | -| .claude/skills/deploy/SKILL.md | skill | deploy | operate | 3.4.0 | -| .claude/agents/scanner.md | agent | scanner | — | 3.4.0 | -| .claude/agents/analyzer.md | agent | analyzer | — | 3.4.0 | -| .claude/agents/reasoner.md | agent | reasoner | — | 3.4.0 | -| .claude/agents/reviewer.md | agent | reviewer | — | 3.4.0 | -| .claude/agents/exec-plan-author.md | agent | exec-plan-author | — | 3.4.0 | -| .claude/agents/exec-plan-implementer.md | agent | exec-plan-implementer | — | 3.4.0 | -| .claude/agents/exec-plan-discusser.md | agent | exec-plan-discusser | — | 3.4.0 | -| .claude/agents/exec-plan-researcher.md | agent | exec-plan-researcher | — | 3.4.0 | -| .claude/commands/explain.md | command | explain | — | 3.4.0 | -| .claude/commands/review.md | command | review | — | 3.4.0 | -| .claude/commands/exec-plan.md | command | exec-plan | — | 3.4.0 | -| .claude/commands/deploy.md | command | deploy | — | 3.4.0 | -| .claude/commands/incremental-discover.md | command | incremental-discover | — | 3.4.0 | -| .claude/settings.json | hook | block-sensitive, lint-on-save | — | 3.4.0 | -| .claude/hooks/block_sensitive.py | hook | block-sensitive (helper script) | — | 3.4.0 | -| .claude/hooks/lint_on_save.py | hook | lint-on-save (helper script) | — | 3.4.0 | -| CLAUDE.md | readme | claude-md | — | 3.4.0 | -| .claude/knowledge-base/USAGE.md | readme | usage | — | 3.5.0 | - -## Artifacts intentionally not generated - -| Artifact | Reason | -|----------|--------| -| MCP server configs (`.mcp.json`) | No qualifying stack signal: remote is internal Bitbucket (not GitHub), no database, no UI, no Slack/Stripe/Supabase integration. The project's `docker/Dockerfile` only packages the wheel for PyPI publish — not a local dev container workflow — so it doesn't justify a Docker MCP server either. | -| Improve skills (Tier A/B) | No IQ/EQ evaluation has run yet (this was a `discover`-only / base-mode run, not `discover-all`). Zero Improve skills is the correct base-mode outcome, not a gap. | -| `run-tests` hook | The project has no real test suite (`pytest --cov=cyperf` collects 0 tests) — wiring a hook to run non-existent tests on every save would be misleading. | -| `format-on-save` hook | No formatter is configured for this project (no black/ruff/autopep8) — only the `flake8` linter, which is covered by `lint-on-save`. | - -Validation: passed — all 16 mandatory artifacts + 1 conditional (`deploy`, justified by existing `docker/Dockerfile` + `jenkins/JenkinsFile` build/publish pipeline) verified present via Glob; frontmatter sanity (no `tools:` field, `name`/`description` present) and generation-marker presence verified across all skills/agents/commands/readmes; `.claude/settings.json` validated as parseable JSON; both hook helper scripts (`block_sensitive.py`, `lint_on_save.py`) validated via `py_compile` and exercised against representative stdin payloads (block / allow / skip-generated / skip-non-python cases all produced the expected exit codes). - -## Incremental Update Log - -### 2026-08-24 — Finish v3.5.0 upgrade: bring `USAGE.md` up to the current plugin version -Tooling/template refresh only — no discovery, no IQ/EQ, no re-analysis. The 2026-07-09 layout migration bumped the KB body (index README + all 10 `sections/*.md`) to plugin v3.5.0 but left `USAGE.md` stamped at plugin v3.4.0, leaving the KB in a mixed-version state. This entry closes that gap. - -- **Template check**: `skills/generate-tooling/references/usage-readme.md` is **byte-identical** between plugin v3.4.0 and v3.5.0 (md5 `2540c311d609c692fc36e2bfe2220225`, 5408 bytes both). The v3.5.0 CHANGELOG is entirely about the monolithic→split KB layout migration, which this repo already completed. So there was no template change to apply — the correction is a version stamp plus one KB-consistency fix. -- **`USAGE.md`**: generation marker and the `Generated: … | Plugin: …` line moved from plugin v3.4.0 → v3.5.0. The `Generated: 2026-07-09` date is preserved, matching how `README.md` was handled during the layout migration. -- **`USAGE.md` content refresh**: the `/document samples/` scenario listed only 5 sample scripts; `sections/file-index.md` and the working tree both report 7. Added the two missing entries (`sample_sequences_examples.py`, `samples/appbuilder/sample_appbuilder_examples.py`) so the usage guide agrees with the file index. No other prose changed. -- **Manifest**: the `USAGE.md` row's Version column moved 3.4.0 → 3.5.0. - -**Deliberately not changed**: the rows for `.claude/skills/*`, `.claude/agents/*`, `.claude/commands/*`, `.claude/settings.json`, `.claude/hooks/*`, and `CLAUDE.md` still read 3.4.0. Those artifacts are **absent from disk and from the entire git history** of this repo — the KB commit only ever contained the 13 `.claude/knowledge-base/**` files. Restamping rows for artifacts that were never generated here would be false provenance, so they are left as the historical record. Regenerating those 16 mandatory artifacts is a separate decision, not part of a version-stamp refresh. - -**Known drift (not addressed here, flagged for a future `incremental-discover`)**: `HEAD` has advanced past the 2026-07-31 refresh baseline (`835526c`). Tracked counts are now 438 model files and 454 doc pages, while the KB body still states 454 models / 469 docs. Correcting those figures is content re-analysis and was out of scope for this upgrade. - -### 2026-07-17 — Incremental content patch for 2 landed commits (no re-discovery/IQ/EQ) -Two commits landed on `main` since the 2026-07-09 generation baseline (`0affc87`), both after the KB commit was authored: `d8f08be` ("Regenerate Python API Wrapper", PR #78, 2026-07-10) and `d56047c` ("ISGAPPSEC2-38156 sample script for appbuilder", PR #77, 2026-07-14). This patch updates only the counts/facts touched by those two commits — no fresh discovery pass, no IQ/EQ re-run (both remain "not yet evaluated"). - -- **`d8f08be` (API regen)**: `cyperf/models/*.py` 443 → 454 (+11 new: `agent_assignment_by_front_panel_port`, `clear_compute_resources_ownership_operation`, `clear_front_panel_ports_ownership_operation`, `compute_resource`, `compute_resources_by_controller`, `compute_resources_by_node`, `front_panel`, `front_panel_ports_by_controller`, `ports_by_panel`, `reboot_compute_resources_operation`, `set_front_panel_ports_link_state_operation`; 1 renamed: `set_link_state_operation.py` → `set_ports_link_state_operation.py`, not a net add). `docs/*.md` 458 → 469 (+11, 1:1 with the new models). `AgentsApi` operations grew from 27 to an estimated ~37 (verified by diffing unique method-base-names in `agents_api.py` before/after — a proxy count, not a line-by-line spec re-read); total operations therefore restated as "~322 (was 312)" everywhere it appears, flagged as approximate since only `AgentsApi` was re-counted precisely, not all 16 classes. The tracked `.openapi-generator/` directory was removed (now gitignored) — no KB fact referenced it, no change needed there. Total Python files 476 → 488. -- **`d56047c` (sample script)**: `samples/*.py` 6 → 7. Added `samples/appbuilder/sample_appbuilder_examples.py` (uploads an encrypted pcap via `ApplicationResourcesApi.start_resources_captures_encrypted_upload_file`, then builds AppBuilder apps/actions from the parsed capture flows/exchanges) plus `samples/appbuilder/claude.pcap` and `samples/appbuilder/tls_key.log` fixtures. Uses only the existing `ApplicationResourcesApi` surface (no new API class), so no surface-inventory API table change beyond the file-index row for the new sample. - -**Files patched**: `README.md` (Product Profile Scale/Architecture bullets), `sections/architecture.md` (layer 2/3 counts), `sections/file-index.md` (File Inventory table: api/models/docs/samples rows + new `samples/appbuilder/*` row), `sections/surface-inventory.md` (APIs intro total, `AgentsApi` row, auth-pattern enrichment row). - -**Not touched / not needed**: `sections/internal-quality.md`, `sections/external-quality.md`, `sections/technical-debt.md` (still gated on a real IQ/EQ run — this patch is facts-only), `sections/project-standards.md`, `sections/feature-registry.md`, `sections/development-guide.md`, `sections/tooling-requirements.md` (nothing in either commit touched standards, requirements, or tooling), Interaction Chains in `file-index.md` (the new appbuilder sample is a genuinely new workflow shape — capture-upload → AppBuilder app/action creation — that doesn't fit Chain A/B; documenting it properly would need a real interaction trace, which is out of scope for this lightweight patch and is called out here as a **fuller-analysis flag** for a future `discover`/`index-files` pass). - -**Git**: will be amended onto the existing unpushed local KB commit (currently `ea3e856` after rebasing twice across intervening `git pull`s), per this repo's explicit git-workflow instructions (never push this commit; `pull.rebase=true` keeps it replaying cleanly on top of new origin commits). Only `.claude/knowledge-base/**` is staged for the amend; the unrelated unstaged `.gitignore` working-tree change (adding `.claude/settings.local.json`) is left untouched. - -### 2026-07-09 — Migrate KB to v3.5.0 index + sections layout -Structural migration only — no discovery/IQ/EQ re-run, no new facts. The monolithic `.claude/knowledge-base/README.md` already used the exact 10 canonical v3.5.0 H2 section names, so this was a clean 1:1 carve with no renaming/remapping judgment required: - -- `## Product Profile` stayed in the new slim `README.md` (plus the new `## Sections` index table). -- `## External Quality Summary` → `sections/external-quality.md` (verbatim — still "not yet performed"). -- `## Internal Quality Summary` → `sections/internal-quality.md` (verbatim — still "not yet performed"). -- `## Project Standards` → `sections/project-standards.md` (verbatim, including its `### Coding & Quality Gates` / `### Testing` / `### Architectural Rules` subheadings, unchanged since they were already H3). -- `## Architecture Overview` → `sections/architecture.md` (verbatim). -- `## File Index` → `sections/file-index.md` (verbatim, including `### File Inventory` / `### Key File Details` / `### Interaction Chains` / `### Hub Files & Side Effect Map`). -- `## Surface Inventory` → `sections/surface-inventory.md` (verbatim, including `### APIs` / `### UIs` / `### CLIs` / `### Services` / `### Libraries` / `### AI Metadata`). -- `## Technical Debt Registry` → `sections/technical-debt.md` (verbatim — still "Requires IQ evaluation"). -- `## Feature Registry` → `sections/feature-registry.md` (verbatim, empty FR/NFR tables preserved as-is, not fabricated). -- `## Development Guide` → `sections/development-guide.md` (verbatim, `### For AI Agents` / `### For Human Developers`). -- `## Tooling Requirements` → `sections/tooling-requirements.md` (verbatim, `### Understand Skills` / `### Operate Skills` / `### Improve Skills`). - -No canonical section was missing content, so no `_Not yet populated..._` placeholder was needed anywhere. No heading-level bumping was needed either — every carved section's own subheadings were already H3, nesting correctly under the new top-level H2 in each section file. No content-drift fix was identified or applied for this repo (per repo-specific instructions, none was expected). - -**Tooling-file grep (step 3)**: `.claude/agents`, `.claude/skills`, `.claude/commands`, and `CLAUDE.md` do **not exist** in this checkout (they were generated in the isolated worktree `.claude/worktrees/elegant-wishing-tide/` during the original discover run and were never relocated into `main` — see `f59b111`'s commit message, "Knowledge base was generated in an isolated worktree; relocating it into the main checkout's .claude/knowledge-base..."). This manifest still lists them (unchanged, v3.4.0) because they are real generated artifacts that exist in that worktree / were intended to be relocated — they are simply outside the scope of this structural KB migration. No stale KB references were found or fixed because there was nothing on disk to grep in the main checkout. `.claude/knowledge-base/USAGE.md` mentions the KB generically (e.g. "run `/knowledge-base:incremental-discover`") but contains no reference to a specific `## Section Heading` that moved, so it required no edit and its marker was left at v3.4.0. - -**Legacy `.claude/kb/` directory**: none existed; nothing to remove. - -**Git**: amended onto the existing unpushed commit `f59b111` ("Add generated knowledge base") per this repo's explicit git-workflow instructions, since that commit had never been pushed to `origin/main`. Only `.claude/knowledge-base/**` was staged; the untracked `.claude/worktrees/elegant-wishing-tide/` and `pr-78.diff` were left untouched. diff --git a/.claude/knowledge-base/README.md b/.claude/knowledge-base/README.md deleted file mode 100644 index f224b01..0000000 --- a/.claude/knowledge-base/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# Knowledge Base: cyperf-api-wrapper -Generated: 2026-07-09 | Plugin: knowledge-base v3.5.0 | Last incremental refresh: 2026-07-31 (git-history patch covering commits through `835526c`, no re-discovery/IQ/EQ) - -## Product Profile -- **Purpose**: Python client SDK for the Keysight CyPerf network/security performance-test controller — a mostly OpenAPI-generated REST client (`pip install cyperf`) topped with a hand-written `TestRunner`/CLI helper layer and a HATEOAS "dynamic model" layer for writing test-automation scripts. -- **Stack**: Python 3.8–3.12, pydantic ≥2, urllib3 ≥2.2, python-dateutil, typing-extensions; generated by [OpenAPI Generator](https://openapi-generator.tech) (Python/pydantic template). No web framework — this is an SDK/library, not a service. -- **Scale**: 488 Python files / ~145k LOC total (as of the Jul-10/14 2026 regen + sample-script commits), but the overwhelming majority is generator output: 454 model files (`cyperf/models/`), 16 API classes / ~322 operations (`cyperf/api/`; grew from 312 when `AgentsApi` gained ~10 new compute-resource/front-panel-port ownership operations), 469 generated doc pages (`docs/`). Hand-written surface is small and concentrated: `cyperf/utils.py` (636 lines), `cyperf/dynamic_model_meta.py` (584 lines), plus targeted edits inside `api_client.py` / `configuration.py`, and 7 sample scripts (~60k combined incl. one config zip and one pcap fixture). -- **Architecture**: Generated OpenAPI SDK, layered: `Configuration`/`ApiClient`/`RESTClientObject` (HTTP+OAuth2) → 16 generated `*Api` classes (~322 operations) → 454 generated pydantic models → a hand-written `DynamicModel` metaclass that wraps every model with lazy HATEOAS link-following, `.update()`/`.delete()`/`.refresh()`, and async-operation polling → `utils.TestRunner` + CLI helpers for scripting on top. Distributed as a PyPI package (internal Keysight/Bitbucket, `bitbucket.it.keysight.com/scm/isgappsec/cyperf-api-wrapper`), consumed by internal regression suites (e.g. the "appsec-automation" repo, per commit history). - -## Sections -| File | Description | -|------|-------------| -| [sections/architecture.md](sections/architecture.md) | Layered architecture, auth flow, async operations, dependency graph, data architecture | -| [sections/file-index.md](sections/file-index.md) | File inventory, key file details, interaction chains, hub files & side effects | -| [sections/surface-inventory.md](sections/surface-inventory.md) | APIs, UIs, CLIs, Services, Libraries, and AI metadata surfaces | -| [sections/project-standards.md](sections/project-standards.md) | Coding & quality gates, testing conventions, architectural rules | -| [sections/internal-quality.md](sections/internal-quality.md) | Internal Quality (IQ) summary — not yet evaluated | -| [sections/external-quality.md](sections/external-quality.md) | External Quality (EQ) summary — not yet evaluated | -| [sections/technical-debt.md](sections/technical-debt.md) | Technical debt registry — requires IQ evaluation | -| [sections/feature-registry.md](sections/feature-registry.md) | Functional and non-functional requirements tracked from plans | -| [sections/development-guide.md](sections/development-guide.md) | Guidance for AI agents and human developers working in this repo | -| [sections/tooling-requirements.md](sections/tooling-requirements.md) | Understand/Operate/Improve skill tooling requirements | - -Load only the section(s) relevant to your task rather than all of them at once. diff --git a/.claude/knowledge-base/USAGE.md b/.claude/knowledge-base/USAGE.md deleted file mode 100644 index c727d08..0000000 --- a/.claude/knowledge-base/USAGE.md +++ /dev/null @@ -1,92 +0,0 @@ - -# Usage Guide for cyperf-api-wrapper - -Generated: 2026-07-09 | Plugin: knowledge-base v3.5.0 - ---- - -## Quick Start - -| Command | What It Does | -|---------|-------------| -| `/explain {component}` | Explain any part of the `cyperf` SDK — a generated `*Api` operation (e.g. `SessionsApi.create_sessions`), a generated model, or one of the hand-written layers (`cyperf/utils.py` TestRunner, `cyperf/dynamic_model_meta.py` DynamicModel) — tracing what it actually does against the CyPerf controller | -| `/review` | Review staged changes against the project's conventions, scoped to the small hand-written surface (`cyperf/utils.py`, `cyperf/dynamic_model_meta.py`, targeted patches in `api_client.py`/`configuration.py`/`exceptions.py`, `samples/*.py`); generated files under `cyperf/api/`, `cyperf/models/`, and `docs/` are excluded by default | -| `/exec-plan {task}` | Create a step-by-step execution plan for changes such as adding a new sample script or extending `TestRunner`, flagging the scenario-zero test-framework gap (pytest collects 0 tests) along the way | - ---- - -## Scenario Examples - -### Understand a Component - -**Task**: You need to understand how an end-to-end test run is actually driven through the SDK, e.g. before adding a new convenience method to `TestRunner`. - -**Run**: `/explain TestRunner.wait_for_test_end` - -**What happens**: The explain skill locates `wait_for_test_end` in `cyperf/utils.py`, traces its 0.5s poll loop calling `SessionsApi.get_session_test(session_id=...)` (`GET /api/v2/sessions/{id}/test`) until `status=='STOPPED'`, and surfaces the wider chain it belongs to — `parse_cli_options()` → `TestRunner(...)` → `create_session_by_config_name()` → `start_test()` → `wait_for_test_end()` — as demonstrated end-to-end in `samples/sample_udp_streaming_run.py`. - ---- - -### Review Changes - -**Task**: You've modified `cyperf/utils.py` (e.g. touched `set_prisma_airs_params` or added a new `TestRunner` method) and want to catch issues before committing. - -**Run**: `/review` - -**What happens**: The review skill checks your staged diff against the project's actual conventions — the typed `ApiException` hierarchy in `cyperf/exceptions.py` as the dominant error-handling pattern (flagging any new broad `except Exception` swallows like the existing ones in `set_prisma_airs_params`/`set_model_armor_params`), the `flake8` lint rules (`--max-complexity=10 --max-line-length=127` in CI, `--max-line-length=150` locally per `setup.cfg`), and confirms you haven't hand-edited any file carrying the `"Generated by OpenAPI Generator... Do not edit the class manually"` header. - ---- - -### Plan a Feature - -**Task**: You need to add a new sample script demonstrating a raw-API-style attack test run against a precanned configuration. - -**Run**: `/exec-plan add a new sample script for attack test runs using the raw API style` - -**What happens**: The exec-plan skill creates a fully-scoped execution plan in `.claude/plans/`, modeled on the existing raw-API interaction chain used by `samples/sample_load_and_run_precanned_config.py` and `samples/sample_attack_based_script.py` (`create_api_client_cli()` → `ConfigurationsApi.get_configs` → `SessionsApi.create_sessions` → per-model `.update()` → `TestOperationsApi.start_test_run_start` + `.await_completion()`), and explicitly calls out that there is no automated test suite to validate against — `pytest --cov=cyperf` collects 0 tests today, so verification has to be manual/functional. You review and approve the plan before any code changes happen. After completion, run `/knowledge-base:incremental-discover` to update the KB. - ---- - -### Generate Documentation - -**Task**: You need an accurate, human-facing description of how the `TestRunner`-based workflow differs from the raw-API workflow, since the generated `README.md`/`docs/*.md` don't cover this. - -**Run**: `/document samples/` - -**What happens**: The document skill reads `samples/*.py` (the only hand-written usage examples in the repo — `sample_udp_streaming_run.py`, `sample_attacks_load_and_run.py`, `sample_load_and_run_precanned_config.py`, `sample_create_save_and_export_config.py`, `sample_attack_based_script.py`, `sample_sequences_examples.py`, plus `samples/appbuilder/sample_appbuilder_examples.py`), infers the two idiomatic call styles already used, and writes/updates guidance rather than touching the generator-owned `README.md`/`docs/*.md` (443 model docs + per-API-class docs), which would simply be clobbered on the next OpenAPI regeneration. - ---- - -### Deploy (Package & Publish) - -**Task**: Build the `cyperf` package and publish a new version to the internal PyPI index after re-syncing the wrapper against a newer CyPerf controller OpenAPI spec. - -**Run**: `/deploy pypi` - -**What happens**: The deploy skill runs the same flow as `jenkins/JenkinsFile`: build inside `docker/Dockerfile`, bump `VERSION` via `sed` (keeping `setup.py`/`pyproject.toml`'s hardcoded `1.0.0` base in sync with the Jenkins-assigned build version), and — on a `release/` branch with `publish_pypi=true` — publish via `twine` using the credentials in `.pypirc`. `publish.sh`/`git_push.sh` are the local convenience-script equivalents of the same publish flow. This is packaging/publishing only — there is no runtime service to deploy; the "deployment target" is the internal PyPI index, and consumers (e.g. the `appsec-automation` regression repo) pick up the new version via `pip install`. - ---- - -No quality gaps have been identified yet that would warrant dedicated Improve skills — IQ/EQ evaluation simply has not run on this project. Run `/knowledge-base:discover-all` to perform that evaluation and generate any Improve skills the findings justify. - ---- - -## When to Use Commands vs. Agents - -**Use commands** (e.g., `/explain`, `/review`) as your primary interface. They delegate to skills, which launch agents as needed. - -**Agents are internal** — you rarely invoke them directly. The skill decides which agent to use: - -- `scanner` (haiku) for fast file searches -- `analyzer` (sonnet) for deep code analysis -- `reasoner` (opus) for complex architecture decisions - ---- - -## Keeping Your Knowledge Base Current - -After completing a plan: -- Run `/knowledge-base:incremental-discover` to update the KB from the plan's outcomes (~2% cost of full discover) - -After updating the knowledge-base plugin: -- Run `/knowledge-base:upgrade` to regenerate tooling without re-running analysis diff --git a/.claude/knowledge-base/sections/architecture.md b/.claude/knowledge-base/sections/architecture.md deleted file mode 100644 index 17d61ca..0000000 --- a/.claude/knowledge-base/sections/architecture.md +++ /dev/null @@ -1,17 +0,0 @@ - -## Architecture Overview - -**Style**: Generated OpenAPI client SDK ("Library" surface), not a monolith/microservice/UI. Four layers, bottom-up: - -1. **Transport/Auth** — `cyperf/configuration.py` (host, SSL/proxy/retry config, OAuth2 credential storage) + `cyperf/rest.py` (`RESTClientObject`, thin urllib3 wrapper: `PoolManager`/`ProxyManager`/SOCKS, `preload_content=False`) + `cyperf/api_client.py` (`ApiClient`: `param_serialize` → `call_api` → `response_deserialize`, plus a hand-written `__retry` loop layered on top of urllib3's own retries, and CyPerf-specific `accept_eula`/`wait_for_controller_up`/`refresh_authorization`). -2. **Generated REST surface** — `cyperf/api/*.py`, 16 classes / 321 operations (grew from 312 to 322 via the Jul-10 2026 "Regenerate Python API Wrapper" commit, which added ~10 compute-resource/front-panel-port ownership operations to `AgentsApi`; PR #81's Jul-27 2026 "Regenerate Cyperf Python Wrapper" then removed `SessionsApi.start_session_prepare_test`, net 321 — a precise full-class recount), each method built in triplicate (`op`, `op_with_http_info`, `op_without_preload_content`), all declaring `_auth_settings = ['OAuth2', 'OAuth2']`. -3. **Generated data models** — `cyperf/models/*.py`, 422 pydantic v2 models (was 443; +11 new models for the Jul-10 2026 regen, incl. `ComputeResource`, `FrontPanel`, `RebootComputeResourcesOperation`, `SetFrontPanelPortsLinkStateOperation` → 454; PR #81's Jul-27 2026 regen then removed ~34 legacy per-endpoint response-wrapper/prepare-test models, added 3 TLS-1.3 signature-algorithm models, and renamed 9 more into generic shared schema types — `ContentBlock`, `FormattedDescription`, `TextSegment`, `Section`, `Keyword`, `Profile`, `LayoutConfig`, `BasicAuthProfile`, `GetScenariosOperation` — net -31 → 422), one per OpenAPI schema, re-exported flat from `cyperf/__init__.py`. -4. **Dynamic/HATEOAS overlay + scripting helpers** — `cyperf/dynamic_model_meta.py` (`DynamicModel` metaclass attaches `.update()/.delete()/.refresh()/.get_link()/.poll()` and lazy link-following properties to every generated model) and `cyperf/utils.py` (`TestRunner` class + `parse_cli_options`/`create_api_client_cli`) for end-to-end test-automation scripting. `samples/*.py` demonstrate both the raw-API style and the `TestRunner`-based style. - -**Auth flow**: `Configuration._get_access_token()` calls `AuthorizationApi.authenticate(client_id='clt-wap', grant_type='refresh_token'|'password', ...)` against the controller's Keycloak-style endpoint (`/auth/realms/keysight/protocol/openid-connect/token`), then every subsequent call attaches `Authorization: Bearer {access_token}` via `Configuration.auth_settings()`. - -**Async operations**: CyPerf operations that take time (start test, generate report, license activation) return an `AsyncContext`-like resource; `DynamicModel.poll()`/`.await_completion()` polls it via GET until `state != "IN_PROGRESS"`, raising `ApiException` on `state == "ERROR"`. - -**Dependency graph / hub files**: `api_client.py` ← used by all 16 `*Api` classes and by `dynamic_model_meta.py`. `dynamic_model_meta.py` ← used by `cyperf/__init__.py`, every `*_api.py`, and `cyperf/dynamic_models/__init__.py` (which mechanically instantiates one `DynamicModel`-built class per model name). `configuration.py` ← used by `ApiClient` and every sample script. `exceptions.py` ← imported everywhere `ApiException` handling occurs. No circular imports detected beyond the documented `dynamic_model_meta` ↔ `cyperf/__init__` load-order coupling noted above. - -**Data architecture**: No database — the controller (external system) is the data store; this package is purely a typed HTTP client. "Caching" is limited to in-memory model state kept in sync by `DynamicList`/`DynamicDict` wrappers between local mutation and server refresh. diff --git a/.claude/knowledge-base/sections/development-guide.md b/.claude/knowledge-base/sections/development-guide.md deleted file mode 100644 index 0e0324d..0000000 --- a/.claude/knowledge-base/sections/development-guide.md +++ /dev/null @@ -1,17 +0,0 @@ - -## Development Guide - -### For AI Agents -- **Never hand-edit** files carrying the `"Generated by OpenAPI Generator... Do not edit"` header (all of `cyperf/api/`, `cyperf/models/`, `docs/`, and most of `cyperf/api_client.py`/`configuration.py`/`rest.py`/`exceptions.py`). The only files meant for direct edits are `cyperf/utils.py`, `cyperf/dynamic_model_meta.py`, targeted patches inside the "generated" core files (search for CyPerf-specific methods like `accept_eula`, `wait_for_controller_up`, `_get_access_token` to see the pattern), `samples/*.py`, `docker/Dockerfile`, `jenkins/JenkinsFile`. -- **There is no test suite to run.** `pytest --cov=cyperf` is wired into every CI config but collects zero tests — don't assume `pytest` output means anything passed/failed today. If asked to "run the tests," flag this gap rather than reporting a false green. -- Files named `test_*.py` under `cyperf/api/` and `cyperf/models/` are **not tests** — they're generated models/API classes for CyPerf domain objects literally named "Test..." (TestInfo, TestOperationsApi, TestUsage, etc.). -- Entry points for understanding real usage: read `samples/*.py` before `cyperf/api/*.py` — the samples show the two idiomatic call styles (raw `*Api` classes vs. `utils.TestRunner`). `cyperf/utils.py` and `cyperf/dynamic_model_meta.py` are the only two files with actual business logic to reason about; everything else is either generated plumbing or generated boilerplate. -- The `DynamicModel` layer is the trap most likely to confuse: a plain-looking attribute access on a model (e.g. `session.config`) can trigger a lazy **HTTP GET** under the hood if the field is link-backed and not yet loaded. `.update()` similarly can issue network calls. Don't assume model attribute access is side-effect-free. - -### For Human Developers -- **Setup**: `pip install -r requirements.txt` (runtime) + `pip install -r test-requirements.txt` (dev tools); Python ≥3.8 (setup.py says `>=3.11`, pyproject.toml says `^3.8` — inconsistent, prefer 3.11+ to match CI's newer matrix legs). -- **Build**: `python setup.py install` or via Poetry (`pyproject.toml` present, but `setup.py` is what CI/Jenkins actually use). -- **Test**: `pytest --cov=cyperf` runs but exercises nothing (no test files exist yet). -- **Lint**: `flake8 . --max-complexity=10 --max-line-length=127` (CI, advisory) or `--max-line-length=150` (local `setup.cfg`); `mypy` configured but not enforced in CI. -- **Publish**: `jenkins/JenkinsFile` builds inside `docker/Dockerfile`, bumps `VERSION` via `sed`, and (if `publish_pypi=true` on a `release/` branch) publishes via `twine` using `.pypirc`. `publish.sh`/`git_push.sh` are local convenience scripts for the same flow. -- **Regenerating the client**: this repo is periodically re-synced against a newer CyPerf controller OpenAPI spec ("Re-generate wrapper" commits). After regenerating, re-apply the hand patches called out above (auth flow, EULA/controller-readiness helpers, `LinkNameException`, retry loop) since the generator will overwrite them. diff --git a/.claude/knowledge-base/sections/external-quality.md b/.claude/knowledge-base/sections/external-quality.md deleted file mode 100644 index 311f70d..0000000 --- a/.claude/knowledge-base/sections/external-quality.md +++ /dev/null @@ -1,10 +0,0 @@ - -## External Quality Summary - -EQ evaluation not yet performed. Run `/knowledge-base:discover-all` for full evaluation. - -### Surface changes observed since last KB refresh (pre-EQ, from git history 2026-07-14 → 2026-07-29) -- **Breaking**: `SessionsApi.start_session_prepare_test` (plus its `_with_http_info`/`_without_preload_content` variants) and the `PrepareTestOperation`/`PreparedTestOptions` models it used were removed entirely (PR #81, Jul 27 2026 regen). -- **Breaking**: `UtilsApi.get_eula`/`post_eula` gained a new required positional `id` parameter; the resource path changed from the hardcoded `/eula/v1/eula/CyPerf` to `/eula/v1/eula/{id}` (PR #81). The wrapper's own `wait_for_controller_up()` was not updated to match, so this is also an internal reliability bug — see `sections/technical-debt.md` (TD-1). -- **Non-breaking / additive**: `DataMigrationApi.start_controller_migration_import` gained an optional `file` upload parameter (multipart form); `ApplicationResourcesApi.delete_resources_capture` now documents `401`/`403`/`404` `ErrorResponse` returns in addition to `500`; several `ApplicationResourcesApi` docstrings had the word "CyPerf" genericized (e.g. "Get a particular CyPerf application" → "Get a particular application") — cosmetic only. -- **Behavioral change (hand-written helper API, not generated)**: `utils.TestRunner.set_prisma_airs_params`/`set_model_armor_params` both gained an optional `hostname=` keyword argument and now raise `ValueError` when no matching guardrail strike or application is found at all (previously only printed and returned) — PR #80, Jul 29 2026, ISGAPPSEC2-38154. diff --git a/.claude/knowledge-base/sections/feature-registry.md b/.claude/knowledge-base/sections/feature-registry.md deleted file mode 100644 index 7ca3322..0000000 --- a/.claude/knowledge-base/sections/feature-registry.md +++ /dev/null @@ -1,12 +0,0 @@ - -## Feature Registry - -### Functional Requirements -| ID | Requirement | Source plan | Scenarios | -|----|-------------|-------------|-----------| -*(Empty at initial discover; grows as plans complete.)* - -### Non-Functional Requirements -| ID | Requirement | Source plan | Scenarios | -|----|-------------|-------------|-----------| -*(Empty at initial discover; grows as plans complete.)* diff --git a/.claude/knowledge-base/sections/file-index.md b/.claude/knowledge-base/sections/file-index.md deleted file mode 100644 index 2fc1d27..0000000 --- a/.claude/knowledge-base/sections/file-index.md +++ /dev/null @@ -1,57 +0,0 @@ - -## File Index - -### File Inventory -| Path / Group | Count | Role | Generated? | -|---|---|---|---| -| `cyperf/api_client.py` | 1 | HTTP request/response pipeline, retry, dynamic-model wrapping | Generated + hand patches (`accept_eula`, `wait_for_controller_up`, `refresh_authorization`, `__retry`) | -| `cyperf/configuration.py` | 1 | Auth/host/SSL/proxy config, OAuth2 token fetch | Generated + hand patch (`_get_access_token`, `eula_accept_interactive`) | -| `cyperf/rest.py` | 1 | urllib3-based low-level HTTP client | Generated (standard) | -| `cyperf/exceptions.py` | 1 | Exception hierarchy, status→exception mapping | Generated + 1 hand addition (`LinkNameException`) | -| `cyperf/api_response.py` | 1 | Generic `ApiResponse[T]` pydantic wrapper | Generated (standard) | -| `cyperf/__init__.py` | 1 | Public namespace (re-exports ~460 names) | Generated (standard) | -| `cyperf/dynamic_model_meta.py` | 1 | `DynamicModel` metaclass — HATEOAS link-following, update/delete/refresh/poll | **Hand-written**, no generator header | -| `cyperf/dynamic_models/__init__.py` | 1 | Mechanically builds one `DynamicModel`-wrapped class per model name | Generated (custom template, not standard openapi-generator) | -| `cyperf/utils.py` | 1 | `TestRunner` convenience class + CLI arg parsing (`parse_cli_options`, `create_api_client_cli`) | **Hand-written**, no generator header | -| `cyperf/api/*.py` | 16 (+`__init__.py`) | Generated REST operation classes, 321 operations total (was 312; `AgentsApi` gained ~10 compute-resource/front-panel-port ownership ops in the Jul-10 2026 regen → 322; PR #81's Jul-27 2026 "Regenerate Cyperf Python Wrapper" then removed `SessionsApi.start_session_prepare_test`, net 321 — precise full-class recount, superseding the earlier "~322, approximate" caveat) | Generated (standard) | -| `cyperf/models/*.py` | 422 | Generated pydantic model per OpenAPI schema (was 443; +11 new models for front-panel-port/compute-resource ownership in the Jul-10 2026 regen, 1 renamed: `set_link_state_operation.py` → `set_ports_link_state_operation.py` → 454; PR #81's Jul-27 2026 regen then removed ~34 legacy per-endpoint response-wrapper/prepare-test models, added 3 TLS-1.3 signature-algorithm models, and renamed 9 more into generic shared schema types — `ContentBlock`, `FormattedDescription`, `TextSegment`, `Section`, `Keyword`, `Profile`, `LayoutConfig`, `BasicAuthProfile`, `GetScenariosOperation` — net -31 → 422) | Generated (standard) | -| `docs/*.md` | 438 | Generated per-model/per-API-class reference docs (was 458; +11 for the Jul-10 2026 regen → 469; PR #81's Jul-27 2026 regen removed/renamed the same set of models, net -31 → 438) | Generated (standard) | -| `samples/*.py` | 7 | End-to-end usage examples (attack tests, config CRUD, UDP streaming, sequences, appbuilder capture-to-app workflow) | Hand-written | -| `samples/appbuilder/*` | 3 | `sample_appbuilder_examples.py` (uploads an encrypted pcap capture via `ApplicationResourcesApi`, then builds AppBuilder apps/actions from the parsed flows) + `claude.pcap`/`tls_key.log` fixtures (added 2026-07-14, PR #77) | Hand-written script + data fixtures | -| `samples/cyperf-configurations/*.zip` | 1 | Sample pre-canned CyPerf config bundle | Data fixture | -| `docker/Dockerfile` | 1 | Builds/installs the package for publishing | Hand-written | -| `jenkins/JenkinsFile` | 1 | Internal Keysight build/publish pipeline (PyPI release) | Hand-written | -| `.github/workflows/python.yml`, `.gitlab-ci.yml`, `.travis.yml` | 3 | Lint/test CI (all generator-produced, unmodified) | Generated (standard) | - -### Key File Details - -- **`cyperf/api_client.py`** — `ApiClient.__init__(configuration, header_name, header_value, cookie)`. `param_serialize()` builds method/url/headers/body via `update_params_for_auth`/`_apply_auth_params`. `call_api()` is the public sync entry point, wrapping private `__call_api` in a hand-written `__retry(request_func, retries=3→5)` loop (catches `ServiceException`/`urllib3.exceptions.RequestError`, `time.sleep(5)` between attempts) — independent of urllib3's own retry config. `__call_api` calls `rest_client.request(...)` then wraps the result via `DynamicModel.dynamic_wrapper(...)` (lazy import from `dynamic_model_meta`). `response_deserialize()` maps status→declared type, raises `ApiException.from_response(...)` on non-2xx. CyPerf-specific: `accept_eula(eula_text)` (env var `CYPERF_EULA_ACCEPTED` or interactive prompt), `wait_for_controller_up(timeout_seconds=600)` (polls `UtilsApi.check_eulas`, `ApplicationResourcesApi`, `SessionsApi`, `ConfigurationsApi`, `AgentsApi`, `TestResultsApi`), `refresh_authorization()` (clears `configuration.access_token` to force re-auth). **Flagged for human review (new, evidenced by PR #81, Jul 27 2026 regen)**: `UtilsApi.get_eula`/`post_eula` were regenerated to require a new positional `id` parameter (resource path changed from the hardcoded `/eula/v1/eula/CyPerf` to `/eula/v1/eula/{id}`), but `wait_for_controller_up()`'s EULA-accept branch (lines ~166/172) still calls `eula_checker.get_eula()` and `eula_checker.post_eula(EulaSummary(accepted=True))` with no `id` — this now raises a pydantic `validate_call` error instead of completing EULA acceptance the first time a controller requires it. It isn't clear from the diff what `id` value is now expected (a literal `"CyPerf"`? one obtained from `list_eulas`?), so this needs a human fix, not a guess — see `sections/technical-debt.md`. - -- **`cyperf/configuration.py`** — Supports API-key, HTTP basic (`username`/`password`), and OAuth2 (`access_token`/`refresh_token`). `_get_access_token()` (hand-written) calls `AuthorizationApi.authenticate(client_id='clt-wap', grant_type='refresh_token'|'password', ...)`. `auth_settings()` lazily fetches the token and builds `auth['OAuth2'] = {'type':'oauth2','in':'header','key':'Authorization','value':'Bearer '+access_token}`; contains a verbatim duplicated credential-check block (~lines 417–436), a manual-edit artifact, functionally harmless. Host/SSL/proxy fields: `host`, `verify_ssl`, `ssl_ca_cert`, `cert_file`/`key_file`, `proxy`, `retries`, `connection_pool_maxsize` (`cpu_count()*5`); CyPerf-specific `eula_accept_interactive`, `temp_folder_path`. - -- **`cyperf/rest.py`** — `RESTClientObject` built on raw `urllib3` (`PoolManager`/`ProxyManager`/SOCKS via `is_socks_proxy_url`), `preload_content=False` always, retries passed straight to urllib3 (`pool_args['retries']`), TLS via `ssl.CERT_REQUIRED`/`CERT_NONE`. Body building supports JSON/form/multipart/raw depending on `Content-Type`. - -- **`cyperf/exceptions.py`** — `OpenApiException` → `ApiTypeError`/`ApiValueError`/`ApiAttributeError`/`ApiKeyError`/`ApiException`. `ApiException.from_response()` maps 400→`BadRequestException`, 401→`UnauthorizedException`, 403→`ForbiddenException`, 404→`NotFoundException`, 5xx→`ServiceException`. Hand addition: `LinkNameException(Exception)` — raised by `DynamicModel.get_link()` when a HATEOAS link name isn't found. - -- **`cyperf/dynamic_model_meta.py`** — `DynamicList(UserList)`/`DynamicDict(UserDict)` keep raw vs. link-wrapped collection data in sync, diffing local vs. server state to POST new items / batch-DELETE (`operations/batch-delete`) removed ones on `.update()`. `DynamicModel(type)` metaclass inspects each model's pydantic fields (via `x-operation` schema extras) to attach either a bound "operation" method (e.g. a synthetic `start_test_run_start`-style method returning an `AsyncContext`) or a lazy link-following property. Key instance methods added to every model: `update()` (PATCH only-changed fields; falls back to full GET+PUT on HTTP 405), `delete()`, `refresh()`, `get_link()`/`get_self_link()`, `link_based_request()` (the actual `api_client.param_serialize`+`call_api` call), `poll()`/`await_completion()` (polls async ops, `time.sleep(poll_time)`, raises on `state=="ERROR"`). Known latent bug: `DynamicDict.__init__` iterates `for key,i in dct` over what is normally a plain dict — likely never exercised in practice, worth a defensive look before relying on dict-typed link fields. - -- **`cyperf/utils.py`** — `TestRunner.__init__(controller, username, password, refresh_token, license_server, license_user, license_password, verify_ssl)`: reads env var **`CYPERF_OFFLINE_TOKEN`** when no explicit credentials are given, builds `Configuration`+`ApiClient`, calls `update_license_server()`, fetches online agents. ~35 methods wrap the generated `*Api` classes for common workflows: `load_configuration_file(s)`, `create_session(_by_config_name)`, `delete_session`, `assign_agents` (raises `ValueError("Insufficient agents found on setup.")`), `wait_until_agents_released` (raises `TimeoutError` after 180s), `start_test`/`stop_test`/`wait_for_test_end(session, test_monitor)` (0.5s poll loop with optional callback), `collect_stats`, `get_csvs_for_result` (file I/O: `os.makedirs` + `ZipFile(...).extractall(...)`), `set_prisma_airs_params`/`set_model_armor_params` — as of PR #80 (2026-07-29, ISGAPPSEC2-38154, "unified strike format" support) both now delegate to a new shared `_set_llm_api_profile_params(session, profile_model_name, hostname, params, app_protocol_id)` helper: matching is by `param_id`/`protocol_id` instead of by param/attack-name string, both gained an optional `hostname=` kwarg (`set_model_armor_params` defaults it to `modelarmor.{location}.rep.googleapis.com` when omitted), a per-application hostname update is now skipped gracefully (with a print) when an application has no `connections` instead of risking an index/attribute error, and a `ValueError` is now raised when neither a matching LLM-API-profile strike nor application is found at all (previously only printed and returned). Still broad except-and-print, no re-raise, on the per-branch `AttributeError`/`Exception` paths — the error-swallowing pattern is now consolidated into one function instead of four near-duplicate copies, but not resolved. Module functions: `parse_cli_options(extra_options=[])` (argparse: `--controller` required, `--user`/`--password`/`--license-server`/`--license-user`/`--license-password`, plus caller-supplied extra flags; falls back to `CYPERF_OFFLINE_TOKEN` env var), `create_api_client_cli(verify_ssl=True)`. `is_valid_ipv4`/`is_valid_ipv6` are defined without a `self` parameter — a bug if ever invoked as bound instance methods. - -- **`cyperf/__init__.py`** — Pure generated flat namespace: all 16 `*Api` classes, `ApiClient`, `ApiResponse`, `Configuration`, `DynamicModel`, all exception classes (incl. `LinkNameException`), and ~440 model classes. Notably **`utils` and `dynamic_model_meta` are not re-exported here** — accessed as `cyperf.utils`/`cyperf.dynamic_model_meta` submodules. - -### Interaction Chains - -**Chain A — `TestRunner`-based end-to-end test run** (used by `sample_udp_streaming_run.py`, `sample_attacks_load_and_run.py`): -1. `utils.parse_cli_options()` → parses `--controller/--user/--password/--refresh-token`. -2. `utils.TestRunner(...)` constructor → builds `Configuration` + `ApiClient` (no HTTP yet unless `license_server` given). -3. `TestRunner.create_session_by_config_name(name)` → `ConfigurationsApi.get_configs(...)` (**GET** `/api/v2/configurations`) → `TestRunner.create_session(config_url)` → `SessionsApi.create_sessions([Session(config_url=...)])` (**POST** `/api/v2/sessions`). -4. `TestRunner.add_app/disable_automatic_network/assign_agents/set_objective_and_timeline(...)` → mutate in-memory config models → `.update()` (via `DynamicModel`) → **PATCH/PUT** to session config sub-resources. -5. `TestRunner.start_test(session)` → `TestOperationsApi.start_test_run_start(session_id=...)` (**POST** `/api/v2/sessions/{id}/test-operations/start`) → `.await_completion()` polls the async op (**GET**) until done. -6. `TestRunner.wait_for_test_end(session, test_monitor)` → loop calling `SessionsApi.get_session_test(session_id=...)` (**GET** `/api/v2/sessions/{id}/test`) every 0.5s until `status=='STOPPED'`; each tick optionally calls `TestRunner.collect_stats(...)` → `StatisticsApi.get_result_stats`/`get_result_stat_by_id` (**GET**). -7. Cleanup: `TestRunner.delete_session(session)` → `SessionsApi.delete_session(...)` (**DELETE** `/api/v2/sessions/{id}`). - -**Chain B — raw-API end-to-end run** (used by `sample_load_and_run_precanned_config.py`, `sample_create_save_and_export_config.py`, `sample_attack_based_script.py`): same shape but inlined without `TestRunner` — `create_api_client_cli()` → `ConfigurationsApi.get_configs` → `SessionsApi.create_sessions` → per-model `.update()` calls → `TestOperationsApi.start_test_run_start` + `.await_completion()` → hand-rolled `while session.test.status != 'STOPPED': sleep(5); session.refresh()` (bypasses `wait_for_test_end`) → `TestResultsApi.start_result_generate_all`/`ReportsApi.start_result_generate_csv` + `.await_completion()`. These three scripts never call `delete_session` — no cleanup. - -### Hub Files & Side Effect Map -- **Hub files** (imported by many): `cyperf/api_client.py` (all 16 `*Api` classes + `dynamic_model_meta.py`), `cyperf/dynamic_model_meta.py` (`__init__.py`, all `*_api.py`, `dynamic_models/__init__.py`), `cyperf/configuration.py` (`ApiClient` + every sample), `cyperf/exceptions.py` (used wherever `ApiException` is caught). -- **Side effects**: `api_client.py`/`rest.py` — all outbound HTTPS to the CyPerf controller. `utils.py` — file I/O (`get_csvs_for_result`: `os.makedirs`, `ZipFile.extractall`), env var reads (`CYPERF_OFFLINE_TOKEN`, license/EULA flows), `time.sleep` polling, `print`/`pprint` to stdout. `dynamic_model_meta.py` — HTTP via `api_client.call_api`/`param_serialize`, `time.sleep` in `poll()`. No database, no message queues, no background workers. diff --git a/.claude/knowledge-base/sections/internal-quality.md b/.claude/knowledge-base/sections/internal-quality.md deleted file mode 100644 index b03e65c..0000000 --- a/.claude/knowledge-base/sections/internal-quality.md +++ /dev/null @@ -1,8 +0,0 @@ - -## Internal Quality Summary - -IQ evaluation not yet performed. Run `/knowledge-base:discover-all` for full evaluation. - -### Findings surfaced during incremental git-history review (pre-IQ, not a formal pass) -- **Reliability bug, newly introduced (PR #81, Jul 27 2026 "Regenerate Cyperf Python Wrapper")**: the regen changed `UtilsApi.get_eula`/`post_eula` to require a new positional `id` parameter (path `/eula/v1/eula/CyPerf` → `/eula/v1/eula/{id}`), but the hand-written `cyperf/api_client.py::wait_for_controller_up()` EULA-accept branch was not updated to pass `id` — it now raises a pydantic `validate_call` error instead of completing EULA acceptance. See `sections/file-index.md` (`cyperf/api_client.py`) and `sections/technical-debt.md`. Flagged for human review: the correct `id` value isn't evident from the diff alone. -- **Refactor, not a quality regression (PR #80, Jul 29 2026, ISGAPPSEC2-38154)**: `cyperf/utils.py`'s `set_prisma_airs_params`/`set_model_armor_params` were deduplicated into a shared `_set_llm_api_profile_params` helper, and a total-miss case (`ValueError`) is now raised instead of silently printing. The pre-existing broad except-and-print pattern (no re-raise) is preserved, just consolidated from four copies into one — not resolved. diff --git a/.claude/knowledge-base/sections/project-standards.md b/.claude/knowledge-base/sections/project-standards.md deleted file mode 100644 index 786e514..0000000 --- a/.claude/knowledge-base/sections/project-standards.md +++ /dev/null @@ -1,28 +0,0 @@ - -## Project Standards - -Populated from discover Phase 2 (automated config search). No ADRs, design docs, SECURITY.md, or CONTRIBUTING.md were found — these categories are absent, not just undocumented; treat their absence as expected for a generated-SDK repo rather than a gap to fill blindly. - -### Coding & Quality Gates -| Standard | Value | Source | -|----------|-------|--------| -| Coverage threshold | None declared (pytest-cov run but no `--cov-fail-under` or codecov config) | `tox.ini`, `.gitlab-ci.yml`, `.travis.yml` (all: `pytest --cov=cyperf`) | -| Complexity limit | `max-complexity=10` (warning only, `--exit-zero`), `max-line-length=127` in CI; `max-line-length=150` locally | `.github/workflows/python.yml` vs `setup.cfg` `[flake8]` (inconsistent between the two) | -| Required CI checks | flake8 syntax-error gate (`E9,F63,F7,F82`) blocks; complexity/line-length lint is advisory only | `.github/workflows/python.yml` | -| Security requirements | None found (no SECURITY.md, no scanning config) | — | -| Coding standards | flake8 only; no `.editorconfig`, no black/ruff/isort config; `mypy` configured in `pyproject.toml` but explicitly **not** strict yet (`# TODO: enable "strict" once all these individual checks are passing`) | `setup.cfg`, `pyproject.toml [tool.mypy]` | -| Error patterns | Exceptions (typed `ApiException` hierarchy keyed by HTTP status) is the dominant pattern; hand-written `utils.py` mixes proper re-raise with a few broad `except Exception`/`except AttributeError: print(...)` swallows in `set_prisma_airs_params`/`set_model_armor_params` | `cyperf/exceptions.py`, `cyperf/utils.py` | - -### Testing -| Field | Value | Notes | -|-------|-------|-------| -| Test methodology | *(empty → TDD default; not actually applicable, see framework note)* | No evidence of a test-writing process either way. | -| Test framework | **Configured (`pytest`) but no test files exist.** `tox.ini`, `test-requirements.txt`, `test.sh`, `.gitlab-ci.yml`, `.travis.yml` all run `pytest --cov=cyperf`, yet there is not a single real test module in the repo. Files that *look* like tests by name — `cyperf/api/test_operations_api.py`, `cyperf/api/test_results_api.py`, `cyperf/models/test_info.py`, `cyperf/models/test_state_changed_operation.py`, `cyperf/models/test_usage.py` — are generated model/API classes named after CyPerf domain entities ("TestOperationsApi", "TestInfo", "TestUsage"), not unit tests. | **Scenario-zero candidate**: this project cannot do TDD or run automated tests today; CI's `pytest --cov=cyperf` step passes trivially (0 tests collected) rather than verifying anything. | -| Test runner command | `pytest --cov=cyperf` (declared, but collects 0 tests) | From CI configs. | -| Test file pattern | None established | No `tests/` directory exists. | -| Coverage command | `pytest --cov=cyperf` | Same caveat as above — no real coverage is being measured. | - -### Architectural Rules -- Every generated file carries a `"Generated by OpenAPI Generator... Do not edit the class manually"` header — the implicit rule is: **hand edits are confined to `cyperf/utils.py`, `cyperf/dynamic_model_meta.py`, targeted patches inside `api_client.py`/`configuration.py`/`exceptions.py`, and `samples/`.** Regenerating the client (`.openapi-generator/FILES`, `.openapi-generator-ignore`) risks clobbering those hand patches unless they're re-applied or the generator is configured to skip them. -- All HTTP traffic funnels through one hub, `ApiClient.call_api` (via `RESTClientObject`) — no `*Api` class or model talks to `urllib3`/sockets directly. -- The `DynamicModel` metaclass layer depends on `cyperf/__init__.py` already having model classes bound (`get_inner_model` does `getattr(cyperf, name)`), and `cyperf/dynamic_models/__init__.py` depends on `DynamicModel` — a load-order coupling: `dynamic_model_meta` → `cyperf/__init__` (models) → `dynamic_models`. diff --git a/.claude/knowledge-base/sections/surface-inventory.md b/.claude/knowledge-base/sections/surface-inventory.md deleted file mode 100644 index 5ceddfc..0000000 --- a/.claude/knowledge-base/sections/surface-inventory.md +++ /dev/null @@ -1,65 +0,0 @@ - -## Surface Inventory - -### APIs -16 generated `*Api` classes / ~322 total operations against the CyPerf controller's REST API (was 312 as of 2026-07-09; the 2026-07-10 "Regenerate Python API Wrapper" commit added ~10 new `AgentsApi` operations for front-panel-port/compute-resource ownership — exact per-class count below is not re-verified for every class, only `AgentsApi`, so treat the total as approximate pending a fuller surface re-scan): - -| Class (file) | Ops | Purpose | -|---|---|---| -| `AuthorizationApi` | 1 | OAuth2/Keycloak login (password or refresh_token grant) | -| `SessionsApi` | 29 | Test-session lifecycle, session config, test init/prepare/end | -| `TestOperationsApi` | 5 | Start/stop/abort a test or calibration run | -| `TestResultsApi` | 15 | Result retrieval/export/delete, batch delete | -| `StatisticsApi` | 6 | Runtime/result statistics | -| `ReportsApi` | 4 | PDF/CSV report generation & download | -| `ConfigurationsApi` | 14 | Config CRUD, categories, import/export | -| `ApplicationResourcesApi` | 146 | Reusable resources: captures, certs, payloads, playlists, media, apps/attacks/strikes, fuzzing | -| `AgentsApi` | ~37 (was 27) | Test agents & compute nodes (reboot, reserve, tag, ports), now incl. front-panel-port and compute-resource ownership CRUD (`ClearFrontPanelPortsOwnershipOperation`, `ClearComputeResourcesOwnershipOperation`, `RebootComputeResourcesOperation`, `SetFrontPanelPortsLinkStateOperation`, etc., added 2026-07-10 PR #78) | -| `BrokersApi` | 5 | Broker instance CRUD | -| `LicenseServersApi` | 5 | License server config CRUD | -| `LicensingApi` | 19 | License activation/entitlement/host-ID, async ops | -| `NotificationsApi` | 6 | System notifications | -| `DiagnosticsApi` | 7 | Diagnostic bundle export/status | -| `DataMigrationApi` | 2 | Controller data export/import for migration | -| `UtilsApi` | 21 | EULAs, disk usage, cert manager, server time, log config | - -**Enrichment**: -| Field | Value | -|-------|-------| -| Error envelope shape | HTTP status code → typed Python exception (`ApiException.from_response`: 400→`BadRequestException`, 401→`UnauthorizedException`, 403→`ForbiddenException`, 404→`NotFoundException`, 5xx→`ServiceException`); response body is the controller's raw JSON, deserialized per `response_types_map`, not a fixed `{code, message}` envelope. | -| Versioning strategy | Path-based, mostly `/api/v2/...`; two legacy outliers: `/auth/realms/keysight/protocol/openid-connect/token` (Keycloak) and `/eula/v1/check`. No `Accept-Version` header. | -| Auth pattern | OAuth2 bearer token (`Authorization: Bearer {access_token}`), obtained via password or refresh_token grant against the controller's Keycloak endpoint (`client_id='clt-wap'`). Every operation (~322, was 312) declares `_auth_settings = ['OAuth2', 'OAuth2']`. | -| Rate-limit strategy | None detected in generated code or docs. | -| Pagination style | Offset-style (`take`/`skip` query params) on list endpoints (e.g. `AgentsApi.get_agents`), plus `search_col`/`search_val`/`filter_mode`/`sort` query params for filtering/sorting. | - -### UIs -N/A — pure SDK/library, no UI code. - -### CLIs -No standalone CLI product; `cyperf/utils.py` exposes a minimal argparse-based helper (`parse_cli_options`) that sample scripts use for their own `--controller/--user/--password/...` flags — not a packaged/installed CLI entry point. - -**Enrichment**: -| Field | Value | -|-------|-------| -| Argument parser | `argparse` (`utils.parse_cli_options`) | -| Exit-code convention | `parser.error(...)` (argparse default: exits 2 on usage error); no other exit-code convention established | -| Config file format | None — credentials via CLI flags or `CYPERF_OFFLINE_TOKEN` env var | -| Stdout/stderr discipline | Mixed — `print`/`pprint` used for status/results in `TestRunner`; warnings routed through a custom `format_warning_cli_issues` formatter | - -### Services -N/A — this package is a client library, not a deployed service. (The Jenkins pipeline publishes the built package to PyPI; it does not deploy a running service.) - -### Libraries -| Name | Purpose | Distribution | Known consumers | -|---|---|---|---| -| `cyperf` | Typed Python client for the Keysight CyPerf REST API | Internal PyPI (`.pypirc`), built via `jenkins/JenkinsFile` (Docker + `setup.py`/`build`/`twine`) | Internal test-automation scripts (`samples/`); the "appsec-automation" regression repo (per commit `ce85bc3`) | - -**Enrichment**: -| Field | Value | -|-------|-------| -| API contract stability | Unversioned in the semver sense — version tracks the CyPerf controller's own API version; `setup.py`/`pyproject.toml` both hardcode `1.0.0`, bumped at build time by Jenkins (`sed -i 's/VERSION = "1.0.0"/.../ '`). Contract itself is regenerated from the controller's OpenAPI spec each time the wrapper is refreshed ("Re-generate wrapper" commits appear in history). | -| Error semantics | Exceptions — typed `ApiException` hierarchy keyed by HTTP status. | -| Doc convention | OpenAPI-Generator-produced `docs/*.md` (one file per model/API class) plus a large generated `README.md`; no docstring convention (PEP 257) is consistently applied in hand-written code. | - -### AI Metadata -None found — no `.mcp.json`, no pre-existing `.claude/` directory, no `SKILL.md`, no structured tool schemas prior to this discovery run. diff --git a/.claude/knowledge-base/sections/technical-debt.md b/.claude/knowledge-base/sections/technical-debt.md deleted file mode 100644 index 3345eb9..0000000 --- a/.claude/knowledge-base/sections/technical-debt.md +++ /dev/null @@ -1,10 +0,0 @@ - -## Technical Debt Registry - -Full registry requires IQ evaluation. One item below was surfaced during an incremental git-history review (not from a formal IQ pass) and is tracked here because it is a confirmed, evidenced bug. - -| ID | Title | Severity | Evidence | Status | -|----|-------|----------|----------|--------| -| TD-1 | `wait_for_controller_up()` EULA-accept path breaks after the PR #81 `UtilsApi` regen | Blocking (confirmed library bug) | `cyperf/api_client.py` lines ~166/172 call `eula_checker.get_eula()` / `eula_checker.post_eula(EulaSummary(accepted=True))` with no `id` argument; PR #81 (Jul 27 2026 "Regenerate Cyperf Python Wrapper") changed `UtilsApi.get_eula`/`post_eula` to require a positional `id` (path changed from the hardcoded `/eula/v1/eula/CyPerf` to `/eula/v1/eula/{id}`) | Open — introduced 2026-07-27, not yet fixed as of 2026-07-31 | - -Open question for a human: what `id` should the wrapper now pass here (a literal `"CyPerf"`? one obtained from `list_eulas`?) — not inferable from the diff alone, so no fix was guessed. diff --git a/.claude/knowledge-base/sections/tooling-requirements.md b/.claude/knowledge-base/sections/tooling-requirements.md deleted file mode 100644 index 7a46888..0000000 --- a/.claude/knowledge-base/sections/tooling-requirements.md +++ /dev/null @@ -1,14 +0,0 @@ - -## Tooling Requirements - -### Understand Skills (always generated) -- `explain` — navigate the generated-vs-hand-written split; explain what a given `*Api` operation or model actually does against the CyPerf controller. -- `document` — keep `README.md`/`docs/*.md` in sync is generator-owned; human-facing docs work should target `samples/*.py` and this KB instead. - -### Operate Skills (always generated) -- `review` — code review, scoped to the small hand-written surface (`utils.py`, `dynamic_model_meta.py`, `samples/`, CI/build files); generated files should be excluded from review by default. -- `exec-plan` — flag the test-framework gap (scenario-zero) on first use per the Testing table above. -- No `deploy` skill — this project has no deployment target beyond a PyPI publish, already automated by Jenkins. - -### Improve Skills (gap-driven) -Requires IQ/EQ evaluation to identify gaps. diff --git a/.pypirc b/.pypirc index 502c84a..6555c91 100644 --- a/.pypirc +++ b/.pypirc @@ -9,6 +9,3 @@ repository = https://test.pypi.org/legacy/ [pypi] repository = https://upload.pypi.org/legacy/ - -[artifactory] -repository=https://artifactory.it.keysight.com/artifactory/api/pypi/pypi-local-wap diff --git a/API-endpoints-changelog.txt b/API-endpoints-changelog.txt deleted file mode 100644 index edb5b90..0000000 --- a/API-endpoints-changelog.txt +++ /dev/null @@ -1,817 +0,0 @@ -AgentsApi - DELETE /api/v2/agents/{agentId} - old: delete_agents - new: delete_agent - GET /api/v2/agents/{agentId} - old: get_agents_by_id - new: get_agent_by_id - GET /api/v2/tags - old: get_agent_tags - new: get_agents_tags - GET /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports/{portId} - old: get_ports_by_id - new: get_compute_node_port_by_id - GET /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId}/ports - old: get_ports - new: get_compute_node_ports - GET /api/v2/controllers/{controllerId} - old: get_controllers_by_id - new: get_controller_by_id - GET /api/v2/controllers/{controllerId}/compute-nodes/{computeNodeId} - old: get_compute_nodes_by_id - new: get_controller_compute_node_by_id - GET /api/v2/controllers/{controllerId}/compute-nodes - old: get_compute_nodes - new: get_controller_compute_nodes - PATCH /api/v2/agents/{agentId} - old: patch_agents - new: patch_agent - GET /api/v2/agents/operations/batch-delete/{id} - old: poll_batch_delete - new: poll_agents_batch_delete - GET /api/v2/agents/operations/exportFiles/{id} - old: poll_export_files - new: poll_agents_export_files - GET /api/v2/agents/operations/reboot/{id} - old: poll_reboot - new: poll_agents_reboot - GET /api/v2/agents/operations/release/{id} - old: poll_release - new: poll_agents_release - GET /api/v2/agents/operations/reserve/{id} - old: poll_reserve - new: poll_agents_reserve - GET /api/v2/agents/operations/set-dpdk-mode/{id} - old: poll_set_dpdk_mode - new: poll_agents_set_dpdk_mode - GET /api/v2/agents/operations/set-ntp/{id} - old: poll_set_ntp - new: poll_agents_set_ntp - GET /api/v2/agents/operations/update/{id} - old: poll_update - new: poll_agents_update - POST /api/v2/agents/operations/batch-delete - old: start_batch_delete - new: start_agents_batch_delete - POST /api/v2/agents/operations/exportFiles - old: start_export_files - new: start_agents_export_files - POST /api/v2/agents/operations/reboot - old: start_reboot - new: start_agents_reboot - POST /api/v2/agents/operations/release - old: start_release - new: start_agents_release - POST /api/v2/agents/operations/reserve - old: start_reserve - new: start_agents_reserve - POST /api/v2/agents/operations/set-dpdk-mode - old: start_set_dpdk_mode - new: start_agents_set_dpdk_mode - POST /api/v2/agents/operations/set-ntp - old: start_set_ntp - new: start_agents_set_ntp - POST /api/v2/agents/operations/update - old: start_update - new: start_agents_update -ApplicationResourcesApi - DELETE /api/v2/resources/captures/{captureId} - old: delete_captures - new: delete_resources_capture - DELETE /api/v2/resources/certificates/{certificateId} - old: delete_certificates - new: delete_resources_certificate - DELETE /api/v2/resources/flow-library/{flowLibraryId} - old: delete_flow_library - new: delete_resources_flow_library - DELETE /api/v2/resources/global-playlists/{globalPlaylistId} - old: delete_global_playlists - new: delete_resources_global_playlist - DELETE /api/v2/resources/http-library/{httpLibraryId} - old: delete_http_library - new: delete_resources_http_library - DELETE /api/v2/resources/media-files/{mediaFileId} - old: delete_media_files - new: delete_resources_media_file - DELETE /api/v2/resources/media-library/{mediaLibraryId} - old: delete_media_library - new: delete_resources_media_library - DELETE /api/v2/resources/other-library/{otherLibraryId} - old: delete_other_library - new: delete_resources_other_library - DELETE /api/v2/resources/payloads/{payloadId} - old: delete_payloads - new: delete_resources_payload - DELETE /api/v2/resources/pcaps/{pcapId} - old: delete_pcaps - new: delete_resources_pcap - DELETE /api/v2/resources/playlists/{playlistId} - old: delete_playlists - new: delete_resources_playlist - DELETE /api/v2/resources/sip-library/{sipLibraryId} - old: delete_sip_library - new: delete_resources_sip_library - DELETE /api/v2/resources/stats-profile/{statsProfileId} - old: delete_stats_profile - new: delete_resources_stats_profile - DELETE /api/v2/resources/tls-certificates/{tlsCertificateId} - old: delete_tls_certificates - new: delete_resources_tls_certificate - DELETE /api/v2/resources/tls-dhs/{tlsDhId} - old: delete_tls_dhs - new: delete_resources_tls_dh - DELETE /api/v2/resources/tls-keys/{tlsKeyId} - old: delete_tls_keys - new: delete_resources_tls_key - DELETE /api/v2/resources/user-defined-apps/{userDefinedAppId} - old: delete_user_defined_apps - new: delete_resources_user_defined_app - GET /api/v2/resources/captures/{captureId}/flows - old: get_flows - new: get_capture_flows - GET /api/v2/resources/captures/{captureId}/flows/{flowId}/exchanges - old: get_exchanges - new: get_flow_exchanges - GET /api/v2/resources/apps/{appId} - old: get_apps_by_id - new: get_resources_app_by_id - GET /api/v2/resources/application-types/{applicationTypeId} - old: get_application_types_by_id - new: get_resources_application_type_by_id - GET /api/v2/resources/application-types - old: get_application_types - new: get_resources_application_types - GET /api/v2/resources/apps - old: get_apps - new: get_resources_apps - GET /api/v2/resources/attacks/{attackId} - old: get_attacks_by_id - new: get_resources_attack_by_id - GET /api/v2/resources/attack-categories - old: get_attack_categories - new: get_resources_attack_categories - GET /api/v2/resources/attacks - old: get_attacks - new: get_resources_attacks - GET /api/v2/resources/auth-profiles/{authProfileId} - old: get_auth_profiles_by_id - new: get_resources_auth_profile_by_id - GET /api/v2/resources/auth-profiles - old: get_auth_profiles - new: get_resources_auth_profiles - GET /api/v2/resources/captures/{captureId} - old: get_captures_by_id - new: get_resources_capture_by_id - GET /api/v2/resources/captures - old: get_captures - new: get_resources_captures - GET /api/v2/resources/captures/operations/uploadFile/{uploadFileId}/result - old: get_resources_captures_operations_upload_file_operation_id_result - new: get_resources_captures_upload_file_result - GET /api/v2/resources/certificates/{certificateId} - old: get_certificates_by_id - new: get_resources_certificate_by_id - GET /api/v2/resources/certificates/{certificateId}/contentFile - old: get_resources_certificates_certificates_id_content_file - new: get_resources_certificate_content_file - GET /api/v2/resources/certificates - old: get_certificates - new: get_resources_certificates - GET /api/v2/resources/certificates/operations/uploadFile/{uploadFileId}/result - old: get_resources_certificates_operations_upload_file_operation_id_result - new: get_resources_certificates_upload_file_result - GET /api/v2/resources/flow-library - old: get_flow_library - new: get_resources_flow_library - GET /api/v2/resources/flow-library/{flowLibraryId} - old: get_flow_library_by_id - new: get_resources_flow_library_by_id - GET /api/v2/resources/flow-library/{flowLibraryId}/contentFile - old: get_resources_flow_library_flow_library_id_content_file - new: get_resources_flow_library_content_file - GET /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId}/result - old: get_resources_flow_library_operations_upload_file_operation_id_result - new: get_resources_flow_library_upload_file_result - GET /api/v2/resources/global-playlists/{globalPlaylistId} - old: get_global_playlists_by_id - new: get_resources_global_playlist_by_id - GET /api/v2/resources/global-playlists/{globalPlaylistId}/contentFile - old: get_resources_global_playlists_global_playlists_id_content_file - new: get_resources_global_playlist_content_file - GET /api/v2/resources/global-playlists - old: get_global_playlists - new: get_resources_global_playlists - GET /api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId}/result - old: get_resources_global_playlists_operations_upload_file_operation_id_result - new: get_resources_global_playlists_upload_file_result - GET /api/v2/resources/http-library - old: get_http_library - new: get_resources_http_library - GET /api/v2/resources/http-library/{httpLibraryId} - old: get_http_library_by_id - new: get_resources_http_library_by_id - GET /api/v2/resources/http-library/{httpLibraryId}/contentFile - old: get_resources_http_library_http_library_id_content_file - new: get_resources_http_library_content_file - GET /api/v2/resources/http-library/operations/uploadFile/{uploadFileId}/result - old: get_resources_http_library_operations_upload_file_operation_id_result - new: get_resources_http_library_upload_file_result - GET /api/v2/resources/http-profiles/{httpProfileId} - old: get_http_profiles_by_id - new: get_resources_http_profile_by_id - GET /api/v2/resources/http-profiles - old: get_http_profiles - new: get_resources_http_profiles - GET /api/v2/resources/media-files/{mediaFileId} - old: get_media_files_by_id - new: get_resources_media_file_by_id - GET /api/v2/resources/media-files/{mediaFileId}/contentFile - old: get_resources_media_files_media_files_id_content_file - new: get_resources_media_file_content_file - GET /api/v2/resources/media-files - old: get_media_files - new: get_resources_media_files - GET /api/v2/resources/media-files/operations/uploadFile/{uploadFileId}/result - old: get_resources_media_files_operations_upload_file_operation_id_result - new: get_resources_media_files_upload_file_result - GET /api/v2/resources/media-library - old: get_media_library - new: get_resources_media_library - GET /api/v2/resources/media-library/{mediaLibraryId} - old: get_media_library_by_id - new: get_resources_media_library_by_id - GET /api/v2/resources/media-library/{mediaLibraryId}/contentFile - old: get_resources_media_library_media_library_id_content_file - new: get_resources_media_library_content_file - GET /api/v2/resources/media-library/operations/uploadFile/{uploadFileId}/result - old: get_resources_media_library_operations_upload_file_operation_id_result - new: get_resources_media_library_upload_file_result - GET /api/v2/resources/other-library - old: get_other_library - new: get_resources_other_library - GET /api/v2/resources/other-library/{otherLibraryId} - old: get_other_library_by_id - new: get_resources_other_library_by_id - GET /api/v2/resources/other-library/{otherLibraryId}/contentFile - old: get_resources_other_library_other_library_id_content_file - new: get_resources_other_library_content_file - GET /api/v2/resources/other-library/operations/uploadFile/{uploadFileId}/result - old: get_resources_other_library_operations_upload_file_operation_id_result - new: get_resources_other_library_upload_file_result - GET /api/v2/resources/payloads/{payloadId} - old: get_payloads_by_id - new: get_resources_payload_by_id - GET /api/v2/resources/payloads/{payloadId}/contentFile - old: get_resources_payloads_payloads_id_content_file - new: get_resources_payload_content_file - GET /api/v2/resources/payloads - old: get_payloads - new: get_resources_payloads - GET /api/v2/resources/payloads/operations/uploadFile/{uploadFileId}/result - old: get_resources_payloads_operations_upload_file_operation_id_result - new: get_resources_payloads_upload_file_result - GET /api/v2/resources/pcaps/{pcapId} - old: get_pcaps_by_id - new: get_resources_pcap_by_id - GET /api/v2/resources/pcaps/{pcapId}/contentFile - old: get_resources_pcaps_pcaps_id_content_file - new: get_resources_pcap_content_file - GET /api/v2/resources/pcaps - old: get_pcaps - new: get_resources_pcaps - GET /api/v2/resources/pcaps/operations/uploadFile/{uploadFileId}/result - old: get_resources_pcaps_operations_upload_file_operation_id_result - new: get_resources_pcaps_upload_file_result - GET /api/v2/resources/playlists/{playlistId} - old: get_playlists_by_id - new: get_resources_playlist_by_id - GET /api/v2/resources/playlists/{playlistId}/contentFile - old: get_resources_playlists_playlists_id_content_file - new: get_resources_playlist_content_file - GET /api/v2/resources/playlists/{playlistId}/values - old: get_resources_playlists_playlists_id_values - new: get_resources_playlist_values - GET /api/v2/resources/playlists - old: get_playlists - new: get_resources_playlists - GET /api/v2/resources/playlists/operations/uploadFile/{uploadFileId}/result - old: get_resources_playlists_operations_upload_file_operation_id_result - new: get_resources_playlists_upload_file_result - GET /api/v2/resources/sip-library - old: get_sip_library - new: get_resources_sip_library - GET /api/v2/resources/sip-library/{sipLibraryId} - old: get_sip_library_by_id - new: get_resources_sip_library_by_id - GET /api/v2/resources/sip-library/{sipLibraryId}/contentFile - old: get_resources_sip_library_sip_library_id_content_file - new: get_resources_sip_library_content_file - GET /api/v2/resources/sip-library/operations/uploadFile/{uploadFileId}/result - old: get_resources_sip_library_operations_upload_file_operation_id_result - new: get_resources_sip_library_upload_file_result - GET /api/v2/resources/stats-profile - old: get_stats_profile - new: get_resources_stats_profile - GET /api/v2/resources/stats-profile/{statsProfileId} - old: get_stats_profile_by_id - new: get_resources_stats_profile_by_id - GET /api/v2/resources/stats-profile/{statsProfileId}/contentFile - old: get_resources_stats_profile_stats_profile_id_content_file - new: get_resources_stats_profile_content_file - GET /api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId}/result - old: get_resources_stats_profile_operations_upload_file_operation_id_result - new: get_resources_stats_profile_upload_file_result - GET /api/v2/resources/strikes/{strikeId} - old: get_strikes_by_id - new: get_resources_strike_by_id - GET /api/v2/resources/strike-categories - old: get_strike_categories - new: get_resources_strike_categories - GET /api/v2/resources/strikes - old: get_strikes - new: get_resources_strikes - GET /api/v2/resources/tls-certificates/{tlsCertificateId} - old: get_tls_certificates_by_id - new: get_resources_tls_certificate_by_id - GET /api/v2/resources/tls-certificates/{tlsCertificateId}/contentFile - old: get_resources_tls_certificates_tls_certificates_id_content_file - new: get_resources_tls_certificate_content_file - GET /api/v2/resources/tls-certificates - old: get_tls_certificates - new: get_resources_tls_certificates - GET /api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId}/result - old: get_resources_tls_certificates_operations_upload_file_operation_id_result - new: get_resources_tls_certificates_upload_file_result - GET /api/v2/resources/tls-dhs/{tlsDhId} - old: get_tls_dhs_by_id - new: get_resources_tls_dh_by_id - GET /api/v2/resources/tls-dhs/{tlsDhId}/contentFile - old: get_resources_tls_dhs_tls_dhs_id_content_file - new: get_resources_tls_dh_content_file - GET /api/v2/resources/tls-dhs - old: get_tls_dhs - new: get_resources_tls_dhs - GET /api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId}/result - old: get_resources_tls_dhs_operations_upload_file_operation_id_result - new: get_resources_tls_dhs_upload_file_result - GET /api/v2/resources/tls-keys/{tlsKeyId} - old: get_tls_keys_by_id - new: get_resources_tls_key_by_id - GET /api/v2/resources/tls-keys/{tlsKeyId}/contentFile - old: get_resources_tls_keys_tls_keys_id_content_file - new: get_resources_tls_key_content_file - GET /api/v2/resources/tls-keys - old: get_tls_keys - new: get_resources_tls_keys - GET /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId}/result - old: get_resources_tls_keys_operations_upload_file_operation_id_result - new: get_resources_tls_keys_upload_file_result - GET /api/v2/resources/user-defined-apps - old: get_user_defined_apps - new: get_resources_user_defined_apps - GET /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId}/result - old: get_resources_user_defined_apps_operations_upload_file_operation_id_result - new: get_resources_user_defined_apps_upload_file_result - GET /api/v2/resources/apps/operations/export-all/{id} - old: poll_apps_export_all - new: poll_resources_apps_export_all - GET /api/v2/resources/captures/operations/batch-delete/{id} - old: poll_captures_batch_delete - new: poll_resources_captures_batch_delete - GET /api/v2/resources/captures/operations/uploadFile/{uploadFileId} - old: poll_captures_upload_file - new: poll_resources_captures_upload_file - GET /api/v2/resources/certificates/operations/uploadFile/{uploadFileId} - old: get_resources_certificates_operations_upload_file_operation_id - new: poll_resources_certificates_upload_file - GET /api/v2/resources/operations/create-app/{id} - old: poll_create_app - new: poll_resources_create_app - GET /api/v2/resources/operations/edit-app/{id} - old: poll_edit_app - new: poll_resources_edit_app - GET /api/v2/resources/flow-library/operations/uploadFile/{uploadFileId} - old: get_resources_flow_library_operations_upload_file_operation_id - new: poll_resources_flow_library_upload_file - GET /api/v2/resources/operations/get-attack-categories/{id} - old: poll_get_attack_categories - new: poll_resources_get_attack_categories - GET /api/v2/resources/operations/get-attacks/{id} - old: poll_get_attacks - new: poll_resources_get_attacks - GET /api/v2/resources/operations/get-strike-categories/{id} - old: poll_get_strike_categories - new: poll_resources_get_strike_categories - GET /api/v2/resources/operations/get-strikes/{id} - old: poll_get_strikes - new: poll_resources_get_strikes - GET /api/v2/resources/global-playlists/operations/uploadFile/{uploadFileId} - old: get_resources_global_playlists_operations_upload_file_operation_id - new: poll_resources_global_playlists_upload_file - GET /api/v2/resources/http-library/operations/uploadFile/{uploadFileId} - old: get_resources_http_library_operations_upload_file_operation_id - new: poll_resources_http_library_upload_file - GET /api/v2/resources/media-files/operations/uploadFile/{uploadFileId} - old: get_resources_media_files_operations_upload_file_operation_id - new: poll_resources_media_files_upload_file - GET /api/v2/resources/media-library/operations/uploadFile/{uploadFileId} - old: get_resources_media_library_operations_upload_file_operation_id - new: poll_resources_media_library_upload_file - GET /api/v2/resources/other-library/operations/uploadFile/{uploadFileId} - old: get_resources_other_library_operations_upload_file_operation_id - new: poll_resources_other_library_upload_file - GET /api/v2/resources/payloads/operations/uploadFile/{uploadFileId} - old: get_resources_payloads_operations_upload_file_operation_id - new: poll_resources_payloads_upload_file - GET /api/v2/resources/pcaps/operations/uploadFile/{uploadFileId} - old: get_resources_pcaps_operations_upload_file_operation_id - new: poll_resources_pcaps_upload_file - GET /api/v2/resources/playlists/operations/uploadFile/{uploadFileId} - old: get_resources_playlists_operations_upload_file_operation_id - new: poll_resources_playlists_upload_file - GET /api/v2/resources/sip-library/operations/uploadFile/{uploadFileId} - old: get_resources_sip_library_operations_upload_file_operation_id - new: poll_resources_sip_library_upload_file - GET /api/v2/resources/stats-profile/operations/uploadFile/{uploadFileId} - old: get_resources_stats_profile_operations_upload_file_operation_id - new: poll_resources_stats_profile_upload_file - GET /api/v2/resources/tls-certificates/operations/uploadFile/{uploadFileId} - old: get_resources_tls_certificates_operations_upload_file_operation_id - new: poll_resources_tls_certificates_upload_file - GET /api/v2/resources/tls-dhs/operations/uploadFile/{uploadFileId} - old: get_resources_tls_dhs_operations_upload_file_operation_id - new: poll_resources_tls_dhs_upload_file - GET /api/v2/resources/tls-keys/operations/uploadFile/{uploadFileId} - old: get_resources_tls_keys_operations_upload_file_operation_id - new: poll_resources_tls_keys_upload_file - GET /api/v2/resources/user-defined-apps/operations/export-all/{id} - old: poll_user_defined_apps_export_all - new: poll_resources_user_defined_apps_export_all - GET /api/v2/resources/user-defined-apps/operations/uploadFile/{uploadFileId} - old: get_resources_user_defined_apps_operations_upload_file_operation_id - new: poll_resources_user_defined_apps_upload_file - POST /api/v2/resources/apps/operations/export-all - old: start_apps_export_all - new: start_resources_apps_export_all - POST /api/v2/resources/captures/operations/batch-delete - old: start_captures_batch_delete - new: start_resources_captures_batch_delete - POST /api/v2/resources/captures/operations/uploadFile - old: start_captures_upload_file - new: start_resources_captures_upload_file - POST /api/v2/resources/certificates/operations/uploadFile - old: create_resources_certificates_operations_upload_file - new: start_resources_certificates_upload_file - POST /api/v2/resources/operations/create-app - old: start_create_app - new: start_resources_create_app - POST /api/v2/resources/operations/edit-app - old: start_edit_app - new: start_resources_edit_app - POST /api/v2/resources/flow-library/operations/uploadFile - old: create_resources_flow_library_operations_upload_file - new: start_resources_flow_library_upload_file - POST /api/v2/resources/operations/get-attack-categories - old: start_get_attack_categories - new: start_resources_get_attack_categories - POST /api/v2/resources/operations/get-attacks - old: start_get_attacks - new: start_resources_get_attacks - POST /api/v2/resources/operations/get-strike-categories - old: start_get_strike_categories - new: start_resources_get_strike_categories - POST /api/v2/resources/operations/get-strikes - old: start_get_strikes - new: start_resources_get_strikes - POST /api/v2/resources/global-playlists/operations/uploadFile - old: create_resources_global_playlists_operations_upload_file - new: start_resources_global_playlists_upload_file - POST /api/v2/resources/http-library/operations/uploadFile - old: create_resources_http_library_operations_upload_file - new: start_resources_http_library_upload_file - POST /api/v2/resources/media-files/operations/uploadFile - old: create_resources_media_files_operations_upload_file - new: start_resources_media_files_upload_file - POST /api/v2/resources/media-library/operations/uploadFile - old: create_resources_media_library_operations_upload_file - new: start_resources_media_library_upload_file - POST /api/v2/resources/other-library/operations/uploadFile - old: create_resources_other_library_operations_upload_file - new: start_resources_other_library_upload_file - POST /api/v2/resources/payloads/operations/uploadFile - old: create_resources_payloads_operations_upload_file - new: start_resources_payloads_upload_file - POST /api/v2/resources/pcaps/operations/uploadFile - old: create_resources_pcaps_operations_upload_file - new: start_resources_pcaps_upload_file - POST /api/v2/resources/playlists/operations/uploadFile - old: create_resources_playlists_operations_upload_file - new: start_resources_playlists_upload_file - POST /api/v2/resources/sip-library/operations/uploadFile - old: create_resources_sip_library_operations_upload_file - new: start_resources_sip_library_upload_file - POST /api/v2/resources/stats-profile/operations/uploadFile - old: create_resources_stats_profile_operations_upload_file - new: start_resources_stats_profile_upload_file - POST /api/v2/resources/tls-certificates/operations/uploadFile - old: create_resources_tls_certificates_operations_upload_file - new: start_resources_tls_certificates_upload_file - POST /api/v2/resources/tls-dhs/operations/uploadFile - old: create_resources_tls_dhs_operations_upload_file - new: start_resources_tls_dhs_upload_file - POST /api/v2/resources/tls-keys/operations/uploadFile - old: create_resources_tls_keys_operations_upload_file - new: start_resources_tls_keys_upload_file - POST /api/v2/resources/user-defined-apps/operations/export-all - old: start_user_defined_apps_export_all - new: start_resources_user_defined_apps_export_all - POST /api/v2/resources/user-defined-apps/operations/uploadFile - old: create_resources_user_defined_apps_operations_upload_file - new: start_resources_user_defined_apps_upload_file -BrokersApi - DELETE /api/v2/brokers/{brokerId} - old: delete_brokers - new: delete_broker - GET /api/v2/brokers/{brokerId} - old: get_brokers_by_id - new: get_broker_by_id - PATCH /api/v2/brokers/{brokerId} - old: patch_brokers - new: patch_broker -ConfigurationsApi - DELETE /api/v2/configs/{configId} - old: delete_configs - new: delete_config - GET /api/v2/configs/{configId} - old: get_configs_by_id - new: get_config_by_id - GET /api/v2/resources/custom-import-operations - old: get_custom_import_operations - new: get_resources_custom_import_operations - PATCH /api/v2/configs/{configId} - old: patch_configs - new: patch_config - PUT /api/v2/configs/{configId} - old: update_configs - new: update_config -DataMigrationApi - GET /api/v2/controller-migration/operations/export/{id} - old: poll_export - new: poll_controller_migration_export - GET /api/v2/controller-migration/operations/import/{id} - old: poll_import - new: poll_controller_migration_import - POST /api/v2/controller-migration/operations/export - old: start_export - new: start_controller_migration_export - POST /api/v2/controller-migration/operations/import - old: start_import - new: start_controller_migration_import -LicenseServersApi - DELETE /api/v2/license-servers/{licenseServerId} - old: delete_license_servers - new: delete_license_server - GET /api/v2/license-servers/{licenseServerId} - old: get_license_servers_by_id - new: get_license_server_by_id - PATCH /api/v2/license-servers/{licenseServerId} - old: patch_license_servers - new: patch_license_server -NotificationsApi - DELETE /api/v2/notifications/{notificationId} - old: delete_notifications - new: delete_notification - GET /api/v2/notifications/{notificationId} - old: get_notifications_by_id - new: get_notification_by_id -ReportsApi - GET /api/v2/results/{resultId}/download-csv/{downloadCsvId} - old: get_download_csv_by_id - new: get_result_download_csv_by_id - GET /api/v2/results/{resultId}/operations/generate-csv/{id} - old: poll_results_generate_csv - new: poll_result_generate_csv - GET /api/v2/results/{resultId}/operations/generate-pdf/{id} - old: poll_results_generate_pdf - new: poll_result_generate_pdf - POST /api/v2/results/{resultId}/operations/generate-csv - old: start_results_generate_csv - new: start_result_generate_csv - POST /api/v2/results/{resultId}/operations/generate-pdf - old: start_results_generate_pdf - new: start_result_generate_pdf -SessionsApi - POST /api/v2/sessions/{sessionId}/meta - old: create_meta - new: create_session_meta - DELETE /api/v2/sessions/{sessionId} - old: delete_sessions - new: delete_session - DELETE /api/v2/sessions/{sessionId}/meta/{metaId} - old: delete_meta - new: delete_session_meta - GET /api/v2/sessions/{sessionId}/config/$docs - old: get_docs - new: get_config_docs - GET /api/v2/sessions/{sessionId}/config/granular-stats - old: get_granular_stats - new: get_config_granular_stats - GET /api/v2/sessions/{sessionId}/config/granular-stats-filters - old: get_granular_stats_filters - new: get_config_granular_stats_filters - GET /api/v2/sessions/{sessionId} - old: get_sessions_by_id - new: get_session_by_id - GET /api/v2/sessions/{sessionId}/config - old: get_config - new: get_session_config - GET /api/v2/sessions/{sessionId}/meta - old: get_meta - new: get_session_meta - GET /api/v2/sessions/{sessionId}/meta/{metaId} - old: get_meta_by_id - new: get_session_meta_by_id - GET /api/v2/sessions/{sessionId}/test - old: get_test - new: get_session_test - PATCH /api/v2/sessions/{sessionId} - old: patch_sessions - new: patch_session - PATCH /api/v2/sessions/{sessionId}/meta/{metaId} - old: patch_meta - new: patch_session_meta - PATCH /api/v2/sessions/{sessionId}/test - old: patch_test - new: patch_session_test - GET /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards/{id} - old: poll_config_granular_stats_default_dashboards - new: poll_session_config_granular_stats_default_dashboards - GET /api/v2/sessions/{sessionId}/operations/loadConfig/{id} - old: poll_sessions_load_config - new: poll_session_load_config - GET /api/v2/sessions/{sessionId}/operations/prepareTest/{id} - old: poll_prepare_test - new: poll_session_prepare_test - GET /api/v2/sessions/{sessionId}/operations/testEnd/{id} - old: poll_test_end - new: poll_session_test_end - GET /api/v2/sessions/{sessionId}/operations/testInit/{id} - old: poll_test_init - new: poll_session_test_init - GET /api/v2/sessions/{sessionId}/operations/touch/{id} - old: poll_sessions_touch - new: poll_session_touch - POST /api/v2/sessions/{sessionId}/config/operations/granular-stats-default-dashboards - old: start_config_granular_stats_default_dashboards - new: start_session_config_granular_stats_default_dashboards - POST /api/v2/sessions/{sessionId}/config/operations/save - old: start_config_save - new: start_session_config_save - POST /api/v2/sessions/{sessionId}/operations/loadConfig - old: start_sessions_load_config - new: start_session_load_config - POST /api/v2/sessions/{sessionId}/operations/prepareTest - old: start_prepare_test - new: start_session_prepare_test - POST /api/v2/sessions/{sessionId}/operations/testEnd - old: start_test_end - new: start_session_test_end - POST /api/v2/sessions/{sessionId}/operations/testInit - old: start_test_init - new: start_session_test_init - POST /api/v2/sessions/{sessionId}/operations/touch - old: start_sessions_touch - new: start_session_touch - PUT /api/v2/sessions/{sessionId} - old: update_sessions - new: update_session - PUT /api/v2/sessions/{sessionId}/config - old: update_config - new: update_session_config - PUT /api/v2/sessions/{sessionId}/meta - old: update_meta - new: update_session_meta - PUT /api/v2/sessions/{sessionId}/test - old: update_test - new: update_session_test -StatisticsApi - POST /api/v2/stats/plugins - old: create_plugins - new: create_stats_plugins - DELETE /api/v2/stats/plugins/{pluginId} - old: delete_plugins - new: delete_stats_plugin - GET /api/v2/results/{resultId}/stats/{statId} - old: get_stats_by_id - new: get_result_stat_by_id - GET /api/v2/results/{resultId}/stats - old: get_stats - new: get_result_stats - GET /api/v2/stats/plugins - old: get_plugins - new: get_stats_plugins - GET /api/v2/stats/plugins/operations/ingest/{id} - old: poll_plugins_ingest - new: poll_stats_plugins_ingest - POST /api/v2/stats/plugins/operations/ingest - old: start_plugins_ingest - new: start_stats_plugins_ingest -TestOperationsApi - GET /api/v2/sessions/{sessionId}/test-calibrate/operations/start/{id} - old: poll_start_calibration - new: poll_test_calibrate_start - GET /api/v2/sessions/{sessionId}/test-calibrate/operations/stop/{id} - old: poll_stop_calibration - new: poll_test_calibrate_stop - GET /api/v2/sessions/{sessionId}/test-run/operations/abort/{id} - old: poll_abort - new: poll_test_run_abort - GET /api/v2/sessions/{sessionId}/test-run/operations/start/{id} - old: poll_start_traffic - new: poll_test_run_start - GET /api/v2/sessions/{sessionId}/test-run/operations/stop/{id} - old: poll_stop_traffic - new: poll_test_run_stop - POST /api/v2/sessions/{sessionId}/test-calibrate/operations/start - old: start_start_calibration - new: start_test_calibrate_start - POST /api/v2/sessions/{sessionId}/test-calibrate/operations/stop - old: start_stop_calibration - new: start_test_calibrate_stop - POST /api/v2/sessions/{sessionId}/test-run/operations/abort - old: start_abort - new: start_test_run_abort - POST /api/v2/sessions/{sessionId}/test-run/operations/start - old: start_start_traffic - new: start_test_run_start - POST /api/v2/sessions/{sessionId}/test-run/operations/stop - old: start_stop_traffic - new: start_test_run_stop -TestResultsApi - DELETE /api/v2/results/{resultId} - old: delete_results - new: delete_result - DELETE /api/v2/results/{resultId}/files/{fileId} - old: delete_files - new: delete_result_file - GET /api/v2/results/{resultId} - old: get_results_by_id - new: get_result_by_id - GET /api/v2/results/{resultId}/download-all/{downloadAllId} - old: get_download_all_by_id - new: get_result_download_all_by_id - GET /api/v2/results/{resultId}/download-result-config - old: get_download_result_config - new: get_result_download_result_config - GET /api/v2/results/{resultId}/files/{fileId} - old: get_files_by_id - new: get_result_file_by_id - GET /api/v2/results/{resultId}/files/{fileId}/content - old: get_results_results_id_files_files_id_content - new: get_result_file_content - GET /api/v2/results/{resultId}/files - old: get_files - new: get_result_files - GET /api/v2/results/tags - old: get_result_tags - new: get_results_tags - GET /api/v2/results/{resultId}/operations/generate-all/{id} - old: poll_results_generate_all - new: poll_result_generate_all - GET /api/v2/results/{resultId}/operations/generate-results/{id} - old: poll_results_generate_results - new: poll_result_generate_results - GET /api/v2/results/{resultId}/operations/load/{id} - old: poll_results_load - new: poll_result_load - POST /api/v2/results/{resultId}/operations/generate-all - old: start_results_generate_all - new: start_result_generate_all - POST /api/v2/results/{resultId}/operations/generate-results - old: start_results_generate_results - new: start_result_generate_results - POST /api/v2/results/{resultId}/operations/load - old: start_results_load - new: start_result_load -UtilsApi - GET /api/v2/cert-manager/certificate - old: get_certificate - new: get_cert_manager_certificate - GET /api/v2/disk-usage/consumers/{consumerId} - old: get_consumers_by_id - new: get_disk_usage_consumer_by_id - GET /api/v2/disk-usage/consumers - old: get_consumers - new: get_disk_usage_consumers - GET /api/v2/cert-manager/operations/generate/{id} - old: poll_generate - new: poll_cert_manager_generate - GET /api/v2/cert-manager/operations/upload/{id} - old: poll_upload - new: poll_cert_manager_upload - POST /api/v2/cert-manager/operations/generate - old: start_generate - new: start_cert_manager_generate - POST /api/v2/cert-manager/operations/upload - old: start_upload - new: start_cert_manager_upload \ No newline at end of file diff --git a/git_push.sh b/git_push.sh deleted file mode 100644 index f53a75d..0000000 --- a/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/jenkins/JenkinsFile b/jenkins/JenkinsFile deleted file mode 100644 index 3f7e4e3..0000000 --- a/jenkins/JenkinsFile +++ /dev/null @@ -1,117 +0,0 @@ -import jenkins.branch.* -import java.util.regex.Pattern - -def job_name_split = env.JOB_NAME.split('/')[-2] -env.job_name_split = env.JOB_NAME.split('/')[-2] -def branch = env.JOB_NAME.split('/')[-1] -env.branch = env.JOB_NAME.split('/')[-1] -def jenkins_cwd_lin = '/home/jenkins/build' + '/' + job_name_split + '/' + job_name_split + '-' + env.BUILD_NUMBER -env.jenkins_cwd_lin = '/home/jenkins/build' + '/' + job_name_split + '/' + job_name_split + '-' + env.BUILD_NUMBER - -pipeline_triggers=[ - [ - $class: 'BitBucketPPRTrigger', - triggers : [ - [ - $class: 'BitBucketPPRPullRequestTriggerFilter', - actionFilter: [ - $class: 'BitBucketPPRPullRequestCreatedActionFilter' - ] - ] - ] - ] - ] - -def projectProperties = [ - pipelineTriggers(pipeline_triggers), - [$class: 'BuildDiscarderProperty',strategy: [$class: 'LogRotator', numToKeepStr: '50']], - parameters ([ - string(name:'BASE_IMAGE', defaultValue:'docker-virtual-wap.artifactorylbj.it.keysight.com/wap-base-debian:12.8-slim', description: 'docker-virtual-wap.artifactorylbj.it.keysight.com/wap-base-debian:12.8-slim'), - booleanParam(name:'publish_pypi', defaultValue:false, description: 'If true, the build will be published to the public PyPI repos. Only works on release/ branches.') - ]), -] - -properties(projectProperties) - -def do_publish = params.publish_pypi - -@NonCPS -boolean setDisplayVersion(publish) { - branch_sanitized = branch.replaceAll('-', '.').replaceAll('_', '.').replaceAll('%2F', '-') - def matcher = Pattern.compile("^release%2F([0-9]+)\\.([0-9]+)\\.([0-9]+)\$").matcher(branch) - if (matcher.matches()) { - build_number = "dev${env.BUILD_NUMBER}+${branch_sanitized}" - if (publish) { - build_number = "${env.BUILD_NUMBER}" - } - env.PIP_VERSION = "${matcher.group(1).toString()}.${matcher.group(2).toString()}.${build_number}" - env.DOCKER_VERSION = env.PIP_VERSION.replaceAll('\\+', '-') - } else if (branch.startsWith("release%2F")) { - throw new Exception("Unexpected release branch format ${branch}, expected 'release%2fNUMBER.NUMBER.NUMBER'") - } else { - env.PIP_VERSION = "0.0.dev${env.BUILD_NUMBER}+${branch_sanitized}" - env.DOCKER_VERSION = env.PIP_VERSION.replaceAll('\\+', '-') - publish = false - } - currentBuild.displayName = env.PIP_VERSION - return publish -} - -node('wap') { - dir (jenkins_cwd_lin) { - stage('GitCheckout') { - commit = checkout([$class: 'GitSCM', - branches: scm.branches, - extensions: scm.extensions, - userRemoteConfigs: [[ - credentialsId: 'e7e3fcc3-4f5f-4e68-b68c-76f40b75a3c7', - url: 'https://bitbucket.it.keysight.com/scm/isgappsec/cyperf-api-wrapper.git']] - ]) - do_publish = setDisplayVersion(do_publish) - } - stage('Build base') { - env.BASE_IMAGE = params.BASE_IMAGE - sh(''' - docker build -f docker/Dockerfile \ - --build-arg base_image="$BASE_IMAGE" \ - --build-arg VERSION="$PIP_VERSION" \ - -t cyperf-api-wrapper-build:$DOCKER_VERSION \ - . - ''') - } - stage('Build and publish to internal repo') { - withCredentials([[$class: 'UsernamePasswordMultiBinding', - credentialsId: 'e7e3fcc3-4f5f-4e68-b68c-76f40b75a3c7', - usernameVariable: 'ARTIFACTORY_USERNAME', - passwordVariable: 'ARTIFACTORY_PASSWORD']]) { - sh(''' - docker run --rm \ - --env TWINE_USERNAME="$ARTIFACTORY_USERNAME" \ - --env TWINE_PASSWORD="$ARTIFACTORY_PASSWORD" \ - cyperf-api-wrapper-build:$DOCKER_VERSION \ - /cyperf-api-wrapper-build/publish.sh /build/py3 "--repository artifactory" - ''') - } - } - stage('Build and publish to public repo') { - if (do_publish) { - withCredentials([ - string(credentialsId: 'PYPI_API_TOKEN', variable: 'PYPI_API_TOKEN') - ]) { - sh(''' - docker run --rm \ - --env TWINE_USERNAME="__token__" \ - --env TWINE_PASSWORD="$PYPI_API_TOKEN" \ - cyperf-api-wrapper-build:$DOCKER_VERSION \ - /cyperf-api-wrapper-build/publish.sh /build/py3 - ''') - } - } - } - stage('Cleanup') { - sh(''' - docker rmi cyperf-api-wrapper-build:$DOCKER_VERSION - ''') - } - } -}