From b92c106f1289650a4e9c5d55688dc9230c16d669 Mon Sep 17 00:00:00 2001 From: Tudor Simionescu Date: Wed, 23 Apr 2025 06:24:13 -0600 Subject: [PATCH 1/9] 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 2/9] 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 3/9] 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 4/9] 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 5/9] 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 6/9] 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 7/9] 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 8/9] 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 bb0f8837bdb3de65b08b88aa44d8edd1a7e1ed9d Mon Sep 17 00:00:00 2001 From: Iustin Mitu Date: Thu, 24 Jul 2025 05:16:39 -0600 Subject: [PATCH 9/9] 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 --- 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}"